How to install the powerswitch module on a SME server | |
Author: Michiel Blotwijk <Michiel.Blotwijk@Altiplano.Be> | |
Release supported: SME 5.6 and 6.0 | |
License: GPL | |
Last updated: 9 January, 2004 | |
Most Up-todate version can be found here: http://www.contribs.org/contribs/mblotwijk/HowToGuides/powerswitch.htm | |
Purpose: The powerswitch driver makes it possible to use the ATX power button on your computer to shutdown Linux. You simply press the power button, and the driver shuts down Linux and powers off the machine, just like the shutdown command does. |
|
Installation:Download the latest version of the powerswitch from http://www.contribs.org/contribs/mblotwijk/Contribs/powerswitch/. Install as 'root':
This installs the modules in /usr/lib and a start-up script in /etc/e-smith/events/local. This start-up script will load the correct module, depending on the version of the SME server (5.6 or 6.0). Test the powerswitch driver: press the suspend button and the system should shut down immediately. Notes:This contribution is merely a repackaging of Joris van Rantwijk's powerswitch module. All credits (and litigations ;-) should go to him. His original files are included in /usr/doc/powerswitch-1.5. Trouble shooting:These "problems & solutions" come from Joris van Rantwijk's documentation and have been limited to those issues that are relevant to the SME server. If the module fails to load or doesn't work properly, try the command "dmesg" to see any kernel messages about the module. P: Loading the module results in a warning about tainting
the kernel because there is no license in the module file. P: The system immediately powers off when pushing the
power button. P: The system doesn't shut down when pushing the power
button with the module loaded. P: My system doesn't suspend when pushing the power
button without the module loaded. |