Author Topic: Can't get MCE_USB remotes to work on 10.04 MDs  (Read 3287 times)

uplink

  • Administrator
  • Guru
  • *****
  • Posts: 191
  • Linux and LinuxMCE witchdoctor
    • View Profile
Re: Can't get MCE_USB remotes to work on 10.04 MDs
« Reply #30 on: October 11, 2011, 12:07:33 am »
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.

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Can't get MCE_USB remotes to work on 10.04 MDs
« Reply #31 on: October 11, 2011, 12:35:40 am »
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

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Can't get MCE_USB remotes to work on 10.04 MDs
« Reply #32 on: October 11, 2011, 12:53:44 am »
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

uplink

  • Administrator
  • Guru
  • *****
  • Posts: 191
  • Linux and LinuxMCE witchdoctor
    • View Profile
Re: Can't get MCE_USB remotes to work on 10.04 MDs
« Reply #33 on: October 11, 2011, 01: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.

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Can't get MCE_USB remotes to work on 10.04 MDs
« Reply #34 on: October 11, 2011, 01: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

uplink

  • Administrator
  • Guru
  • *****
  • Posts: 191
  • Linux and LinuxMCE witchdoctor
    • View Profile
Re: Can't get MCE_USB remotes to work on 10.04 MDs
« Reply #35 on: October 11, 2011, 03: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: [Select]
Added remote %s device %d layout %cand
Code: [Select]
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.

fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: Can't get MCE_USB remotes to work on 10.04 MDs
« Reply #36 on: October 11, 2011, 09: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

uplink

  • Administrator
  • Guru
  • *****
  • Posts: 191
  • Linux and LinuxMCE witchdoctor
    • View Profile
Re: Can't get MCE_USB remotes to work on 10.04 MDs
« Reply #37 on: October 11, 2011, 10:28:08 pm »
The logs are in /var/log/pluto and the log file will be named <DeviceNumber>_LIRC_DCE.log