LinHES Forums
http://forums.linhes.org/

Remote key Prompt?
http://forums.linhes.org/viewtopic.php?f=21&t=21960
Page 1 of 1

Author:  opel70 [ Mon Jan 03, 2011 9:25 pm ]
Post subject:  Remote key Prompt?

Hello,

Finally getting everything dialed in. My final stumbling block is configuring the power button on the remote. In my R5.5 setup, I had the power button call a script via irexec that would either:
Power on the receiver and the projector, if in the off state, or
Prompt using gxmessage to verify that you wanted to turn everything off, if you pressed OK on the remote (sent via irxevent to CurrentWindow), everything would turn off.
To determine the state, the script would create or delete a file.

Now, it took me a while to figure out that only xmessage is available on R6 (not quite as configurable as gxmessage, but gets the job done). Plus the OK remote press is only getting sent to mythtv, not the CurrentWindow. I've verified that the only lines in my lircrc related to the OK button on the remote are:
Code:
begin
        prog = irxevent
        button = OK
        config = Key return CurrentWindow
        flags = quit
end

which is what used to work in R5.5. When Mythfrontend was the current window, it would get the Return, but then after pressing "Power" and gxmessage came up, the Return key press would go to that. Or even if you were in an xterm window, that would get the Return key press. Now, no matter what window is on top, mythtv gets the return.

I have a separate /etc/runit/lirc.sh that I use to start lircd, irexec, and irxevent, which is:
Code:
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lircd.ati.pid --listen=8765 \
     --logfile=/var/log/lircd.ati.log /home/mythtv/.mythtv/lirc/lircd.conf.ati
/usr/sbin/lircd --driver=usb_uirt_raw --device=/dev/ttyUSB0 --pidfile=/var/run/lircd.usbuirt.pid --connect=localhost:8765 \
     --logfile=/var/log/lircd.usbuirt.log /home/mythtv/.mythtv/lirc/lircd.conf.usbuirt
/usr/bin/irxevent -d /home/mythtv/.mythtv/lirc/lircrc
/usr/bin/irexec /home/mythtv/.mythtv/lirc/lircrc

Any ideas on how to troubleshoot this?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/