2012-03-01, 22:11
The thing is, i want to bind to remote's specific button an action, that will eject optical drive tray (i have problem with that in arch linux). I figure out i can use function System.Exec("eject -T /dev/sr0").
I have working lirc configuration:
/etc/lirc/lircd.conf
~/.xbmc/userdata/Lircmap.xml
How
Let's say, i have BDVD button defined in lircd.conf file. How can i bind and action to that button?
I looked up Lircmap.xml structure, witch is:
<lircmap>
<remote device="devicename">
<XBMC_button>LIRC_button</XBMC_button>
...
</remote>
</lircmap>
System.Exec() is not an ordinary lirc button, so i can't bind it here. Where and how exacly i do that?
I have working lirc configuration:
/etc/lirc/lircd.conf
Code:
begin remote
name mceusb
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 8
pre_data 0x14
post_data_bits 16
post_data 0x0
gap 227978
suppress_repeat 12
min_repeat 3
toggle_bit_mask 0x80800000
begin codes
BDelete 0xF520
BBlue 0x0A35
BChanUp 0xE00B
BChanDown 0x618C
BChannelList 0x85B0
BDown 0x77A2
BDVD 0xD904
BEight 0xE914
BReneme 0x0B36
BFive 0x6691
BForward 0x7BA6
BFour 0xE510
BGreen 0x88B3
BVideoDesktop 0x0631
BEditImage 0x0D38
BSetup 0x709B
BSnapshot 0x6D98
BLeft 0x729D
BChannelSearch 0x719C
BTvPreview 0x84AF
BMute 0xD500
BNine 0x6A95
BOK 0xF31E
BOne 0x628D
BPause 0xFE29
BPlay 0xFA25
BPower 0xD702
BRecord 0xFC27
BRed 0x87B2
BPrevious 0x76A1
BRewind 0x79A4
BRight 0xF41F
BSeven 0x6893
BSix 0xE712
BNext 0xF823
BAcquireImage 0x8CB7
BStop 0x7DA8
BTxt 0x6B96
BThree 0x648F
BTwo 0xE30E
BUp 0xEF1A
BVolDown 0x5D88
BVolUp 0xDE09
BYellow 0x0934
BZero 0xEC17
BTv 0x012C
BVcr 0x022D
BMusic 0xDB06
BRadio 0x032E
BPhoto 0xDA05
BFullscreen 0x0E39
BDvdmenu 0xEE19
BDvdaudio 0x0F3A
end codes
end remote
~/.xbmc/userdata/Lircmap.xml
Code:
<lircmap>
<remote device="mceusb">
<pause>BPause</pause>
<stop>BStop</stop>
<forward>BForward</forward>
<reverse>BRewind</reverse>
<left>BLeft</left>
<right>BRight</right>
<up>BUp</up>
<down>BDown</down>
<select>BOK</select>
<pageplus>BChanUp</pageplus>
<pageminus>BChanDown</pageminus>
<back>BDelete</back>
<menu></menu>
<title>BChannelSearch</title>
<info>BSnapshot</info>
<skipplus>BNext</skipplus>
<skipminus>BPrevious</skipminus>
<display></display>
<start>BPlay</start>
<record>BRecord</record>
<volumeplus>BVolUp</volumeplus>
<volumeminus>BVolDown</volumeminus>
<mute>BMute</mute>
<myvideo>BRed</myvideo>
<mymusic>BYellow</mymusic>
<mypictures>BGreen</mypictures>
<mytv>BBlue</mytv>
<one>BOne</one>
<two>BTwo</two>
<three>BThree</three>
<four>BFour</four>
<five>BFive</five>
<six>BSix</six>
<seven>BSeven</seven>
<eight>BEight</eight>
<nine>BNine</nine>
<zero>BZero</zero>
<ShowVideoMenu>BDvdmenu</ShowVideoMenu>
<NextSubtitle>BTxt</NextSubtitle>
<AudioNextLanguage>BDvdaudio</AudioNextLanguage>
<ContextMenu>BSetup</ContextMenu>
</remote>
</lircmap>
How
Let's say, i have BDVD button defined in lircd.conf file. How can i bind and action to that button?
I looked up Lircmap.xml structure, witch is:
<lircmap>
<remote device="devicename">
<XBMC_button>LIRC_button</XBMC_button>
...
</remote>
</lircmap>
System.Exec() is not an ordinary lirc button, so i can't bind it here. Where and how exacly i do that?