[LIVE] XBMC ignores LIRC Commands
#1
Hi there,

i know there have been several threads about this issue but none of them could solve my problem. So sorry for this new thread.

Everytime i press a button on my remote i get this message from xbmc:
16:15:48 T:3054008192 M:1953812480 DEBUG: LIRC: Update - NEW at 164948:00000014f41f0000 00 Right Medion_MD8800 (Right)

IRW works. Every button is recognized.

Here is my Hardware.conf (/etc/lirc/hardware.conf)
#Chosen Remote Control
REMOTE="ATI/NVidia/X10 RF Remote (userspace)"
REMOTE_MODULES=""
REMOTE_DRIVER="atilibusb"
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atilibusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
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=""


And the lircd.conf (/etc/lirc/lircd.conf):
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the ATI/NVidia/X10 RF Remote (userspace) remote:
include "/usr/share/lirc/remotes/atiusb/lircd.conf.atilibusb"


The include /usr/share/lirc/remotes/atiusb/lircd.conf.atilibusb file:
#
# this config file was automatically generated
# using lirc-0.8.2(atilibusb) on Sat Jun 30 23:20:59 2007
#
# contributed by
#
# brand: Medion
# model no. of remote control: MD8800
# devices being controlled by this remote: Medion X10 MD8800
#

begin remote

name Medion_MD8800
bits 16
eps 30
aeps 100

one 0 0
zero 0 0
pre_data_bits 8
pre_data 0x14
post_data_bits 16
post_data 0x0
gap 139995
min_repeat 2
toggle_bit_mask 0x80800000

begin codes
Live_TV 0xF11C
Photo 0x5A85
DVD_Menu 0xD904
Rec_TV 0x6D98
Music 0xDB06
Video 0x82AD
Audio 0x0732
Title 0x8AB5
Angle 0x0934
Subtitle 0x88B3
Power 0xD702
Guide 0x86B1
Text 0xEB16
Up 0x6F9A
Down 0xF722
Left 0x729D
Right 0xF41F
Vol_Up 0x5E89
Vol_Down 0xDD08
OK 0x739E
Mute 0xD500
Prog_Up 0x608B
Prog_Down 0xE10C
1 0x628D
2 0xE30E
3 0x648F
4 0xE510
5 0x6691
6 0xE712
7 0x6893
8 0xE914
9 0x6A95
0 0xEC17
D* 0x8CB7
D# 0x0D38
World 0x709B
Back 0xF520
Info 0x84AF
Rewind 0xF924
Play 0x7AA5
Forward 0xFB26
Pause 0x7EA9
Prev 0xF621
Next 0x78A3
Stop 0xFD28
Rec 0x7CA7
end codes

end remote

My lircmap.xml (~/.xbmc/userdata/Lircmap.xml) i just tried to get this 4 keys to working.
<lircmap>
<remote device="Medion_MD8800">
<left>Left</left>
<right>Right>/right>
<up>Up</up>
<down>Down</down>
</remote>
</lircmap>

And finally the remote.xml (~/.xbmc/userdata/keymaps/remote.xml)
<keymap>
<global>
<remote>
<play>Play</play>
<pause>Pause</pause>
<stop>Stop</stop>
<forward>FastForward</forward>
<reverse>Rewind</reverse>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>Select</select>
<enter>FullScreen</enter>
<pageplus>PageUp</pageplus>
<pageminus>PageDown</pageminus>
<back>ParentDir</back>
<menu>PreviousMenu</menu>
<title>ContextMenu</title>
<info>Info</info>
<skipplus>SkipNext</skipplus>
<skipminus>SkipPrevious</skipminus>
<display>FullScreen</display>
<start>PreviousMenu</start>
<record>Screenshot</record>
<volumeplus>VolumeUp</volumeplus>
<volumeminus>VolumeDown</volumeminus>
<mute>Mute</mute>
<power>XBMC.ShutDown()</power>
<myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
<mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
<mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
<mytv>XBMC.ActivateWindow(VideoLibrary,TvShows)</mytv>
<red>XBMC.ActivateWindow(Home)</red>
<green>XBMC.ActivateWindow(MyVideos)</green>
<yellow>XBMC.ActivateWindow(MyMusic)</yellow>
<blue>XBMC.ActivateWindow(MyPictures)</blue>
<zero>Number0</zero>
<one>Number1</one>
<two>JumpSMS2</two>
<three>JumpSMS3</three>
<four>JumpSMS4</four>
<five>JumpSMS5</five>
<six>JumpSMS6</six>
<seven>JumpSMS7</seven>
<eight>JumpSMS8</eight>
<nine>JumpSMS9</nine>
</remote>
</global>
<Home>
<remote>
<info>XBMC.ActivateWindow(SystemInfo)</info>
<clear>XBMC.ActivateWindow(Weather)</clear>
<hash>XBMC.ActivateWindow(Settings)</hash>
</remote>
</Home>
<MyFiles>
<remote>
<clear>Delete</clear>
<zero>Highlight</zero>
<star>Move</star>
<hash>Rename</hash>
</remote>
</MyFiles>
<MyMusicPlaylist>
<remote>
<back>Playlist</back> <!-- Close playlist -->
<clear>Delete</clear>
<zero>Delete</zero>
</remote>
</MyMusicPlaylist>
<MyMusicPlaylistEditor>
<remote>
<zero>Queue</zero>
</remote>
</MyMusicPlaylistEditor>
<MyMusicFiles>
<remote>
<zero>Queue</zero>
<star>Queue</star>
</remote>
</MyMusicFiles>

