ubuntu maverick 10.10 and ir remote wierdness
#1
I have managed to get the remote to function but I'm experiencing something strange with lirc or inputlirc and the remote. I can configure the remote and set the buttons up and it will function correctly, but with several button repeats. After a two days of trying several different things, such as configuring lirc with devinput and /dev/input/event5 and reconfiguring lirc to use inputlirc and inputlirc, both variations work with xbmc. But the remote commands repeats very badly. So today I stopped the lirc and inputlirc and deleted the /dev/lirc* devices manually, even rebooted. To my amazement, xbmc is still receiving the remote commands, even though it can not connect to /dev/lircd. I have actually removed the packages. However it's functioning, I see no way of loading a remote template, as I do not understanding how its working in the first place. But this does show where the repeat button commands are coming from. In this state with no lirc or inputlirc, it does not completely function correctly, but the arrow, play, pause,fast ford,rewind stop do, and the arrow keys are nearly unusable when lirc or lirc&inputlirc are configured and working. The arrows jump from the top to the bottom of folder with thousands of titles. Its almost like the remote is being treated as a keyboard. Also I do not have the remote send keyboard key press enabled, but I believe this to make the remote function in reverse to this issue.

These lirc changes have been a doozy in the newer kernels for me.

# dpkg --list |grep lirc rc means uninstalled, but config files left behind.
rc gnome-lirc-properties 0.5.1-0ubuntu1 Control panel to configure remote controls
rc inputlirc 16-1 Zeroconf LIRC daemon using input event devices
rc liblircclient0 0.8.7~pre3-0ubuntu2 infra-red remote control support - client library
rc lirc 0.8.7~pre3-0ubuntu2 infra-red remote control support
rc lirc-modules-source 0.8.7~pre3-0ubuntu2 infra-red remote control support - kernel modules

#lsmod |grep ir
ir_lirc_codec 3888 0
lirc_dev 11209 1 ir_lirc_codec
ir_sony_decoder 2381 0
ir_jvc_decoder 2442 0
ir_rc6_decoder 3018 0
ir_rc5_decoder 2474 0
ir_nec_decoder 2442 0
ir_core 16906 9 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,rc_rc6_mce,ir_rc5_decoder,ir_nec_decoder,mceusb

#lsinput
<snip>
/dev/input/event5
bustype : (null)
vendor : 0x0
product : 0x0
version : 0
name : "Media Center Ed. eHome Infrared "
phys : "usb-0000:00:1d.2-2/input0"
bits ev : EV_SYN EV_KEY EV_REP

xbmc.log snippets.
13:15:28 T:140415605610560 M:3138547712 NOTICE: -----------------------------------------------------------------------
13:15:28 T:140415605610560 M:3139006464 NOTICE: Starting XBMC, Platform: Linux (Ubuntu 10.10, 2.6.35-22-generic x86_64). Built on Oct 13 2010 (SVN:34753M)

13:15:59 T:140415605610560 M:3106664448 INFO: LIRC Initialize: using: /dev/lircd
13:15:59 T:140415605610560 M:3106664448 DEBUG: Failed to connect to LIRC. Retry in 40s.

13:16:39 T:140415605610560 M:3107201024 INFO: LIRC Initialize: using: /dev/lircd
13:16:39 T:140415605610560 M:3107201024 DEBUG: Failed to connect to LIRC. Giving up.

The log has no KEY_UP type of commands, that you see when it receives the keys from lirc. Its like its being treated as a keyboard.

#ps -ef |grep ir
root 3 2 0 13:43 ? 00:00:00 [ksoftirqd/0]
root 7 2 0 13:43 ? 00:00:00 [ksoftirqd/1]
root 10 2 0 13:43 ? 00:00:00 [ksoftirqd/2]
root 13 2 0 13:43 ? 00:00:03 [ksoftirqd/3]

#dmesg |grep input
[ 0.803269] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[ 0.803399] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[ 2.177635] input: Wireless Keyboard/Mouse as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/input/input2
[ 2.177733] generic-usb 0003:099A:7202.0001: input,hidraw0: USB HID v1.11 Keyboard [Wireless Keyboard/Mouse] on usb-0000:00:1a.0-1/input0
[ 2.212961] input: Wireless Keyboard/Mouse as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1/input/input3
[ 2.213107] generic-usb 0003:099A:7202.0002: input,hiddev96,hidraw1: USB HID v1.11 Mouse [Wireless Keyboard/Mouse] on usb-0000:00:1a.0-1/input1
[ 3.757452] generic-usb 0003:051D:0002.0003: hiddev97,hidraw2: USB HID v1.10 Device [American Power Conversion Back-UPS XS 900 FW:830.E6 .D USB FW:E6 ] on usb-0000:00:1a.0-2/input0
[ 10.771346] input: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/virtual/rc/rc0/input4
[ 10.795718] input: UVC Camera (046d:09a1) as /devices/pci0000:00/0000:00:1d.7/usb2/2-5/2-5:1.0/input/input5

