Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am using a Debian machine which does not include the acpid package. Is there a way that I can reboot the machine using Python language when the power-button is pressed, without installing that (or any other) package on the machine? Currently nothing is happening when the button is pressed.

share|improve this question
On machines sold in this millenium it is very common for powerbuttons to emit ACPI events. Are you simply missing the acpid or are you actually on a machine without ACPI? –  Bananguin Jan 3 at 7:00
ACPI is installed into /lib/modules/2.6.32-5-686/kernel/drivers/ location but I am missing the acpid package. –  Alex Jan 3 at 7:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.