[oe] Requiring root access for windowmanagers?

Carsten Haitzler (The Rasterman) raster at rasterman.com
Fri Nov 28 14:04:22 UTC 2008


On Fri, 28 Nov 2008 13:20:12 +0100 Koen Kooi <k.kooi at student.utwente.nl>
babbled:

> Hi,
> 
> What's the consensus on requiring root access for running an OE built 
> windowmanager?
> 
> Case in point: e-wm does 'renice -10', which only root is allow to do.
> 
> Proposal: remove the 'renice' so regular users can start a window 
> manager as well.

i did this specifically for performance. basically it makes things MUCH
smoother. the problem is thngs like frameworkd (python blob) in the background
eats a mountainload of cpu slowing startup down, making the system pretty bad
responsiveness-wise etc. i thought about it a bit and went "hey. on devices
the USER is king. the USER should always be obeyed ASAP and as smoothly as
possible". if some system daemon wants to eat cpu - it can take a back seat to
the user being obeyed. so upping e's priority helped immensely. suddenly
animations didn't stutter when launching apps or when background daemons decided
to chug along and eat lots of cpu etc.

as such you either lower the priority of all daemon procs - or raise (reduce
niceness) of the procs you want obeying the user asap.

so unless you have a better way to do this... (a normal user can still run -
the command just fails but the script marches on and you dont get a "less
nice" (higher priority) wm). so as such it wont stop a normal user. they just
lose smoothness.

of course i'm open to suggestions (note i do think you could have a much more
complex system but what i did was really simple and got the task done with no
breakage) :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com





More information about the Openembedded-devel mailing list