Natty - Windows MCE remote triggering events to lirc and as a keyboard making mythtv frontend unusable

Bug #766647 reported by mathieg2
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: xorg

Due to a recent change in either X or the kernel, my media center remote is now being picked up as a keyboard, as well as lirc. Therefore when using mythtvfrontend, boxee, xbmc I the cursor moves twice for every keypress.

I have temporarily resolved the issue by disabling lirc - but this means that the OK button which is mapped to keycode 352
is not picked up by X - I guess this is because it is over 255.

If I could remap 'ok' to the enter key - my problems would be solved - but I dont have a clue how to do this.

I imagine a lot of other people will experience similar issues once 11.04 is released - so it would be useful
if the re-mapping could be implemented as part of the ubuntu release.

Please feel free to re-assign this bug - I wasnt sure where to send it.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xorg 1:7.6+4ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86 Kernel Module 270.41.03 Sat Apr 9 00:04:57 PDT 2011
 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3)
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,unitymtgrabhandles,scale,session,unityshell]
CompositorRunning: compiz
Date: Tue Apr 19 23:34:37 2011
DistUpgraded: Log time: 2011-04-11 19:57:21.866708
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus: nvidia-current, 270.41.03, 2.6.38-8-generic, i686: installed
GraphicsCard:
 nVidia Corporation ION VGA [10de:087d] (rev b1) (prog-if 00 [VGA controller])
   Subsystem: Acer Incorporated [ALI] Device [1025:0222]
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
JockeyStatus: xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, Not in use)
MachineType: Acer Aspire R3610
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=19da3262-43d7-4958-9454-22f7aff5f9b4 ro quiet splash vt.handoff=7
Renderer: Unknown
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to natty on 2011-04-11 (8 days ago)
dmi.bios.date: 12/02/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P01-A4L
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: FMCP7A-ION-LE
dmi.board.vendor: Acer
dmi.chassis.type: 3
dmi.chassis.vendor: Acer
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP01-A4L:bd12/02/2009:svnAcer:pnAspireR3610:pvr:rvnAcer:rnFMCP7A-ION-LE:rvr:cvnAcer:ct3:cvr:
dmi.product.name: Aspire R3610
dmi.sys.vendor: Acer
version.compiz: compiz 1:0.9.4+bzr20110415-0ubuntu2
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu2
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

Revision history for this message
mathieg2 (graeme-salsaholics) wrote :
bugbot (bugbot)
affects: xorg (Ubuntu) → xserver-xorg-input-evdev (Ubuntu)
Revision history for this message
Chris Boot (bootc) wrote :

The correct fix for this in Natty is this:

echo lirc > /sys/class/rc/rc0/protocols

Just add that line to /etc/rc.local and it will be done at boot. This is not an Xorg bug but a side-effect of the kernel now understanding IR remote controls and generating keyboard events for them. You just disable the decoding and tell the kernel to send LIRC events and all is well.

Revision history for this message
mathieg2 (graeme-salsaholics) wrote :

I confirm that the fix above did cure my problem

Bryce Harrington (bryce)
affects: xserver-xorg-input-evdev (Ubuntu) → linux (Ubuntu)
Revision history for this message
Niklas Rosenqvist (niklas-s-rosenqvist) wrote :

how exactly is this fix supposed to be implemented? I'm relatively new to linux and I could need some further explaining. What I did to try to fix this problem is that I added the line "echo lirc > /sys/class/rc/rc0/protocols" in /etc/rc.local before the "exit 0" command. Is this the correct way to implement this since my remote still sends keyboard inputs (Antec Veris rm200, not MCE)?

Revision history for this message
mathieg2 (graeme-salsaholics) wrote :

What do you get when you enter the following command?

ls /sys/class/rc

You might have more than one remote control on your computer.

also try:

cat /sys/class/rc/rc0/protocols

repeat this for each directory found... rc0 rc1 rc2 etc

Revision history for this message
Mario Limonciello (superm1) wrote :

Can you please run the lirc update in natty-updates? It should fix this.

affects: linux (Ubuntu) → lirc (Ubuntu)
Changed in lirc (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lirc (Ubuntu) because there has been no activity for 60 days.]

Changed in lirc (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.