[LINUX] HOW-TO to get CyberLink Remote working in Ubuntu 9.10 - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: [LINUX] HOW-TO to get CyberLink Remote working in Ubuntu 9.10 (/showthread.php?tid=61170) Pages:
1
2
|
[LINUX] HOW-TO to get CyberLink Remote working in Ubuntu 9.10 - lozbrown85 - 2009-11-08 Hi This is a guide for getting the Cyberlink remote shown below to work in Ubuntu 9.10 Karmic Koala. It may possible to adapt this to other versions, distros etc. This remote is one of the cheapest remote you can buy here in the UK This has been become much easier in Ubuntu 9.10 because a patch has been added into kernels after 2.6.30 (Ubuntu 9.10 uses 2.6.31). Step 1: Check the remote is working and get the event number Execute the following command on the command line: Code: cat /proc/bus/input/devices Code: I: Bus=0003 Vendor=0766 Product=0204 Version=0100 Step 2: Install LIRC This is the Code: sudo apt-get install lirc Step 3: Configure your lircd processes This unfortunately is extra complicated due to the fact that the Cyberlink remote shows up as two devices. Don't worry though, help is at hand. the clever people that wrote LIRC designed it such that you can start multiple processes and connect them together so the remote acts like one device. Furthermore Mario Limonciello and the rest of the clever people who integrate LIRC into Ubuntu have made it easy to configure these processes in this setup. So a Big Thankyou to all of them!! Stop the lircd deamon: Code: sudo /etc/init.d/lirc stop You need to edit the hardware.conf, you will need to do this with root permissions like so: Code: sudo vi /etc/lirc/hardware.conf Edit your file to look like mine below. Don't worry about the fact one says it's a transmitter just go with it. We're going to use the by id symlinks, this means if the device numbers change it will automatically point to the correct devices. Code: # /etc/lirc/hardware.conf Restart the lircd deamon: Code: sudo /etc/init.d/lirc restart Check if its running: Code: ps -ef | grep lircd Hopefully you will see two instances of lircd similar to mine shown below: Code: /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 If you do this is the hard bit done.. :-) Grab a cup of tea or a beer. Step 4: Test your LIRC daemon Run the following command: Code: irw /var/run/lirc/lircd1 Code: 0000000080010066 00 KEY_HOME devinput If so your remote is working well. Make sure all keys result in output. Step 5: Link the defualt socket to your socket This step is optional. With most programs including xbmc it's possible to tell it which socket to connect to. But most programs default to /dev/lircd so we'll make that work here: Code: sudo rm -f /dev/lircd Step 6: Configure xbmc with your remote In this step we'll simply copy my config to your xbmc profile. Quote:wget http://www.protazoa.com/cyberlink-remote/Lircmap.xml -O ~/.xbmc/userdata/Lircmap.xml - Slate - 2009-11-15 Hi Thanks, nice guide - I got further than I did with the other cyberlink guide. I think I'm nearly there but it doesn't quite work - irw /var/run/lirc/lircd1 doesn't output anything in a ssh and refuses to run in a Ctrl/Alt Fx shell. Completing the remaining steps regardless the Cyberlink Remote still only has the same limited number of keys that were working before. I'm running the latest alpha Live installed onto the HD of a Dual Core Revo. I did spot what I think maybe a couple of simple typos. Code: TRANSMITTER_SOCKET="/var/run/lirc/lircd" Code: TRANSMITTER_SOCKET="/var/run/lirc/lircd1" Code: mkdir -p ~/.xbmc/userdata/kemaps Code: mkdir -p ~/.xbmc/userdata/keymaps - Slate - 2009-11-15 This post helped a lot to understanding what was happening with the event number, I finally got it working by using the setup instructions in the other thread http://forum.xbmc.org/showthread.php?tid=61219 but I sftped the various files into the xbmc root and sudo mv'd the files into the correct places. - zubs - 2009-11-23 Hi guys, Has anyone with this remote managed to get it to wake up their PC's from S3 sleep? - lozbrown85 - 2009-11-24 Ahhh just noticed I dont seem to have got the notification for this thread. Is anyone still having a problem with this? The two ways of doing it are slightly different. One half of this device acts like a keyboard and has basic buttons like left, right etc. This functionality pretty much works on its own. But the other device does not work my My way sends all output via LIRC which potentially makes the mapping easier. The other way while easier to set up only uses lirc for the more complicated half of the remote. Swings,roundabouts... Is anyone still having a problem with this - lozbrown85 - 2009-11-24 zubs Wrote:Hi guys, I cant say I've tried, I never shut down my media center/server. Sorry - lozbrown85 - 2009-11-24 Slate Wrote:Hi Some are typos some are not. Sounds like you got it working with the other method but if your still interested reply. I think I missed a notification at some point and the forum does not do notifications until you read the thread again. I would normally reply to posts like this. - beebul - 2009-12-18 It would be handy if you could state which were typos and which aren't. Thanks for this post I've still not got my Cyberlink working very close though, like Slate I get stuck at Code: irw /var/run/lirc/lircd1 - beebul - 2009-12-18 Update got it working But the DVD MUSIC PICTURES coloured buttons at the top don't work - should they? Thanks for your help - lozbrown85 - 2009-12-18 The guide was corrected after there were typos tail the xbmc log and press those buttons so we can check that there actually registering as buttons. also try adding the following to the keymap file in userdata keymaps Code: <global> - beebul - 2009-12-18 Hi I can't get Code: irw /var/run/lirc/lircd1 to work on my machine (Revo dual core with XBMC Live 9.11 RC1). It says directory does not exist. Also in File Manager, with the Wii remote I used to be able to mark files and move/copy etc but I can't do that now... I can only delete using the clear key. I am actually using this guide and have used their Keymap... but yours was a lot of help too! - lozbrown85 - 2009-12-19 beebul Wrote:Hi I can't get Ok cool, please can you give us the output of the following command Quote:ps -ef | grep -i lirc For me this looks like this: Code: root 1375 1 0 Dec17 ? 00:00:00 /usr/sbin/lircd --output=[u]/var/run/lirc/lircd2[/u] --driver=devinput --device=/dev/input/event6 --listen I have two instances of lirc but you will probably only have one, this is because the device splits into two separate devices and my method routes every thing via lirc and connects them together so the one with --listen in the command line receives all the events from the other. The underlined section represents where your output is feeding to. This is what you want to use as the argument for irw. If it still does not work post back including the output of Quote:ps -ef | grep -i lircand Code: grep -i lirc ~/..xbmc/temp/xbmc.log Confuzed - bt101 - 2010-01-07 Hi - I'm confused. If I'm not mistaken, your remote control emulates 2 devices (an HID keyboard and an HID mouse). I can't find any documentation on hardware.conf, but I assume that all the parameters for the TRANSMIT device are for an IR device that actually transmits IR signals. But I notice that in your example, you have filled-in the TRANSMIT section with the parameters from your HID mouse. Why is this done? Thanks - lozbrown85 - 2010-01-07 This confused me at first too One thing to note is the the hardware.conf file is part of ubuntu/debian's implmentation/integration of lirc so the the fact that it says Transmitter at all is there doing This is done because the way you connect a transmitter is exactly the same as the way you connect a second device. As most people don't have a transmitter this is the easiest way to set up multiple lirc devices and join them together. If however you actually have a transmitter and or need more than two devices you'll probably have to use a more complicated init script than the one that comes with ubuntu. My suggestion is just try it and see for yourself that it works - kenm_uk - 2010-01-11 Slate Wrote:This post helped a lot to understanding what was happening with the event number, I finally got it working by using the setup instructions in the other thread http://forum.xbmc.org/showthread.php?tid=61219 but I sftped the various files into the xbmc root and sudo mv'd the files into the correct places. I also used the alternative setup above with success on Ubuntu 9.10. |