Ritesh Raj Sarraf wrote: > On Thursday 09 Feb 2006 01:47, Michael Biebl wrote: >> powersaved has to be started after dbus, because it uses dbus. So the >> ordering is correct. >> The problem must be something else. Can you investigate this a little >> further? > > Here's what I've gathered from bootlogd: > > Thu Feb 9 00:43:06 2006: Starting system message bus: dbus. > Thu Feb 9 00:43:06 2006: Starting Hardware abstraction layer: hald. > Thu Feb 9 00:43:10 2006: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. > Thu Feb 9 00:43:10 2006: Starting dictionary server: dictd. > Thu Feb 9 00:43:11 2006: Starting DirMngr: dirmngr. > Thu Feb 9 00:43:12 2006: Starting mouse interface server: gpm. > Thu Feb 9 00:43:12 2006: Starting internet superserver: inetd. > Thu Feb 9 00:43:12 2006: Setting up manual keycodes > Thu Feb 9 00:43:12 2006: Enabling laptop mode: enabled, not active. > Thu Feb 9 00:43:12 2006: Starting Name Service Cache Daemon: nscd. > Thu Feb 9 00:43:12 2006: Starting mail transport agent: Postfix. > Thu Feb 9 00:43:13 2006: Starting OpenBSD Secure Shell server: sshd. > Thu Feb 9 00:43:13 2006: Setting up X font server socket > directory /tmp/.font-unix...done. > Thu Feb 9 00:43:14 2006: Starting X font server: xfs. > Thu Feb 9 00:43:14 2006: Starting mail server: dovecot. > Thu Feb 9 00:43:14 2006: Starting power management daemon: powersavedacpid: > can't open /proc/acpi/event: Device or resource busy > > So you can see that /proc/acpi/event is shown as busy. > > When I did an `lsof /proc/acpi/event` it gave me the result that one of hal's > binary, hal-device-manager IIRC, was locking /proc/acpi/event. I'll confirm > the binary as I reboot my laptop. > > Interesting part is that once you stop dbus (which stops hal) and start > powersaved, it works. Then you can restart dbus+hal. > And after that a restart of powersaved succeeds. > > Please let me know if you need any more information. > Once I reboot I'll try to submit the exact steps again. > > Thanks, > rrs
If you have an ACPI system, you should install acpid. Both hal and powersaved need access to the ACPI events but only one process can open /proc/acpi/event. The solution is to use acpid and let powersaved and hald listen on the acpid socket instead of /proc/acpi/event directly. Please let me know, if this solves your problem. I will then close this bug. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature