hi all,
i'm having trouble as well. I got this working before but not sure why it isn't working this time. I would expect with the setup below at least the left, right, up, down, and numeric keys to work,but no. I'm running on Ubuntu 16.04.1 LTS with kodi 16.1.
I got lircd.conf setup and testing with irw returns the keys when I press the remote on cli. I then configured the LIrcmap.xml and remote.xml but no dice
my Lircmap.xml located in ~/.kodi/userdata
Code:
<lircmap>
<remote device=samsung>
<subtitle>KEY_SUBTITLE</subtitle>
<back>key_back</back>
<info>KEY_INFO</info>
<playlist>KEY_G</playlist>
<left>key_left</left>
<right>key_right</right>
<up>key_up</up>
<down>key_down</down>
<select>key_ok</select>
<volumeplus>key_volumeup</volumeplus>
<volumeminus>key_volumedown</volumeminus>
<pageplus>key_channelup</pageplus>
<pageminus>key_channeldown</pageminus>
<mute>KEY_MUTE</mute>
<play>Key_playpause</play>
<pause>key_playpause</pause>
<stop>KEY_STOP</stop>
<record>KEY_RECORD</record>
<one>Key_1</one>
<two>Key_2</two>
<three>Key_3</three>
<four>KEY_4</four>
<five>KEY_5</five>
<six>KEY_6</six>
<seven>KEY_7</seven>
<eight>KEY_8</eight>
<nine>KEY_9</nine>
<zero>KEY_0</zero>
</remote>
</lircmap>
my lircd.conf located in /etc/lirc/:
Code:
begin remote
name yaUsbIR_frontswitch
bits 5
flags RC5
eps 30
aeps 100
one 884 884
zero 884 884
plead 884
pre_data_bits 8
pre_data 0xF8
gap 100000
min_repeat 2
# suppress_repeat 2
# uncomment to suppress unwanted repeats
begin codes
KEY_F1 0x00
KEY_F2 0x01
KEY_F3 0x02
KEY_F4 0x03
KEY_F5 0x04
KEY_F6 0x05
KEY_F7 0x06
KEY_F8 0x07
KEY_F9 0x08
KEY_F10 0x09
KEY_F11 0x0A
KEY_F12 0x0B
KEY_F13 0x0C
KEY_F14 0x0D
KEY_F15 0x0E
KEY_F16 0x0F
IN_1_L 0x10
IN_1_H 0x11
IN_2_L 0x12
IN_2_H 0x13
IN_3_L 0x14
IN_3_H 0x15
IN_4_L 0x16
IN_4_H 0x17
IN_5_L 0x18
IN_5_H 0x19
IN_6_L 0x1A
IN_6_H 0x1B
IN_7_L 0x1C
IN_7_H 0x1D
IN_8_L 0x1E
IN_8_H 0x1F
end codes
end remote
begin remote
name yaUsbIR_control
flags RAW_CODES|CONST_LENGTH
eps 1
aeps 1
ptrail 0
repeat 0 0
gap 31000
begin raw_codes
name 0
29952
name 1
29965
name 2
29978
name 3
29991
name 4
30004
name 5
30017
name 6
30030
name 7
30043
name 8
30056
name 9
30069
name 10
30082
name 11
30095
name 12
30108
name 13
30121
name 14
30134
name 15
30147
name 16
30160
name C_END
30173
name C_WATCHDOG
30186
name C_OUTPUT
30199
name C_INPUT
30212
name C_IR
30225
end raw_codes
end remote
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0(ya_usbir) on Sat Jun 17 16:51:42 2017
#
# contributed by
#
# brand: lircd.conf
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name samsung
bits 16
flags SPACE_ENC
eps 30
aeps 100
header 4550 4473
one 592 1649
zero 592 529
ptrail 592
pre_data_bits 16
pre_data 0xE0E0
gap 46852
toggle_bit_mask 0x0
begin codes
Key_1 0x20DF
Key_2 0xA05F
Key_3 0x609F
Key_4 0x10EF
Key_5 0x906F
Key_6 0x50AF
Key_7 0x30CF
Key_8 0xB04F
Key_9 0x708F
Key_0 0x8877
Key_stop 0x629D
key_record 0x926D
Key_Playpause 0xE21D
key_playpause 0x52AD
key_forward 0x12ED
key_rewind 0xA25D
key_mute 0xF00F
key_volumeup 0xE01F
key_volumedown 0xD02F
key_channelup 0x48B7
key_channeldown 0x08F7
key_menu 0x58A7
key_back 0x1AE5
key_exit 0xB44B
key_info 0xF807
key_program 0xF20D
key_left 0xA659
key_right 0x46B9
key_up 0x06F9
key_down 0x8679
key_ok 0x16E9
key_subtitle 0xA45B
key_language 0x00FF
key_text 0x34CB
key_scale 0x7C83
key_a 0x36C9
key_b 0x28D7
key_c 0xA857
key_d 0x6897
key_e 0x14EB
key_f 0xF906
key_g 0xFC03
key_h 0x9E61
key_i 0xC837
key_j 0xD629
end codes
end remote
my remote.xml located in ~/.kodi/userdata/keymaps:
Code:
<keymap>
<global>
<remote>
<play>PlayPause</play>
<pause>Pause</pause>
<stop>Stop</stop>
<forward>FastForward</forward>
<reverse>Rewind</reverse>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>Select</select>
<enter>FullScreen</enter>
<pageplus>PageUp</pageplus>
<pageminus>PageDown</pageminus>
<back>Back</back>
<menu>ContextMenu</menu>
<menu mod="longpress">Menu</menu>
<contentsmenu>PreviousMenu</contentsmenu>
<rootmenu>PreviousMenu</rootmenu>
<title>ContextMenu</title>
<info>Info</info>
<skipplus>SkipNext</skipplus>
<skipminus>SkipPrevious</skipminus>
<display>FullScreen</display>
<start>PreviousMenu</start>
<record>Record</record>
<eject>EjectTray()</eject>
<volumeplus>VolumeUp</volumeplus>
<volumeminus>VolumeDown</volumeminus>
<mute>Mute</mute>
<power>ShutDown()</power>
<myvideo>ActivateWindow(Videos)</myvideo>
<mymusic>ActivateWindow(Music)</mymusic>
<mypictures>ActivateWindow(Pictures)</mypictures>
<mytv>ActivateWindow(Videos,TvShows)</mytv>
<guide>ActivateWindow(TVGuide)</guide>
<livetv>ActivateWindow(TVChannels)</livetv>
<liveradio>ActivateWindow(RadioChannels)</liveradio>
<recordedtv>ActivateWindow(TVRecordings)</recordedtv>
<epgsearch>ActivateWindow(TVSearch)</epgsearch>
<red>XBMC.ActivateWindow(PVROSDGuide)</red>
<green>ActivateWindow(Videos)</green>
<yellow>XBMC.ActivateWindow(PVROSDGuide)</yellow>
<blue>AspectRatio</blue>
<aspectratio>AspectRatio</aspectratio>
<zero>Number0</zero>
<one>Number1</one>
<two>JumpSMS2</two>
<three>JumpSMS3</three>
<four>JumpSMS4</four>
<five>JumpSMS5</five>
<six>JumpSMS6</six>
<seven>JumpSMS7</seven>
<eight>JumpSMS8</eight>
<nine>JumpSMS9</nine>
</remote>
</global>
<FullscreenVideo>
<remote>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<three>Number3</three>
<four>Number4</four>
<five>Number5</five>
<six>Number6</six>
<seven>Number7</seven>
<eight>Number8</eight>
<nine>Number9</nine>
<left>StepBack</left>
<right>StepForward</right>
<up>BigStepForward</up>
<down>BigStepBack</down>
<back>SmallStepBack</back>
<menu>OSD</menu>
<start>OSD</start>
<select>OSD</select>
<title>CodecInfo</title>
<info>Info</info>
<yellow>XBMC.ActivateWindow(PVROSDGuide)</yellow>
<teletext>XBMC.ActivateWindow(Teletext)</teletext>
<subtitle>NextSubtitle</subtitle>
<star>NextSubtitle</star>
<language>AudioNextLanguage</language>
<playlist>Playlist</playlist>
<hash>AudioNextLanguage</hash>
<pageplus>SkipNext</pageplus>
<pageminus>SkipPrevious</pageminus>
</remote>
</FullscreenVideo>
</keymap>
don't know what is going wrong here.
some info on my lirc setup though that does not seem to be the problem. There are no other lirc processes or demons running, I start lirc with
Code:
sudo lircd --driver=ya_usbir /etc/lirc/lircd.conf
irw returns this when pressing buttons:
Code:
irw
00000000e0e016e9 00 key_ok samsung
00000000e0e016e9 01 key_ok samsung
00000000e0e016e9 02 key_ok samsung
00000000e0e016e9 03 key_ok samsung
00000000e0e016e9 04 key_ok samsung
00000000e0e016e9 05 key_ok samsung
00000000e0e016e9 06 key_ok samsung
00000000e0e08679 00 key_down samsung
00000000e0e08679 01 key_down samsung
00000000e0e08679 02 key_down samsung
00000000e0e08679 03 key_down samsung
00000000e0e08679 04 key_down samsung
00000000e0e08679 05 key_down samsung
00000000e0e08679 06 key_down samsung
00000000e0e08679 07 key_down samsung
00000000e0e006f9 00 key_up samsung
00000000e0e006f9 01 key_up samsung
00000000e0e006f9 02 key_up samsung
00000000e0e006f9 03 key_up samsung
00000000e0e006f9 04 key_up samsung
00000000e0e046b9 00 key_right samsung
00000000e0e046b9 01 key_right samsung
00000000e0e046b9 02 key_right samsung
00000000e0e046b9 03 key_right samsung
00000000e0e046b9 04 key_right samsung
00000000e0e046b9 05 key_right samsung
00000000e0e016e9 00 key_ok samsung
00000000e0e016e9 01 key_ok samsung
00000000e0e0f906 00 key_f samsung
00000000e0e0f906 01 key_f samsung
00000000e0e0f906 00 key_f samsung
00000000e0e0f906 00 key_f samsung
any help much appreacited