Kodi Community Forum

Full Version: Dharma Beta 3 and mce remote
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
XBMC Live Beta 3 running on acer revo

My remote has suddenly stopped working after installing beta 3

Its one of these:
http://www.binbin.net/photos/generic/win...emote-.jpg
I plugged it into my windows 7 laptop and used intelliremote to check if its working and its fine
Anyone else have issues?
Anyone any suggestions?
Here are some conf files.
irw is blank


Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="mceusb"
REMOTE_MODULES="lirc_dev lirc_mceusb"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="/etc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="Custom"
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=""

#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=""
REMOTE_SOCKET=""
TRANSMITTER_SOCKET=""

lircd.conf
Code:
begin remote

  name        mceusb
  bits                 16
  flags  RC6|CONST_LENGTH
  eps                  30
  aeps                100

  header       2667   889
  one           444   444
  zero          444   444
  pre_data_bits        21
  pre_data        0x37FF0
  gap              105000
  toggle_bit           22
  rc6_mask    0x100000000

lsusb
Code:
Bus 002 Device 002: ID 147a:e017 Formosa Industrial Computing, Inc. eHome Infrared Receiver
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
Check if the file "/dev/lirc0" exists or any other /dev/lircN device with N being a number. If it does use ...

Code:
mode2 -d /dev/lirc0

... and press some buttons on your remote. If you do get output from mode2, your hardware driver is fine and LIRC should work if you use the right lircd.conf file. If mode2 does not output anything or if you don't find any /dev/lircN devices, your hardware driver is not loaded, not properly configured or just broken.
Thank you.

I tried
Code:
mode2 -d /dev/lirc0

And am getting responses from the remote
space 450
pulse 450

so my lircd.conf is wrong?

What do I change?
jabba200 Wrote:so my lircd.conf is wrong?

Yes, if mode2 works and irw does not, then your lircd.conf is wrong or your lirc daemon is not running at all. Your hardware.conf looks good, as it lists /dev/lirc0 as input device. Therefore the LIRC service is probably running.

Quote:What do I change?

Well, you have to find a lircd.conf for your remote. The one you posted above looks a bit short. It has no button definitions at all.

If you don't find a lircd.conf for your remote, you can always use the command line tool "irrecord" to create a custom one.
Thanks again, really appreciatedBig Grin
The reason the lircd.conf is short is that I was following this guide:
http://wiki.xbmc.org/index.php?title=HOW...lk_to_XBMC
It states:
Delete the lines between begin codes and end codes.
I was looking at this today
https://help.ubuntu.com/community/Instal...%20remotes

It talks about adding files to lirc_mceusb2. I only have lirc_mceusb (think they were merged?)
I opened that and my remote id 0xe017 is already listed.

I have attempted to use irrecord but cannot get it to work.
I think its because I dont know which driver to specify?
Anything else I can check?
Thank you again for the support
jabba200 Wrote:http://wiki.xbmc.org/index.php?title=HOW...lk_to_XBMC
It states:
Delete the lines between begin codes and end codes.

Deleting the lines between begin codes and end codes is just plain wrong. The lircd.conf maps incoming IR-codes to button names. If you delete the lines between "begin codes" and "end codes" then you have configured a remote without any buttons.

If you find your remote in "/usr/share/lirc/remotes" then just copy the file to /etc/lirc/lircd.conf and restart lirc using...

Code:
sudo service lirc restart

After that "irw" should work. If it does not, you didn't copy the correct remote file.


Quote:I was looking at this today
https://help.ubuntu.com/community/Instal...%20remotes

It talks about adding files to lirc_mceusb2. I only have lirc_mceusb (think they were merged?)
I opened that and my remote id 0xe017 is already listed.

Don't mess with your LIRC installation. Your LIRC installation is fine, as "mode2" works. Only your LIRC configuration is wrong. As long as "mode2" works, it's just a matter of configuring the correct remote.

Quote:I have attempted to use irrecord but cannot get it to work.
I think its because I dont know which driver to specify?

You should first search the forums for someone who has exactly your remote (if you didn't find it in /usr/share/lirc/remotes/) and try his lircd.conf file. If you really can't find anyone who has your remote, then you can use irrecord like this:

Code:
## stop the lirc service as we need exclusive access to the input device
sudo service lirc stop

## make sure the driver was not unloaded
ls -l /dev/lirc0

## if /dev/lirc0 does no longer exist, load it
sudo modprobe lirc_mceusb

## do we have a device now?
ls -l /dev/lirc0

## device exists? continue with irrecord
sudo irrecord -d /dev/lirc0 mylircd.conf

## follow the instructions on the screen

## copy new lircd.conf file
sudo cp mylircd.conf /etc/lirc/lircd.conf

## restart lirc
sudo service lirc restart

## test irw
sudo irw


First irrecord wants you to press some random buttons. After that you have to press each button on your remote and enter a name for it. Use simple names without any spaces, like i.e. "PLAY" or "FFWD". When you are finished, irrecord creates the file mylircd.conf (or whatever name you specified).
Making progress Big Grin

I got as far as

Code:
sudo cp mylircd.conf /etc/lirc/lircd.conf

and i get

Code:
cannot stat `mylircd.conf': No such file or directory

Where is it saved to?
I have looked everywhere to no avail

Im logged in as root

Thanks again
jabba200 Wrote:
Code:
cannot stat `mylircd.conf': No such file or directory

Where is it saved to?
I have looked everywhere to no avail

Just checked the manpage from irrecord:
Quote:The name of the new file is created by appending .conf to the given filename...

So if you used "irrecord -d /dev/lirc0 mylircd.conf" then the file is named "mylircd.conf.conf" and you can find it in the directory where you started irrecord from. You should also check your home directory /home/user/ and the /root directory.
I used

irrecord -d /dev/lirc0 mylircd.conf

I even changed the directory before I ran it. no dice.

Its not in the folder I ran irrecord from, not in the home folder and not in the root dir.

Pity, we are so close, I can smell it.
jabba200 Wrote:I used

irrecord -d /dev/lirc0 mylircd.conf

I even changed the directory before I ran it. no dice.

Its not in the folder I ran irrecord from, not in the home folder and not in the root dir.

Pity, we are so close, I can smell it.

Hmm, did you exit irrecord properly? Last time I used it was years ago, so I'm not sure how to do it. You have to follow the instructions on the screen closely, as they tell you how to exit the program so that it writes the configuration file.

For me it looks like you are aborting irrecord and that's why it does not write the configuration file. Pressing Ctrl-C for example is not the right way to exit irrecord.
Thanks, Ill attempt it again tomorrow.
Ok,

Irw is now working
I reinstalled lirc
I rebooted the revo and all is working.

Thanks for your help
Big GrinBig GrinBig Grin