Linux MACMINI UBUNTU LIRC XBMC HARMONY keymappings
#1
I move from an OSX Setup towards a MacMini Ubuntu XMBC LIRC (Harmony Remote) Setup. I'm running into a problem with
with the Combination of LIRC / XBMC / Apple_IR reciever.

When I use a keyboard and use the arrow keys to navigate everything works fine. At the moment I start using the Harmony 1100 to navigate with the "arrowkeys" the problems
appear.

When I press the so called UP arrow key / Down arrow key on the Harmony. XMBC move the highlighted section up / down. But also changes the XMBC Volume up / down.
as you can see in the log file.

I'm not pressing a Volume key on the harmony! The XBMC reponse is the following

Code:
23:52:51 T:140512768862080   DEBUG: Keyboard: scancode: 0x7b, sym: 0x00af, unicode: 0x0000, modifier: 0x0
23:52:51 T:140512768862080   DEBUG: OnKey: volume_up (0xf0b9) pressed, action is VolumeUp
23:52:51 T:140512768862080   DEBUG: CAnnouncementManager - Announcement: OnVolumeChanged from xbmc
23:52:51 T:140512768862080   DEBUG: GOT ANNOUNCEMENT, type: 64, from xbmc, message OnVolumeChanged
23:52:51 T:140512768862080   DEBUG: ------ Window Init (DialogVolumeBar.xml) ------
23:52:51 T:140512768862080   DEBUG: LIRC: Update - NEW at 684518:0000000087ee960b 00 Up Harmony (Up)
23:52:51 T:140512768862080   DEBUG: OnKey: 166 (0xa6) pressed, action is Up

http://xbmclogs.com/show.php?id=130790

90% of the functions are working fine with the harmony remote. The only part is that I'm unable to tell XBMC to stop changing the Volume when I use the UP / Down arrow's on the Harmony. I have made all the keybindings / mappings as you can see below


Setup: Harmony 1100 (PLEX PLAYER DEVICE)

hardware.conf (LIRC)

Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Harmony"
REMOTE_MODULES=""
REMOTE_DRIVER="macmini"
REMOTE_DEVICE="/dev/usb/hiddev0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Disable kernel support.
#Typically, lirc will disable in-kernel support for ir devices in order to
#handle them internally.  Set to false to prevent lirc from disabling this
#in-kernel support.
#DISABLE_KERNEL_SUPPORT="true"

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""



/etc/lirc/lircd.conf
Code:
begin remote

  name Harmony
  bits           32
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          403981
  toggle_bit_mask 0x0
  
      begin codes
          LargeUp                  0x87EE9F0B
          LargeDown                0x87EE9F0D
          Aspect                   0x87EE9D0A
          Queue                    0x87EE9D0C
          Power                    0x87EE9D03
          Sleep                    0x87EE9A02
          Stop                     0x87EE9705
          FastRew                  0x87EEA00B
          FastFwd                  0x87EEA00D
          Play                     0x87EE9703
          Record                   0x87EE9B0C
          Prev                     0x87EE9A0B
          Next                     0x87EE9A0D
          Pause                    0x87EE9803
          Guide                    0x87EE9D05
          Info                     0x87EE990B
          Exit                     0x87EE9B0A
          Menu                     0x87EE9602
          Volume+                  0x87EE980A
          Volume-                  0x87EE980C
          Mute                     0x87EE9805
          Channel+                 0x87EE9E0A
          Channel-                 0x87EE9E0C
          Back                     0x87EE990D
          Up                       0x87EE960B
          Down                     0x87EE960D
          Left                     0x87EE9608
          Right                    0x87EE9607
          Ok                       0x87EE9604
          1                        0x87EE970A
          2                        0x87EE970C
          3                        0x87EE9709
          4                        0x87EE9706
          5                        0x87EE9809
          6                        0x87EE9806
          7                        0x87EE9908
          8                        0x87EE9907
          9                        0x87EE9A08
          0                        0x87EE9A07
          Clear                    0x87EE9A04
          Enter                    0x87EE9902
          Red                      0x87EE9F08
          Green                    0x87EE9F07
          Yellow                   0x87EE9F04
          Blue                     0x87EE9F02
          F1                       0x87EE9B09
          F2                       0x87EE9B06
          F3                       0x87EE9B05
          F4                       0x87EE9B03
          F5                       0x87EEA008
          F6                       0x87EEA007
          F7                       0x87EEA004
          F8                       0x87EEA002
          F9                       0x87EE9E09
          F10                      0x87EE9E06
          F11                      0x87EE9E05
          F12                      0x87EE9E03
          F13                      0x87EE9D09
          F14                      0x87EE9D06
      end codes

end remote


I have made the Mappings in the Lircmap.xml file in ~user/.xbmc/userdata


Lircmap.xml

