LinuxMCE Forums

General => Users => Topic started by: kyfalcon on September 27, 2011, 07:16:08 pm

Title: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on September 27, 2011, 07:16:08 pm
Can't get my remotes to work on my 10.04 MDs. Anybody have any tricks?

Thanks,
Kevin
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on September 27, 2011, 10:05:29 pm
Interesting.
I have had the same issue.
I had not bothered looking into it too far as having a couple of other issues that are more important at moment!

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: tschak909 on September 28, 2011, 07:19:49 am
is the LIRC_DCE process running?

-Thom
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on September 28, 2011, 04:55:16 pm
I'll have to check when I get home. I am assuming this will be in the DCERouter log?

Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: tschak909 on September 28, 2011, 05:08:32 pm
look for the running process with ps auwwx

-Thom
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on September 28, 2011, 05:31:19 pm
gotcha thanks!
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on September 28, 2011, 07:00:51 pm
I have just reinstalled my core. I will connect the mce_usb and check then. Ill have a look later this evening when I get back from work.

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on September 28, 2011, 11:55:17 pm
Hey Thom it is not running. How do I get it running. I have set it up in the web admin

Thx,
Kevin
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: tschak909 on September 29, 2011, 12:38:45 am
is it installed?

If not, the pluto-lirc-wrapper package needs to be installed.

-Thom
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on September 29, 2011, 01:24:27 am
Ok

Just tried apt-get install pluto-lirc-wrapper and got the following error


Failed to fetch http://deb.linuxmce.org/ubuntu/dists/lucid/beta2/binary-i386/lirc_0.8.6-0ubuntu4.2+lmce1_i386.deb  Size mismatch
Failed to fetch http://deb.linuxmce.org/ubuntu/dists/lucid/beta2/binary-i386/lirc-modules-source_0.8.6-0ubuntu4.2+lmce1_all.deb  Size mismatch
Failed to fetch http://deb.linuxmce.org/ubuntu/dists/lucid/beta2/binary-i386/lirc-pluto_0.1.1_all.deb  Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Did apt-get update and then run apt-get install pluto-lirc-wrapper and seems to be installing now!


I now have the following output

joe@dcerouter:~$ ps ax | grep LIRC
 7147 ?        Ss     0:00 /usr/bin/SCREEN -d -m -S mce_usb257 /usr/pluto/bin/Spawn_Device.sh 57 localhost LIRC_DCE
 7149 pts/17   Ss+    0:00 /bin/bash /usr/pluto/bin/Spawn_Device.sh 57 localhost LIRC_DCE
19474 pts/17   Sl+    0:00 /usr/pluto/bin/LIRC_DCE -d 57 -r localhost -l /var/log/pluto/57_LIRC_DCE.log
31283 pts/24   S+     0:00 grep --color=auto LIRC


However the remote does not work. I have not tried rebooting the machine yet as it is connected to the core and I am in middle of installing an MD.

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: tschak909 on September 29, 2011, 01:50:45 am
awesome, it's grabbing the wrong packages.

Let me see what we can do to solve it.

-Thom
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: Murdock on September 29, 2011, 02:00:22 am
Very odd, I'm still working to get my MDs online, but this is output from my core (no apparant issues)

Code: [Select]
dcerouter_1021129:~# apt-cache policy pluto-lirc-wrapper
pluto-lirc-wrapper:
  Installed: (none)
  Candidate: 2.0.0.45.11092824858
  Version table:
     2.0.0.45.11092824858 0
        500 http://deb.linuxmce.org/ubuntu/ lucid/beta2 Packages
dcerouter_1021129:~# apt-get install -y pluto-lirc-wrapper
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libftdi1 liblircclient-dev liblircclient0 lirc lirc-modules-source lirc-pluto pluto-irbase pluto-messagetrans setserial
Suggested packages:
  lirc-x kernel-source
