[ltp] Re: your mail

Vivek Dasmohapatra linux-thinkpad@www.bm-soft.com
Tue, 19 Dec 2000 00:54:35 +0000 (GMT)


On Mon, 18 Dec 2000 Till.Straumann@tu-berlin.de wrote:

> I played around with different (especially PowerManagement
> related) bits / settings of the TI Cardbus bridge (hacking
> around in the driver), but unfortunately, without success.
> 
> Does anybody have a clue about this? What does the Win driver
> different?

Your apm daemon should run certain scripts whan an apm suspend/resume 
event occurs: as part of these scripts you can bring interfaces down, cut
power to pcmcia cards, etc. Try looking in /etc/apmd_proxy.
Mine unloads the sound drivers, brings down the network interfaces, and
cuts power to the pcmcia cards.

> Please don't waste bandwith responding to this message telling
> me that I can eject / suspend the cards etc. I'd like a
> clean solution where I can close the lid and walk...

It is a clean solution - it just happens to live in userspace rather than
kernel space. The apm deamon runs the script to bring all the suspend
blocking things down, then runs the script with a 'resume' argument to
bring them back up when you wake the laptop up.

Although personally I find suspend on lid close very annoying, so I've
disabled it. If anyone knows hot to disable resume on lid open on an A20p,
I'd like to know.... [tried tpctl - it shows resume on open as enabled,
but doesn't list any options: does this mean it's not configurable, or
just that tpctl doesn't allow tweaking of this on my laptop [yet]]

-- 
The time for action is past!  Now is the time for senseless bickering.

----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html