LinHES Forums http://forums.linhes.org/ |
|
[Solved] Unable to get IMon IR/LCD working in 6.04 http://forums.linhes.org/viewtopic.php?f=25&t=22073 |
Page 1 of 1 |
Author: | jptsetme [ Fri Mar 25, 2011 5:32 pm ] |
Post subject: | [Solved] Unable to get IMon IR/LCD working in 6.04 |
I have a newly built FrontEnd/BackEnd running LinHES 6.04. Getting 80% of the way there was incredibly smooth, and a credit to all the developers who have contributed. I'm coming over from the cable company's crappy DVR (and their associated crappy $65/month cable bill), and the functionality and usability of MythTV, along with the ease of install of KnoppMyth/LinHES has been a real treat. The last 20% have challenged my troubleshooting abilities a bit, and after a couple of weeks I need to ask for help. I may yet resolve my bluetooth keyboard issue (at least I have something left to try), but I'm out of ideas for getting the LCD/IR working. (It's a 15c2:0038 SoundGraph Inc.) I went through a number of suggestions that I found via google before finally figuring out that it's best to restrict my searches to this site lest I get stale data or info applicable to other distros. Even here I need to be careful about the Debian vs. Arch differences. However, I finally found this guide, which seemed to be almost exactly what I wanted. It was for a slightly different IMon component, but had suggestions for how to deal with that different component as well. I followed these instructions, and unfortunately, both the remote and the LCD still do not work. irw shows button presses on some of the remote keys (the arrow buttons and the transport buttons aren't recognized, while the rest of the buttons are.) Nothing appears on the LCD at all, although I have gotten the LCD to display a clock manually before I went through this guide (so at least I know it's functional). lsusb Code: [root@mythServer log]# lsusb Bus 002 Device 008: ID 0a5c:2148 Broadcom Corp. Bus 002 Device 007: ID 0a5c:4503 Broadcom Corp. Bus 002 Device 006: ID 0a5c:4502 Broadcom Corp. Bus 002 Device 005: ID 15c2:0038 SoundGraph Inc. Bus 002 Device 004: ID 045e:0039 Microsoft Corp. IntelliMouse Optical Bus 002 Device 003: ID 045e:0048 Microsoft Corp. Office Keyboard 1.0A Bus 002 Device 002: ID 0a5c:4500 Broadcom Corp. Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [root@mythServer log]# After I built and installed the recommended versions of lirc and lcdproc, some things that used to be broken now appear fixed or better. Code: [root@mythServer mythtv]# ls /dev/l* /dev/lcd0 /dev/lirc /dev/lirc0 /dev/lircd /dev/log /dev/lp0 So I have licrd and only lirc0 (rather than 0 & 1), and I have lcd0. When I reboot, there's not much relevant that I can find in the logs I know to look in. Code: [root@mythServer log]# lircd -v lircd 0.8.6 [root@mythServer log]# ps ax | grep -i lcd 4550 ? Ss 0:01 runsv lcdd 5648 ? Sl 0:00 /usr/bin/mythlcdserver -v none 26298 pts/1 R+ 0:00 grep -i lcd [root@mythServer log]# ps ax | grep -i lirc 4563 ? Ss 0:00 runsv lircd 4628 ? S 0:00 /usr/sbin/lircd -r -n -d /dev/lirc0 --output /dev/lircd 26435 pts/1 S+ 0:00 grep -i lirc The rest of these logs don't tell me much, but they may be helpful for someone who knows more. There are obviously lots of other log files, but grepping around hasn't led me to any error messages that seem related. I'd greatly appreciate advice on how to debug this issue further. Thanks! errors.log Code: [root@mythServer mythtv]# tail -8 /usr/var/log/errors.log Mar 25 17:46:26 mythServer bluetoothd[5202]: Parsing /etc/bluetooth/serial.conf failed: No such file or directory Mar 25 17:46:26 mythServer bluetoothd[5202]: Clearing blocked list failed: Invalid argument (22) Mar 25 17:56:37 mythServer bluetoothd[5204]: Failed to open RFKILL control device Mar 25 17:56:37 mythServer bluetoothd[5204]: Parsing /etc/bluetooth/serial.conf failed: No such file or directory Mar 25 17:56:37 mythServer bluetoothd[5204]: Clearing blocked list failed: Invalid argument (22) Mar 25 18:33:48 mythServer bluetoothd[4625]: Failed to open RFKILL control device Mar 25 18:33:48 mythServer bluetoothd[4625]: Parsing /etc/bluetooth/serial.conf failed: No such file or directory Mar 25 18:33:48 mythServer bluetoothd[4625]: Clearing blocked list failed: Invalid argument (22) mythfrontend.log Code: [root@mythServer mythtv]# tail -105 /usr/var/log/mythtv/mythfrontend.log 2011-03-25 18:32:54.569 Unlocking input devices 2011-03-25 18:32:54.622 TV: Attempting to change from None to WatchingLiveTV 2011-03-25 18:32:54.623 MythCoreContext: Connecting to backend server: 192.168.1.147:6543 (t ry 1 of 1) 2011-03-25 18:32:54.623 Using protocol version 63 2011-03-25 18:32:54.633 Spawning LiveTV Recorder -- begin 2011-03-25 18:32:54.768 Spawning LiveTV Recorder -- end 2011-03-25 18:32:54.773 We have a playbackURL(myth://192.168.1.147:6543/10501_20110325183254 .mpg) & cardtype(DUMMY) 2011-03-25 18:32:54.773 We have a RingBuffer Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". 2011-03-25 18:32:54.939 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture' 2011-03-25 18:32:54.957 OSD: Base theme size: 1920x1080 2011-03-25 18:32:54.957 OSD: Scaling factors: 0.375x0.533333 2011-03-25 18:32:55.074 OSD: Base theme size: 1920x1080 2011-03-25 18:32:55.074 OSD: Scaling factors: 0.375x0.533333 Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". 2011-03-25 18:32:55.084 Player(0): Video timing method: USleep with busy wait 2011-03-25 18:32:55.084 TV: Changing from None to WatchingLiveTV 2011-03-25 18:32:55.084 TV: State is LiveTV & mctx == ctx 2011-03-25 18:32:55.097 TV: UpdateOSDInput done 2011-03-25 18:32:55.097 TV: UpdateLCD done 2011-03-25 18:32:55.097 TV: ITVRestart done 2011-03-25 18:32:55.192 VideoOutput: Created YV12 OSD. 2011-03-25 18:33:52.798 mythfrontend version: 0.24-fixes [g316718a] www.mythtv.org 2011-03-25 18:33:52.808 Using runtime prefix = /usr 2011-03-25 18:33:52.808 Using configuration directory = /home/mythtv/.mythtv 2011-03-25 18:33:52.809 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000 2011-03-25 18:33:53.538 Empty LocalHostName. 2011-03-25 18:33:53.538 Using localhost value of mythServer 2011-03-25 18:33:53.541 New DB connection, total: 1 2011-03-25 18:33:53.544 Connected to database 'mythconverg' at host: localhost 2011-03-25 18:33:53.546 Closing DB connection named 'DBManager0' 2011-03-25 18:33:53.546 Connected to database 'mythconverg' at host: localhost 2011-03-25 18:33:53.547 Current locale en_US 2011-03-25 18:33:53.547 Reading locale defaults from /usr/share/mythtv//locales/en_us.xml Xlib: extension "Generic Event Extension" missing on display ":0.0". 2011-03-25 18:33:53.761 DPMS is disabled. Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". 2011-03-25 18:33:53.808 Desktop video mode: 1920x1080 60.000 Hz Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". 2011-03-25 18:33:53.823 Enabled verbose msgs: important general 2011-03-25 18:33:53.838 Starting mythlcdserver 2011-03-25 18:33:54.344 Connecting to lcd server: 127.0.0.1:6545 (try 1 of 10) 2011-03-25 18:33:54.844 Connecting to lcd server: 127.0.0.1:6545 (try 2 of 10) 2011-03-25 18:33:55.344 Connecting to lcd server: 127.0.0.1:6545 (try 3 of 10) 2011-03-25 18:33:55.346 Loading en_us translation for module mythfrontend 2011-03-25 18:33:55.346 New DB connection, total: 2 2011-03-25 18:33:55.347 Connected to database 'mythconverg' at host: localhost Xlib: extension "Generic Event Extension" missing on display ":0.0". 2011-03-25 18:33:55.400 LIRC: Successfully initialized '/dev/lircd' using '/home/mythtv/.myt htv/lircrc' config 2011-03-25 18:33:55.400 JoystickMenuThread: Joystick disabled - Failed to read /home/mythtv/ .mythtv/joystickmenurc 2011-03-25 18:33:55.425 Using Frameless Window 2011-03-25 18:33:55.425 Using Full Screen Window 2011-03-25 18:33:55.544 Using the OpenGL painter Xlib: extension "Generic Event Extension" missing on display ":0.0". Xlib: extension "Generic Event Extension" missing on display ":0.0". 2011-03-25 18:33:55.598 OpenGL: OpenGL vendor : NVIDIA Corporation 2011-03-25 18:33:55.598 OpenGL: OpenGL renderer: GeForce GT 430/PCI/SSE2/3DNOW! 2011-03-25 18:33:55.598 OpenGL: OpenGL version : 4.0.0 NVIDIA 256.35 2011-03-25 18:33:55.598 OpenGL: Max texture size: 16384 x 16384 2011-03-25 18:33:55.598 OpenGL: Max texture units: 4 2011-03-25 18:33:55.598 OpenGL: Direct rendering: Yes 2011-03-25 18:33:55.598 OpenGL: Initialised MythRenderOpenGL 2011-03-25 18:33:56.498 Current MythTV Schema Version (DBSchemaVer): 1264 Xlib: extension "Generic Event Extension" missing on display ":0.0". 2011-03-25 18:33:57.446 Registering Internal as a media playback plugin. 2011-03-25 18:33:57.481 Loading en_us translation for module mytharchive 2011-03-25 18:33:57.485 Registering WebBrowser as a media playback plugin. 2011-03-25 18:33:57.491 Loading en_us translation for module mythbrowser 2011-03-25 18:33:57.565 MMUnix::AddDevice() Error: failed to stat /dev/bdi, eno: No such file or directory (2) 2011-03-25 18:33:57.568 MMUnix::AddDevice() Error: failed to stat /dev/power, eno: No such file or directory (2) 2011-03-25 18:33:57.570 MonitorRegisterExtensions(0x100, gif,jpg,png) 2011-03-25 18:33:57.575 Loading en_us translation for module mythgallery 2011-03-25 18:33:57.596 Loading en_us translation for module mythgame 2011-03-25 18:33:57.874 Current MythMusic Schema Version (MusicDBSchemaVer): 1017 2011-03-25 18:33:57.893 Key > is bound to multiple actions in context Music. 2011-03-25 18:33:57.897 MonitorRegisterExtensions(0x40, mp3,mp2,ogg,oga,flac,wma,wav,ac3,oma ,omg,atp,ra,dts,aac,m4a,aa3,tta,mka,aiff,swa,wv) 2011-03-25 18:33:57.900 Loading en_us translation for module mythmusic 2011-03-25 18:33:57.924 Loading en_us translation for module mythnetvision 2011-03-25 18:33:57.953 Loading en_us translation for module mythnews 2011-03-25 18:33:57.955 Error Loading en_us translation for module mythsmolt 2011-03-25 18:33:58.049 Error Loading en_us translation for module mythstream 2011-03-25 18:33:58.067 Current MythVideo Schema Version (mythvideo.DBSchemaVer): 1038 2011-03-25 18:33:58.087 Loading en_us translation for module mythvideo 2011-03-25 18:33:58.168 Starting update of wunderground 2011-03-25 18:33:58.168 wunderground recently updated, skipping. 2011-03-25 18:33:58.184 Loading en_us translation for module mythweather 2011-03-25 18:33:58.186 NetworkControl: Listening for remote connections on port 6546 2011-03-25 18:33:58.315 Found mainmenu.xml for theme 'Arclight' 2011-03-25 18:33:58.686 MythCoreContext: Connecting to backend server: 192.168.1.147:6543 (t ry 1 of 1) 2011-03-25 18:33:58.687 Using protocol version 63 lircd Code: Mar 25 18:32:55 mythServer lircd: caught signal
Mar 25 18:33:46 mythServer lircd: lircd(default) ready, using /dev/lircd Mar 25 18:33:52 mythServer lircd: accepted new client on /dev/lircd Mar 25 18:33:55 mythServer lircd: accepted new client on /dev/lircd |
Author: | christ [ Fri Mar 25, 2011 7:55 pm ] |
Post subject: | Re: Unable to get IMon IR/LCD working in 6.04 |
jptsetme wrote: irw shows button presses on some of the remote keys (the arrow buttons and the transport buttons aren't recognized, while the rest of the buttons are.) Have you tried mode2? It will tell you the IR codes of the pressed buttons before it enters lircd. irw shows you what got mapped after lircd (ie. lircd.conf). Search for examples in the forum where I've shown how to use this. If mode2 shows all button presses then we know it is at the lircd level. If it does not then you likely have two lirc devices though this should have disappeared as of lirc 0.8.6. jptsetme wrote: Nothing appears on the LCD at all, although I have gotten the LCD to display a clock manually before I went through this guide (so at least I know it's functional).
How did you make it display this? Using the lcd configuration file? My suspicion is that your drivers are ok but you may not have turned on the LCD capability in mythtv itself or you made a mistake in the config files. |
Author: | jptsetme [ Fri Mar 25, 2011 8:14 pm ] |
Post subject: | |
It figures -- once you post a question, you figure it out. The problem was that the DriverPath in the LCDd.conf file was wrong. I wasn't sure, but thought that I should see LCDd in the process list, and so I tried starting it manually. This gave me an error saying it couldn't find the driver file. When I looked in /usr/local/lib/lcdproc, the directory didn't exist. I then ran make install on lcdproc again, and saw that the files were written to /usr/lib/lcdproc. I changed the DriverPath to point to /usr/lib/lcdproc, and it fired right up. I'm not sure why this differs from the instructions in the guide. I got the source package for lcdproc from a different URL (b/c the posted one was broken), but it was the source package for the same version of lcdproc from sourceforge. Not sure what else could be different besides the LinHES version (I'm on 6.04 and the guide is from 6.02). I still need to figure out the remote control (not 100% convinced I have the right lircd.conf) and the bluetooth keyboard, but it's progress. Thanks again for everyone who contributes to this project. Very cool stuff. |
Author: | jptsetme [ Fri Mar 25, 2011 8:21 pm ] |
Post subject: | Re: Unable to get IMon IR/LCD working in 6.04 |
Thanks christ. My message crossed with yours, but thank you for the suggestions on debugging the remote control issue. I tried mode2 before, but have not done it since I followed your guide and built lirc 0.8.6. christ wrote: How did you make it display this? Using the lcd configuration file? My suspicion is that your drivers are ok but you may not have turned on the LCD capability in mythtv itself or you made a mistake in the config files.
The command I used to get the clock displayed on the LCD was from a different guide I found online here Code: perl -e 'print pack "H*", "80000000091e0088"' > /dev/lcd0
It turns out it was a config file error, but I'm not sure why -- see my post above (and thanks very much for your great work!) |
Author: | jptsetme [ Fri Mar 25, 2011 8:45 pm ] |
Post subject: | |
I marked this solved and then decided I'd try to get the remote figured out on the same thread since we already started talking about it. Running mode2 shows me more button presses. The arrow buttons work in addition to most other ones. The only buttons that don't show any codes are the transport buttons (play, skip f, skip b), power on and power off. Code: [root@mythServer mythtv]# mode2 --device /dev/lirc0 Please use the --raw option to access the device directly instead through the abstraction layer. [root@mythServer mythtv]# mode2 --device /dev/lirc0 --raw code: 0x2aa515b700000101 code: 0x2aa555b700000101 code: 0x2ba515b700000101 code: 0x2ba555b700000101 code: 0x289515b700000101 code: 0x289555b700000101 code: 0x29a515b700000101 code: 0x29a555b700000101 code: 0x0200002800000000 code: 0x0200000000000000 code: 0x0200002a00000000 code: 0x0200000000000000 code: 0x0200002a00000000 code: 0x0200000000000000 code: 0x0200002a00000000 code: 0x0200002a00000000 code: 0x0200002a00000000 code: 0x0200002a00000000 code: 0x0200002a00000000 code: 0x0200002a00000000 code: 0x0200000000000000 code: 0x0200006500000000 code: 0x0200000000000000 code: 0x0200006500000000 code: 0x0200000000000000 code: 0x0200006500000000 code: 0x0200000000000000 code: 0x289395b700000101 code: 0x2893d5b700000101 code: 0x288795b700000101 code: 0x2887d5b700000101 code: 0x2b9595b700000101 code: 0x2b95d5b700000101 code: 0x2ab195b700000101 code: 0x2ab1d5b700000101 code: 0x28a395b700000101 code: 0x28a3d5b700000101 code: 0x28a595b700000101 code: 0x28a5d5b700000101 I don't care at all about the power buttons, as this is a FE/BE that will never be turned off. I am not sure about the transport buttons -- but I assume I could map things to work okay with just the arrow keys. I appear to have only lirc0, which is what I had read to expect. Code: [root@mythServer mythtv]# ls /dev/lirc*
/dev/lirc /dev/lirc0 /dev/lircd I assume I have two problems. One since mode2 doesn't show all the button presses, and another because even the button presses seen by irw don't get recognized by myth. Any suggestions for how to debug this further? Thanks again! |
Author: | christ [ Sat Mar 26, 2011 11:40 am ] |
Post subject: | |
Thanks for the update on LCDd.conf and the path change. The path that worked for you is the path that worked for me originally but for someone else it changed and when I retested it I got the same result as the other person. I will update my how-to to reflect the discrepancy and update the source path. As for the input, If mode2 is showing you the keys then you will need to modify the lircd.conf to match your new inputs. iMon does tend to update its codes from time to time on their remotes but the receiver itself will pick up just about any code available. I personally use a Harmony remote so that I can use any code I want. Which remote do you have? RM200? To create a new lircd.conf you can use irrecord. It is reasonably quick to use. It will take your button presses and create a new lircd.conf. Note if mode2 can't see the button then neither will irrecord. As for why the new buttons don't show up? It is possible it has something to do with the driver. You can try the latest lirc which 0.8.7 and see if it makes a difference. Also on the mythtv user list, Jarod will often respond to issues. He has made many of the changes the in iMon lirc code. |
Author: | jptsetme [ Mon Mar 28, 2011 7:18 am ] |
Post subject: | |
Thanks again christ -- your support here is awesome. The remote that came with the case was a RM100. Tiny little remote with only a handful of keys. I also have a Harmony remote (720), and planned to ultimately use it, but figured it would be one less variable to get the original remote working first. That may have been the wrong decision. After I read your post, I searched around on RM200 and saw a post of yours saying it was a good remote to use for the 15c2:0038 (and that some others did not work), so I set up my harmony to use that remote and ran irrecord to make an lircd.conf file for it. Initially this didn't work, but then I found that the lircrc file didn't map the keys specified in the lircd.conf file. It's interesting b/c I was restricted to the namespace supported by irrecord in which all the key names were prefaced by "KEY_", but I couldn't find any lircrc files (neither in my install, nor in the lirc src contrib, nor online) that used those names for remote codes. It's possible I didn't search well enough, but eventually I ended up editing an lircrc file I had and changing all the names to match what was recorded into the lircd.conf file. This mostly worked, and I am pretty close to having a good working remote. I'd still be interested in seeing a copy of your RM200 lircd.conf and lircrc files, as I have an issue with the Menu key sending too many times (the menu pops up and dismisses itself instantly). I assume this is what the repeat option is for in the lircrc file, but I'm not sure what to set it to in order to make this go away. I'm also curious if I'm using the same RM200 harmony profile as you (mine chose "Antec" manufacturer and "Veris RM200" as the model). For this profile, I notice several important keys that send no code at all on the remote, including the "OK" key (in the center of the directional keys), the Guide button, the Info button and the Exit button. Exit, in particular, is one I'd like to map to Escape, as I right now have no button mapping to Escape and that will be a problem. Did you add mappings to your remote for these buttons? If so, I'd be interested to see what you mapped to and perhaps use the same mappings myself. Thanks again for your help -- greatly appreciated. |
Author: | jptsetme [ Mon Mar 28, 2011 7:48 pm ] |
Post subject: | |
I think I'm pretty okay here. The only issue I have remaining is that I can't get the Menu to stay displayed. It pops up and dismisses itself every time. I suspect this is something I can play around with the repeat option in the lircrc file to fix. I assigned additional commands to the remaining buttons in the RM200 profile on my harmony remote, learned them with irrecord and mapped them in lircrc. Everything seems to be pretty good. Thanks again for your help! |
Author: | christ [ Mon Mar 28, 2011 7:48 pm ] |
Post subject: | |
jptsetme wrote: Thanks again christ -- your support here is awesome. You're welcome. Hopefully once you are up to speed you will be able to help others too.jptsetme wrote: The remote that came with the case was a RM100. Yes. I know it well. I have one that came with a Veris Basic that I use on another front end. It is in a drawer and I use an Harmony 890 on that system. I use the RF capability so that that front end stays in a closet. jptsetme wrote: I also have a Harmony remote (720), and planned to ultimately use it, but figured it would be one less variable to get the original remote working first. That may have been the wrong decision. correct! jptsetme wrote: After I read your post, I searched around on RM200 and saw a post of yours saying it was a good remote to use for the 15c2:0038 (and that some others did not work), Yes the 0038 is sometimes an iMon code set and sometimes an RC6 (MCE) code set. I'm pretty sure most modern iMon IR receivers are bilingual and Jarod added some code to the driver so that you could tell it which mode you wish. jptsetme wrote: so I set up my harmony to use that remote and ran irrecord to make an lircd.conf file for it. Initially this didn't work, but then I found that the lircrc file didn't map the keys specified in the lircd.conf file. It's interesting b/c I was restricted to the namespace supported by irrecord in which all the key names were prefaced by "KEY_", but I couldn't find any lircrc files (neither in my install, nor in the lirc src contrib, nor online) that used those names for remote codes. It's possible I didn't search well enough No. I'm sure you did look well. irrecord is trying to enforce a common naming convention which is great but most of the legacy lircrc files still exist. You can force irrecord to ignore this and you can use any name you wish. It is up to you. jptsetme wrote: I'd still be interested in seeing a copy of your RM200 lircd.conf and lircrc files, as I have an issue with the Menu key sending too many times (the menu pops up and dismisses itself instantly). I assume this is what the repeat option is for in the lircrc file, but I'm not sure what to set it to in order to make this go away. you've guessed correctly. If you watch what happens with mode2, you will see that each button press may generate multiple IR codes. I saw it in your samples above. The repeat count tells myth how many of those codes to absorb. For something like a menu key it is ok if you absorb too many, it shouldn't hurt. With something like arrow keys, too high a repeat count will defeat your auto-repeat capabilities. jptsetme wrote: I'm also curious if I'm using the same RM200 harmony profile as you (mine chose "Antec" manufacturer and "Veris RM200" as the model). I just checked my config and I am actually using the device profile "Antec FUSION BLACK 430" which seems to have a very complete code set. jptsetme wrote: Did you add mappings to your remote for these buttons? If so, I'd be interested to see what you mapped to and perhaps use the same mappings myself.
I have remapped a bunch of stuff on the Harmony to suit my needs. In the how-to you referenced above, I did link back to my R5.5 based how-to which has a complete set of lircrc and lircd.conf files. However, I have updated them a little bit since then. I will add them to this thread just to save you some time. |
Author: | christ [ Mon Mar 28, 2011 7:57 pm ] |
Post subject: | |
Newer lircd.conf for Antec Fusion which is adapted to 64 bit codes. I use these codes with a harmony remote programmed with the Antec FUSION BLACK 430 device type. You may wish to modify your Harmony key mappings to suit. You will need lirc 0.8.6 or later. I will eventually move all of this to the wiki. Code: # Please make this file available to others # by sending it to <lirc@bartelmus.de> # # this config file was automatically generated # using lirc-0.8.2(default) on Wed Mar 12 22:39:58 2008 # # contributed by # # brand: /root/lircd.conf # model no. of remote control: # devices being controlled by this remote: # begin remote name mceusb_antec_knob bits 32 eps 30 aeps 100 one 0 0 zero 0 0 post_data_bits 32 post_data 0x9FAE #gap 203989 #toggle_bit_mask 0x8000 gap 103995 min_repeat 1 toggle_bit_mask 0x800000000000 begin codes # Top control buttons Zoom 0x800F0427 Power 0x800F040C MyRadio 0x800F0450 MyMusic 0x800F0447 MyPictures 0x800F0449 MyVideos 0x800F044A RecordedTV 0x800F0448 Guide 0x800F0426 LiveTV 0x800F0425 DVDMenu 0x800F0424 Subtitle 0x800f844d Audio 0x800f844c # Player Controls (DVD, VCR, etc) Play 0x800F0416 Pause 0x800F0418 Stop 0x800F0419 Record 0x800F0417 Rewind 0x800F0415 Forward 0x800F0414 Replay 0x800F041B Skip 0x800F041A # Nvigation Buttons Up 0x800F041E Left 0x800F0420 Down 0x800F041F Right 0x800F0421 OK 0x800F0422 Back 0x800F0423 More 0x800F040F # Standard Controls VolumeUp 0x800F0410 VolumeDown 0x800F0411 ChannelUp 0x800F0412 ChannelDown 0x800F0413 Mute 0x800F040E Start 0x800F040D One 0x800F0401 Two 0x800F0402 Three 0x800F0403 Four 0x800F0404 Five 0x800F0405 Six 0x800F0406 Seven 0x800F0407 Eight 0x800F0408 Nine 0x800F0409 Zero 0x800F0400 Star 0x800F041D Hash 0x800F041C Clear 0x800F040A Enter 0x800F040B # Lower color buttons Teltext 0x800F045A Red 0x800F045B Green 0x800F045C Yellow 0x800F045D Blue 0x800F045E # Antec Volume Control Knob KnobCCW 0x01000000 KnobCW 0x00010000 end codes end remote Matching lircrc file: Code: # /home/mythtv/.mythtv/lircrc # # Media Center Edition Remote Control and Remote Control Keys on Media Center Keyboard ######################################################################################## # For use with the USB MCE ir receiver # MythTV LIRC config file for the mceusb2 or lirc_mod_mce module # Info about lircrc statment #begin # prog = ... Program controlled, irxevent, irexec, mythtv, mplayer, xine, or others # remote = ... mceusb, or what ever you happen to have or want to call it # button = ... remote keys names from your lircd.conf file # repeat = ... repeat = 2 is fast, repeat = 4 is slower # delay = ... delay before repeat, 1 is short, 4 is longer # config = ... output key presses to key bindings editor # mode = ... # flags = ... #end # Test your new Lirc settings # /etc/init.d/lirc restart To restart Lirc # ctrl-alt-backspace To restart the frontend # Updated January 30th 2008 BAK # for the Knoppmyth project ######################################################## irexec #################### # the lirc irexec program must be running for this section # Will perform a complete shutdown #begin # prog = irexec # button = Power # config = /usr/bin/sudo halt #end # Teletext = used as power down button begin prog = irexec button = Teltext config = /usr/bin/sudo halt # config = sudo /sbin/shutdown -h -t 0 now end # ################################################ Mythtv Section #################### # MythTV Key Binding Editor location # Mythtv Menu >>Utilities / Setup >>Edit Keys # Key Bindings can also be found in Myth Web # Record begin prog = mythtv button = Record config = R end # Stop begin prog = mythtv button = Stop config = Esc end # Pause begin prog = mythtv button = Pause config = P end # Rewind (while viewing) begin prog = mythtv button = Rewind repeat = 0 delay = 1 config = < end # Fast forward (while viewing) begin prog = mythtv button = Forward repeat = 0 delay = 1 config = > end # Play begin prog = mythtv button = Play config = L end # Skip backward (1 min default) begin prog = mythtv button = Replay repeat = 4 delay = 4 config = PgUp end # Skip forward (1 min default) begin prog = mythtv button = Skip repeat = 4 delay = 4 config = PgDown end #<><><><><><><><><><><> Mythtv Control <><><><> # Escape/Exit/Back begin prog = mythtv button = Back config = Esc end # Bring up OSD info begin prog = mythtv button = More config = I end begin prog = mythtv button = Left repeat = 3 delay = 4 config = Left end begin prog = mythtv button = Right repeat = 3 delay = 4 config = Right end begin prog = mythtv button = Up repeat = 3 delay = 4 config = Up end begin prog = mythtv button = Down repeat = 3 delay = 4 config = Down end # OK/Select begin prog = mythtv button = OK config = Return end # The Start Button is really just a Menu key begin prog = mythtv button = Start config = M end #<><><><><><><><><><><><><><><> # Volume-Up begin prog = mythtv button = VolumeUp repeat = 2 config = ] end # Volume-Down begin prog = mythtv button = VolumeDown repeat = 2 config = [ end # Mute begin prog = mythtv button = Mute config = | end # Channel Up begin prog = mythtv button = ChannelUp repeat = 3 # delay = 1 config = Up end # Channel Down begin prog = mythtv button = ChannelDown config = Down repeat = 3 # delay = 1 end # Numbers 0-9 <><><><><><><><><><><> begin prog = mythtv button = One # repeat = 2 config = 1 end begin prog = mythtv button = Two # repeat = 2 config = 2 end begin prog = mythtv button = Three # repeat = 2 config = 3 end begin prog = mythtv button = Four # repeat = 2 config = 4 end begin prog = mythtv button = Five # repeat = 2 config = 5 end begin prog = mythtv button = Six # repeat = 2 config = 6 end begin prog = mythtv button = Seven # repeat = 2 config = 7 end begin prog = mythtv button = Eight # repeat = 2 config = 8 End begin prog = mythtv button = Nine # repeat = 2 config = 9 end begin prog = mythtv button = Zero # repeat = 2 config = 0 end # Use Zoom for Aspect Ratio begin prog = mythtv button = Zoom config = W end #<><><><><><><><><><><><><><><><><><><><> # Seek to previous commercial cut point # or remove all cut points from the Editing Cutlist begin prog = mythtv button = Star config = Q end # Seek to next commercial cut point # or add commericial cut points to the Editing Cutlist begin prog = mythtv button = Hash config = Z end # Brings up the delete box begin prog = mythtv button = Clear repeat = 0 config = D end # Toggle Editing Cutlist on or off begin prog = mythtv button = Enter repeat = 0 config = E end #<><><><><><><><> Additional Remote Commands <><><><><><><><> # All buttons in this section must be configured using # MythTV's KeyBindings JumpPoints editor. # >>> Utilities/ Setup >>> Edit Keys >>> JumpPoints >>> # Listen to Myth Music begin prog = mythtv button = MyMusic config = Ctrl+T end # at this time connects to MythStreem begin prog = mythtv button = MyRadio config = Ctrl+Alt+S end # View Pictures begin prog = mythtv button = MyPictures config = Ctrl+G end # Watch Videos begin prog = mythtv button = MyVideos config = Ctrl+V end # Watch Live TV with Live TV Guide open begin prog = mythtv button = MyTV config = Ctrl+S end # Watch Live TV begin prog = mythtv button = LiveTV config = Ctrl+Alt+L end # Recorded TV Programs begin prog = mythtv button = RecordedTV config = Ctrl+R end # Program Guide begin prog = mythtv button = Guide config = Ctrl+Alt+G end # Play DVD # There must be a disk in the DVD drive or it dos nothing begin prog = mythtv button = DVDMenu config = Ctrl+Alt+D end # unused key #begin # prog = mythtv # button = Messenger # config = Ctrl+Alt+A #end # <><><><><><><><><><><><><> Teletext Buttons <><><><><><><><><><><> # Teletext = Show interactive MHEG screens #begin # prog = mythtv # button = Teltext # config = F7 #end # Red = Red button for interactive screens. begin prog = mythtv button = Red config = F2 end # Green = Green button for interactive screens. begin prog = mythtv button = Green config = F3 end # Yellow = Yellow button for interactive screens. begin prog = mythtv button = Yellow config = F4 end # Blue = Blue button for interactive screens. begin prog = mythtv button = Blue config = F5 end # # ######################################################################### MPlayer Section ##### # "mplayer -input keylist" Prints all keys that can be bound to commands. # "mplayer -input cmdlist" Prints all commands that can be bound to keys # "man mplayer" Prints documentation for MPlayer # Show OSD begin prog = mplayer button = OK config = osd end # Pause playback begin prog = mplayer button = Pause config = pause end # If paused, resume playing begin prog = mplayer button = Play config = pause end # Stop playback and exit begin prog = mplayer button = Stop config = q end # Exit playback begin prog = mplayer button = Back config = q end # Subtitle begin prog = mplayer button = Subtitle config = sub_visibility end # Subtitle language begin prog = mplayer # button = Language button = Star config = vobsub_lang end # Audio language begin prog = mplayer button = Audio config = switch_audio end # Volume-Up begin prog = mplayer button = VolumeUp repeat = 2 config = volume +1 end # Volume-Down begin prog = mplayer button = VolumeDown repeat = 2 config = volume -1 end # Mute begin prog = mplayer button = Mute config = mute end # Seek back 60 seconds begin prog = mplayer button = Left repeat = 2 config = seek -60 end # Seek forward 60 seconds begin prog = mplayer button = Right repeat = 2 config = seek +60 end # Seek back 10 seconds begin prog = mplayer button = Rewind repeat = 2 config = seek -10 end # Seek forward 30 seconds begin prog = mplayer button = Forward repeat = 2 config = seek +30 end # Quit begin prog = mplayer button = Replay config = quit end # Seek forward 10 minutes begin prog = mplayer button = Skip repeat = 2 config = seek +600 end # Seek backward 10 minutes begin prog = mplayer button = Replay repeat = 2 config = seek -600 end # increase brightness begin button = ChannelUp prog = mplayer repeat = 2 config = brightness +1 end # decrease brightness begin button = ChannelDown prog = mplayer repeat = 2 config = brightness -1 end # Toggle full-screen #begin # prog = mplayer # button = #??????????????????????????? # repeat = 2 # config = vo_fullscreen #end ######################################################################## XINE Section ########## # For a compleate list of Xine's Lirc Keybindings use comand # xine --keymap=lirc>.lircrc.xine.keybindings # This creates a file in current directory called ".lircrc.xine.keybindings" # Note: Xine has diferent sets of keybindings for lirc and keyboard ## 01/14/2008 # xine key bindings. # Automatically generated by xine-ui version 0.99.6cvs. #<><><><><><><><><><> Xine Video Movement <><><><> # start playback begin prog = xine button = Play config = Play end # playback pause toggle begin prog = xine button = Pause config = Pause end # stop playback begin prog = xine button = Stop config = Stop end # take a snapshot #begin # prog = xine # button = Record # repeat = 2 # config = Snapshot #end begin prog = xine button = Forward repeat = 2 # delay = 1 config = SeekRelative+7 end begin prog = xine button = Rewind repeat = 2 # delay = 1 config = SeekRelative-7 end # set position to -60 seconds in current stream begin prog = xine button = Replay repeat = 2 delay = 1 config = SeekRelative-60 end # set position to +60 seconds in current stream begin prog = xine button = Skip repeat = 2 delay = 1 config = SeekRelative+60 end #<><><><><><><><><><><><>Xine Control<><><><><><><><><> # quit the program begin prog = xine button = Back config = Quit end #display stream information using OSD begin prog = xine button = More config = OSDStreamInfos end # menu navigate up begin prog = xine button = Up repeat = 2 delay = 2 config = EventUp end # menu navigate down begin prog = xine button = Down repeat = 2 delay = 2 config = EventDown end # menu navigate left begin prog = xine button = Left repeat = 2 delay = 2 config = EventLeft end # menu navigate right begin prog = xine button = Right repeat = 2 delay = 2 config = EventRight end # menu select begin prog = xine button = OK config = EventSelect end # jump to Root Menu begin prog = xine button = Start config = Menu end #<><><><><><><><><><><><><><><><><><><> Xine Volume / Channel <><><><><><><><> # increment audio volume begin prog = xine button = VolumeUp repeat = 1 config = Volume+ end # decrement audio volume begin prog = xine button = VolumeDown repeat = 1 config = Volume- end # audio muting toggle begin prog = xine button = Mute config = Mute end # increase brightness by 10 begin prog = xine button = ChannelUp config = BrightnessControl+ end # decrease brightness by 10 begin prog = xine button = ChannelDown config = BrightnessControl- end #<><><><><><><><><><><><><><><><><> Xine Menu <><><><> # unused key #begin # prog = xine # button = RecordedTV # config = ???????? #end # visibility toggle of stream info window begin prog = xine button = Guide config = SetupShow end # unused key #begin # prog = xine # button = LiveTV # config = ???????? #end # jump to Title Menu begin prog = xine button = DVDMenu config = RootMenu end #<><><><><><><><><><><><><><><><><> Xine Stream Position <><><><> # set position in current stream begin prog = xine button = Zero config = SetPosition0% end begin prog = xine button = One config = SetPosition10% end begin prog = xine button = Two config = SetPosition20% end begin prog = xine button = Three config = SetPosition30% end begin prog = xine button = Four config = SetPosition40% end begin prog = xine button = Five config = SetPosition50% end begin prog = xine button = Six config = SetPosition60% end begin prog = xine button = Seven config = SetPosition70% end begin prog = xine button = Eight config = SetPosition80% end begin prog = xine button = Nine config = SetPosition90% end #<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> # decrement playback speed (slow motion slowdown) begin prog = xine button = Star config = SpeedSlower end # increment playback speed (slow motion speedup) begin prog = xine button = Hash config = SpeedFaster end # reset playback speed begin prog = xine button = clear config = SpeedReset end # unused key #begin # prog = xine # button = clear # config = ????????? #end # set position to -30 seconds in current stream config = SeekRelative-30 # set position to +30 seconds in current stream config = SeekRelative+30 # eject the current medium config = Eject # zoom in config = ZoomIn # zoom out config = ZoomOut # fullscreen toggle config = ToggleFullscreen ## # End of xine . ## |
Author: | christ [ Wed Mar 30, 2011 7:05 pm ] |
Post subject: | |
I noticed lirc 0.9.0 just came out! |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |