Hallo,
Ich versuche schon seit Monaten mir einen Mediaplayer mit einem Raspberry Pi zu "bauen" jedoch bekomme ich den nicht per CEC bedient so wie ich mir das wünsche. (Per CEC funktioniert alles außer Play, Pause usw.)
Daher wollte ich das ganze mit LIRC nutzen.
Die FB dort anzulernen war kein großes Problem, aber unter Kodi bekomme ich die nicht zum laufen.
Meine Hardware: Raspberry Pi 4 Model B Rev 1.4
Raspbian GNU/Linux 10 (buster)
IR Empfänger: RemotePi Board for Pi 4 (GPIO 17)
Derzeit eingesetzter IR FB Code: Toshiba 65L7300U (NEC)
/etc/lirc/lircd.conf
# Please take the time to finish this file as described in
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
# and make it available to others by sending it to
# <lirc@bartelmus.de>
#
# This config file was automatically generated
# using lirc-0.10.1(default) on Thu Dec 3 18:49:46 2020
# Command line used: -d /dev/lirc0 /home/pi/lircd-fernbedienung.conf
# Kernel version (uname -r): 4.19.118-v7+
#
# Remote name (as of config file): Toshiba
# Brand of remote device, the thing you hold in your hand:
# Remote device model nr:
# Remote device info url:
# Does remote device has a bundled capture device e. g., a
# usb dongle? :
# For bundled USB devices: usb vendor id, product id
# and device string (use dmesg or lsusb):
# Type of device controlled
# (TV, VCR, Audio, DVD, Satellite, Cable, HTPC, ...) :
# Device(s) controlled by this remote:
begin remote
name Toshiba
bits 32
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9031 4445
one 611 1617
zero 611 508
ptrail 612
repeat 9034 2184
gap 107851
toggle_bit_mask 0x0
frequency 38000
begin codes
KEY_Power 0x02FD48B7 0xC813C000
KEY_Power2 0x02FD2AD5 0xC813C000
KEY_HOME 0x027D2CD3 0xC813C000
KEY_ANGLE 0x02FD9B64 0xC813C000
KEY_SETUP 0x02FD01FE 0xC813C000
KEY_SUBTITLE 0x02FDEA15 0xC813C000
KEY_SEARCH 0x027DA45B 0xC813C000
KEY_SLEEP 0x02FDA857 0xC813C000
KEY_VIDEO 0x02FDC43B 0xC813C000
KEY_MP3 0x02FD24DB 0xC813C000
KEY_TV 0x02FDA45B 0xC813C000
KEY_PRESENTATION 0x02FDB44B 0xC813C000
KEY_PRINT 0x027DD42B 0xC813C000
KEY_MENU 0x027D2CD3 0xC813C000
KEY_EXIT 0x02FD1AE5 0xC813C000
KEY_INFO 0x02FD21DE 0xC813C000
KEY_EPG 0x02FDA15E 0xC813C000
KEY_RED 0x02FDCE31 0xC813C000
KEY_GREEN 0x02FD2ED1 0xC813C000
KEY_YELLOW 0x02FDAE51 0xC813C000
KEY_BLUE 0x02FD6E91 0xC813C000
KEY_VOLUMEUP 0x02FD58A7 0xC813C000
KEY_VOLUMEDOWN 0x02FD7887 0xC813C000
KEY_LEFT 0x02FDB847 0xC813C000
KEY_RIGHT 0x02FD9867 0xC813C000
KEY_UP 0x02FD41BE 0xC813C000
KEY_DOWN 0x02FD9867 0xC813C000
KEY_OK 0x02FD916E 0xC813C000
KEY_CHANNELDOWN 0x02FDF807 0xC813C000
KEY_CHANNELUP 0x02FDD827 0xC813C000
KEY_MUTE 0x02FD08F7 0xC813C000
KEY_BACK 0x02FDE817 0xC813C000
KEY_PLAY 0x02FD0CF3 0xC813C000
KEY_PAUSE 0x02FDAC53 0xC813C000
KEY_STOP 0x02FD8C73 0xC813C000
KEY_RECORD 0x02FDC837 0xC813C000
KEY_FASTREVERSE 0x02FD2CD3 0xC813C000
KEY_FASTFORWARD 0x02FDCC33 0xC813C000
KEY_REWIND 0x02FDEC13 0xC813C000
KEY_NEXT 0x02FD6C93 0xC813C000
KEY_0 0x02FD00FF 0xC813C000
KEY_1 0x02FD807F 0xC813C000
KEY_2 0x02FD40BF 0xC813C000
KEY_3 0x02FDC03F 0xC813C000
KEY_4 0x02FD20DF 0xC813C000
KEY_5 0x02FDA05F 0xC813C000
KEY_6 0x02FD609F 0xC813C000
KEY_7 0x02FDE01F 0xC813C000
KEY_8 0x02FD10EF 0xC813C000
KEY_9 0x02FD906F 0xC813C000
KEY_ENTER 0x02FD50AF 0xC813C000
end codes
end remote
Alles anzeigen
/etc/keymaps/Toshiba
#table Toshiba, type: nec
0x02FD48B7 0xC813C000 KEY_Power
0x02FD2AD5 0xC813C000 KEY_Power2
0x027D2CD3 0xC813C000 KEY_HOME
0x02FD9B64 0xC813C000 KEY_ANGLE
0x02FD01FE 0xC813C000 KEY_SETUP
0x02FDEA15 0xC813C000 KEY_SUBTITLE
0x027DA45B 0xC813C000 KEY_SEARCH
0x02FDA857 0xC813C000 KEY_SLEEP
0x02FDC43B 0xC813C000 KEY_VIDEO
0x02FD24DB 0xC813C000 KEY_MP3
0x02FDA45B 0xC813C000 KEY_TV
0x02FDB44B 0xC813C000 KEY_PRESENTATION
0x027DD42B 0xC813C000 KEY_PRINT
0x027D2CD3 0xC813C000 KEY_MENU
0x02FD1AE5 0xC813C000 KEY_EXIT
0x02FD21DE 0xC813C000 KEY_INFO
0x02FDA15E 0xC813C000 KEY_EPG
0x02FDCE31 0xC813C000 KEY_RED
0x02FD2ED1 0xC813C000 KEY_GREEN
0x02FDAE51 0xC813C000 KEY_YELLOW
0x02FD6E91 0xC813C000 KEY_BLUE
0x02FD58A7 0xC813C000 KEY_VOLUMEUP
0x02FD7887 0xC813C000 KEY_VOLUMEDOWN
0x02FDB847 0xC813C000 KEY_LEFT
0x02FD9867 0xC813C000 KEY_RIGHT
0x02FD41BE 0xC813C000 KEY_UP
0x02FD9867 0xC813C000 KEY_DOWN
0x02FD916E 0xC813C000 KEY_OK
0x02FDF807 0xC813C000 KEY_CHANNELDOWN
0x02FDD827 0xC813C000 KEY_CHANNELUP
0x02FD08F7 0xC813C000 KEY_MUTE
0x02FDE817 0xC813C000 KEY_BACK
0x02FD0CF3 0xC813C000 KEY_PLAY
0x02FDAC53 0xC813C000 KEY_PAUSE
0x02FD8C73 0xC813C000 KEY_STOP
0x02FDC837 0xC813C000 KEY_RECORD
0x02FD2CD3 0xC813C000 KEY_FASTREVERSE
0x02FDCC33 0xC813C000 KEY_FASTFORWARD
0x02FDEC13 0xC813C000 KEY_REWIND
0x02FD6C93 0xC813C000 KEY_NEXT
0x02FD00FF 0xC813C000 KEY_0
0x02FD807F 0xC813C000 KEY_1
0x02FD40BF 0xC813C000 KEY_2
0x02FDC03F 0xC813C000 KEY_3
0x02FD20DF 0xC813C000 KEY_4
0x02FDA05F 0xC813C000 KEY_5
0x02FD609F 0xC813C000 KEY_6
0x02FDE01F 0xC813C000 KEY_7
0x02FD10EF 0xC813C000 KEY_8
0x02FD906F 0xC813C000 KEY_9
0x02FD50AF 0xC813C000 KEY_ENTER
Alles anzeigen
/home/pi/.kodi/userdata/Lircmap.xml
<?xml version="1.0" encoding="UTF-8"?>
<lircmap>
<remote device="devinput">
<altname>/dev/input/myremote</altname>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_OK</select>
<select>KEY_ENTER</select>
<select>KEY_KPENTER</select>
<select>KEY_SELECT</select>
<clear>KEY_DELETE</clear>
<clear>KEY_ESC</clear>
<start>KEY_MEDIA</start>
<start>KEY_HOME</start>
<back>KEY_EXIT</back>
<back>KEY_BACK</back>
<back>KEY_BACKSPACE</back>
<back>KEY_ESC</back>
<back>KEY_E</back>
<record>KEY_RECORD</record>
<play>KEY_PLAY</play>
<play>KEY_PLAYPAUSE</play>
<pause>KEY_PAUSE</pause>
<stop>KEY_STOP</stop>
<stop>KEY_STOPCD</stop>
<forward>KEY_FASTFORWARD</forward>
<forward>KEY_FORWARD</forward>
<reverse>KEY_REWIND</reverse>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<pageplus>KEY_CHANNELUP</pageplus>
<pageplus>KEY_PAGEUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<pageminus>KEY_PAGEDOWN</pageminus>
<skipplus>KEY_NEXT</skipplus>
<skipplus>KEY_NEXTSONG</skipplus>
<skipminus>KEY_PREVIOUS</skipminus>
<skipminus>KEY_PREVIOUSSONG</skipminus>
<guide>KEY_EPG</guide>
<title>KEY_TITLE</title>
<title>KEY_TV2</title>
<title>KEY_CONTEXT_MENU</title>
<subtitle>KEY_SUBTITLE</subtitle>
<language>KEY_LANGUAGE</language>
<info>KEY_INFO</info>
<info>KEY_PROPS</info>
<display>KEY_ZOOM</display>
<display>KEY_ANGLE</display>
<mute>KEY_MUTE</mute>
<power>KEY_POWER</power>
<power>KEY_SLEEP</power>
<power>KEY_WAKEUP</power>
<eject>KEY_EJECTCD</eject>
<eject>KEY_EJECTCLOSECD</eject>
<menu>KEY_DVD</menu>
<menu>KEY_MENU</menu>
<myvideo>KEY_VIDEO</myvideo>
<mymusic>KEY_AUDIO</mymusic>
<mymusic>KEY_MP3</mymusic>
<mypictures>KEY_CAMERA</mypictures>
<mypictures>KEY_IMAGES</mypictures>
<livetv>KEY_TUNER</livetv>
<mytv>KEY_TV</mytv>
<mytv>KEY_PVR</mytv>
<teletext>KEY_TEXT</teletext>
<one>KEY_1</one>
<one>KEY_NUMERIC_1</one>
<two>KEY_2</two>
<two>KEY_NUMERIC_2</two>
<three>KEY_3</three>
<three>KEY_NUMERIC_3</three>
<four>KEY_4</four>
<four>KEY_NUMERIC_4</four>
<five>KEY_5</five>
<five>KEY_NUMERIC_5</five>
<six>KEY_6</six>
<six>KEY_NUMERIC_6</six>
<seven>KEY_7</seven>
<seven>KEY_NUMERIC_7</seven>
<eight>KEY_8</eight>
<eight>KEY_NUMERIC_8</eight>
<nine>KEY_9</nine>
<nine>KEY_NUMERIC_9</nine>
<zero>KEY_0</zero>
<zero>KEY_NUMERIC_0</zero>
<star>KEY_KPASTERISK</star>
<star>KEY_NUMERIC_STAR</star>
<hash>KEY_NUMERIC_POUND</hash>
<red>KEY_RED</red>
<green>KEY_GREEN</green>
<yellow>KEY_YELLOW</yellow>
<blue>KEY_BLUE</blue>
<recordedtv>KEY_PVR</recordedtv>
<liveradio>KEY_RADIO</liveradio>
</remote>
</lircmap>
Alles anzeigen
Soll ich die Originale /usr/share/kodi/system/Lircmap.xml löschen bzw. umbenennen?
Das ich die obengenannte Lircmap.xml noch etwas anpassen muss ist mir klar, mir gehts erstmal darum das überhaupt ein paar Tasten funktionieren.
Ich kann auch problemlos eine anderen FB Code nutzen da ich eine Logitech Harmony 650 nutze.
Der Befehl irw bringt derzeit keine Ausgabe.
Was soll ich noch probieren/verändern?
Vielen Dank im Vorraus.
Gruß Gorcon