[LINUX] HOW-TO to get CyberLink Remote working in Ubuntu 9.10
#16
Thanks for this guide lozbrown. I have gotten the alternative method to work but not consistently. Sometimes I need to reboot once or twice before all the buttons function, although as far as I can tell the event number stays the same. Anyway, I would prefer to have everything mapped through lirc as with this method so I am trying to get it working.

I am running Ubuntu server 10.04, not 9.10.

I can get two instances of lirc to run but I get no output from irw /var/run/lirc/lircd1 or irw /var/run/lirc/lircd2.

ps -ef | grep lircd gives:

Code:
root       808     1  0 19:04 ?        00:00:00 /usr/sbin/lircd --output=/var/run/lirc/lircd2 --driver=devinput --device=/dev/input/by-id/usb-TopSeed_Tech_Corp._USB_IR_Combo_Device-event-mouse --listen
root       843     1  0 19:04 ?        00:00:00 /usr/sbin/lircd --output=/var/run/lirc/lircd1 --driver=devinput --device=/dev/input/by-id/usb-TopSeed_Tech_Corp._USB_IR_Combo_Device-event-kbd -a --connect=localhost 8765 --pidfile=/var/run/lirc/lircd1.pid

grepping xbmc.log for lirc gives:

Code:
09:21:05 T:3055036288 M:955936768    INFO: LIRC Initialize: using: /dev/lircd
09:21:05 T:3055036288 M:955936768    INFO: LIRC Initialize: sucessfully started
09:21:05 T:3055036288 M:947965952    INFO: Loading special://xbmc/system/Lircmap.xml
09:21:05 T:3055036288 M:947965952    INFO: Loading special://profile/Lircmap.xml

Any suggestions?
Reply
#17
Hi

Thanks for this guide. It is a great idea and much simpler to go by the device id symlinks.

I'm running Ubuntu 10.04 and had to make the following changes to get it working (possibly due to changes in the newer kernel?):

Step 3
Before editing hardware.conf, double check the name to enter into REMOTE_DEVICE
Code:
#ls -l /dev/input/by-id/usb-TopSeed*
lrwxrwxrwx 1 root root 9 2010-10-02 17:56 /dev/input/by-id/usb-TopSeed_Tech_Corp._USB_IR_Combo_Device-event-ir -> ../event6
lrwxrwxrwx 1 root root 9 2010-10-02 17:56 /dev/input/by-id/usb-TopSeed_Tech_Corp._USB_IR_Combo_Device-ir -> ../mouse2

See they now seem to end in ...Device-ir and ...Device-event-ir rather than ..Device-event-mouse and ...Device-event-kbd.

So for me, the /etc/lirc/hardware.conf file becomes:
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="CYBERLINK"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="/dev/input/by-id/usb-TopSeed_Tech_Corp._USB_IR_Combo_Device-ir"
REMOTE_SOCKET="/var/run/lirc/lircd2"
REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="CYBERLINK"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER="devinput"
TRANSMITTER_DEVICE="/dev/input/by-id/usb-TopSeed_Tech_Corp._USB_IR_Combo_Device-event-ir"
TRANSMITTER_SOCKET="/var/run/lirc/lircd1"
TRANSMITTER_LIRCD_CONF="devinput/lircd.conf.devinput"
TRANSMITTER_LIRCD_ARGS="-a "

Step 4
When running the irw command, the responses sent back by my remote were also different. The button names appear to have dropped the KEY_ prefix and list linux-input-layer instead of devinput:
Code:
#irw /var/run/lirc/lircd1
000000000001018e 00 RED linux-input-layer
000000000001018f 00 GREEN linux-input-layer
0000000000010190 00 YELLOW linux-input-layer
0000000000010191 00 BLUE linux-input-layer

This means a final adjustment needs to be made in...

Step 6
After downloading your Lircmap.xml file I changed the line:
Code:
<remote device="devinput">
to
Code:
<remote device="linux-input-layer">

and then removed the KEY_ prefix from every line. e.g.

Code:
<pause>KEY_PAUSE</pause>
becomes
Quote:<pause>PAUSE</pause>

Now everything works great! Thanks again for an excellent guide. I hope these adjustments help anyone else trying to get this to work.
Reply
#18
Cheers for the feedback, things do seem to have changed a little. I had to make some changes to my setup recently after finally upgrading to 10.04.

I'm sure the Symlinks used to both point to event outputs now one of them points to a mouse output.

Also some of the recent changes in ubuntu keymaps meant that the OK key on these remotes thats used as the master selection key was mapped to FullScreen and had to be mapped to select
Reply
#19
I followed the guide, including the modifications for 10.04 posted by darkinnit (since I'm running the beta4 dharma build), but when I run irw, I get nothing for most of the buttons. The number keys and direction keys and a few others produce something on screen (not the proper output, just garbage) but that's it.

I had to use the following in my files:

/etc/lirc/hardware.conf:
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Cyberlink"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS="--device=`grep -l 'TopSeed' /sys/class/input/input*/name | tail -n1 | sed -e s'|/name||' | sed -e s'|sys/class/input/input|dev/input/event|'` --driver=dev/input"


#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

/etc/lirc/lircd.conf:
Code:
# Cyberlink Remote

begin remote

name  Cyberlink
bits           16
eps            30
aeps          100

one             0     0
zero            0     0
pre_data_bits   16
pre_data       0x1
gap          199999
toggle_bit      0


     begin codes

         Home                     0x0066
         Power                    0x0074

         DVDVCD                   0x018E
         Music                    0x018F
         Pictures              0x0190
         Videos                   0x0191

         LiveTV                   0x0179
         Record                   0x00A7
         Radio                    0x0181

     SAP                      0x0188
     TeletextCC               0x0184
         LastCH                   0x016B

     Subtitle                 0x0172
     Language                 0x0170
     Angle                    0x0173

     BACK                     0x009E
         InfoEPG                  0x0082
         DVDMenu                  0x008B

         VolumeUp                 0x0073
         VolumeDown               0x0072
         Mute                     0x0071
         ChannelUp                0x0192
         ChannelDown              0x0193

         ArrowUp                  0x0067
         ArrowLeft                0x0069
         OK                       0x0160
         ArrowRight               0x006A
         ArrowDown                0x006C

         PLAY                     0x00CF
         REV                      0x00A8
         PAUSE                    0x0077
         FWD                      0x00D0
         SkipBack                 0x0195
         Stop                     0x0080
         SkipFwd                  0x0197

         1                        0x0002
         2                        0x0003
         3                        0x0004
         4                        0x0005
         5                        0x0006
         6                        0x0007
         7                        0x0008
         8                        0x0009
         9                        0x000A
         0                        0x000B



     end codes

end remote

After that I could get output by running:

Code:
sudo irw
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO to get CyberLink Remote working in Ubuntu 9.101