[ltp] FN+F4 & APMD?

Marius Gedminas linux-thinkpad@linux-thinkpad.org
Fri, 19 Dec 2003 17:33:35 +0200


--/WwmFnJnmDyWGHa4
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Dec 19, 2003 at 02:08:58PM +0100, Andr=E9 Wyrwa wrote:
> i finally made a move towards digging into suspension stuff.
>=20
> I installed apmd and it seems to work quite well, at least when I
> suspend with apm -S.
>=20
> 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.
>=20
> Is it supposed to work or does the kernel not signal fn+f4 events to
> apmd?
>=20
> 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[1771]: apmd_call_proxy: Executing proxy: '/et=
c/apm/apmd_proxy' 'suspend' 'system'
  Oct  7 13:16:56 perlas apmd[1771]: apmd_call_proxy: + Unmounting remote f=
ilesystems.
  Oct  7 13:16:57 perlas apmd[1771]: 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[1771]: System Suspend

HTH,
Marius Gedminas
--=20
Q:      What's tiny and yellow and very, very, dangerous?
A:      A canary with the super-user password.

--/WwmFnJnmDyWGHa4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/4xpOkVdEXeem148RAm5gAJ4t6e8U5fzrVdYh1seDKe5VQydPYQCffoPG
aq4xC+m/eZgUk3Zx6g9aEUQ=
=YfLs
-----END PGP SIGNATURE-----

--/WwmFnJnmDyWGHa4--