You are not logged in.
Pages: 1
Hi
ACPI has been working fine on my Acer Travelmate for a long time - but suddenly it broke. I can't start acpid deamon - I get the following error:
acpid: can't open /proc/acpi/event: Device or resource busy
Does anybody know how to fix it?
Offline
acpi won't work if it loads after dbus and hal. In your rc.conf file just move acpid before dbus & hal then it should work.
Offline
No go. I get
# cat /proc/acpi/event
cat: /proc/acpi/event: Device or resource busy
And my daemon list is:
DAEMONS=(syslog-ng acpid hotplug !pcmcia iptables network netfs crond alsa)
Why I did this. Well, I am experimenting to see whether I can somehow make acpid detect if the lid is closed OR opened (ie, if I can access a file in /proc/acpi/...)
Note that the lid button closed IS detected with
# acpi_listen
button/lid LIDD 00000080 00000001
Also, my handling script gets to run, but it can't find the lid state (so I can change the script OR make the damn directory
/var/log/acpid says
[Tue Sep 13 02:31:01 2005] executing action "/etc/acpi/lidbtn.sh"
[Tue Sep 13 02:31:01 2005] BEGIN HANDLER MESSAGES
action=/etc/acpi/lidbtn.sh
/etc/acpi/lidbtn.sh: line 42: /proc/acpi/button/lid/LID/state: No such file or directory
[Tue Sep 13 02:31:01 2005] END HANDLER MESSAGES
[Tue Sep 13 02:31:01 2005] action exited with status 0
[Tue Sep 13 02:31:01 2005] completed event "button/lid LIDD 00000080 00000001"
How to detect the lid state?
How to make /proc/acpi/event "work"
EDIT: I also am not able to detect the temp or the fan (again, no files for them)...
PS Once we get this im putting it on the wiki, there is a lot of confusion (methinks)
Offline
This was an easy one. Since it is used, I thought that it might be only used exclusively
Hence:
# /etc/rc.d/acpid stop
:: Stopping acpid [DONE]
# cat /proc/acpi/event
<close the lid>
button/lid LIDD 00000080 00000001
<open the lid>
#
Offline
Hello, I have the same problem, but I think (not confirmed yet) that the solution of putting acpid before hald might work... (i can't restart this notebook right now...)
Just posting this because i used "lsof" to find what process uses the /proc/acpi/event file... so it would help you to find why you can't access it even when acpid starts before hald....
21:32:58°nanex@root:/home/noice$ /etc/rc.d/acpid restart
:: Stopping acpid [FAIL]
:: Starting acpid [BUSY]
acpid: can't open /proc/acpi/event: Device or resource busy
[FAIL]
21:33:00°nanex@root:/home/noice$ /etc/rc.d/acpid stop
:: Stopping acpid [FAIL]
21:37:27°nanex@root:/home/noice$ cat /proc/acpi/event
cat: /proc/acpi/event: Device or resource busy
21:37:34°nanex@root:/home/noice$ lsof /proc/acpi/event
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/noice/.gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
hald-addo 4193 hal 4r REG 0,3 0 4026531932 /proc/acpi/event
21:32:58°nanex@root:/home/noice$ /etc/rc.d/acpid restart
:: Stopping acpid [FAIL]
:: Starting acpid [BUSY] acpid: can't open /proc/acpi/event: Device or resource busy
[FAIL]
21:33:00°nanex@root:/home/noice$ /etc/rc.d/acpid stop
:: Stopping acpid [FAIL]
21:37:27°nanex@root:/home/noice$ cat /proc/acpi/event
cat: /proc/acpi/event: Device or resource busy
21:37:34°nanex@root:/home/noice$ lsof /proc/acpi/event
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/noice/.gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
hald-addo 4193 hal 4r REG 0,3 0 4026531932 /proc/acpi/event
Offline
Hi, I just wanted to add for anyone that reads this thread that the solution (for me at least) was that you just need to restart hal after installing acpid. After you reboot, hal will automatically start acpid.
Offline
Sorry for the bump but as NoICE said, "the solution of putting acpid before hald might work" works well here; hope this helps somebody else.
Best!
Enjoying i3wm w/ lifebar + j4-dmenu-desktop + tab_windows / fish shell / Emacs / tmux / Konsole / KDE apps
Arch + Linux-libre kernel: ParabolaGNULinux.org
Offline
Pages: 1