[ltp] FN+F4 & APMD?
Fri, 19 Dec 2003 17:33:35 +0200
Content-Type: text/plain; charset=iso-8859-1
On Fri, Dec 19, 2003 at 02:08:58PM +0100, Andr=E9 Wyrwa wrote:
> i finally made a move towards digging into suspension stuff.
> I installed apmd and it seems to work quite well, at least when I
> suspend with apm -S.
> Only trouble is that when pressing FN+F4 apmd seems not to realize the
> event - or then /etc/apmd_proxy doesn't seem to be called.
> Is it supposed to work or does the kernel not signal fn+f4 events to
> Notebook is a T23, distro is LFS, kernel is 2.4.23-ck1.
Works fine out of the box here. T23, Debian sid, 2.4.21.
Do you see any apmd messages in the syslog? I assume you have APM
compiled into the kernel/loaded as a module. I'm not sure what to look
for -- I have apmd running with the following arguments
mg: ~$ ps `pidof apmd`
PID TTY STAT TIME COMMAND
700 ? S 0:04 /usr/sbin/apmd -P /etc/apm/apmd_proxy
lsof shows that apmd has /dev/apm_bios opened (for read and write
access). When I press Fn+F4, here's what I get in syslog:
Oct 7 13:16:55 perlas apmd: apmd_call_proxy: Executing proxy: '/et=
c/apm/apmd_proxy' 'suspend' 'system'
Oct 7 13:16:56 perlas apmd: apmd_call_proxy: + Unmounting remote f=
Oct 7 13:16:57 perlas apmd: apmd_call_proxy: + kill: usage: kill [=
-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec] run-=
parts: /etc/apm/event.d/alsa exited with return code 1
The last one results from a bug in /etc/apm/event.d/alsa script.
Oct 7 13:16:57 perlas apmd: System Suspend
Q: What's tiny and yellow and very, very, dangerous?
A: A canary with the super-user password.
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
-----END PGP SIGNATURE-----