Thanks. That’s really a pitty.
Posts by Skeeve
-
-
Fantastic! Thanks again HiassofT
Code2025-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:
Code
Display More<keymap> <global> <keyboard> <key id="61506">runScript(script.audio.profiles,0)</key> <key id="9">runScript(script.audio.profiles,0)</key> <KEY_RED>>runScript(script.audio.profiles,0)</KEY_RED> </keyboard> <remote device="devinput"> <KEY_RED>>runScript(script.audio.profiles,0)</KEY_RED> </remote> <remote> <KEY_RED>>runScript(script.audio.profiles,0)</KEY_RED> </remote> </global> <videos> <keyboard> <KEY_BLUE>togglewatched</KEY_BLUE> </keyboard> </videos> </keymap>And this is the log:
Code2025-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
Code
Display More<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> </keyboard> </global> <videos> <keyboard> <KEY_W>togglewatched</KEY_W> </keyboard> </videos> </keymap>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
Code
Display MoreKEY_PLAYPAUSE 0x338 KEY_UP 0x30B KEY_LEFT 0x336 KEY_RIGHT 0x337 KEY_DOWN 0x30D KEY_OK 0x30C KEY_EXIT 0x33E KEY_CONTEXT_MENU 0x331 KEY_VOLUMEUP 0x329 KEY_VOLUMEDOWN 0x32A KEY_MUTE 0x305 KEY_INFO 0x317But 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.
Code2025-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 isSo the key is correctly registered as "KEY_B", but there seems to be no mapping applied.
What am I doing wrong?
-
I changed from "KEY_AB" to "KEY_AUDIO" and now it works… Weird…It didn't

