Please restore appleir module

Bug #440466 reported by Reuben Thomas
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Low
Unassigned
Nominated for Karmic by Steffen Röcker
Nominated for Lucid by Steffen Röcker
lirc (Ubuntu)
Fix Released
Wishlist
Mario Limonciello
Nominated for Karmic by Steffen Röcker
Nominated for Lucid by Steffen Röcker

Bug Description

I see that the appleir module has recently been removed from the 2.6.31 kernel. Please restore it. I can see no reason given for the removal, but I'm guessing that it was because the Apple IR remote is now supposed to work properly with lirc. Unfortunately, this is not the case. There are two major problems: first, it doesn't work out of the box (you have to follow the instructions at https://help.ubuntu.com/community/MacBookAir1-1/Karmic) and secondly, having followed those instructions the keys don't work well (no auto-repeat, need to wait a couple of seconds between key presses to register two key presses).

I will now go and file bugs to try to help make lirc work better (and I found of the order of half a dozen different bugs while trying to get this to work), but at this stage in the release cycle it would seem much better to restore the appleir module, which works fine, and try to target lirc support for Lucid instead.

ProblemType: Bug
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: rrt 1582 F.... pulseaudio
 /dev/snd/controlC1: rrt 1582 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0x90440000 irq 22'
   Mixer name : 'SigmaTel STAC9221 A1'
   Components : 'HDA:83847680,106b0800,00103601'
   Controls : 18
   Simple ctrls : 10
Card1.Amixer.info:
 Card hw:1 'default'/'C-Media USB Headphone Set at usb-0000:00:1d.2-1, full speed'
   Mixer name : 'USB Mixer'
   Components : 'USB0d8c:000c'
   Controls : 7
   Simple ctrls : 3
Date: Fri Oct 2 10:10:10 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=4e3dfdb3-fce1-4f20-9e8e-2d60d509634c
MachineType: Apple Inc. Macmini2,1
NonfreeKernelModules: uinput vboxnetadp vboxnetflt vboxdrv nls_iso8859_1 nls_cp437 vfat fat arc4 snd_hda_codec_idt ecb snd_usb_audio snd_hda_intel i915 snd_usb_lib snd_hda_codec drm snd_hwdep ath5k usbhid snd_pcm_oss i2c_algo_bit mac80211 sbp2 snd_mixer_oss snd_seq_dummy ath snd_pcm asix pl2303 applesmc snd_seq_oss usbnet video usbserial snd_seq_midi snd_rawmidi iptable_filter led_class intel_agp output lp snd_seq_midi_event ip_tables mii agpgart snd_seq parport snd_timer snd_seq_device input_polldev cfg80211 snd snd_page_alloc btusb x_tables soundcore reiserfs ohci1394 ieee1394 sky2
Package: linux-image-2.6.31-11-generic 2.6.31-11.36
ProcCmdLine: root=UUID=56ee682c-b009-4f6d-b724-108e1e2a4186 ro quiet splash i915.modeset=0
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-11-generic N/A
 linux-firmware 1.19
SourcePackage: linux
Uname: Linux 2.6.31-11-generic i686
WifiSyslog:

WpaSupplicantLog:

dmi.bios.date: 06/28/07
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MM21.88Z.009A.B00.0706281359
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Mac-F4208EAA
dmi.board.vendor: Apple Inc.
dmi.board.version: PVT
dmi.chassis.asset.tag: Asset Tag
dmi.chassis.type: 4
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F4208EAA
dmi.modalias: dmi:bvnAppleInc.:bvrMM21.88Z.009A.B00.0706281359:bd06/28/07:svnAppleInc.:pnMacmini2,1:pvr1.0:rvnAppleInc.:rnMac-F4208EAA:rvrPVT:cvnAppleInc.:ct4:cvrMac-F4208EAA:
dmi.product.name: Macmini2,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Reuben Thomas (rrt) wrote :
Revision history for this message
^_Pepe_^ (jose-angel-fernandez-freire) wrote :

Hi Reuben,

Thanks for taking time to make Ubuntu better reporting this bug.

I'd encourage you to add your suggestion to http://brainstorm.ubuntu.com/, but I guess this is not a bug.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: karmic
Revision history for this message
Reuben Thomas (rrt) wrote :

I am puzzled as to how this is not a bug. The appleir module, which is a kernel patch that Ubuntu provided, made my Apple remote work fine. This patch has now been withdrawn by Ubuntu, though it is still available for up-to-date kernels; I'm working on finding out from the author, Bastien Nocera, exactly which is the current version. Now my remote control no longer works well (I can make it work with lirc, but not satisfactorily).

Revision history for this message
Reuben Thomas (rrt) wrote :

Also, why is this tagged karmic? lucid has the same problem.

Revision history for this message
Steffen Röcker (sroecker) wrote :

I also think this is a regression and not a feature request.
Fedora seems to have an updated version:
http://cvs.fedoraproject.org/viewvc/devel/kernel/add-appleir-usb-driver.patch?view=log

Revision history for this message
^_Pepe_^ (jose-angel-fernandez-freire) wrote :

Please, feel free to add lucid tags.

https://wiki.ubuntu.com/Bugs/Tags

tags: added: lucid regression-potential
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Chase Douglas (chasedouglas) wrote :

There are two ways of using the apple remote receiver: an in-kernel input driver and a user-space lirc driver. As stated in the bug report, the lirc driver requires some extra setup and has a repeat key issue in Karmic. However, LIRC is the preferred method for remote input device support. Also, LIRC now has a patch committed upstream to fix the apple remote repeated key issue:

http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/daemons/hw_hiddev.c?r1=5.21&r2=5.22

Unfortunately, there has not been a new release of LIRC with this fix yet.

Revision history for this message
Chase Douglas (chasedouglas) wrote :

Mario,

Can you take a look at the LIRC patch and determine what can be done to alleviate the problem for karmic and/or lucid?

Changed in linux (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Changed in lirc (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Mario Limonciello (superm1)
Changed in linux (Ubuntu):
status: Triaged → Won't Fix
Changed in lirc (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lirc - 0.8.6-0ubuntu4

---------------
lirc (0.8.6-0ubuntu4) lucid; urgency=low

  [ Mario Limonciello ]
  * debian/patches/lirc-i2c-2.6.patch:
    - Fixes building lirc-i2c on kernel 2.6.32 (LP: #513042)
  * Enable building wpc8769l module. Thanks Greg Vickers. (LP: #508266)
  * debian/patches/lirc_dev-2.6.33.patch:
    - Fixes lirc_dev to work with 2.6.33 as well. Useful for people who use
      the kernel mainline PPA. (LP: #529514)
    - Thanks RK & MarkRandolph.
  * debian/patches/appleir_repeat_issue.patch:
    - Fix apple IR key repeat issue by backporting patch from LIRC CVS.
      (LP: #440466)
    - Thanks Chase Douglas for sharing this patch.

  [ Jeremy Yoder ]
  * Fix /regression in /etc/init.d/lirc where if both REMOTE and TRANSMITTER
    are selected the symlinks /dev/lircd and /dev/lircd1 both point to
    /var/run/lirc/lircd.
  * Fix related bug where if the user sets TRANSMITTER_SOCKET in hardware.conf
    a "1" is appended even though it doesn't need to be.
 -- Mario Limonciello <email address hidden> Sun, 28 Mar 2010 00:12:34 -0500

Changed in lirc (Ubuntu):
status: Fix Committed → Fix Released
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.