[thinkpad] [ltp] tpctl

Martin Fluch linux-thinkpad@linux-thinkpad.org
Fri, 17 Jan 2003 10:55:49 +0100 (CET)


On Fri, 17 Jan 2003, Thomas Hood wrote:

> [...]
> detect the pcmcia card and reject the request.  It is better
> to use a little script that does
>     cardctl eject
>     apm --suspend

Actually it's already enough to call apm --suspend and let apmd execute
the cardctl eject in one of the apm scripts (in /etc/apm/event.d/pcmcia
under Debian).

I have configured sudo to let the apm command run as root without any
password verification for me and then I configured my window manager to
execute "sudo apm -s" when I hit SHIFT-ALT-F4.

- Martin