The following NEW packages will be installed:
  libftdi1 liblircclient-dev liblircclient0 lirc lirc-modules-source lirc-pluto pluto-irbase pluto-lirc-wrapper pluto-messagetrans setserial
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,636kB of archives.
After this operation, 10.9MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  liblircclient0 liblircclient-dev libftdi1 setserial lirc lirc-modules-source lirc-pluto pluto-irbase pluto-messagetrans pluto-lirc-wrapper
Authentication warning overridden.
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main liblircclient0 0.8.6-0ubuntu4.2 [88.8kB]
Get:2 http://deb.linuxmce.org/ubuntu/ lucid/beta2 lirc 0.8.6-0ubuntu4.2+lmce1 [692kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main liblircclient-dev 0.8.6-0ubuntu4.2 [91.6kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid/main libftdi1 0.17-1 [17.9kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid/main setserial 2.17-45.2 [52.4kB]
Get:6 http://deb.linuxmce.org/ubuntu/ lucid/beta2 lirc-modules-source 0.8.6-0ubuntu4.2+lmce1 [479kB]
Get:7 http://deb.linuxmce.org/ubuntu/ lucid/beta2 lirc-pluto 0.1.1 [1,936B]
Get:8 http://deb.linuxmce.org/ubuntu/ lucid/beta2 pluto-irbase 2.0.0.45.11092824858 [61.4kB]
Get:9 http://deb.linuxmce.org/ubuntu/ lucid/beta2 pluto-messagetrans 2.0.0.45.11092824858 [72.9kB]
Get:10 http://deb.linuxmce.org/ubuntu/ lucid/beta2 pluto-lirc-wrapper 2.0.0.45.11092824858 [78.1kB]
Fetched 1,636kB in 5s (281kB/s)
Preconfiguring packages ...
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
Selecting previously deselected package liblircclient0.
(Reading database ... 153698 files and directories currently installed.)
Unpacking liblircclient0 (from .../liblircclient0_0.8.6-0ubuntu4.2_i386.deb) ...
Selecting previously deselected package liblircclient-dev.
Unpacking liblircclient-dev (from .../liblircclient-dev_0.8.6-0ubuntu4.2_i386.deb) ...
Selecting previously deselected package libftdi1.
Unpacking libftdi1 (from .../libftdi1_0.17-1_i386.deb) ...
Selecting previously deselected package setserial.
Unpacking setserial (from .../setserial_2.17-45.2_i386.deb) ...
Selecting previously deselected package lirc.
Unpacking lirc (from .../lirc_0.8.6-0ubuntu4.2+lmce1_i386.deb) ...
Selecting previously deselected package lirc-modules-source.
Unpacking lirc-modules-source (from .../lirc-modules-source_0.8.6-0ubuntu4.2+lmce1_all.deb) ...
Selecting previously deselected package lirc-pluto.
Unpacking lirc-pluto (from .../lirc-pluto_0.1.1_all.deb) ...
Selecting previously deselected package pluto-irbase.
Unpacking pluto-irbase (from .../pluto-irbase_2.0.0.45.11092824858_i386.deb) ...
Selecting previously deselected package pluto-messagetrans.
Unpacking pluto-messagetrans (from .../pluto-messagetrans_2.0.0.45.11092824858_i386.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Processing triggers for hal ...
Regenerating hal fdi cache ...
Setting up liblircclient0 (0.8.6-0ubuntu4.2) ...

Setting up liblircclient-dev (0.8.6-0ubuntu4.2) ...
Setting up libftdi1 (0.17-1) ...

Setting up setserial (2.17-45.2) ...
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
removing the old setserial entry in the rcn.d directories
Update complete.
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
Saving state of known serial devices... backing up /var/lib/setserial/autoserial.conf done.

Setting up lirc (0.8.6-0ubuntu4.2+lmce1) ...

Setting up lirc-modules-source (0.8.6-0ubuntu4.2+lmce1) ...
Loading new lirc-0.8.6 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.32-33-generic
Building for architecture i686
Building initial module for 2.6.32-33-generic
Done.

lirc_dev.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_atiusb.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_bt829.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_ite8709.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_i2c.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_igorplugusb.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_imon.ko:
Running module version sanity check.

Error! Module version 0.6 for lirc_imon.ko
is not newer than what is already found in kernel 2.6.32-33-generic (0.6).
You may override by specifying --force.

lirc_it87.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_mceusb.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_ttusbir.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_sasem.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_serial.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_sir.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_streamzap.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_ene0100.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

lirc_wpc8769l.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.32-33-generic/updates/dkms/

depmod.....

DKMS: install Completed.

Setting up lirc-pluto (0.1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously deselected package pluto-lirc-wrapper.
(Reading database ... 155218 files and directories currently installed.)
Unpacking pluto-lirc-wrapper (from .../pluto-lirc-wrapper_2.0.0.45.11092824858_i386.deb) ...
Setting up pluto-irbase (2.0.0.45.11092824858) ...

Setting up pluto-messagetrans (2.0.0.45.11092824858) ...

Setting up pluto-lirc-wrapper (2.0.0.45.11092824858) ...

dcerouter_1021129:~#

Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on September 29, 2011, 02:04:11 am
Ok. Anything else you need me to test let me know!!
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on September 29, 2011, 07:13:50 pm
awesome, it's grabbing the wrong packages.

Let me see what we can do to solve it.

-Thom

Hey Thom,

What version of the LIRC package should be loaded? It doesn't look like any of my remotes are working in 10.04, including my core. I have been able to get pretty much everything elde working.

Thanks,
Kevin
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: tschak909 on September 29, 2011, 07:46:49 pm
I had uploaded a version of 0.8.7 (which is present in lucid) to our ubuntu/ tree as a replacement deb, which has the required pronto patches.

-Thom
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on September 29, 2011, 07:59:58 pm
so an apt-get update/upgrade tonight should fix things?
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on September 30, 2011, 02:31:27 am
remote working on core. still no remote on mds >:(
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on September 30, 2011, 04:21:36 pm
Has youer remote always worked on the core?

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on October 01, 2011, 01:12:59 am
Well I have done an apt-get update && apt-get upgrade but still no MCE_USB remote working on my core.

Anyone got any ideas?

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink on October 01, 2011, 03:11:16 am
I think lirc_mceusb2 got merged into lirc_mceusb, but LinuxMCE still expects it. If lirc_mceusb isn't loaded, then your remote won't work. I committed a two line patch that addresses this: http://trac.linuxmce.org/trac.cgi/changeset/24885 just now. I didn't test it though (except in Dianemo, where it works fine).
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on October 03, 2011, 04:34:22 pm
Uplink,

Core remote works fine.
MD's don't work at all.

The only difference is the MD's are windows transmitters, Core has a usbuirt
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink on October 03, 2011, 04:47:24 pm
Uplink,

Core remote works fine.
MD's don't work at all.

The only difference is the MD's are windows transmitters, Core has a usbuirt

That difference is very important. USB-UIRT remotes don't use pluto-lirc-wrapper at all. See if package pluto-lirc-wrapper is installed. If it is, see if LIRC_DCE is running and if you have a lircd process as well. If they are running, execute irw on the MD, then press some keys on the remote. irw should display the keys you press. If this works, but the remote doesn't control the Orbiter, something's fishy. If anything in the checklist doesn't check out, let us know what.
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on October 06, 2011, 07:23:24 pm
Hi Uplink.

I did an apt-get update, apt-get upgrade last night but I still do not have working mce_usb remote and receiver.

Do I need to apply your patch manually or should it have been applied to the latest build?

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: kyfalcon on October 07, 2011, 12:32:21 am
no lircd on mds and no command irw. there is an inputlircd process running as well as LIRC_DCE
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink on October 08, 2011, 02:45:35 am
I did an apt-get update, apt-get upgrade last night but I still do not have working mce_usb remote and receiver.

Do I need to apply your patch manually or should it have been applied to the latest build?

Insanity: doing the same thing over and over again and expecting different results.

I only asked you to have a look at the requirements for things to work and tell me if they're there so maybe people get a clue of what's wrong. I'm not involved deeply enough with LinuxMCE development (I don't even have a Core, I use Thom's from time to time), but even so the checklist embedded in the question should have found something missing so other people, who do LinuxMCE development, can go "aha! missing dependency" or something.

I didn't patch anything :)
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink on October 08, 2011, 02:55:57 am
no lircd on mds and no command irw. there is an inputlircd process running as well as LIRC_DCE

'pluto-lirc-wrapper' (contains LIRC_DCE) depends on 'lirc-pluto', which depends on 'lirc' among other things.

irw is in package 'lirc'.

If you have LIRC_DCE running, 'pluto-lirc-wrapper' is probably installed. So where's 'lirc'...?
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on October 09, 2011, 07:56:02 pm
Hi Uplink

I think maybe I am insane! Or maybe its you as this post says you committed a patch that should fix the problem.

I think lirc_mceusb2 got merged into lirc_mceusb, but LinuxMCE still expects it. If lirc_mceusb isn't loaded, then your remote won't work. I committed a two line patch that addresses this: http://trac.linuxmce.org/trac.cgi/changeset/24885 just now. I didn't test it though (except in Dianemo, where it works fine).

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink on October 09, 2011, 09:35:40 pm
I think maybe I am insane! Or maybe its you as this post says you committed a patch that should fix the problem.

Well... I did commit that patch, but I have no idea if it was packaged or not :) You can check to see if the "mceusb" module is loaded or not using "lsmod". Tha module is needed for things to work too, in addition to the things I ask to be checked. If it wasn't packages, then you may have to apply the patch yourself.

Sorry if I came out a bit strong with the insanity quote, I'm not in my best of moods these days. I'm still working on my "don't try to help people if your brain is on hold" idea :D
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on October 10, 2011, 10:11:12 pm
Hi Uplink

No worries on the Insane quote! We all have bad days! I get them too often at moment!

Any tips on how to install the patch manually?

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres on October 10, 2011, 11:23:27 pm
Ok interesting.

So lirc_mceusb is loaded.

root@dcerouter:~# lsmod | grep mceusb
lirc_mceusb            12100  0
lirc_dev                8890  1 lirc_mceusb

However lircd is not running.

When I try and run lircd manually I get


lircd: can't open or create /var/run/lirc/lircd.pid
lircd: No such file or directory

I have created the directory /var/run/lirc and I can then manually run lircd with /usr/sbin/lircd
I can then run irw, but when I press the buttons I get nothing.

Regards
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink 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.
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres 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
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres 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
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink 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.
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres 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
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink 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.
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: fibres 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
Title: Re: Can't get MCE_USB remotes to work on 10.04 MDs
Post by: uplink 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