| View previous topic :: View next topic |
| Author |
Message |
gen03 n00b


Joined: 18 Nov 2004 Posts: 61
|
Posted: Sat Nov 27, 2004 8:06 pm Post subject: regular user can not use battery monitor, but root can(SOLd) |
|
|
Hi, as a regular user I couldn't add a battery monitor onto the panel, I got the follwoing error:
| Quote: | | Can't access ACPI events in /var/run/acpid.socket! Make sure the ACPI subsystem is working and the acpid daemon is running. |
I didn't enable APM,but only settings on ACPI, also as I mentioned before, opening up a bettery monitor as root is of no problem.
cheers, thanks for help
Last edited by gen03 on Tue Nov 30, 2004 12:58 am; edited 1 time in total |
|
| Back to top |
|
 |
nightm4re Guru


Joined: 20 Jun 2004 Posts: 519 Location: Providence, RI, USA
|
Posted: Sat Nov 27, 2004 8:50 pm Post subject: |
|
|
sounds like a permission problem. do an ls -l on /var/run/.
if your user could use it, it would say -??????r-- (where ? is whatever it says..)
you could chmod it to see if that lets your user read it.
| Code: | | chmod o+r /var/run/acpid.socket |
that makes it world readable, so any user can see it. _________________ Nitrogen - GtkMM based background setter/restorer, please test!
Minuslab | d.minuslab.net |
|
| Back to top |
|
 |
gen03 n00b


Joined: 18 Nov 2004 Posts: 61
|
Posted: Sat Nov 27, 2004 9:27 pm Post subject: |
|
|
hi, nightmare, this is what i get:
| Code: | user@tux bin $ ls -l /var/run/
total 40
srw-rw-rw- 1 root root 0 Nov 26 14:27 acpid.socket
drwxr-xr-x 2 root root 4096 Nov 27 13:26 console
-rw------- 1 root users 5 Nov 27 13:26 console.lock
-rw-r--r-- 1 root root 5 Nov 27 13:25 dhcpcd-eth0.pid
-rw-r--r-- 1 root root 5 Nov 27 13:25 dhcpcd-eth1.pid
-rw-r--r-- 1 root root 5 Nov 27 13:25 gdm.pid
-rw-r--r-- 1 root root 5 Nov 27 13:25 metalog.pid
-rw------- 1 root root 512 Nov 27 13:25 random-seed
drwxr-xr-x 2 root root 4096 Nov 26 14:59 usb
-rw-rw-r-- 1 root utmp 4608 Nov 27 13:26 utmp
user@tux bin $ chmod o+r /var/run/acpid.socket
chmod: changing permissions of `/var/run/acpid.socket': Operation not permitted
|
even after I run " chmod o+r /var/run/acpid.socket"at root, and I still couln't add the battery monitor |
|
| Back to top |
|
 |
nightm4re Guru


Joined: 20 Jun 2004 Posts: 519 Location: Providence, RI, USA
|
Posted: Sat Nov 27, 2004 9:59 pm Post subject: |
|
|
| gen03 wrote: |
| Code: |
user@tux bin $ chmod o+r /var/run/acpid.socket
chmod: changing permissions of `/var/run/acpid.socket': Operation not permitted
|
even after I run " chmod o+r /var/run/acpid.socket"at root, and I still couln't add the battery monitor |
(edited)
hrm, permissions seem okay. not sure. _________________ Nitrogen - GtkMM based background setter/restorer, please test!
Minuslab | d.minuslab.net |
|
| Back to top |
|
 |
gen03 n00b


Joined: 18 Nov 2004 Posts: 61
|
Posted: Sat Nov 27, 2004 11:49 pm Post subject: |
|
|
| anyone here got their battery monitor working as a user? |
|
| Back to top |
|
 |
gen03 n00b


Joined: 18 Nov 2004 Posts: 61
|
Posted: Tue Nov 30, 2004 12:57 am Post subject: |
|
|
happily solved:
battery monitor problem(with gnome) solved by:
run as root:
emerge acpid
rc-update add acpid default
thanks to previous threads, phew... |
|
| Back to top |
|
 |
|