[mythtv-users] Avoiding repeated keystrokes
Brad DerManouelian
myth at dermanouelian.com
Wed Nov 19 16:52:56 UTC 2008
On Nov 19, 2008, at 4:19 AM, António Santos wrote:
> Hi,
>
> I've been getting a problem when using MythTV with either keyboard or
> remote. If I quickly press the "Enter" button twice, MythTV will
> execute the associated command twice sequentially. Let's say, for
> example, that I'm in the Video Gallery and I associated the "OK"
> button on the remote (or the "Enter" key) to play the video. If I
> press the button twice quickly, the video will play two times
> sequentially. If I have an item that launches Firefox, it will be
> launched twice, one instance after the other has closed.
> Is there any way to avoid this?
Add repeat=x in your lirc configuration file where x is a low integer
value. It's different for every remote, but 3 works well for me. It
tells lircs to respond to every x keypress, so if it's set to 3, it
will execute the first time the button is seen, then ignore the 2
after that (within a certain amount of time). You need to define this
for every key you don't want to repeat quickly so you may not want to
define it for things like up/down arrows when you want to scroll
quickly through a list.
For example:
# Play
begin
prog = mythtv
button = Play
config = Return
repeat = 3
end
-Brad
More information about the mythtv-users
mailing list