Naoi - 2008-04-16

I found an issue in the mythtv script 510-LIRC-Hauppauge-MythTV.py and figured out how to fix it so I thought I'd share it :)

I'm using the Hauppauge 350 remote and the power button wasn't working, instead of turning off the mythtv frontend when it was on and turning it on when it was off the button kept creating new instances of mythtv.  i.e. it was acting as if if thought mythv was off even when it was on.

I found that the value of Gizmod.isProcessRunning(POWER_APPLICATION) was always -1 (not running).  POWER_APPLICATION was set to "mythfrontend".  The system monitor doesn't show "mythfrontend" runnings, it's referred to as "mythfrontend.real" so I changed POWER_APPLICATION to that but it still didn't work.

I typed "ps -A" in the terminal mythtv running to see the process id's and mythtv was listed as:

15475 pts/0    00:00:02 mythfrontend.re

So I set POWER_APPLICATION = "mythfrontend.re" in the script and it worked !

I don't know why the name is truncated (maybe it's an Ubuntu thing?) but if anyone out there has the same issue i hope this helps :D