This is the old SliTaz forum - Please use the main

Shutting down system using the Power button
  • ms3811ms3811 September 2010
    I read somewhere you need to load the module button and have ACPID installed. ACPID is on the repos, but does anyone know where I can find button.ko?

    Is there another way to trap the Power Button press event?
  • Trixar_zaTrixar_za September 2010
    I tried this before and I found Slitaz actually traps and forwards the power button event to a script for processing. There is also a package called linux-acpi along with acpid in the repos btw, so you may want to install that too.

    Now in Slitaz the event works like this: /etc/acpi/events/button.conf catches all button related events (The keyboard's power, sleep or wake buttons and the PC's power button). It then forwards it to the /etc/acpi/ script for processing.

    How to make it work after that is anybody's guess - I tried the suggestions @ without success too :( - Hope you have better luck than me
  • ms3811ms3811 September 2010
    I installed both the packages, and tail -f /var/log/messages shows that the acpid daemon is running, however pressing the power button evokes no response. Usually if I press other 'special' keys, /var/log/messages will atleast acknowledge the key press.

    Am I missing something?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social