Code:
<lircmap>
    <remote device="Harmony">
        <pause>Pause</pause>
        <stop>Stop</stop>
        <forward>FastFwd</forward>
        <reverse>FastRew</reverse>
        <left>Left</left>
        <right>Right</right>
        <up>Up</up>
        <down>Down</down>
        <select>Ok</select>
        <channelplus>Channel+</channelplus>
        <channelminus>Channel-</channelminus>
        <back>Back</back>
        <menu>Menu</menu>
        <play>Play</play>
        <info>Info</info>
        <skip>Next</skip>
        <replay>Previous</replay>
        <guide>Guide</guide>
        <exit>Exit</exit>
        <record>Record</record>
        <volumeplus>Volume+</volumeplus>
        <volumeminus>Volume-</volumeminus>
        <mute>Mute</mute>
        <power>Power</power>
        <largeup>LargeUp</largeup>
        <largedown>LargeDown</largedown>
        <sleep>Sleep</sleep>
        <aspect>Aspect</aspect>
            <queue>Queue</queue>
            <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
        <red>Red</red>
        <green>Green</green>
        <yellow>Yellow</yellow>
        <blue>Blue</blue>
            <enter>Enter</enter>
            <clear>Clear</clear>
            <F1>F1</F1>
        <F2>F2</F2>
        <F3>F3</F3>
        <F4>F4</F4>
        <F5>F5</F5>
        <F6>F6</F6>
        <F7>F7</F7>
        <F8>F8</F8>
        <F9>F9</F9>
        <F10>F10</F10>
        <F11>F11</F11>
        <F12>F12</F12>
        <F13>F13</F13>
            <F14>F14</F14>
        </remote>
</lircmap>

Are here more people using this kind of setup ?
Reply
#2
If i use a MCE kind of IR reciever plugged in to one of the USB ports of the MACMINI everything is working fine. I think i'm missing something
but no idea where to look.
Reply
#3
You need to disable Ubuntu's native remote control 'grabbing', follow:
http://askubuntu.com/questions/98255/lir...rough-what
Reply
#4
I just wanted to say thank you, the information here solved a long running issue for me with the behavior of a Harmony remote and Ubuntu running XBMC. But please do note when following the instructions at the linked StackExchange post that the proper xorg.conf structure should look like:
Code:
Section "InputClass"
  Identifier "Remote"
  MatchProduct "<your transceiver input name>"
  Option "Ignore" "True"
EndSection
Reply
#5
Hi,

Got the same issue with my Mac mini on Ubunu.

The following post explains what is happening here

https://marklodato.github.io/2013/10/24/...-lirc.html

Quote:If you have a Windows Media Center (MCE) remote (as opposed to, say, a TV or DVD remote), or if you have set up your universal remote to send MCE codes, then X will automatically interpret some buttons as keyboard keys. If this is all you want, then you're done!

Unfortunately, most people will want more than this, in which case the built-in keyboard emulation will just get in the way. So, you need to disable it. If you forget to do so, X will send the keyboard keys in addition to whatever you configure LIRC to do, and it will appear that you're getting double key presses.

Code:
<wattazoum> YEAHHHHHHHH
<wattazoum> solved
<totesmuhgoats> wattazoum: your disabled in xorg.conf.d?
<wattazoum> yes
<totesmuhgoats> just by setting "Ignore" "true"?
<wattazoum> I needed to create a new file
<wattazoum> with the Apple IR reciever
<wattazoum> and Ignore on
<totesmuhgoats> is there a link you followed or something? i'm just curious what the fix was
<wattazoum>       /usr/share/X11/xorg.conf.d/10-appleremote-disable.conf
<wattazoum> Section "InputClass"
<wattazoum>     Identifier   "Apple Computer, Inc. IR Receiver Keyboard mimic blacklist"
<wattazoum>     Driver       "usbhid"
<wattazoum>     MatchProduct "Apple Computer, Inc. IR Receiver"
<wattazoum>     Option       "Ignore" "on"
<wattazoum> EndSection

I restarted Xorg and got it working.

Of course now , xbmc need LIRC to work with the IR
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image

Want a clean no-ads paste bin? http://pastebin.ubuntu.com/
Reply
#6
Hi, so I'm trying to get lirc to work with my mac mini. (Late 2012 model) by following this guide posted here

forum.kodi.tv/showthread.php?tid=170372

And I'm stuck with this error
'sudo irrecord -d /dev/lirc0 /home/your-xbmc-user-name/myremote.txt" yields a file not found error, checking /dev with "ls /dev" shows nothing that resembles lirc* in the name' and yes I've already replaced the xbmc/kodi username with mine

Since you guys are already using mac mini, may I ask if any of you encountered the same error as well and how can I fix this?
Reply
#7
I have a Mac mini (Mid 2007) with a Ubuntu distro of linux that I could not get any remote to work with Kodi. Many posters suggest to add an USB IR dongle and abandon the Apple IR. I thought I would be stuck with a wireless keyboard or the Kodi iOS app.

Solution: I removed lirc and installed atvclient as described in 3.5.4 Install atvclient of http://kodi.wiki/view/Archive:HOW-TO:Ins...Apple_TV_1

I set my Harmony 350 to Apple TV 2/3. Now I have control of Kodi both with the Harmony 350 and the Apple remote. I use rEFit to switch between Mac OSX and Linux. The remotes work for both OSes.
Reply

Logout Mark Read Team Forum Stats Members Help
MACMINI UBUNTU LIRC XBMC HARMONY keymappings0