mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
spark: do not start IRMP thread if lircd is running
This will provide a smooth switchover to using LIRC instead of IRMP: if
the lircd is running (pidfile present), don't start the input thread.
Neutrino will use the LIRC-created uinput device instead.
Origin commit data
------------------
Branch: master
Commit: e10c60b02c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-03-17 (Sat, 17 Mar 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -27,7 +27,11 @@ void init_td_api()
|
|||||||
{
|
{
|
||||||
cCpuFreqManager f;
|
cCpuFreqManager f;
|
||||||
f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */
|
f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */
|
||||||
start_input_thread();
|
/* hack: if lircd pidfile is present, don't start input thread */
|
||||||
|
if (access("/var/run/lirc/lircd.pid", R_OK))
|
||||||
|
start_input_thread();
|
||||||
|
else
|
||||||
|
lt_info("%s: lircd pidfile present, not starting input thread\n", __func__);
|
||||||
}
|
}
|
||||||
initialized = true;
|
initialized = true;
|
||||||
lt_info("%s end\n", __FUNCTION__);
|
lt_info("%s end\n", __FUNCTION__);
|
||||||
|
Reference in New Issue
Block a user