breezy2dapper: hibernate broken

Patrick Drechsler patrick at pdrechsler.de
Sun Jun 11 22:47:23 UTC 2006


Jaime Davila wrote on 11 Jun 2006 22:42:35 MET:

> Patrick Drechsler wrote:
>> Jaime Davila wrote on 11 Jun 2006 18:05:29 MET:

[...]

> Which script runs on a particular key being pressed is
> configurable. The default ubuntu installation does have
> sensible names, so it might in fact be hibernatebtn.sh. It
> certainly is in my system.
>
> Here's how you can find out.  first you need to figure out what
> acpi event your laptop generates when you press fn-f12. In my
> system that's ibm/hotkey HKEY 00000080 0000100c To find out
> what it is in yours, for sure, view the content of
> /var/log/acpid, press fn-f12, and then look at the file again
> to see what was added.
>
> Once you find out what acpi event gets detected, look to see
> which file in /etc/acpi/events makes reference to it. you can
> do that by first changing to that directory (cd
> /etc/acpi/events) and then "grepping" the files in that
> directory for the string you're looking for. For example, if I
> want to find which file contains ibm/hotkey HKEY 00000080
> 0000100c, I would do "grep 'ibm/hotkey HKEY 00000080 0000100c'
> *" In my system that would return ibm-hibernatebtn. If I look
> inside that file (with less ibm-hibernatebtn) I would see that
> the file makes reference to action=/etc/acpi/hibernatebtn.sh
> . That tells me that when the system detects ibm/hotkey HKEY
> 00000080 0000100c it will run ibm-hibernatebtn That and other
> files referenced in there are in directory /etc/acpi .

Thank you very much for this explanation, Jaime. My setup is
identical to yours.

> That sounds like a problem I always see on my thinkpads, and
> I've seen it being mentioned for other machines too. It has to
> do with something in the grub configuration. For some reason,
> if the bootup process displays that nice looking ubuntu
> graphic, it doesn't come back from hibernation. The problem has
> existed for me under ubuntu now, kubuntu before, and fedora
> cores 1 & 4 before that.
>
> here's how you tell grub not to display that image.
>
> Go to /boot/brub, and edit file menu.lst . There's a like there
> that reads "# kopt=" . Make sure it says "# kopt=root=/dev/hda1
> ro nosplash quiet resume=/dev/hda5", where:

This solved the problem. My initial trials included references to
apm and acpi:

,----[ test 1 with menu.lst ]
| root=/dev/hda2 ro acpi=off apm=on nolapic quiet splash resume=/dev/hda3
`----

,----[ test 2 with menu.lst ]
| root=/dev/hda2 ro acpi=on quiet splash resume=/dev/hda3
`----

Using "nosplash" and dropping the keys "apm=on|off" and
"acpi=on|off" as you suggest:

,----[ working menu.lst ]
| root=/dev/hda2 ro quiet nosplash resume=/dev/hda3
`----

leaves me with a working setup. I can now suspend and hibernate
(i) using function keys and (ii) the Gnome System->Quit dialog
entry.

> Let me know how it goes,

Again, thank you very much!

Regards

Patrick
-- 
DJ:"You may not say YES,NO,BLACK,WHITE. OK, let's start. Are you still
sober?"
Caller: "No."
              Friday night radio documents the search for intelligence 






More information about the ubuntu-users mailing list