Also xbmc was built from svn a night or two ago. I'm not sure how to fix this, but I do miss my remote, as the using a wireless keyboard kinda sucks.
My remote is a cheap windows xp media center usb remotes, microsoft branded, and I have been using it with Ubuntu for atleast a year and a half.

Thanks,
Justin
Reply
#2
Well I tried to use the new kernel drivers, but hate to admit, that I have waved the white flag. I reinstalled the lirc custom modules and blacklist the built in kernel modules and now have a working system again. I no longer have the /dev/event# and reconfigured lirc to use the lirc_mceusb module instead.

Thanks
Reply
#3
uniden9 Wrote:Well I tried to use the new kernel drivers, but hate to admit, that I have waved the white flag. I reinstalled the lirc custom modules and blacklist the built in kernel modules and now have a working system again. I no longer have the /dev/event# and reconfigured lirc to use the lirc_mceusb module instead.

Thanks

Any chance you could help out with a novice-friendly set of instructions on how you managed to do this? I've read up and tried everything on your previous lirc/maverick post with no success. Would really like to get my xbox remote working with xbmc.

TIA for any help you can offer =)
Reply
#4
Here, try this. This works most of the time.
Reply
#5
George Wrote:Here, try this. This works most of the time.

Thanks for the try, it did not work for me. When I run irw, I get nothing, not even notification that it's running. No response from XBMC either.
Reply
#6
What kernel version are you using? 2.6.36? and it looks like you are using the new driver mceusb which is included in kernel. you don't need lirc anymore (old modules, lirc_mceusb..) you can safely remove the lirc package. lirc-utils is still needed since full native input layer support is not quite a reality yet.
By default mce remote acts like keyboard it works outside xbmc too, in gnome power brings shutdow option, ok=enter vol control works...
If you want old functionality back.
make sure the lirc daemon is running
as root run this:
echo none +lirc > /sys/class/rc/rc0/protocols

if it works save this commad to /etc/rc.local
Reply
#7
decaturguy Wrote:What kernel version are you using? 2.6.36? and it looks like you are using the new driver mceusb which is included in kernel. you don't need lirc anymore (old modules, lirc_mceusb..) you can safely remove the lirc package. lirc-utils is still needed since full native input layer support is not quite a reality yet.
By default mce remote acts like keyboard it works outside xbmc too, in gnome power brings shutdow option, ok=enter vol control works...
If you want old functionality back.
make sure the lirc daemon is running
as root run this:
echo none +lirc > /sys/class/rc/rc0/protocols

if it works save this commad to /etc/rc.local

Thanks for help - im running 2.6.35-22
Code:
dave@revo:~$ uname -a
Linux revo 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux

and the "echo none +lirc > /sys/class/rc/rc0/protocols" command yields "No such file or directory"

This machine is used 99% only for XBMC, so old functionality is fine -- actually any functionality is fine =).

This is the Original XBOX remote and receiver (which used to work as MCE remote before) in case it makes a difference now.

Still kinda stuck...
Reply
#8
Now I'm confused too.. whats with ubuntu's kernel? according to your #lsmod |grep ir you are using the new lirc drivers which is included in kernel 2.6.36.
How about:
Quote:as root:
rmmod -f rc_rc6_mce
rmmod -f ir_sony_decoder
rmmod -f ir_jvc_decoder
rmmod -f ir_rc6_decoder
rmmod -f ir_rc5_decoder
rmmod -f ir_nec_decoder
restart lirc and launch xbmc.
Reply
#9
uniden9 Wrote:Well I tried to use the new kernel drivers, but hate to admit, that I have waved the white flag. I reinstalled the lirc custom modules and blacklist the built in kernel modules

yes i had to do the same with my streamzap remote.
something very iffy with lirc in maverick.
Intel Core i5-11500, ASRock B560M-ITX/ac, 240GB SSD + 4TB  Western Digital Blue, Arch Linux, mythtv 31+fixes + TBS 6205 QUAD FREEVIEW DVB-T2
Reply
#10
decaturguy Wrote:Now I'm confused too.. whats with ubuntu's kernel? according to your #lsmod |grep ir you are using the new lirc drivers which is included in kernel 2.6.36.
How about:

restart lirc and launch xbmc.

Actually I never did a "lsmod |grep ir", until now, and it returns nothing..

Maybe you got my post confused with another persons?
Reply
#11
LJSeinfeld Wrote:Actually I never did a "lsmod |grep ir", until now, and it returns nothing..

Maybe you got my post confused with another persons?

Sorry i thought you started this thread, all my solutions are for those who are using the new kernel drivers.

Its best you start a new thread.
Reply

Logout Mark Read Team Forum Stats Members Help
ubuntu maverick 10.10 and ir remote wierdness0