Subject: Re: Thinkpad T42 Power Management
To: David Brownlee <abs@NetBSD.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: port-i386
Date: 02/02/2006 21:01:46
In message <Pine.NEB.4.64.0602022333330.538@localhost.>, David Brownlee writes:
>On Sat, 19 Nov 2005, Jared D. McNeill wrote:
>
>> On 17-Nov-05, at 6:32 AM, Steven M. Bellovin wrote:
>>
>>> In message <Pine.NEB.4.63.0511171439340.8510@angelic.cynic.net>, Curt 
>>> Sampson w
>>> rites:
>>>> So, I finally made my choice and went out and got a Thinkpad T42.
>>>> It seems to be working fine so far, though I've not tried X11 yet.
>>>> 
>>>> However, I'm not at all familiar with any kind of power management, and
>>>> I'm wondering what I should be using on this machine. Do I just start
>>>> apmd and powerd in rc.conf, and go with the manual pages from there?
>>>> Does anybody have any handy scripts or anything like that?
>>>> 
>>> 
>>> Use apm only.  Powerd requires ACPI, which (as far as I know) isn't
>>> really useful yet on laptops, since you can't do suspend/resume.
>>
>> For what it's worth, I had suspend/resume (ACPI S1 and S3) working on my Del
>l 
>> Latitude D600. -current doesn't provide a way to trigger a suspend, so here'
>s 
>> the (old) patch I used:
>>
>> 	http://www.invisible.ca/~jmcneill/netbsd/d600/acpi-sleep-sysctl.patch
>>
>> You can trigger a sleep with 'sysctl -w hw.acpi.sleepstate=<n>' where 'n' is
> 
>> the ACPI sleepstate (1, 3, 4, etc).
>>
>> There was a bug in the D600 firmware where resume would fail to re-initializ
>e 
>> the display adapter if it entered S3 while undocked, but apart from that our
> 
>> ACPI suspend/resume code works flawlessly. Hopefully others have better luck
> 
>> on different hardware.
>
> 	Would there be any sense in committing this as a (default
> 	undefined) option to make it easier for people to play with
> 	this stuff?
>

I'd certainly try it; if suspend/resume and battery level (via pkgsrc/
sysutils/asapm) work, I'll keep it running.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb