Solution found. The acpi power button on Slackware, is managed by acpid daemon, is easy to test: I have booted a vm with acpid disabled and when I press the power button nothing happen. The power button init-0-way is configured by default, on old distros I have to edit it manually, now is enabled by default but you can configure /etc/acpi/events/default (or another name by your choose) to configure this "way" in another manor. For example if I want a different message from shutdown command I create a file
vim /etc/acpi/events/myway
with those contents
event=button/power
action=/etc/acpi/button.sh "%e"
and finally I create the script /etc/acpi/button.sh with this content
/sbin/shutdown -h now "My message"
I restart acpid and work
/etc/rc.c/rc.acpid restart