You are not logged in.

#1 2005-07-18 08:34:25

molinero
Member
From: Copenhagen/Denmark
Registered: 2004-09-19
Posts: 110

/proc/acpi/event: Device or resource busy

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

#2 2005-07-18 08:46:41

Beavis
Member
From: UK
Registered: 2005-01-01
Posts: 71

Re: /proc/acpi/event: Device or resource busy

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

#3 2005-09-13 06:39:23

acetylcholine
Member
From: NY, USA
Registered: 2004-11-07
Posts: 46
Website

Re: /proc/acpi/event: Device or resource busy

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"
smile

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

#4 2005-09-13 17:59:35

acetylcholine
Member
From: NY, USA
Registered: 2004-11-07
Posts: 46
Website

Re: /proc/acpi/event: Device or resource busy

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

#5 2010-03-31 19:38:28

NoICE
Member
Registered: 2010-03-31
Posts: 1

Re: /proc/acpi/event: Device or resource busy

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

#6 2010-08-01 08:55:08

bostonvaulter
Member
Registered: 2008-07-17
Posts: 36

Re: /proc/acpi/event: Device or resource busy

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

#7 2011-01-09 02:39:27

msx
Member
From: solar.system/earth/ar/bue/mdp
Registered: 2010-08-08
Posts: 184
Website

Re: /proc/acpi/event: Device or resource busy

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

Board footer

Powered by FluxBB