-
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></keymapand
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.
-
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.
-
https://paste.libreelec.tv/famous-seagull.log
I forgot to mention in my previous post: Thanks a thousand times for your support! -
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:
Code
Display More# systemctl status lircd-uinput × lircd-uinput.service - Forward LIRC button presses as uinput events Loaded: loaded (/usr/lib/systemd/system/lircd-uinput.service; disabled; preset: disabled) Active: failed (Result: exit-code) since Tue 2024-02-27 18:26:18 CET; 1 year 7 months ago Duration: 699ms Docs: http://lirc.org/html/configure.html Process: 903 ExecStart=/usr/lib/libreelec/lircd_uinput_helper --add-release-events (code=exited, status=1/FAILURE) Main PID: 903 (code=exited, status=1/FAILURE) CPU: 176ms Feb 27 18:26:18 KodiLG lircd_uinput_helper[903]: lircd-0.10.2[903]: Cannot stat socket path /run/lirc/lircd.socket: No such file or directory Feb 27 18:26:18 KodiLG lircd_uinput_helper[903]: lircd-0.10.2[903]: Error: Cannot setup input file descriptor. Feb 27 18:26:18 KodiLG lircd-0.10.2[903]: Info: lircd-uinput: Opening log, level: Info Feb 27 18:26:18 KodiLG systemd[1]: lircd-uinput.service: Main process exited, code=exited, status=1/FAILURE Feb 27 18:26:18 KodiLG lircd-0.10.2[903]: Info: Reading data from /run/lirc/lircd.socket, writing to /dev/uinput Feb 27 18:26:18 KodiLG systemd[1]: lircd-uinput.service: Failed with result 'exit-code'. Feb 27 18:26:18 KodiLG lircd-0.10.2[903]: Info: Adding release events after a 200 ms timeout Feb 27 18:26:18 KodiLG lircd-0.10.2[903]: Info: Using "_EVUP" as release suffix Feb 27 18:26:18 KodiLG lircd-0.10.2[903]: Cannot stat socket path /run/lirc/lircd.socket: No such file or directory Feb 27 18:26:18 KodiLG lircd-0.10.2[903]: Error: Cannot setup input file descriptor.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:Code
Display More× lircd-uinput.service - Forward LIRC button presses as uinput events Loaded: loaded (/usr/lib/systemd/system/lircd-uinput.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Tue 2024-02-27 18:26:20 CET; 1 year 7 months ago Duration: 1.350s Docs: http://lirc.org/html/configure.html Process: 942 ExecStart=/usr/lib/libreelec/lircd_uinput_helper --add-release-events (code=exited, status=1/FAILURE) Main PID: 942 (code=exited, status=1/FAILURE) CPU: 107ms Feb 27 18:26:20 KodiLG lircd_uinput_helper[942]: lircd-0.10.2[942]: Cannot stat socket path /run/lirc/lircd.socket: No such file or directory Feb 27 18:26:20 KodiLG lircd_uinput_helper[942]: lircd-0.10.2[942]: Error: Cannot setup input file descriptor. Feb 27 18:26:20 KodiLG lircd-0.10.2[942]: Info: lircd-uinput: Opening log, level: Info Feb 27 18:26:20 KodiLG lircd-0.10.2[942]: Info: Reading data from /run/lirc/lircd.socket, writing to /dev/uinput Feb 27 18:26:20 KodiLG lircd-0.10.2[942]: Info: Adding release events after a 200 ms timeout Feb 27 18:26:20 KodiLG lircd-0.10.2[942]: Info: Using "_EVUP" as release suffix Feb 27 18:26:20 KodiLG lircd-0.10.2[942]: Cannot stat socket path /run/lirc/lircd.socket: No such file or directory Feb 27 18:26:20 KodiLG lircd-0.10.2[942]: Error: Cannot setup input file descriptor. Feb 27 18:26:20 KodiLG systemd[1]: lircd-uinput.service: Main process exited, code=exited, status=1/FAILURE Feb 27 18:26:20 KodiLG systemd[1]: lircd-uinput.service: Failed with result 'exit-code'. -
Thanks. I did that, but kodi does not react.
A bit of additional information. Maybe that helps?
CodeKodiLG:~ # 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 lirIs 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
Code
Display More# 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 # <[email protected]> # # This config file was automatically generated # using lirc-0.10.1(default) on Thu Oct 23 07:40:28 2025 # Command line used: --disable-namespace -d /dev/lirc0 # Kernel version (uname -r): 6.6.67-pcpCore-v7 # # Remote name (as of config file): jolly_click_1_1 # Brand of remote device, the thing you hold in your hand: # Remote device model nr: # Remote device info url: # # Below are ALL keys except for # - Menu Audio which has the same scan code as Text Info # - Shifted keys except for two begin remote name testir bits 12 flags SPACE_ENC|CONST_LENGTH eps 30 aeps 100 one 519 4549 zero 519 1964 ptrail 519 gap 79017 min_repeat 1 # suppress_repeat 1 # uncomment to suppress unwanted repeats toggle_bit_mask 0x80 frequency 38000 begin codes j_power 0x31D j_AV 0x318 j_sleep 0x316 j_subtitle 0x31B j_textexpand 0x323 j_back 0x328 j_update 0x32C j_reveal 0x321 j_textstop 0x320 j_textinfo 0x307 j_record 0x339 j_rew 0x33B j_play 0x338 j_ffw 0x315 j_text 0x31E j_tv 0x32F j_up 0x30B j_left 0x336 j_right 0x337 j_down 0x30D j_ok 0x30C j_exit 0x33E j_menu 0x331 j_1 0x300 j_2 0x308 j_3 0x310 j_4 0x301 j_5 0x309 j_6 0x311 j_7 0x302 j_8 0x30A j_9 0x312 j_1. 0x304 j_0 0x30E j_2. 0x342 j_volup 0x329 j_voldown 0x32A j_chup 0x325 j_chdown 0x327 j_mute 0x305 j_info 0x317 j_videomenu 0x32D j_shift_power 0x01D j_shift_exit 0x36E end codes end remote -
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:
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. -
FYI: OpenSuse does not power off the system as well.
-
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>Logging2. Restart Kodi3. Replicate the problem4. 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 linkThe 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/4kb7I 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 -
I haven't had the time yet to debug - sorry.
-
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
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. -
Too bad…
I have the same issue but didn't see this thread until after I posted: LibreElec on Wyse 5010 does not properly shut down
Just found this: LE 9.95.2 Generic X86_64 error on startup/shutdown
but it's no help either…
-
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 downI 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
Code
Display More-- Journal begins at Sat 2022-12-24 16:13:57 UTC. -- Dec 24 16:14:11 KodiWyse kernel: snd_hda_intel 0000:00:01.1: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj. Dec 24 16:14:12 KodiWyse kodi.sh[1145]: libva info: VA-API version 1.11.0 Dec 24 16:14:12 KodiWyse kodi.sh[1145]: libva info: Trying to open /usr/lib/dri/r600_drv_video.so Dec 24 16:14:12 KodiWyse kodi.sh[1145]: libva info: Found init function __vaDriverInit_1_11 Dec 24 16:14:12 KodiWyse kodi.sh[1145]: libva info: va_openDriver() returns 0 Dec 24 16:14:30 KodiWyse systemd[1]: systemd-hostnamed.service: Succeeded. Dec 24 16:16:16 KodiWyse connmand[330]: eth0 {del} route 82.165.8.211 gw 192.168.192.168 scope 0 <UNIVERSE> Dec 24 16:16:17 KodiWyse connmand[330]: eth0 {add} route 82.165.8.211 gw 192.168.192.168 scope 0 <UNIVERSE> Dec 24 16:16:25 KodiWyse connmand[330]: eth0 {del} route 82.165.8.211 gw 192.168.192.168 scope 0 <UNIVERSE> Dec 24 16:17:25 KodiWyse sshd[1195]: Accepted publickey for root from 192.168.192.20 port 54359 ssh2: RSA SHA256:BVwzxOq1/0xWmkucmaDi9a2Xpmq7FyecMMo6+FXkjF4 Dec 24 16:17:50 KodiWyse systemd-logind[317]: System is powering down. Dec 24 16:17:50 KodiWyse systemd[1]: Removed slice system-modprobe.slice. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped target Kodi Mediacenter Interface. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped target RPC Port Mapper. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped target Sound Card. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped target System Time Synchronized. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped target System Time Set. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped target Timers. Dec 24 16:17:50 KodiWyse systemd[1]: systemd-tmpfiles-clean.timer: Succeeded. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped Daily Cleanup of Temporary Directories. Dec 24 16:17:50 KodiWyse systemd[1]: Starting Save random entropy at shutdown... Dec 24 16:17:50 KodiWyse systemd[1]: cpufreq.service: Succeeded. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped Set CPU frequency governor and its tunables. Dec 24 16:17:50 KodiWyse systemd[1]: Stopping Kodi Media Center... Dec 24 16:17:50 KodiWyse systemd[1]: ledfix.service: Succeeded. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped LEDfix Service. Dec 24 16:17:50 KodiWyse systemd[1]: Stopping RPC Bind... Dec 24 16:17:50 KodiWyse systemd[1]: Stopping Udevil mount service... Dec 24 16:17:50 KodiWyse systemd[1]: wait-time-sync.service: Succeeded. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped Wait for Kernel Time Synchronisation. Dec 24 16:17:50 KodiWyse systemd[1]: [email protected]: Succeeded. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped configure Xorg Server for radeon. Dec 24 16:17:50 KodiWyse systemd[1]: Removed slice system-xorg\x2dconfigure.slice. Dec 24 16:17:50 KodiWyse systemd[1]: var-media-PHOTOTANK.mount: Succeeded. Dec 24 16:17:50 KodiWyse systemd[1]: Unmounted /var/media/PHOTOTANK. Dec 24 16:17:50 KodiWyse add-random-at-shutdown[1206]: 4+0 records in Dec 24 16:17:50 KodiWyse add-random-at-shutdown[1206]: 4+0 records out Dec 24 16:17:50 KodiWyse systemd[1]: rpcbind.service: Succeeded. Dec 24 16:17:50 KodiWyse udevil[1205]: udevil: success running umount as current user Dec 24 16:17:50 KodiWyse systemd[1]: Stopped RPC Bind. Dec 24 16:17:50 KodiWyse add-random-at-shutdown[1206]: 2048 bytes (2.0KB) copied, 0.000479 seconds, 4.1MB/s Dec 24 16:17:50 KodiWyse systemd[1]: Finished Save random entropy at shutdown. Dec 24 16:17:50 KodiWyse systemd[1]: [email protected]: Succeeded. Dec 24 16:17:50 KodiWyse systemd[1]: Stopped Udevil mount service. Dec 24 16:17:50 KodiWyse systemd[1]: Removed slice system-udevil\x2dmount.slice. Dec 24 16:17:53 KodiWyse systemd[1]: kodi.service: Succeeded. Dec 24 16:17:53 KodiWyse systemd[1]: Stopped Kodi Media Center. Dec 24 16:17:53 KodiWyse systemd[1]: intel-fullrange.service: Succeeded. Dec 24 16:17:53 KodiWyse systemd[1]: Stopped intel switch to full range. Dec 24 16:17:53 KodiWyse systemd[1]: Stopping Kodi user autostart script... Dec 24 16:17:53 KodiWyse systemd[1]: kodi-cleanlogs.service: Succeeded. Dec 24 16:17:53 KodiWyse systemd[1]: Stopped Kodi clean debug logs. Dec 24 16:17:53 KodiWyse systemd[1]: Starting Kodi poweroff script... Dec 24 16:17:53 KodiWyse systemd[1]: kodi-autostart.service: Succeeded. Dec 24 16:17:53 KodiWyse systemd[1]: Stopped Kodi user autostart script. Dec 24 16:17:53 KodiWyse systemd[1]: Stopped target Graphical Interface. Dec 24 16:17:53 KodiWyse systemd[1]: Stopping Fluxbox Window Manager... Dec 24 16:17:53 KodiWyse sh[1230]: /bin/sh: can't open '/storage/.config/shutdown.sh': No such file or directory Dec 24 16:17:53 KodiWyse systemd[1]: Finished Kodi poweroff script. Dec 24 16:17:53 KodiWyse systemd[1]: windowmanager.service: Succeeded. Dec 24 16:17:53 KodiWyse systemd[1]: Stopped Fluxbox Window Manager. Dec 24 16:17:53 KodiWyse systemd[1]: Stopping Xorg Server... Dec 24 16:17:53 KodiWyse xorg-launch[1109]: (II) Server terminated successfully (0). Closing log file. Connection to kodiwyse closed by remote host. Connection to kodiwyse closed.