Opened 12 years ago

Closed 8 years ago

#8103 closed Patch - Feature (Won't Fix)

no UI control over Apple Remote (Mac) enable/disable

Reported by: ecronin Owned by:
Priority: minor Milestone: unknown
Component: Ports - OSX Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no


If compiled with Apple Remote support Myth will always swallow IR events from the apple remote even if another remote is being used (e.g. LIRC). Also, when LIRC is being used the Apple Remote seems to be ignored.

There are compile-time ways to fix this, but I'd like to help get the sniderpad builds including LIRC *and* apple remote so there's a single binary mac users can download...

A dropdown menu to select the remote driver (like audio output etc) seems the correct way to handle this. At the minimum a database setting so that it can be enabled/disabled at runtime not compile time.

Attachments (1)

appleremote-prefs.trunk.diff (1.8 KB) - added by ecronin 12 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 12 years ago by robertm

Resolution: invalid
Status: newclosed

Feature request without patch.

Changed 12 years ago by ecronin

comment:2 Changed 11 years ago by Raymond Wagner

Resolution: invalid
Status: closednew

comment:3 Changed 11 years ago by Raymond Wagner

Type: defectenhancement

comment:4 Changed 11 years ago by robertm

Status: newassigned

comment:5 Changed 11 years ago by Nigel

I will need to look back over LIRC on Mac discussions, but as far as I know the default trunk build does enable both LIRC and AppleRemote?. e.g.:

% ./ --enable-backend --verbose --themeskip
Checked out revision 26338.
[osx-pkg] Configuring mythtv
[osx-pkg] ./configure --prefix=/Volumes/Backups/MythTV/.osx-packager/build --runprefix=../Resources --disable-mmx --enable-disable-mmx-for-debugging --enable-backend --disable-distcc
# Input Support
Joystick menu             no
lirc support              yes
Apple Remote              yes

The patch allows the user to disable AppleRemote?, but I'm not happy applying that - the correct fix would be to work out why both LIRC and AppleRemote? can't co-exist. Happy to discuss on mythtv-dev

comment:6 Changed 11 years ago by Nigel

The following allows the packager to build a LIRC-enabled binary, and it happily still works with the Apple remote, but that is because I haven't gotten the LIRC daemon to do anything but exit:

% svn diff src/packaging 
Index: src/packaging/OSX/build/
--- src/packaging/OSX/build/	(revision 26977)
+++ src/packaging/OSX/build/	(working copy)
@@ -67,6 +67,7 @@
+        'lirc',
   =>  [
@@ -253,6 +254,20 @@
     'parallel-make' => 'yes'
+  'lirc' =>
+  {
+    'url' => '',
+    'conf' =>
+    [
+        '--localstatedir=$PREFIX/var',
+        '--sysconfdir=$PREFIX',
+        '--with-devdir=$PREFIX/var/run',
+        '--with-driver=audio',    # Depends on portaudio?
+        '--with-driver=macmini',  # Linux only?
+        '--with-driver=udp',
+    ],
+  },
   'exif' =>
     'url'  => "$sourceforge/sourceforge/libexif/libexif-0.6.17.tar.bz2",
% .osx-packager/build/bin/lircrcd .osx-packager/src/lirc-0.8.2/remotes/apple/lircd.conf.macmini
2010-10-25 16:42:45.488 LIRC, Error: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: No such file or directory (2)

I'm also still not happy about another setting for remote preference. There is likely to be 3 people in the whole world that would use. The "Apple" way for a Mac to ignore someone clicking an Apple Remote in the room is to unpair that remote in System Preferences!

comment:7 Changed 11 years ago by Nigel

Aah - wrong binary. Googled a few pages, and LIRCd in network-only client mode needs:

% sudo mkdir /var/run/lirc
% sudo chmod 777 /var/run/lirc
% touch ~/.lircrc
% .osx-packager/build/sbin/lircd -H udp -o /var/run/lirc/lircd -n -L /dev/null
lircd: could not open config file '/Volumes/Backups/MythTV/.osx-packager/build/lircd.conf'
lircd: Inappropriate ioctl for device
lircd: lircd(udp) ready

Still trying to get data from HDHR, for final LIRC texting, though.

comment:8 Changed 10 years ago by stuartm

Type: enhancementPatch - Feature

Nigel, Is this going anywhere?

comment:9 Changed 10 years ago by Nigel

Owner: Nigel deleted
Status: assignednew

No action by me. Gut feeling is that disabling one type of remote is wrong - event system should be able to support both simultaneously.

comment:10 Changed 8 years ago by stuartm

Resolution: Won't Fix
Status: newclosed
Note: See TracTickets for help on using tickets.