Modify

Opened 8 years ago

Closed 4 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

Description

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 8 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 8 years ago by robertm

  • Resolution set to invalid
  • Status changed from new to closed

Feature request without patch.

Changed 8 years ago by ecronin

comment:2 Changed 8 years ago by wagnerrp

  • Resolution invalid deleted
  • Status changed from closed to new

comment:3 Changed 8 years ago by wagnerrp

  • Type changed from defect to enhancement

comment:4 Changed 7 years ago by robertm

  • Status changed from new to assigned

comment:5 Changed 7 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.:

% ./osx-packager.pl --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 7 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/osx-packager.pl
===================================================================
--- src/packaging/OSX/build/osx-packager.pl	(revision 26977)
+++ src/packaging/OSX/build/osx-packager.pl	(working copy)
@@ -67,6 +67,7 @@
         'mysqlclient',
         #'dbus',
         'qt-4.6',
+        'lirc',
       ],
   'mythplugins'
   =>  [
@@ -253,6 +254,20 @@
     'parallel-make' => 'yes'
   },
 
+  'lirc' =>
+  {
+    'url' => 'http://prdownloads.sourceforge.net/lirc/lirc-0.8.2.tar.bz2',
+    '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
%
% MythFrontend.app/Contents/MacOS/MythFrontend
...
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 7 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 6 years ago by stuartm

  • Type changed from enhancement to Patch - Feature

Nigel, Is this going anywhere?

comment:9 Changed 6 years ago by nigel

  • Owner nigel deleted
  • Status changed from assigned to new

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 4 years ago by stuartm

  • Resolution set to Won't Fix
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.