Since the last upgrade of hal, powersaved has stopped working, complaining that it cannot access /proc/acpi/events, while fuser reveals that this file is used by hald-addon-acpi. powersaved strace: [code] stat("/proc/acpi/event", {st_mode=S_IFREG|0440, st_size=0, ...}) = 0 open("/proc/acpi/event", O_RDONLY|O_NONBLOCK) = -1 EBUSY (Device or resource busy) [/code] [code] gms1 ~ # fuser -v /proc/acpi/event USER PID ACCESS COMMAND /proc/acpi/event: haldaemon 9554 f.... hald-addon-acpi [/code] Reproducible: Always Steps to Reproduce: Expected Results: powersave should get the required information from hal gms1 ~ # equery list sys-apps/hal [ Searching for package 'hal' in 'sys-apps' among: ] * installed packages [I--] [ ] sys-apps/hal-0.5.9-r1 (0) gms1 ~ # equery list powersave [ Searching for package 'powersave' in all categories among: ] * installed packages [I--] [ ] sys-power/powersave-0.14.0 (0) gms1 ~ # emerge --info Portage 2.1.2.7 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.22-rc3 x86_64) ================================================================= System uname: 2.6.22-rc3 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Sat, 16 Jun 2007 17:30:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.32 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.3.5, 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/" LANG="de_AT.UTF-8" LC_ALL="de_AT.UTF-8" LINGUAS="en de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi alsa amd64 apache2 audiofile berkdb bitmap-fonts bluetooth bzlib2 cairo cdparanoia cdr cli cracklib crypt cups curl curlwrappers dbus dga djvu dri dv dvb dvd dvdr dvdread eds encode evo fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif gpm gstreamer gtk hal iconv ieee1394 isdnlog jack jpeg kde libg++ lm_sensors mad mbrola midi mikmod mmap mmx mp3 mpeg mplayer mudflap musicbrainz ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 qt4support quicktime readline reflection samba sdl session sndfile spell spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis xcomposite xine xinerama xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This is NOT a Gentoo Bugzilla product bug; read the descriptions please.
The init script already has a thing to fix this: start-stop-daemon --start --quiet --exec /usr/sbin/powersaved -- \ -d \ $([ -S /var/run/acpid.socket ] && echo "-f /var/run/acpid.socket") maybe you do not have an up to date init script or this somehow does not work for you? Please test and give me more info.
thanks for pointing me in the right direction .. my init script is up to date, but I haven't had /var/run/acpid.socket on my system I therefore installed the missing acpid package and everything works fine now! so, in my understanding, the powersave daemon depends on a running hald daemon, but on the other hand, cannot react on acpi events as long as hald (hald-addon-acpi) is running and unless /var/run/acpid.socket isn't proviced by acpid maybe powersave should depend on acpid too ?