LinuxMCE Forums
May 23, 2013, 08:53:16 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: Can't get MCE_USB remotes to work on 10.04 MDs  (Read 2171 times)
uplink
Administrator
Guru
*****
Posts: 183

Linux and LinuxMCE witchdoctor


View Profile
« Reply #30 on: October 10, 2011, 11:07:33 pm »

Sound like either you haven't selected the mceusb2 remote for your MD (Media Directors page in the admin website) or LIRC_DCE didn't execute even once to create /etc/lirc/lircd.conf - that's why irw doesn't display anything. Check /etc/lirc/lircd.conf to see what's in it.

This being LinuxMCE, there's also a chance the system should have created the mceusb2 device using PnP, but do check.
Logged
fibres
Guru
****
Posts: 306


View Profile WWW
« Reply #31 on: October 10, 2011, 11:35:40 pm »

Ok interesting.

I seem to have 2 versions of mce_usb2 in the Infrared_Receivers part of my webadmin.

I have selected the second version. I still get nothing when booting the core.

However if I mannually create the /var/run/lirc folder and quick reload router my MCE remote sort of works.

The only issue is that it picks up multiple key presses. So it is impossible to control properly but pressing buttons does do things.

BTW /etc/lirc/lircd.conf does contain the config for my remote.

Regards
Logged
fibres
Guru
****
Posts: 306


View Profile WWW
« Reply #32 on: October 10, 2011, 11:53:44 pm »

Ok getting further.

I looked at /etc/lirc/hardware.conf and it had REMOTE="None" which I changed to REMOTE="mceusb"
Also further down START_LIRCD="false" to "true"

Rebooted and lircd loads without issue and the remote works perfect.

Not sure why those configs were not being set correctly, I will leave that for people with more knowledge than me.

I dont even know if this is the cause of others problems.

Regards
Logged
uplink
Administrator
Guru
*****
Posts: 183

Linux and LinuxMCE witchdoctor


View Profile
« Reply #33 on: October 11, 2011, 12:17:04 am »

LIRC_DCE is supposed to write /etc/lirc/lircd.conf and start lirc, not Ubuntu. In Dianemo, hardware.conf isn't touched at all, so Ubuntu doesn't start lirc during its boot process. This should be the same in LinuxMCE.
Logged
fibres
Guru
****
Posts: 306


View Profile WWW
« Reply #34 on: October 11, 2011, 12:31:41 am »

Ok. So something is stopping LIRC_DCE from loading lircd.

Although there is a lirc startup script in /etc/init.d which is called from /etc/rc.3

Not sure if it is supposed to be this starting lirc.

So where do we go now in terms of debgging?

Regards
Logged
uplink
Administrator
Guru
*****
Posts: 183

Linux and LinuxMCE witchdoctor


View Profile
« Reply #35 on: October 11, 2011, 02:03:17 am »

The init script will see the START_LIRCD="false" and do nothing.

There are a few things to check:

* is LIRC_DCE running?
* if LIRC_DCE is running, check the logs for these messages:

Code:
Added remote %s device %d layout %c
and
Code:
There are no remote controls -- LIRC will be dormant

If you see the second message, you don't have a remote control setup in lmce-admin. You'll need to set one up. Normally, with a device of the "mce_usb2" template you also get a sibling device of the "Windows XP MC Remote" template.

When LIRC_DCE logs "Added remote", it found one of these sibling devices.

* if LIRC_DCE isn't running, you need to find out why: do you have a mce_usb2 device?, is the "Disabled" box unticked for the device?

Notice that, unless things were changed since I last looked in LinuxMCE, you still have to select "mce_usb2" device (i.e. not "mce_usb", nor the "mce_usb2 (MS)"). LIRC merged mceusb and mceusb2 back into a single driver (which my patch addresses), but LinuxMCE still knows about the old, split, drivers.

Please make sure you comment out the LogLevels line in /etc/pluto.conf so you get verbose logging. You need to reload the router after you make this change.
Logged
fibres
Guru
****
Posts: 306


View Profile WWW
« Reply #36 on: October 11, 2011, 08:44:21 pm »

Hi Uplink.

I have 2 different options for mce_usb2 in the web admin. When one is selected nothing works. When the other is selected and I enable the init script to load lirc it works.

LIRC_DCE is running and I have a remote device in my webadmin.

Where are the logs I should be looking at?

Regards
Logged
uplink
Administrator
Guru
*****
Posts: 183

Linux and LinuxMCE witchdoctor


View Profile
« Reply #37 on: October 11, 2011, 09:28:08 pm »

The logs are in /var/log/pluto and the log file will be named <DeviceNumber>_LIRC_DCE.log
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!