Problem: Configuration remote.xml
|
21st Dec, 2012, 12:25 AM
Post: #31
|
|||
|
|||
RE: Configuration remote.xml
Please restart lirc when overwriting the hardware.conf
pilight - modular domotica solution
|
|||
21st Dec, 2012, 12:35 AM
Post: #32
|
|||
|
|||
RE: Configuration remote.xml
Same.
Code: root@xbian:/home/xbian# sudo wget -O - https://raw.github.com/xbianonpi/xbian/xbian-alpha4/etc/lirc/hardware/mceusb_event0.conf > /etc/lirc/hardware.conf |
|||
21st Dec, 2012, 12:38 AM
Post: #33
|
|||
|
|||
RE: Configuration remote.xml
What does this say:
Code: ls -Al /dev/lirc* pilight - modular domotica solution
|
|||
21st Dec, 2012, 12:39 AM
Post: #34
|
|||
|
|||
RE: Configuration remote.xml
Code: root@xbian:/home/xbian# ls -Al /dev/lirc* |
|||
21st Dec, 2012, 12:42 AM
Post: #35
|
|||
|
|||
RE: Configuration remote.xml
and
Code: ls -Al /dev/input/ pilight - modular domotica solution
|
|||
21st Dec, 2012, 12:43 AM
Post: #36
|
|||
|
|||
RE: Configuration remote.xml
Code: root@xbian:/home/xbian# ls -Al /dev/input/ |
|||
21st Dec, 2012, 12:58 AM
Post: #37
|
|||
|
|||
RE: Configuration remote.xml
Can you try those hardware.conf again but change these two variables:
Code: MODULES="" Instead of the values already present If this doesn't work, enable debug mode in XBMC, then check the log: Code: tail -n 10 -f /home/xbian/.xbmc/temp/xbmc.log And post some output when pressing keys. pilight - modular domotica solution
|
|||
21st Dec, 2012, 01:03 AM
Post: #38
|
|||
|
|||
RE: Configuration remote.xml
I actually dont have a server arrount to upload it, I also dont know how to open and save these files over ssh.
Code: MODULES="" Can you do the changes and upload it at Github? |
|||
21st Dec, 2012, 01:05 AM
Post: #39
|
|||
|
|||
RE: Configuration remote.xml
I said to change the values in the previously suggested hardware.conf instead of adding them. Now you have them double defined.
pilight - modular domotica solution
|
|||
21st Dec, 2012, 01:26 AM
Post: #40
|
|||
|
|||
RE: Configuration remote.xml
there is only one hardware.conf in the folder
Code: root@xbian:/home/xbian# cd /etc/lirc/ You did sugesst this two. (21st Dec, 2012 12:05 AM)CurlyMo Wrote: Can you try with this hardware.conf: i dont know what do u want from me? Should I change the code in this two and try it then again or what? |
|||
21st Dec, 2012, 05:33 AM
Post: #41
|
|||
|
|||
RE: Configuration remote.xml
If you look at your latest hardware.conf content, you see you have defined MODULES 2x and DRIVER 2x, just replace the values of both the hardware.conf i suggested on git with:
Code: MODULES="" Example: Code: # /etc/lirc/hardware.conf And i also asked: If this doesn't work, enable debug mode in XBMC, then check the log: Code: tail -n 10 -f /home/xbian/.xbmc/temp/xbmc.log And post some output when pressing keys. pilight - modular domotica solution
|
|||
22nd Dec, 2012, 01:03 AM
Post: #42
|
|||
|
|||
RE: Configuration remote.xml
I also read that you maybe need the 'ir_rc6_decoder' or the 'imon' module.
Try it and post any output (of each step) when present: Code: sudo /etc/init.d/lirc stop The reason why i'm asking for the XBMC log is because these 'unofficial' remotes can present themselves as 'keyboards' simulating keypresses instead of remote buttons. If so, Lirc won't work and we need to take another direction (which i already have done some times before). pilight - modular domotica solution
|
|||
23rd Dec, 2012, 07:26 AM
Post: #43
|
|||
|
|||
RE: Configuration remote.xml
Edited the hardware.conf as suggested by your example, restart lircd -> no change.
Output from suggested commands: Code: root@xbian:/home/xbian/.xbmc/temp# /etc/init.d/lirc stop Code: root@xbian:/home/xbian/.xbmc/temp# tail -20 xbmc.log |
|||
23rd Dec, 2012, 10:35 AM
Post: #44
|
|||
|
|||
RE: Configuration remote.xml
Owk, just as i expected. Most probably the remote acts as a keyboard. What you have to do now it as follows:
Follow the xbmc log. Press all keys and make a list of the names that the key is recognized at. These can be really unlogical as you can see in my example below (of another Chinese remote). Code: tail -f xbmc.log | grep 'OnKey\|Scancode' Now open the standard keyboard.xml located here: Code: /usr/local/share/xbmc/system/keymaps/keyboard.xml What you have to do is create a custom keyboard.xml for yourself. You can put that file in: Code: /home/xbian/.xbmc/userdata/keymaps/ If that folder doesn't exist, create it. What you do is mapping your keys to XBMC functions. In my case, the volumedown button presented itself as 'f14'. So i then searched for a function called volume down and saw it was called 'VolumeDown'. So the entry is: Code: <f14>VolumeDown</f14> Do this for all buttons of your remote. Constantly check for the right function names in the keyboard.xml. If you see a log entry like this: Code: 22:25:48 T:3042435072 DEBUG: OnKey: ctrl-alt-at (f085) pressed, action is Then you can see the name of that button is 'ctrl-alt-at' (?), you then add something like this: Code: <at mod="ctrl,alt">XBMC.ActivateWindow(Video,MovieTitles)</at> --Unsure about this part, but try it-- If thing naming doesn't work, you can also define buttons by their id. As far as i remembered take this number (6d) and convert it from hexadecimal to decimal (can be done with calculator in windows). You will then see that 6d represents the number 109 (or use 119, not sure). Code: 22:25:48 T:3042435072 DEBUG: Keyboard: scancode: 6d, sym: 0119, unicode: 0000, modifier: 0 Then add this key as follows: Code: <key id="109">Info</key> My example of my old Chinese remote Code: <keymap> Feel free to ask many more questions, and please share the final remote.xml with us. pilight - modular domotica solution
|
|||
27th Dec, 2012, 05:10 AM
Post: #45
|
|||
|
|||
RE: Configuration remote.xml
I don't mean to hijack the thread but I have a somewhat similar problem, but different still. I use my tv remote thru hdmi cec. Some buttons work and some don't. Is there a guide to mapping this type of remote? The button I need the most is context menu. Enter/OK works. Exit works. Up down left right works. Play pause stop rw fw works (I think).
|
|||
« Next Oldest | Next Newest »
|