Keybindings cyberlink remote (keyboard)

Help with using MiniMyth (except Booting)

Moderator: Pablo

Keybindings cyberlink remote (keyboard)

Postby giarc » Sun Dec 07, 2008 7:54 pm

Hi, following mce remote breaking im temporary using an old cyberlink remote, one of these:
http://www.ebuyer.com/product/129977

Looks like few people have had fun getting these to work. Currently I have lircd disabled as the remote is recognised as a usb keyboard and mouse and few of the buttons work such as up down left right and the ok button.

At present the other buttons dont appear to provide any control over myth.

On my FE/BE box im able to map (with mythcontrols) the info button, back button and few others which provide enough control.

Whats the best way to map these few remaining buttons in minimyth. I can grab keycodes with xev and possibly use xmodmap.

the device shows as

Code: Select all
 # lsusb
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 002: ID 0766:0204 Jess-Link Products Co., Ltd
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 001: ID 0000:0000 
 


and the 2 topspeed devices

Code: Select all
 # more /proc/bus/input/devices
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=3 
B: KEY=100000 0 0 0
         
I: Bus=0003 Vendor=0766 Product=0204 Version=0100
N: Name="TopSeed Tech Corp. USB IR Combo Device "
P: Phys=usb-0000:00:10.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.0/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=120003
B: KEY=10000 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: LED=1f
         
I: Bus=0003 Vendor=0766 Product=0204 Version=0100
N: Name="TopSeed Tech Corp. USB IR Combo Device "
P: Phys=usb-0000:00:10.0-1/input1
S: Sysfs=/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.1/input/input4
U: Uniq=
H: Handlers=kbd mouse0 event4
B: EV=100007
B: KEY=42c03b2 20d0400 0 0 70000 4 18000 21f8 d001d006 9e0040 0 0 0
B: REL=103


the other option i have seen is this program http://jtspainwithlinux.blogspot.com/20 ... ntrol.html

thanks for your help
giarc
Member
 
Posts: 14
Joined: Tue Jul 29, 2008 1:18 pm

Postby Pablo » Mon Dec 08, 2008 1:16 am

As this remote control appears as one or more keyboards, you might follow the howto for using a remote control that appears as a keyboard.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.
Pablo
Site Admin
 
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla

Postby giarc » Mon Dec 08, 2008 7:05 pm

Thankyou works perfectly now. I can only use lirc for one event, in this case event4 described as mouse. However X or kernel interfaces with the other keys up, down, left right 0-9 so they works fine also. I only need to amend lircrc slightly.
Thanks again
giarc
Member
 
Posts: 14
Joined: Tue Jul 29, 2008 1:18 pm

Postby Pablo » Mon Dec 08, 2008 8:40 pm

Could post or pm me your lircd.conf and your lircrc files so that I can add them to the MiniMyth image and enable auto-detection of the device? Once auto-detection is working, both event devices will be handled by LIRC.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.
Pablo
Site Admin
 
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla

Postby Pablo » Tue Dec 09, 2008 6:02 am

I have added auto-detection for the remote to the latest test build (0.21.0-62b4).

Since I do not have the remote, the lircd.conf and lircrc files that I have included are a guess. Therefore, if you could post or pm me your lircd.conf and lircrc files, I would appreciate it.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.
Pablo
Site Admin
 
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla

Postby giarc » Tue Dec 09, 2008 2:17 pm

sure no probs

my lircd.conf
Code: Select all
#############################################################################################
# lircd.conf file for Cyberlink remote manufactured by Topspeed, Jess-Link Products Co., Ltd
#                                                                           
#############################################################################################
                                               
begin remote                                   
                                               
  name Cyberink                       
  bits 32                                     
                                               
      begin codes                             
                                               
                                               
        KEY_HOME                 0x10066        # Home Button
        KEY_SLEEP                0x1008e        # Power Button
        KEY_DVD                  0x10185        # DVD/VCD
        KEY_MP3                  0x10187        # Music
        KEY_MEDIA                0x100e2        # Pictures
        KEY_VIDEO                0x10189        # Videos
        KEY_TV                   0x10179        # Live TV
        KEY_RECORD               0x100a7        # Record
        KEY_RADIO                0x10181        # Radio
        KEY_AUDIO                0x10188        # SAP
        KEY_TEXT                 0x10184        # Teletext/CC
        KEY_LAST                 0x10195        # Last CH
        KEY_SUBTITLE             0x10172        # Subtitle
        KEY_LANGUAGE             0x10170        # Language
        KEY_ANGLE                0x10173        # Angle
        KEY_BACK                 0x1009e        # BACK
        KEY_PROPS                0x10082        # Info/EPG
        KEY_SHUFFLE              0x1019a        # DVD Menu       
        KEY_VOLUMEUP             0x10073        # Vol +         
        KEY_VOLUMEDOWN           0x10072        # Vol -         
        KEY_MUTE                 0x10071        # Mute           
        KEY_CHANNELUP            0x10192        # CH/PG up       
        KEY_CHANNELDOWN          0x10193        # CH/PG down     
        KEY_PLAY                 0x100cf        # Play           
        KEY_REWIND               0x100a8        # Rev           
        KEY_PAUSE                0x10077        # Pause         
        KEY_FASTFORWARD          0x100d0        # Fwd           
        KEY_PREVIOUSSONG         0x100a5        # Prev           
        KEY_STOPCD               0x100a6        # Stop           
        KEY_NEXTSONG             0x100a3        # Next           
                                                                 
                                                                 
      end codes                                                 
                                                                 
end remote                                               


The only amendments I have made to lircrc are

Code: Select all
begin
    prog = mythtv
    button = KEY_TELETEXT ( is now KEY_TEXT)
    config = T
end

and

begin                                                                           
    prog = mythtv                                                               
    button = KEY_MENU (is now KEY_SHUFFLE, my DVD menu button)
    config = M                                                                 
end     


Ive changed the top 4 buttons with what could be jumpoints to control digital interactive (teletext) here in uk as they are also red, green, yellow and blue but i guess that personal preference.

Basic functions of mplayer and xine work fine with default lircrc, pause, rewind etc

hope this helps, let me know if you want any further info.

thanks
giarc
Member
 
Posts: 14
Joined: Tue Jul 29, 2008 1:18 pm

Postby giarc » Tue Dec 09, 2008 3:20 pm

oh and in addition, if I tell lirc to use the other event, for the directional controls, I would use

Code: Select all
#############################################################################################
# lircd.conf file for Cyberlink remote manufactured by Topspeed, Jess-Link Products Co., Ltd
# directional buttons                                                                          
#############################################################################################
                                               
begin remote                                   
                                               
  name Cyberink                       
  bits 32                                     
                                               
      begin codes                             
                     

      KEY_UP          0x10067    # up arrow
      KEY_DOWN       0x1006c    # down arrow
      KEY_LEFT       0x10069    # left arrow
      KEY_RIGHT       0x1006a    # right arrow
      KEY_ENTER       0x1001c    # ok butoon
      KEY_DELETE       0x1006f    # clear button
      KEY_ENTER       0x1001c    # enter


      end codes                                                 
                                                                 
end remote                 


thanks
giarc
Member
 
Posts: 14
Joined: Tue Jul 29, 2008 1:18 pm

Postby Pablo » Tue Dec 09, 2008 4:07 pm

I am glad to hear that this remote does not generate MCE keyboard shortcuts.

If you have the time, could you let me know the key names associated with the other event device (the one being handled by Xorg)?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.
Pablo
Site Admin
 
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla

Postby giarc » Tue Dec 09, 2008 6:08 pm

yep the keynames for the other event device (controlled by xorg) are the post above.

Just out of interest how will you be able to get both events controlled by lirc, I couldnt find much information on doing that.
giarc
Member
 
Posts: 14
Joined: Tue Jul 29, 2008 1:18 pm

Postby Pablo » Wed Dec 10, 2008 2:42 am

giarc wrote:yep the keynames for the other event device (controlled by xorg) are the post above.

Thank you. I assume that the number keys map to KEY_1 ... KEY_9 and KEY_0.

I have merged the two lircd.conf files into one. In addition, I changed a few key names so that they work with the existing lircrc files:
Code: Select all
KEY_SHUFFLE -> KEY_MENU
KEY_STOPCD -> KEY_STOP
KEY_NEXTSONG -> KEY_NEXT
KEY_PREVIOUSSONG -> KEY_PREVIOUS

In addition, I added a couple keys to the lircrc files
Code: Select all
KEY_TEXT
KEY_MP3

I have uploaded a new test release with these changes (0.21.0-62b5). Hopefully, this will allow your remote to be detected and configured with no need to set an MM_LIRC_* variables.
Just out of interest how will you be able to get both events controlled by lirc, I couldnt find much information on doing that.

LIRC supports communication between LIRC daemons over IP. One LIRC daemon can receive input over IP from multiple LIRC daemons. Using this, LIRC can support multiple remote controls. When MiniMyth detects more than one remote control, it uses this method to support all the detected remote controls.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.
Pablo
Site Admin
 
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla

Postby giarc » Fri Dec 12, 2008 3:25 pm

Thank you. I assume that the number keys map to KEY_1 ... KEY_9 and KEY_0.


Yes they do, sorry, I missed those off.

LIRC supports communication between LIRC daemons over IP. One LIRC daemon can receive input over IP from multiple LIRC daemons. Using this, LIRC can support multiple remote controls. When MiniMyth detects more than one remote control, it uses this method to support all the detected remote controls.


Thats pretty cool
Thank you for you doing this, I'll have a play with this test release.
giarc
Member
 
Posts: 14
Joined: Tue Jul 29, 2008 1:18 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 2 guests

cron