Location of certain executables and shutdown scripts

Derek Broughton news at pointerstop.ca
Tue Jul 25 14:35:50 UTC 2006


Gabriel M Dragffy wrote:

> When I press the power button on my laptop I would like it to shutdown
> the system, but instead it brings up a menu asking if I want to
> logout/switch user/suspend/hibernate etc. Then I select turn off and the
> computer shuts down. What must I do to avoid the computer asking me
> which action I wish to take?
> 
> Next of all, what is the location of the suspend to ram script? And the
> location of the hibernate script? Thank you in advance.

Both questions depend on your installed power management. If you use
acpi-support, then it should be somewhere under /etc/acpi.  If you use
powersaved, then I think it's all just done by invoking "powersave" with
the right options.  Using acpi-support I modified something like
powerbtn.sh to do a shutdown or hibernate instead of "sleep", but given
that you get a menu, I'm guessing yours is already doing something else. 
Now I use kpowersave, and /etc/powersave/events has been modified to make
EVENT_BUTTON_POWER to do "suspend_to_disk" - if suspend to ram is
supported, you could have it do that.
-- 
derek





More information about the ubuntu-users mailing list