[LINUX] HOW-TO use all custom buttons of your remote control with LIRC
#61
Quote:Yes, you need a real LIRC device. It seems that the hardware driver of your IR receiver is either not loaded or not properly configured or just broken. Otherwise you would have a /dev/lircN device. You can now check the output of the command "dmesg" to see if LIRC attempted to load a driver. "dmesg" outputs all kernel messages since the last boot. So the output is very long. Just search for some lines containing LIRC.

If you don't find any LIRC lines in your dmesg output then your driver is probably not loaded or not installed. You might want to paste your dmesg output on http://pastebin.com so others can have a look at it.

I just can find one line with "lirc"

Code:
[   11.602162] lirc_dev: IR Remote Control driver registered, major 61

I've posted the whole log here: http://pastebin.com/ub4Qg8tn
Is there any which could cause the problem?
Reply
#62
Zubbeli Wrote:I just can find one line with "lirc"

Code:
[   11.602162] lirc_dev: IR Remote Control driver registered, major 61

That is just the general LIRC device driver. It's not a hardware device driver.

Quote:I've posted the whole log here: http://pastebin.com/ub4Qg8tn
Is there any which could cause the problem?

From your log I can see you have a "PHILIPS MCE USB IR Receiver". Support for that receiver was added to LIRC on Sept 2nd 2010. So you have to get the latest LIRC version - maybe even a CVS version.

As you already found other people on this forum who have your hardware, you should ask them where they got their LIRC version from and which version they have tested successfully.
Reply
#63
I start from the beginning and got it to work. Maybe somebody is interested in this too.

lircd.conf must include:
Code:
include "/usr/share/lirc/remotes/devinput/lircd.conf.devinput"

hardware.conf:
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Windows Media Center Transceivers/Remotes (all)"
REMOTE_MODULES="lirc_dev"
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="/dev/input/irremote"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput"
REMOTE_LIRCD_ARGS=""

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

#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=""
REMOTE_SOCKET=""
TRANSMITTER_SOCKET=""

Thanks again Temar for taking the time!
Reply
#64
I'm trying to setup my remote and I have a strange problem. Out of the box on Dharma beta 3 and after a quick:

Code:
sudo dpkg-reconfigure lirc

a few buttons of my remote work with xbmc. I figured out that there must be some kind of default config for my remote and followed this guide to map the remaining buttons.

I created a Lircmap.xml file:
Code:
<lircmap>
        <remote device="Antec_Veris_RM100">
                <play>KEY_PLAY</play>
                <pause>KEY_PLAY</pause>
                <forward>KES_FASTFORWARD</forward>
                <reverse>KEY_REWIND</reverse>
                <left>KEY_LEFT</left>
                <right>KEY_RIGHT</right>
                <up>KEY_UP</up>
        </remote>
        <remote device="Antec_Veris_RM200">
                <back>KEY_BACKSPACE</back>
                <menu>RightMenu</menu>
                <select>KEY_ENTER</select>
                <volumeplus>KEY_VOLUMEUP</volumeplus>
                <volumeminus>KEY_VOLUMEDOWN</volumeminus>
                <mute>KEY_MUTE</mute>
                <channelplus>KEY_CHANNELUP</channelplus>
                <channelminus>KEY_CHANNELDOWN</channelminus>
                <start>Go</start>
        </remote>
</lircmap>
I have the Antec Veris RM100 remote and I don't know exactly why but some buttons come from the device RM100 and other from RM200 when I input them with irw.

I created the remote.xml file:
Code:
<keymap>
        <global>
                <remote>
                        <left>Left</left>
                        <right>Right</right>
                        <up>Up</up>
                        <down>Down</down>
                        <play>Play</play>
                        <pause>Pause</pause>
                        <mute>Stop</mute>
                        <forward>FastForward</forward>
                        <reverse>Rewind</reverse>
                        <back>PreviousMenu</back>
                        <menu>ContextMenu</menu>
                        <volumeplus>Info</volumeplus>
                        <select>Select</select>
                </remote>
        </global>
</keymap>

I restarted xbmc and... nothing! The select button was working so I changed in remote.xml to:
Code:
<select>Up</select>
but my select button is still used for Select.

I searched in the log and found this line:
Code:
17:10:16 T:3077494656 M:2004160512   DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping

What?

Let's try:
Code:
xbmc@XBMCLive:~/.xbmc/userdata$ ls
addon_data  Database  guisettings.xml  keymaps  LCD.xml  Lircmap.xml  playlists  profiles.xml  RssFeeds.xml  Thumbnails

Help!?
Reply
#65
Definol Wrote:a few buttons of my remote work with xbmc. I figured out that there must be some kind of default config for my remote...

Yes, XBMC has a default configuration which will be used if no custom mapping is found.

Quote:I have the Antec Veris RM100 remote and I don't know exactly why but some buttons come from the device RM100 and other from RM200 when I input them with irw.

So you have a RM100 but when using irw some buttons are detected as RM200? I think you should fix this problem first before moving on to XBMC.

Your /etc/lirc/lircd.conf seems to include the configurations for both the RM100 and RM200 remote. For any reason LIRC assigns an incoming IR code to the wrong device. Probably because these IR codes are used on both devices and the RM200 configuration is loaded before the RM100 configuration. You should remove the RM200 configuration from your /etc/lirc/lircd.conf file to make sure LIRC always maps the IR codes to the RM100 device.


Quote:
Code:
17:10:16 T:3077494656 M:2004160512   DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping

What?

