[LINUX] HOW-TO use all custom buttons of your remote control with LIRC

  Thread Rating:
  • 1 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
layzzzz Offline
Junior Member
Posts: 7
Joined: Feb 2013
Reputation: 0
Post: #81
Can someone help me, i cant get lirc working with XBMCBuntu 11.

I've bought an aureal based remote.
lsusb :
Code:
Bus 002 Device 002: ID 0755:2626 Aureal Semiconductor

I think lirc is working, irw output
Code:
00000000004f0000 00 KEY_RIGHT Aureal_ATWF@83
00000000004f0000 00 KEY_RIGHT Aureal_ATWF@83
00000000004f0000 00 KEY_RIGHT Aureal_ATWF@83
0000000000500000 00 KEY_LEFT Aureal_ATWF@83


Here are my config files :
/etc/lirc/lircd.conf
Code:
include "/usr/share/lirc/remotes/aureal/lircd.conf.atwf83"
/home/*/.xbmc/userdata/lircmap.xml
Code:
<lircmap>
  <remote device="Aureal_ATWF@83">
     <right>KEY_RIGHT</right>
  </remote>
</lircmap>
/home/*/.xbmc/userdata/keymaps/remote.xml
Code:
<keymap>
  <global>
    <remote>
        <right>Right</right>
    </remote>
  </global>
</keymap>

First i'm only trying to get the button right right working :-)
(This post was last modified: 2013-02-27 23:35 by layzzzz.)
find quote
negge Offline
Fan
Posts: 466
Joined: Dec 2010
Reputation: 7
Location: Finland
Post: #82
@layzzzz: LIRC itself seems to be working (as irw works).

Do you get any errors when starting the LIRC daemon?

You could try removing remote.xml, it's not needed unless you want to do custom mapping (e.g. I have mapped Chan+- to AudioDelay+-). The Lircmap.xml should be all you need.

Enable debug logging, restart XBMC and press the right button a few times, then paste the log to xbmclogs.com so we can take a look.
find quote
layzzzz Offline
Junior Member
Posts: 7
Joined: Feb 2013
Reputation: 0
Post: #83
@Negge

I think lirc started well :

Code:
13:29:49 T:4677392    INFO: LIRC Initialize: using: /dev/lircd
13:29:49 T:4677392    INFO: LIRC Initialize: sucessfully started

However if i search the log for lirc i get :

Code:
13:29:49 T:4677392    INFO: Loading special://xbmc/system/keymaps/mouse.xml
13:29:49 T:4677392    INFO: Loading special://xbmc/system/keymaps/remote.xml
13:29:49 T:4677392   ERROR: Keymapping error: no such action 'language' defined
13:29:49 T:4677392    INFO: Loading special://masterprofile/keymaps/noBS.xml
13:29:50 T:4677392    INFO: Loading special://masterprofile/keymaps/remote.xml
13:29:50 T:4677392    INFO: Loading special://profile/keymaps/noBS.xml
13:29:50 T:4677392    INFO: Loading special://profile/keymaps/remote.xml
13:29:50 T:4677392    INFO: Loading special://xbmc/system/Lircmap.xml
13:29:50 T:4677392   DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping

However i put another Lircmap.xml file in xbmc/system/ and now the right button works!
*Second edit : I deleted the Lircmap.xml in xbmc/system/ , the one in xbmc/profile was wrong. However i still dont understand why you need the remote.xml, i can remap the buttons with lircmap.xml? E.g MyVideo button starts Television atm.
(This post was last modified: 2013-02-28 15:16 by layzzzz.)
find quote
negge Offline
Fan
Posts: 466
Joined: Dec 2010
Reputation: 7
Location: Finland
Post: #84
The first error means the contents of your remote.xml are invalid. The second one means your Lircmap.xml is in the wrong locations. It should be in .xbmc/userdata.
find quote
Dharani.R Offline
Junior Member
Posts: 11
Joined: Aug 2012
Reputation: 0
Post: #85
I am trying to use my remote in XBMC-11.0 and i followed the procedure of this thread but i could not able to link my lirc to XBMC.

The steps i followed:

1) irw (If i pressed any button on my remote it will replayed the correct button)
Code:
0000000000fe00ff 00 POWER stm_pvr_1
0000000000fe58a7 00 UP stm_pvr_1
0000000000fed827 00 DOWN stm_pvr_1
0000000000fe8877 00 LEFT stm_pvr_1
0000000000feb04f 00 RIGHT stm_pvr_1

2) cat /root/.xbmc/userdata/Lircmap.xml
Code:
<lircmap>
    <remote device="stm_pvr_1">
        <left>LEFT</left>
        <right>RIGHT</right>
        <up>UP</up>
        <down>DOWN</down>
    </remote>
</lircmap>

3) cat /root/.xbmc/userdata/keymaps/remote.xml
Code:
<keymap>
  <global>
    <remote>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
    </remote>
  </global>      
</keymap>

4) /etc/init.d/lirc restart

5) after starting the xbmc, the up,down,right,left keys of my remote is not responding by xbmc

6) ls -l /dev/lirc0
crw------- 1 root root 61, 0 Jan 1 2000 /dev/lirc0

where i did the mistake?
(This post was last modified: 2013-05-10 14:08 by Dharani.R.)
find quote
Post Reply