[vdr] [ANNOUNCE] improved LIRC remote for VDR-1.5.12

Ludwig Nussel ludwig.nussel at suse.de
Thu Jan 10 10:49:25 CET 2008


Nicolas Huillard wrote:
> Reinhard Nissl a écrit :
> > Dominique Matz schrieb:
> > 
> >> sound very good, but vdr as root do not :-(
> >>
> >> do you think it is possible to use this or something else with an non
> >> root user?
> > 
> > Well, only the LIRC_PRIORITYBOOST option requires root privileges
> > to work. If you don't have root privileges, you'll just get an
> > error logged and the LIRC thread runs without any change in
> > priority -- that's all. See man setpriority for details.
> 
> An option would be to lower priority of all threads except this one. I 
> guess only relative priority within VDR is important.
> You can also raise priority in your init scripts (nice=-N), before 
> running VDR. This way every thread will have nice=0 priority, except the 
> LIRC one, which will stay at nice=-N

Since the lirc thread doesn't do anything except waiting for input
most of the time it should be scheduled quickly anyways. Maybe the
useless select timeout destroys that advantage somewhat.
Also if multiple lines in the buffer are a problem what about
changing the code to consume only one line at a time instead of
messing with thread priorities?

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)




More information about the vdr mailing list