Kodi Community Forum

Full Version: Remote Control just stopped to work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was running XBMC Dharma on my Shuttle XS35GT. I then update to XBMC Eden. Everything worked. Then after a few days when the movie I was looking at was ended my MCE Remote didn’t work.
First I thought the battery was bad. I change them. Still doesn’t work. When I press on a button I can see on the IR receiver that receives my desperate presses. Changed USB-port. Still nothing. If I connect a USB thumdrive that will pop-up so nothing wrong with the USB-ports. I connected the IR-Receiver to my Windows computer and installed XBMC there. Here the remote works. So no hardware error with the remote.
After thinking a few days I just reinstalled my Shuttle XS35GT with the latest XBMCbuntu. Ahhh but still the remote doesn’t work.
I have followed this guide to make the sound work over HDMI on my Shuttle
http://breden.org.uk/2011/01/15/shuttle-...ve-dharma/
This is my Remote control (I think, look just like it)
http://www.mythtv.org/wiki/File:MCE-Remote-2-v1069.jpg

Unfortunately I’m not a Linux guy but I’m trying.. this is what I have done to check things out..
If I run “lsusb” I get…
Code:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 0609:0334 SMK Manufacturing, Inc. eHome Infrared Receiver

cat /proc/bus/input/devices gives me…
Code:
I: Bus=0003 Vendor=0609 Product=0334 Version=0100
N: Name="Media Center Ed. eHome Infrared Remote Transceiver (0609:0334)"
P: Phys=usb-0000:00:1d.3-2
S: Sysfs=/devices/pci0000:00/0000:00:1d.3/usb5/5-2/5-2:1.0/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=100013
B: KEY=fff 0 0 200 108fc32e 2376051 0 0 0 7 158000 4192 1 9e9680 0 0 10000000
B: MSC=10

lsmod | grep lirc gives me...
Code:
ir_lirc_codec          12770  3
lirc_dev               18700  1 ir_lirc_codec
rc_core                25797  9 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,rc_rc6_mce,ir_nec_decoder,mceusb

My /etc/lirc/hardware.conf looks like this…
Code:
#Chosen Remote Control
REMOTE="Windows Media Center Remotes (new version Philips et al.)"

REMOTE_MODULES="lirc_dev lirc_mceusb2"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS=""
#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=""

My /etc/lirc/lircd.conf looks like this...
Code:
#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 Windows Media Center Remotes (new version Philips et al.) remote:
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"



Don’t know if it’s needed to post the /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb because it’s fairly long text.

But what should I do next. Right now I’m using my android phone with the XBMC remote but it’s not the same thing. Need this baby up and running.
Hi, Let me first say, I don't know anything about WMC remotes Smile In your hardware.conf you have remote modules "lirc_dev lirc_mceusb2" I would expect to see them both with lsmod but there doesn't seem to be a lirc_mceusb2.

What happens if you try to restart lirc?
Code:
sudo service lirc restart
Does it fail to load modules? If not type/run 'irw' in terminal, try the remote, any output?
Hi..
I bought this remote because it should work out of the box in Linux and it did. Have been using it for .. humm well over 1 year. Oh well..

When I tested sudo service lirc restart it gave me...
Code:
* Stopping remote control daemon(s): LIRC                               [ OK ]
* Loading LIRC modules                                                  [ OK ]
* Unable to load LIRC kernel modules. Verify your
* selected kernel modules in /etc/lirc/hardware.conf

When typing "irw" I get "Connection refused"
I would backup my /etc/lirc/ config files and do
Code:
sudo dpkg reconfigure lirc

Also check the wiki there's lots of info on MCE remotes.
Humm.. okay. Just did an sudo dpkg-reconfigure lirc
Then I rebooted the machine. Did not work. I then tried sudo service lirc again and now it says..
Code:
* Stopping remote control daemon(s): LIRC                               [ OK ]
* Loading LIRC modules                                                  [ OK ]
* Starting remote control daemon(s) : LIRC                              [ OK ]
3 OK's, one more than the last time.
I then started 'irw' and now it's recognize when I press the buttons. Like below
Code:
000000037ff05bde 00 Right mceusb_hauppauge
000000037ff05bde 01 Right mceusb_hauppauge
000000037ff05be0 00 Down mceusb_hauppauge
000000037ff05be0 01 Down mceusb_hauppauge
000000037ff05be1 00 Up mceusb_hauppauge
000000037ff05be1 01 Up mceusb_hauppauge

But still.. nothing happens in XBMC. I think you are closing into it
Check the file ~/.xbmc/userdata/Lircmap.xml

The top of mine reads:

Code:
<lircmap>
        <remote device="mceusb">

Going by your IRW, yours should be:

Code:
<lircmap>
        <remote device="mceusb_hauppauge">
I didn't have the file Lircmap.xml under /home/xbmc/.xbmc/userdata (that is the right place I guess?)
But anyway I created the file with this code below
Code:
<lircmap>
       <remote device="mceusb_hauppauge">
               <XBMC_button>LIRC_button</XBMC_button>
               ...
       </remote>
  </lircmap>

But still nothing...
Try this, copy the mceusb portion of /usr/share/xbmc/system/Lircmap.xml to your .xbmc/userdata/Lircmap.xml but keep the <remote device="mceusb_hauppauge">.
After installing a fresh copy of xbmcbuntu on my Revo the same thing happened to me. I have the standard mce IR receiver that everyone uses. I plugged the receiver into my other pc running xbmcbuntu and it worked fine.
(2012-04-09, 13:26)divingmule Wrote: [ -> ]Try this, copy the mceusb portion of /usr/share/xbmc/system/Lircmap.xml to your .xbmc/userdata/Lircmap.xml but keep the <remote device="mceusb_hauppauge">.

Aha.. after doing this and then Lorewin's check once again..(after the copy I had to rename "mceusb" to "mceusb_hauppauge" )
Quote:Check the file ~/.xbmc/userdata/Lircmap.xml

The top of mine reads:
code
<lircmap>
<remote device="mceusb">

Going by your IRW, yours should be:

code:
<lircmap>
<remote device="mceusb_hauppauge">

You know what.. it works!!! Big Grin
But still. Don't get it. Just stopped worked all the sudden! Should it be this hard?!

Anywho... all you guys that helped me Many thanks!!
I'm pretty sure that ~/.xbmc/userdata/Lircmap.xml has been renamed in Eden and should now be found here ~/.xbmc/userdata/keymaps/remote.xml
At least that is what this thread suggests.
(2012-04-10, 16:16)SwedishGojira Wrote: [ -> ]I'm pretty sure that ~/.xbmc/userdata/Lircmap.xml has been renamed in Eden and should now be found here ~/.xbmc/userdata/keymaps/remote.xml
At least that is what this thread suggests.

No - you didn't read your link correctly.

Lircmap.xml maps the lirc key presses (as shown by irw) to names. remote.xml (which used to be called Keymap.xml as per your link) maps those names to xbmc functions or inputs (i.e. play, enter, run script).

Two different files, two different (though complementary) functions.

I'm not sure if it's changes to Ubuntu/lirc or changes in Eden, or a combination of the two, but issues with remotes breaking on the upgrade seem quite common. Hopefully this thread (dpkg-reconfigure lirc, editing/recreating a custom Lircmap.xml) will help people out. Smile
(2012-04-10, 23:41)Lorewin Wrote: [ -> ]No - you didn't read your link correctly.

SorryConfused You're absolutely right. I have to stop commenting when I'm too tired to think...