Posts by Skeeve

    Fantastic! Thanks again HiassofT

    Code
            <remote>
               <red>runScript(script.audio.profiles,0)</red>
           </remote>


    Code
    2025-10-25 12:48:34.206 T:996     debug <general>: LIRC: - NEW 18e 0 KEY_RED devinput (KEY_RED)
    2025-10-25 12:48:34.226 T:953     debug <general>: HandleKey: 251 (0xfb, obc4) pressed, window 10000, action is runScript(script.audio.profiles,0)


    Out of curiosity: Is there any way to define new keys?

    I mean <red> is not a very descriptive name ;)

    There is no KEY_B in Lircmap.xml of kodi.

    Yes… Thank you.

    I just noticed as well :(

    Will try other keys.


    Okay… As mglae pointed out correctly, there is no "KEY_B". So I tried "KEY_RED".

    This is the keymap I used:

    And this is the log:

    Code
    2025-10-25 10:36:03.654 T:1120    debug <general>: LIRC: - NEW 18e 0 KEY_RED devinput (KEY_RED)
    2025-10-25 10:36:03.687 T:1076    debug <general>: HandleKey: 251 (0xfb, obc4) pressed, window 10000, action is ActivateWindow(TVChannels)

    So it seems to be mapped somewhere else and not in my keymap.

    Sorry. Copy & Paste error. My current map is


    The log is the same as posted above. :(

    I finally got my Remote, which only works with lirc, to function.

    For the most parts like navigattion starting, a video, pausing it, mute the sound or change the volume it works.

    Simply by having stuff like this in my /storage/.config/lircd.conf

    But now there are several other buttons which I'd like to match to some useful functions.

    For examle the Button labeled "AV" on my remote should be mapped to runScript(script.audio.profiles,0).

    So I added a button KEY_B, because it's the button B on my bluetooth keyboard which also runs that script.

    And then I added to my keymap /storage/.kodi/userdata/keymaps/bluetoothaudio.xml

    Code
    <keymap>
        <global>
           <keyboard>
               <key id="61506">runScript(script.audio.profiles,0)</key>
               <key id="9">runScript(script.audio.profiles,0)</key>
               <KEY_B>runScript(script.audio.profiles,0)<KEY_B>
        </global>
    </keymap>

    But it didn't work.

    When I compare the debug output of a working key with that of my AV key, I can see a clear difference.

    Code
    2025-10-25 00:39:36.207 T:941     debug <general>: LIRC: - NEW 6a 0 KEY_RIGHT devinput (KEY_RIGHT)
    2025-10-25 00:39:36.215 T:935     debug <general>: HandleKey: 168 (0xa8, obc87) pressed, window 10000, action is Right
    
    2025-10-25 00:39:42.557 T:941     debug <general>: LIRC: - NEW 30 0 KEY_B devinput (KEY_B)
    2025-10-25 00:39:42.962 T:935     debug <general>: HandleKey: 0 (0x0, obc255) pressed, window 10000, action is

    So the key is correctly registered as "KEY_B", but there seems to be no mapping applied.

    What am I doing wrong?

    Okay. I fixed the repeat issue with suppress_repeat 10.

    What I haven't found out yet is how to assign KEY_AB to a runscript.

    I tried a keymap.xml as well as remote.xml:

    Code
    <keymap><global><keyboard>
    <key id="61506">runScript(script.audio.profiles,0)</key>
    <key id="9">runScript(script.audio.profiles,0)</key>
    <key id="KEY_AB">runScript(script.audio.profiles,0)</key>
    </keyboard></global></keymap

    and

    Code
    <keymap>
      <global>
        <remote>
          <KEY_AB>runScript(script.audio.profiles,0)</KEY_AB>
        </remote>
      </global>
    </keymap>

    with irw I can see that the KEY_AB is registered, but the script isn't run.

    Code
    KodiLG:~ # irw
    196 0 KEY_AB devinput
    196 0 KEY_AB devinput
    ^C

    Thank you Hias.

    It works now. The masking stuff was sone while I was desperately trying to get the remote to work. Thanks for finding that.

    Almost everything works now as I need it.

    I only need to suppress repeats as the remote is quite fast in repeating. I thought suppress_repeat 1 would be enough but no.

    I also need to find out how to map my j_AV key to runScript(script.audio.profiles,0). I hope that I can do it somehow with ~/.lircrc.

    For all(?) keys run: grep 'KEY_' /usr/lib/udev/rc_keymaps/*.toml | cut -d= -f2 | cut -d\" -f2 | cut -d\' -f2 | sort -u

    Regarding the lircd-uinput:

    I had to manually enable it and now it's working!

    Unfortunately it's not surviving a reboot.

    Any hint for that?

    This is the status after reboot:

    Thanks. I did that, but kodi does not react.

    A bit of additional information. Maybe that helps?


    Code
    KodiLG:~ # ps auxwww | grep lir
      472 root      0:00 /usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/run/lirc/lircd
      829 root      0:00 /usr/sbin/lircd --nodaemon /storage/.config/lircd.conf
     1231 root      0:00 grep lir 

    Is it correct, that eventlircd also runs?

    How are the keys from my lircd.conf mapped?

    I experimented with naming the directional keys in my lircd.conf KEY_<direction> but that didn't help either.

    Display Spoiler

    Hi.

    I'm currently using a TechniSat remote control for my LibreElec/Kodi setup on my Raspberry. It works quite well so far.

    But now I have an old, unused Jolly Click 1:1 lying around. I created a lircd.conf for it on another Raspberry using irrecord.

    However, I am unable to integrate it into my Kodi setup.

    The documentation I found was either outdated or, if it wasn't 5 years old, didn't get me where I wanted to go.

    Can anyone here perhaps help me?

    I already checked the wiki page but it seems outdated. Indicator: The mentioned file is not there:

    Code
    # cat /etc/lirc/lircd.conf
    cat: can't open '/etc/lirc/lircd.conf': No such file or directory

    On an additional note: The remote does not seem to support any of the protocols ir-keytable offers me (lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon rc-mm) except for imon which miserably fails as every key seems to send a random bunch of 32 bit scan codes.

    I really got it working on another raspberry (with piCorePlayer) which had irrecord available. All keys were correctly registered.

    I see. The message only appears after an incomplete shutdown, so I never had this.

    Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link

    The logging does not work. You see… I think you'd need the power-off logs which seem to be lost when powering on again.

    But you may give it a try: https://ix.io/4kb7


    I tried to run the two log file commands manually and then shutting down. So additionally you might see something in these two logs:
    http://ix.io/4kbb

    http://ix.io/4kbc

    I do not call it. It's a vanilla generic installation I have here.

    As far as I understood on other pages, the /storage/.config/shutdown.sh is called by default by the shutdown process, so this error / warning should be expected.

    My assumption is: The wyse needs some special shutdown no one knows about :D So there is no machine-specific shutdown procedure in LibreElec's kernel. I also assume that it's safe, but yet annoying, to power it down manually when the "Power Down" message appears.

    I installed LibreElec 10.0.2 (previously 9.something) on my Wyse 5010 Thin Client.

    Everything seems to work okay except for the shutdown. The system does not power off.

    It hangs with:

    Code
    (LibreELEC (official): 10.0.2
    242.7689931 [12531: Failed to unmount /flash: Device or resource busy
    [ 242.7713681 systemd-shutdownt11: Failed to finalize file systems, loop devices, ignoring.
    242.9591521 reboot: Power down

    I tried journalctl -f via ssh but it doesn't give me a clue what's going wrong. Can anybody please give me some guidance?

    journalctl output