PDA

View Full Version : [SOLVED] irxevent on startup?



djstava
May 27th, 2010, 07:46 AM
I install lirc and want to prgram irxevent start automatic when the system start


System->Preferences->Startup Applications

Add an item,but that not works every time,means sometimes cannot work.

djstava
May 31st, 2010, 12:07 PM
When I login system as root,irxevent works well.:P

disabledaccount
June 1st, 2010, 07:37 AM
... but that not works every time,means sometimes cannot work....that's because you dont wait for lirc daemon to start. The simplest way to solve such problems (not only with lirc) is to write small script like that:

#!/bin/bash
while [ -z "$(pidof lircd)" ]; do
sleep 1
done
irxevent ....<your xevents>
exit 0...then invoke it as startup application ;)
...and don't forget to give it execution permission.