Configuring LIRC Button Presses (repeat and delay)
This post covers the LIRC button press configuration options found in an LIRC config file in mythbuntu. The LIRC config files are found in the .lirc directory in your home directory (/home/yourname/.lirc/ or ~/.lirc/ ).
An LIRC control configuration file has several options that are available when a button is pressed to control how that button is interpreted and translated into a key press. Here is a brief explanation of the options.
Here is an example of a key press configuration (taken from /home/yourname/.lirc/mythtv):
begin
remote = mceusb
prog = mythtv
button = Down
config = Down
repeat = 2
delay = 1
end
Ok lets break this down and explain how it works:
begin
remote = mceusb
# this is the id for the remote that this configuration belongs tooprog = mythtv
# this is the name of the executable of the program that this configuration triggers inbutton = Down
# this is the id for the button that when pressed on the remote fires this eventconfig = Down
# this is the action that is fired when the button is pressed
# the config option can either be a X windows key press event
# or a shell command like “xmacro-wrap SaveState”repeat = 3
# use the repeat command for buttons that you want to be able to
# just hold down and they keep repeating the command every ‘n’ cycles.
# In this example the command will be issued every 3 cycles
# which for the mceusb remote is about once every second.
# if you set repeat = 0 the command will be sent only once even if you
# hold the button down.delay = 0
# the delay config option can be used in conjunction with the repeat command to
# to tweak the speed that the button presses are accepted
# a delay of 1 delays the repeat by one cycle set the delay to 0 to disable it.
end
There are some other options available but these are the most common options used with mythtv. for more information google wiki LIRC Configuration.
Hopefully this is the last LIRC post for mythbuntu even though there is more you can do hopefully this will give enough info to be deadly and come up with creative uses for LIRC in mythbuntu!
No Comments
No comments yet.
RSS feed for comments on this post.
Leave a comment
You must be logged in to post a comment.