You are not logged in.

#1 2011-02-15 11:37:56

Keysen
Member
Registered: 2011-02-15
Posts: 5

Problem with uevt, can't run at startup and display a systray icon

Hi,

I'm totally new on archlinux.org, I'm a user of the french board, I use archlinux since long time, recently I've bought an Asus eeepc 1015pe, it's an interresting laptop if you search for battery life.

My problem is :
- On archlinux 64bits, I installed fluxbox, for a lightweight desktop environnement but I have no power manager, I choose uevt, because it was the most lightweight and the most finalized, but when I run uevt with root access, uevt start but don't display any icon in my taskbar.
And with user access, i got an error "Error removing file: Permission denied".
- How launch uevt at startup ?

Thanks a lot for your help.

Offline

#2 2011-02-15 12:11:43

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Problem with uevt, can't run at startup and display a systray icon

rc.conf if it is a daemon or a module and I don't know since google tells me it is a heart disorder (UEVT - Upper Extremity Vein Thrombosis (heart disorder)) big_smile

Another one that comes to mind is /etc/rc.local


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#3 2011-02-15 12:28:27

Keysen
Member
Registered: 2011-02-15
Posts: 5

Re: Problem with uevt, can't run at startup and display a systray icon

Heart disorder nice toad big_smile

This tools is probably not the better ? Should I chose an other one ?
Always not working sad.

Offline

#4 2011-02-15 12:55:45

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: Problem with uevt, can't run at startup and display a systray icon

Could be that graphical applications don't show when you run them as root. But then it should say you something like: can't open display...

You could try to run other graphical applications as root to see if it works or not. If you're not able to run graphical apps as root, this could help:

1. I don't have a laptop and don't use any power manager. But i think it could help to add your user to the power group if it isn't in there now.

gpasswd -a [user] [group]

If 1. doesn't work

2. For uevt you could try to set the suid-bit, which let it run as user with root-privileges. Do following as root:

chmod +s /path/to/uevt

Then in both cases try to run uevt as user

@ toad
Google has it's own linux search site, where you get only linux related results wink
www.google.de/linux

Last edited by wudu (2011-02-15 13:42:28)

Offline

#5 2011-02-15 15:47:57

Keysen
Member
Registered: 2011-02-15
Posts: 5

Re: Problem with uevt, can't run at startup and display a systray icon

My problem seems almost solved, the last error that I get it's :

(process:3615): Gtk-WARNING **: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:

    http://www.gtk.org/setuid.html

Refusing to initialize GTK+.

Do you know something about this ?
I've set the +s to /usr/local/bin/uevt (solve the problem of permission denied), and add my user to the power group, he wasn't in this group hmm.

And a last thing it's, why my root can run graphic apps ? oO.
You've right normally I should get "can't open display...", but it's not the case...

Thanks a lot to all for your help smile. I'm verry happy, also happy to have discover google.<country>/linux, awesome big_smile.

If this could help, have a look :

root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,keysen
mem:x:8:
kmem:x:9:
wheel:x:10:root,keysen
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root,keysen
locate:x:21:
rfkill:x:24:
smmsp:x:25:
http:x:33:
games:x:50:
network:x:90:
video:x:91:keysen
audio:x:92:keysen
optical:x:93:keysen,hal
floppy:x:94:keysen,hal
storage:x:95:keysen,hal
scanner:x:96:keysen
power:x:98:keysen
nobody:x:99:
users:x:100:keysen
dbus:x:81:
keysen:x:1000:
hal:x:82:
gdm:x:120:
mysql:x:89:
rtkit:x:999:
avahi:x:84:

Last edited by Keysen (2011-02-15 15:50:46)

Offline

#6 2011-02-15 15:56:10

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: Problem with uevt, can't run at startup and display a systray icon

Then remove suid-bit, I meant to do that only if it doesn't work wit adding you to power group.
I saw that uevt can do more than only power management, perhaps you should ad your user to storage group, too.

It's because adding your user to the right group can solve that permission problem.

Last edited by wudu (2011-02-15 15:57:51)

Offline

#7 2011-02-15 16:04:37

Keysen
Member
Registered: 2011-02-15
Posts: 5

Re: Problem with uevt, can't run at startup and display a systray icon

Permission denied without the suid-bit, Probably one group is missing... But I don't see which one.

I've set an export DISPLAY="", It's repaired, the root is now not able to run a graphical applications smile.

Other idea ?
Thanks wubu.

Offline

#8 2011-02-15 16:41:36

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: Problem with uevt, can't run at startup and display a systray icon

Log out and in again to activate new group membership.
The command groups shows you all groups you are in at the moment

Offline

#9 2011-02-15 19:38:07

Keysen
Member
Registered: 2011-02-15
Posts: 5

Re: Problem with uevt, can't run at startup and display a systray icon

In adding user keysen in all my groups of /etc/group, with a disconnecting/reconnecting and a reboot time, I can't use uevt, always the permission problem, I can do anything I want like if I will be root but not run uevt...

Offline

Board footer

Powered by FluxBB