I'm not sure that this error message means that a Lircmap.xml was not found. It could also mean that no custom button mapping was found. As I don't have access to my XBMC box right now I can't check which log messages you are supposed to see.
Reply
#66
The file /usr/share/lirc/remotes/imon/lircd.conf.imon that I included in /etc/lircd.conf included configurations for multiples imon remotes using the same codes. I created a file for the rm100 only and included it in lird.conf and everything is working as expected.

Thanks a lot Temar!
Reply
#67
for German speaking users:
i've made a FAQ about "Lirc and XBMC":
http://www.xbmcnerds.com/index.php?page=...readID=514
http://www.xbmcnerds.com - german xbmc community
Reply
#68
I have an antec veris IR reciever programed to use an MCE remote. My lircmap.xml file exists but I seem to be devoid of a kaymap.xml.

is this possible. I cant find it anywhere
Reply
#69
do you create a keymap file?
Reply
#70
Mike8913 Wrote:do you create a keymap file?

The Keymap.xml file is obsolete for Dharma - use the remote.xml file. Usually the Keymap.xml/remote.xml does not exist. But you can use the default configuration file...

/usr/share/xbmc/system/Keymap.xml

... or ...

/usr/share/xbmc/system/keymaps/remote.xml

... as a template for your custom one.
Reply
#71
Sad 
Thanks a bunch for the thread, it has helped me to set up my remote quite well. I have one issue that I can't figure out.

So not to clunk up the post too much here is:

- pic of the remote I have: http://i.imgur.com/U5lLo.jpg
- my ~/.xbmc/userdata/keymaps/remote.xml: http://pastebin.ca/2039134
- my ~/.xbmc/userdata/Lircmap.xml: http://pastebin.ca/2039137

The challenge I am having is setting the green button in the middle with the Windows logo to bring up and close the context menu. I have it set as "menu" in Lircmap.xml and in remote.xml global section:

Code:
<menu>ContextMenu</title>

(can't see anywhere else in the file that contradicts this?)

Even if I change the </title> to </menu>, it still only seems to go to the previous window, it does not bring up the context menu, only closes it and goes back to previous window in any screen (except in fullscreenvideo where it properly brings up OSD as desired). Appreciate any help, thanks Smile
Reply
#72
colbert Wrote:- my ~/.xbmc/userdata/keymaps/remote.xml: http://pastebin.ca/2039134
- my ~/.xbmc/userdata/Lircmap.xml: http://pastebin.ca/2039137

These links currently do not work for me. The site is probably down atm.

Quote:
Code:
<menu>ContextMenu</title>

You always have to close the tag you opened, so you have to use "/menu" here.

Quote:Even if I change the </title> to </menu>, it still only seems to go to the previous window, it does not bring up the context menu, only closes it and goes back to previous window in any screen (except in fullscreenvideo where it properly brings up OSD as desired). Appreciate any help, thanks Smile

Your changes in the global section are probably overwritten by a subsection configuration from the default config file. Check the default configuration file in /usr/share/xbmc/system/keymaps/remote.xml

You can either replace the default configuration file with your version or add a subsection to your configuration file which overrides the default configuration. The latter alternative is the better one, as the default configuration will be replaced each time you update XBMC.
Reply
#73
Does anybody know if it's possible to nest actions in Remote.xml? What I want is to have an alternate action for pressing the "Guide" button when i'm fullscreen in Mytv. But not when i'm playing a DVD. Is this even possible?

I would imagine i could use something as this:
Code:
<keymap>
...
<MyTV>
    <remote>
      <clear>Delete</clear>
    </remote>
    <FullscreenVideo>
      <remote>
        <title>XBMC.ActivateWindow(PVROSDGuide)</title>
        <recordedtv>XBMC.ActivateWindow(Teletext)</recordedtv>
      </remote>
    </FullscreenVideo>
  </MyTV>
</keymap>
Reply
#74
Is it possible to set a button for Now Playing or Playlist? I have checked numerous threads and the XBMC Wiki but see nothing for this, and I'm betting I am missing the obvious, appreciate any help.
Reply
#75
Hi all!

So I followed the thread, and set up Lircmap.xml.
All that works fine! All my buttons work splendidly!

However, each button press on the remote results in the action being completed twice.

So, if i press Down in the menus, the selection goes down twice Oo
Likewise, if I press left - it goes left twice!

I'm pretty sure it's going to be a mind-numbingly obvious fix, but I've not found any info to help me so far.

When i 'sudo irw' I get the following result:
Code:
00000014cdf80000 00 Up medion
00000014cdf80000 01 Up medion
00000014cdf80000 02 Up medion
00000014cdf80000 03 Up medion
00000014cdf80000 04 Up medion
0000001445700000 00 Down medion
0000001445700000 01 Down medion
0000001445700000 02 Down medion
0000001445700000 03 Down medion
0000001445700000 04 Down medion
00000014729d0000 00 Left medion
00000014729d0000 01 Left medion
00000014729d0000 02 Left medion
00000014729d0000 03 Left medion
00000014729d0000 04 Left medion
00000014f41f0000 00 Right medion
00000014f41f0000 01 Right medion
00000014f41f0000 02 Right medion
00000014f41f0000 03 Right medion
00000014f41f0000 04 Right medion

As you can see - I (almost) always get 4 entries for each action. is this normal?

Can anybody suggest the first place to start looking?
Please be verbose, as i'm a bit of a linux newbie, so any extra information is likely to help me!

Thanks in advance!
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO use all custom buttons of your remote control with LIRC2