If you need any further information feel free to ask Wink.

I have absolutely no idea whats wrong.

Thanks in advance

Cheers

regents
Reply
#2
First thing is to use irw to verify that your keypresses are showing the desired key name. You say that is so. Good.

After that, make sure the socket file that your lircd is using matches what xbmc is using. Accorind to the xbmc.bin help, the default is /dev/lircd. According to the aforementioned irw page, it will listen on /var/run/lirc/lircd by default.

So, how are you running irw, and what socket is it using? Is it the same as what xbmc is using?
ASRock ION 330
Ubuntu 11.10 x86_64 minimal install
xbmc from unstable ppa
Reply
#3
For irw i just typed in "irw" are there some options? How do i find out, which the default options are?
Reply
#4
Well, it really depends on how irw was built on whatever distro you're using.

See if there is a file /dev/lircd or /var/run/lirc/lircd like this:

ls -l /dev/lircd /var/run/lirc/lircd

Post results.
ASRock ION 330
Ubuntu 11.10 x86_64 minimal install
xbmc from unstable ppa
Reply
#5
My results

lrwxrwxrwx 1 root root 19 2011-02-26 16:11 /dev/lircd -> /var/run/lirc/lircd
srw-rw-rw- 1 root root 0 2011-02-26 16:11 /var/run/lirc/lircd

I think xbmc and irw have to use the same socket. I can see buttons presses in the xbmc log and i see the button presses in irw. Or am i wrong?
Reply
#6
That's interesting. /dev/lircd is a symbolic link to /var/run/lirc/lircd, so it should be working when xbmc tries to read that.
ASRock ION 330
Ubuntu 11.10 x86_64 minimal install
xbmc from unstable ppa
Reply
#7
Mh... So XBMC gets the LIRC Events... What can i do now?

Do you need my System Specs?

I've got an Acer Revo 3700. And just installed XBMCLive on the system. Done an apt-get update and upgrade.

Do you need any further information?
Reply
#8
If irw works, I don't see that your system specs would matter. I am rather out of ideas at this point.

Turn on debug logging and run this command from a terminal while pressing the mapped keys:

tail -f ~/.xbmc/temp/xbmc.log (ctrl+c to kill)

See what is shows when you press these keys.
ASRock ION 330
Ubuntu 11.10 x86_64 minimal install
xbmc from unstable ppa
Reply
#9
I've got this messages (same as in first post). The button presses arrives xbmc but xbmc ignores them....


22:43:10 T:3079362432 M:1860726784 DEBUG: LIRC: Update - NEW at 18326387:000000146f9a0000 00 Up Medion_MD8800 (Up)
22:43:10 T:3079362432 M:1860726784 DEBUG: LIRC: Update - NEW at 18327269:00000014f41f0000 00 Right Medion_MD8800 (Right)
22:43:11 T:3079362432 M:1860726784 DEBUG: LIRC: Update - NEW at 18327787:00000014f7220000 00 Down Medion_MD8800 (Down)
22:43:13 T:3079362432 M:1860726784 DEBUG: LIRC: Update - NEW at 18329787:000000146f9a0000 00 Up Medion_MD8800 (Up)
22:43:13 T:3079362432 M:1860726784 DEBUG: LIRC: Update - NEW at 18330219:00000014729d0000 00 Left Medion_MD8800 (Left)
22:43:14 T:3079362432 M:1860726784 DEBUG: LIRC: Update - NEW at 18331019:00000014f41f0000 00 Right Medion_MD8800 (Right)
22:43:15 T:3079362432 M:1860726784 DEBUG: LIRC: Update - NEW at 18331870:00000014f7220000 00 Down Medion_MD8800 (Down)
22:43:16 T:3079362432 M:1860730880 DEBUG: LIRC: Update - NEW at 18332386:00000014729d0000 00 Left Medion_MD8800 (Left)
22:43:16 T:3039820656 M:1860730880 DEBUG: PVR: Updating Radio Channel list
22:43:17 T:3079362432 M:1860730880 DEBUG: LIRC: Update - NEW at 18333536:00000014f7220000 00 Down Medion_MD8800 (Down)
Reply
#10
Cut and paste your logs into http://www.pastebin.com. That will make the thread easier to read and you can post the whole logs. A good idea particularly for your xbmc.log since it will show what config files are being loaded.

Try renaming the "global" remote associated files so that xbmc doesn't read them.

sudo mv /usr/share/xbmc/system/Lircmap.xml /usr/share/xbmc/system/Lircmap.xml.old
sudo mv /usr/share/xbmc/system/keymaps/remote.xml /usr/share/xbmc/system/keymaps/remote.xml.old
Reply

Logout Mark Read Team Forum Stats Members Help
[LIVE] XBMC ignores LIRC Commands0