Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#7806 closed defect (wontfix)

Ctrl+Shift+key are working as Ctrl+key in TV playback

Reported by: vodicka.petr@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.22-fixes
Severity: medium Keywords: ctrl+shift mythcontrols
Cc: Ticket locked: no

Description

If I assign key Ctrl+Shift+P (this key combination is pressed by my remote control if I press Play key) for Play in Mythcontrols, it is not working in TV playback. I am able to successfully assign it, but when I press this combination anywhere else then Mythcontrols, it is recognized as Ctrl+P. I tried that with my keyboard to be sure, that problem is not in my remote control. I also tried another Ctrl+Shift+anykey combinations and shift key is forgotten somewhere everytime.

And because my remote control has Ctrl+P assigned to pause and Ctrl+Shift+P to play, both keys are working as pause in TV playback.

Change History (2)

comment:1 Changed 10 years ago by danielk

Resolution: wontfix
Status: newclosed

This is intentional, lots of LIRC configs exist where case is ignored, if we did not do so as well it would cause a lot of pain for our users.

You can run your remote through LIRC to remap the Play binding, try the mythtv-users mailing list or the lirc mailing list for help on who to do this.

comment:2 Changed 10 years ago by vodicka.petr@…

Thank you for your response.

So if somebody is facing this issue too, this is how to make this work:

1) Find which /dev/input/eventX belongs to your remote (or keyboard if you want to remap that) with cat /proc/bus/input/devices (it's /dev/input/event8 in my case).

2) Use default keymap for keyboards from lirc package. It's /usr/share/lirc/remotes/devinput/lircd.conf.devinput on OpenSUSE if you have Lirc package installed. Copy to /etc/lircd.conf (or /etc/lirc.d/lircd.conf or something like that - it depends on your distribution). Or you can create your own lircd.conf with "irrecord --driver=devinput --device=/dev/input/event8 /etc/lircd.conf".

3) Setup lircd to use devinput driver and proper device. It's in /etc/sysconfig/lirc on OpenSUSE. Set LIRCD_DRIVER="devinput" and LIRCD_DEVICE="/dev/input/event8".

4) Create key mappings with .lircrc. Example:

begin
  prog = irxevent
  button = KEY_UP
  config = Key Down CurrentWindow
end

begin
  prog = irxevent
  button = KEY_LEFTCTRL
  button = KEY_LEFTSHIFT
  button = KEY_P
  config = Key ctrl-P CurrentWindow
end

5) Make sure, that lircd and irxevent is started after system start.

Note: See TracTickets for help on using tickets.