[ltp] T40 Powe Management Problem?

Wayne Topa linux-thinkpad@linux-thinkpad.org
Wed, 27 Jun 2007 17:05:09 -0400


sjk(sjk@cupacoffee.net) is reported to have said:
> I am hoping someone out there has run into this: I have an IBM T40
> running 2.6.18.3 with Debian testing. While on battery, if I close the
> lid the machine goes into hibernate. I can find no script which is
> invoking the acpi call -- in fact it occurs even after I stop acpid.I
> think it's related to the settings in /proc/acpi, but I can't see
> anything defining a lid action.
> 
> The setting in the bios for suspend on lid close has been disabled as well.
> 
> This shows up in the acpid logs:
> 
> [Tue Jun 26 12:18:12 2007] received event "button/lid LID 00000080 00000001"
> [Tue Jun 26 12:18:12 2007] completed event "button/lid LID 00000080
> 00000001"
> [Tue Jun 26 12:18:13 2007] received event "button/lid LID 00000080 00000002"
> [Tue Jun 26 12:18:13 2007] completed event "button/lid LID 00000080
> 00000002"
> 
> This is really annoying as once the machine does into hibernate, I can't
> get it to come out without rebooting or forcing suspend to disk and then
> recover from that -- which hoses X.
> 
> Any ideas would be appreciated.
Just fired up the T40.  I ran 'watch tail /var/log/acpid'.  fired up X
on a user and ran gpsdrive.  Closed the lid, waited for a minute or 2,
and opened te lid.  There was gpsdrive.  ISTR if left closed for a
half hour or so I need to touch an Alt key to get the screen to
unblank.

The log entry showed, in addition to what you got was
------
notifing client 3761[0:0]
executing action "/etc/acpi/actions/lm_lid.sh button/lid LID 00000080
00000002
BEGIN HANDLER MESSAGE
Laptopmode enabled, not active [unchanged]
END HANDLER MESSAGE
action exited with status 0
completed event "button/lid LID 00000080 00000002

Prior to the messages you saw I also have
1 client rule loaded
-----

The /etc/acpi/actions/lm_lid.sh script is from the laptop-mode-tools
package.

Wayne

-- 
DOS Tip #2: Add BUGS=OFF to your CONFIG.SYS
_______________________________________________________