1

I have successfully disabled my infrared remote on my iMac. Are these changes going to be overwritten with a future software update?

I have a fresh install of Ubuntu 19.04 on a stock Apple iMac 9,1 (24 inch, early 2009). Out of the box the computer responds to input from the Apple Remote. However, I have an Apple TV box in the same room so I want to disable the Apple Remote from the iMac.

Here's how I solved the problem:

Add the following to /usr/share/X11/xorg.conf.d/10-quirks.conf to have Xorg ignore the infrared receiver:

Section "InputClass"
        Identifier "Apple IR Receiver, disable"
        MatchProduct "Apple Computer, Inc. IR Receiver"
    Option "Ignore" "on"
EndSection

However, the login screen was still accepting input from the Apple Remote. After some digging, I determined that the login screen runs a program called gdm3 which by default launches Wayland for the display instead of Xorg. It is unclear to me how to configure Wayland in a similar way to Xorg to ignore the Apple Remote, so configure gdm3 to use Xorg:

Un-comment the following line of /etc/gdm3/custom.conf:

WaylandEnable=false

Now my iMac no longer responds to Apple Remote key presses both before and after login.

Xorg treats the Apple Remote as a keyboard, and it is possible to disable this keyboard using the xinput disable command, but that is only good for the currently logged in user and reverts after rebooting.

The USB devices on this machine:

$ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 05ac:8215 Apple, Inc. Built-in Bluetooth 2.0+EDR HCI
Bus 004 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05ac:8502 Apple, Inc. Built-in iSight
Bus 001 Device 006: ID 05ac:0304 Apple, Inc. Mighty Mouse [Mitsumi, M1152]
Bus 001 Device 004: ID 05ac:021d Apple, Inc. Aluminum Mini Keyboard (ANSI)
Bus 001 Device 002: ID 05ac:1005 Apple, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 05ac:8242 Apple, Inc. Built-in IR Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.