Hello all,
Please help me with remote control configuration since I'm breaking my head on a wall for more than a week already. RC is the only thing at the moment that stops me using the VDR as my main TV source.
I've bought a nifty (and cheap) remote and a nice USB receiver. Looks like a clone of MCE remote. It has a small joystick to control the mouse. The USB receiver pass keyboard and mouse events to the system, so I can use it instead of my keyboard without any LIRC configuration. BUT, I do want to use LIRC since I want to bound one of the buttons for other tasks (such as switching to XBMC or running vdr-sxfe to pass sound to my sound system instead of the TV).
irw works ok. I've set /etc/lircrc to pass the commands to vdr-sxfe and ircat shows them successfuly. I've added some commands such as LIRC.Volume+ and LIRC.Volume- manually to remotes.conf, but it doesn't really help.
I can run vdr-sxfe with --lirc and see that it receives the codes direcly without my lircrc configuration, but it will miss many features since some of the RC buttins send sequnce of keys, which can be catched using lircrc configuration. Without specifying --lirc, vdr-sxfe seems to receive the keyboard commands instead the commands from LIRC.
Can anyone help me please?
People who have the original MCE remote, does your IR receiver also pass keyboard commands to the system? I saw that as soon as there is a connection to lircd (such as with irw or ircat) the keyboard events are not passed the system any more and that's good, but vdr-sxfe doesn't connect unless I'll use the --lirc switch.
I'm stuck with that.
Any help will be appreciated. Thanks.
Hi,
I'm not quite sure if I understood your problem right. So you get the right codes with irw and have put them on remote.conf. remotes.conf as you wrote is not right place. Do you start vdr with --lirc option? If you use --lirc for vdr-sxfe you should give --lirc to vdr (at least I don't).
cheers, Kimmo
On 17 Jan 2009, at 17:32, Alex Betis wrote:
Hello all,
Please help me with remote control configuration since I'm breaking my head on a wall for more than a week already. RC is the only thing at the moment that stops me using the VDR as my main TV source.
I've bought a nifty (and cheap) remote and a nice USB receiver. Looks like a clone of MCE remote. It has a small joystick to control the mouse. The USB receiver pass keyboard and mouse events to the system, so I can use it instead of my keyboard without any LIRC configuration. BUT, I do want to use LIRC since I want to bound one of the buttons for other tasks (such as switching to XBMC or running vdr-sxfe to pass sound to my sound system instead of the TV).
irw works ok. I've set /etc/lircrc to pass the commands to vdr-sxfe and ircat shows them successfuly. I've added some commands such as LIRC.Volume+ and LIRC.Volume- manually to remotes.conf, but it doesn't really help.
I can run vdr-sxfe with --lirc and see that it receives the codes direcly without my lircrc configuration, but it will miss many features since some of the RC buttins send sequnce of keys, which can be catched using lircrc configuration. Without specifying --lirc, vdr-sxfe seems to receive the keyboard commands instead the commands from LIRC.
Can anyone help me please?
People who have the original MCE remote, does your IR receiver also pass keyboard commands to the system? I saw that as soon as there is a connection to lircd (such as with irw or ircat) the keyboard events are not passed the system any more and that's good, but vdr-sxfe doesn't connect unless I'll use the -- lirc switch.
I'm stuck with that.
Any help will be appreciated. Thanks.
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Do you start vdr with --lirc option? If you use --lirc for vdr-sxfe you should give --lirc to vdr (at least I don't).
No, that will not work. If you give both vdr and vdr-sxfe the option --lirc you will get every action twice. I use the option --lirc with vdr-sxfe and the option --lirc=/dev/null with vdr, so that I can use lirc with xbmc after I have stopped vdr-sxfe without stopping vdr.
Gerald
On Sat, Jan 17, 2009 at 10:28 PM, Gerald Dachs vdr@dachsweb.de wrote:
Do you start vdr with --lirc option? If you use --lirc for vdr-sxfe you should give --lirc to vdr (at least I don't).
No, that will not work. If you give both vdr and vdr-sxfe the option --lirc you will get every action twice. I use the option --lirc with vdr-sxfe and the option --lirc=/dev/null with vdr, so that I can use lirc with xbmc after I have stopped vdr-sxfe without stopping vdr.
That's about that I've tried to do.
How do you stop the vdr-sxfe? Assign a RC button to ESC? How about the repetition setting in vdr-sxfe if you're not using the lircrc?
Thanks.
Gerald
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Am Sat, 17 Jan 2009 22:37:47 +0200 schrieb Alex Betis alex.betis@gmail.com:
On Sat, Jan 17, 2009 at 10:28 PM, Gerald Dachs vdr@dachsweb.de wrote:
Do you start vdr with --lirc option? If you use --lirc for vdr-sxfe you should give --lirc to vdr (at least I don't).
No, that will not work. If you give both vdr and vdr-sxfe the option --lirc you will get every action twice. I use the option --lirc with vdr-sxfe and the option --lirc=/dev/null with vdr, so that I can use lirc with xbmc after I have stopped vdr-sxfe without stopping vdr.
That's about that I've tried to do.
How do you stop the vdr-sxfe? Assign a RC button to ESC?
No, I kill it from a script
How about the repetition setting in vdr-sxfe
I don't know what this is
if you're not using the lircrc?
I use lircrc, but only for starting the script that kills vdr-sxfe and starts xbmc and vice versa.
Gerald
On Sat, Jan 17, 2009 at 11:41 PM, Gerald Dachs vdr@dachsweb.de wrote:
Am Sat, 17 Jan 2009 22:37:47 +0200 schrieb Alex Betis alex.betis@gmail.com:
On Sat, Jan 17, 2009 at 10:28 PM, Gerald Dachs vdr@dachsweb.de wrote:
Do you start vdr with --lirc option? If you use --lirc for vdr-sxfe you should give --lirc to vdr (at least I don't).
No, that will not work. If you give both vdr and vdr-sxfe the option --lirc you will get every action twice. I use the option --lirc with vdr-sxfe and the option --lirc=/dev/null with vdr, so that I can use lirc with xbmc after I have stopped vdr-sxfe without stopping vdr.
That's about that I've tried to do.
How do you stop the vdr-sxfe? Assign a RC button to ESC?
No, I kill it from a script
Ok, also an option.
How about the repetition setting in vdr-sxfe
I don't know what this is
Doesn't your RC produce multiple pushes when you don't release the button in short time? When you don't want that to happen, you can set "repeat = 0" in lircrc. When you do want that to happen, such as for volume or up/down buttons, you just set the repeat option to the rate you want to have.
How do you solve that issue within vdr-sxfe? Could you also post your remotes.conf as an example? Or at least few buttons from it.
Thanks.
if you're not using the lircrc?
I use lircrc, but only for starting the script that kills vdr-sxfe and starts xbmc and vice versa.
Gerald
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Am Sun, 18 Jan 2009 00:05:05 +0200 schrieb Alex Betis alex.betis@gmail.com:
Doesn't your RC produce multiple pushes when you don't release the button in short time?
No
How do you solve that issue within vdr-sxfe?
I didn't notice it
Could you also post your remotes.conf as an example? Or at least few buttons from it.
I don't have a remotes.conf. I own an OriginAE S16T case with a IR211 module from irtrans. With this module I don't use the lircd but the lirc compatible irserver. The configuration of it is not lircd compatible, but the interfaces are, so I can use irexec without a problem.
Gerald
You're right. It was my typo as I was suppose to write "If you use -- lirc for vdr-sxfe you should NOT give --lirc to vdr (at least I don't).".
Sorry.
On 17 Jan 2009, at 22:28, Gerald Dachs wrote:
Do you start vdr with --lirc option? If you use --lirc for vdr-sxfe you should give --lirc to vdr (at least I don't).
No, that will not work. If you give both vdr and vdr-sxfe the option --lirc you will get every action twice. I use the option --lirc with vdr-sxfe and the option --lirc=/dev/null with vdr, so that I can use lirc with xbmc after I have stopped vdr-sxfe without stopping vdr.
Gerald
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
On Sat, Jan 17, 2009 at 6:50 PM, Kimmo Taskinen < kimmo.taskinen@dnainternet.net> wrote:
Hi,
I'm not quite sure if I understood your problem right. So you get the right codes with irw and have put them on remote.conf. remotes.conf as you wrote is not right place. Do you start vdr with --lirc option? If you use --lirc for vdr-sxfe you should give --lirc to vdr (at least I don't).
Will try to clarify: I run VDR with --lirc=/dev/null When I run vdr-sxfe with --lirc and with --verbose, I can see that it receives events the same way as irw, but it also receives keyboard events that are passed to the system by the driver. This way I'm loosing all the lircrc configuration such as repetition rate. When I run vdr-sxfe without --lirc, I can't see that it receives any event beside the keybord events from the driver. I've added mapping of buttons to lircrc as follows: begin prog = vdr-sxfe remote = linux-input-layer button = KEY_F10 repeat = 0 config = LIRC.Volume+ end
but looks like vdr-sxfe still doesn't receive those events.
cheers, Kimmo
On 17 Jan 2009, at 17:32, Alex Betis wrote:
Hello all,
Please help me with remote control configuration since I'm breaking my head on a wall for more than a week already. RC is the only thing at the moment that stops me using the VDR as my main TV source.
I've bought a nifty (and cheap) remote and a nice USB receiver. Looks like a clone of MCE remote. It has a small joystick to control the mouse. The USB receiver pass keyboard and mouse events to the system, so I can use it instead of my keyboard without any LIRC configuration. BUT, I do want to use LIRC since I want to bound one of the buttons for other tasks (such as switching to XBMC or running vdr-sxfe to pass sound to my sound system instead of the TV).
irw works ok. I've set /etc/lircrc to pass the commands to vdr-sxfe and ircat shows them successfuly. I've added some commands such as LIRC.Volume+ and LIRC.Volume- manually to remotes.conf, but it doesn't really help.
I can run vdr-sxfe with --lirc and see that it receives the codes direcly without my lircrc configuration, but it will miss many features since some of the RC buttins send sequnce of keys, which can be catched using lircrc configuration. Without specifying --lirc, vdr-sxfe seems to receive the keyboard commands instead the commands from LIRC.
Can anyone help me please?
People who have the original MCE remote, does your IR receiver also pass keyboard commands to the system? I saw that as soon as there is a connection to lircd (such as with irw or ircat) the keyboard events are not passed the system any more and that's good, but vdr-sxfe doesn't connect unless I'll use the -- lirc switch.
I'm stuck with that.
Any help will be appreciated. Thanks.
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
On Sat, 17 Jan 2009 22:32:55 +0200 Alex Betis alex.betis@gmail.com wrote:
On Sat, Jan 17, 2009 at 6:50 PM, Kimmo Taskinen < kimmo.taskinen@dnainternet.net> wrote:
I'm not quite sure if I understood your problem right. So you get the right codes with irw and have put them on remote.conf. remotes.conf as you wrote is not right place. Do you start vdr with --lirc option? If you use --lirc for vdr-sxfe you should give --lirc to vdr (at least I don't).
Will try to clarify: I run VDR with --lirc=/dev/null When I run vdr-sxfe with --lirc and with --verbose, I can see that it receives events the same way as irw, but it also receives keyboard events that are passed to the system by the driver. This way I'm loosing all the lircrc configuration such as repetition rate.
So if you can prevent the keyboard events from occurring that should help? I had a similar problem with my remote and boxstar, I was getting both keyboard and input device events for certain keys, and I didn't want to have to disable keyboard control. I managed to get rid of the unwanted keyboard events in X by using this in xorg.conf:
Section "InputDevice" Identifier "Generic Keyboard" Driver "evdev" Option "Device" "/dev/input/event0" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "gb" Option "CoreKeyboard" EndSection
which forced it to only get keyboard events from my keyboard which is device 0 (YMMV, check /proc/bus/input/devices) instead of every device Linux thinks is a keyboard. I couldn't prevent the remote's key presses appearing on the console. IMO this is a kernel bug, this sort of remote control can not be considered to be a keyboard.
On Saturday 17 January 2009 22:32:55 Alex Betis wrote:
Will try to clarify: I run VDR with --lirc=/dev/null When I run vdr-sxfe with --lirc and with --verbose, I can see that it receives events the same way as irw, but it also receives keyboard events that are passed to the system by the driver. This way I'm loosing all the lircrc configuration such as repetition rate.
Doesn't the --nokbd option work or did I just completely misunderstand the whole issue?
If I understood the issue correctly, Alex (the OP) has problems because the USB receiver gives BOTH kb events and makes a lirc device, and the KB events are not wanted and cause problems. I'd look in /dev/input to see which event device is the one for the KB side of the receiver and disable it; perhaps via Xorg.conf (I'd assume this is somehow possible). That would be a general solution for all software, including those that don't have an option for disabling keyboaard.But, as already stated by Jukka, vdr-sxfe already has one... but then maybe we didnt understand the issue correctly =)
On Sun, Jan 18, 2009 at 3:44 PM, Ville Aakko ville.aakko@gmail.com wrote:
If I understood the issue correctly, Alex (the OP) has problems because the USB receiver gives BOTH kb events and makes a lirc device, and the KB events are not wanted and cause problems. I'd look in /dev/input to see which event device is the one for the KB side of the receiver and disable it; perhaps via Xorg.conf (I'd assume this is somehow possible). That would be a general solution for all software, including those that don't have an option for disabling keyboaard.But, as already stated by Jukka, vdr-sxfe already has one... but then maybe we didnt understand the issue correctly =)
Thanks all for the replies. I'll try both --nokbd and spcifying which input should be used for keyboard in xorg.conf as soon as I'll get home. To sum the replies, looks like I have to use --lirc option for vdr-sxfe and --lirc=/dev/null with vdr.
2 more issue I still have to resolve: - repetition problem for the keys, pressing "1" might produce "111". Will probably have to play with some options in lircd.conf. - Key sequences configuration, play button is mapped to something like "CTRL, SHIFT, P", how do I configure vdr-sxfe to understand the whole sequence as a single button?
-- -- Ville Aakko - ville.aakko@gmail.com
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
On Sun, Jan 18, 2009 at 3:56 PM, Alex Betis alex.betis@gmail.com wrote:
On Sun, Jan 18, 2009 at 3:44 PM, Ville Aakko ville.aakko@gmail.comwrote:
If I understood the issue correctly, Alex (the OP) has problems because the USB receiver gives BOTH kb events and makes a lirc device, and the KB events are not wanted and cause problems. I'd look in /dev/input to see which event device is the one for the KB side of the receiver and disable it; perhaps via Xorg.conf (I'd assume this is somehow possible). That would be a general solution for all software, including those that don't have an option for disabling keyboaard.But, as already stated by Jukka, vdr-sxfe already has one... but then maybe we didnt understand the issue correctly =)
Thanks all for the replies. I'll try both --nokbd and spcifying which input should be used for keyboard in xorg.conf as soon as I'll get home. To sum the replies, looks like I have to use --lirc option for vdr-sxfe and --lirc=/dev/null with vdr.
2 more issue I still have to resolve:
- repetition problem for the keys, pressing "1" might produce "111". Will
probably have to play with some options in lircd.conf.
- Key sequences configuration, play button is mapped to something like
"CTRL, SHIFT, P", how do I configure vdr-sxfe to understand the whole sequence as a single button?
Ok, found my mistake. remote.conf has to include the same button names as they appear in lircd.conf and vdr has to be restarted when remote.conf is changed, I thought restarting vdr-sxfe should be enough since its the application that connects to lirc after all.
By the way, --nokbd to vdr-sxfe doesn't really ignore keyboard input for me. Changing xorg.conf doesn't help as well, input from remote still act as a keyboard input. But that stops as soon as there is a connection to licrd (vdr-sxfe connects).
The only thing left now is dealing with keyboard sequences since many major buttons on my RC sends sequences for every press (color buttons, stop, play, FW, RW, menu...).
--
Ville Aakko - ville.aakko@gmail.com
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr