Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
regular user can not use battery monitor, but root can(SOLd)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
gen03
n00b
n00b


Joined: 18 Nov 2004
Posts: 61

PostPosted: Sat Nov 27, 2004 8:06 pm    Post subject: regular user can not use battery monitor, but root can(SOLd) Reply with quote

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
View user's profile Send private message
nightm4re
Guru
Guru


Joined: 20 Jun 2004
Posts: 519
Location: Providence, RI, USA

PostPosted: Sat Nov 27, 2004 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
gen03
n00b
n00b


Joined: 18 Nov 2004
Posts: 61

PostPosted: Sat Nov 27, 2004 9:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
nightm4re
Guru
Guru


Joined: 20 Jun 2004
Posts: 519
Location: Providence, RI, USA

PostPosted: Sat Nov 27, 2004 9:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
gen03
n00b
n00b


Joined: 18 Nov 2004
Posts: 61

PostPosted: Sat Nov 27, 2004 11:49 pm    Post subject: Reply with quote

anyone here got their battery monitor working as a user?
Back to top
View user's profile Send private message
gen03
n00b
n00b


Joined: 18 Nov 2004
Posts: 61

PostPosted: Tue Nov 30, 2004 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum