Posts by Mario77

    You will have to create some script yourself listening for power status and running skin refresh...it's possible but you probably won't find anything ready..

    To give you some ideas about how you check for cec power status

    cec-ctl --device 0 -S | grep 'Power Status'

    and to refresh skin

    kodi-send --action="ReloadSkin()"

    That looks complicated. Maybe I'll just stick to the cheap remote for now. Reading that thread it says kodi does not recognise the OK key and expects the enter key. That would seem like an odd omission in kodi not to responding to the OK key on a remote, rather than just treat it as the enter key by default.

    The OK button works if I turn on the Air Mouse Function via a button on said remote, and stops when I turn Air mouse off via the same button. Therefore I am not fully convinced the remote is actually sending anything when I turn the Air Mouse off which would explain why I could not get the keymap editor to remap it.

    Can anyone recommend a high quality 2.4G remote with dongle, with a keyboard on the rear ?

    All you need to do is in post #9..shouldn't take more then 15 minutes...you have a good explanation there..

    First thing I tried was the keymap editor but I still could not get it to respond to the OK button and map it to the Enter key. I will try again when I have a bit more time and hook up a regular mouse to give me mouse control as I am wrestling with the remote and the air mouse function.

    Here

    patric
    November 9, 2022 at 11:28 PM


    and here is how you do it post #9

    HiassofT

    Good catch..well done and I could never think of that..tryed lots of options which didn't work.

    In the meantime I got myself a little xmas present a RPi 5 4gb which happens to have a fan pwm output and button builtin which where the 2 items I was using gpio pins for but nevertheless I will test your workoround and hopefully this post will help others till a fix comes out.

    Hard to say as you didn't post your addon/script but it could be that you may be experiencing this issue https://github.com/LibreELEC/LibreELEC.tv/issues/8447 (which isn't directly related to rpi-tools/gpiozero)

    so long,

    Hias

    Well here is one of the gpiozero scripts I m running perfectly on LE 11.0.4 It might not be perfect and I m not a coder by anyway but it just works..

    Thanks for your reply..

    Now that you replyed I m testing further and it looks like the issue is something else...

    Both my scripts are working on latest LE12 and rpitools 11.80.3.1..issue is they r not starting anymore neither from their system.d service I always used and even from autostart..They do start from ssh and work normally..

    Is there any known issue with Raspberry Pi Tools on LE12 and gpiozero libraries...

    Last working version of Raspberry Pi Tools is 11.80.3.0 and only works until LibreELEC-RPi2.arm-12.0-nightly-20231116-19d37e2.img.gz (sha256)

    If you update LE to following LE12 versions it won't work...tryed all of the 7 following nightlies till today..

    Following version 11.80.3.1 won't start any of my gpiozero scripts..system.d service keeps restarting.

    Is there tool for file search like "whereis", "locate" or similar from Linux

    If you'r just looking for a file you will need to do that from SSH..

    Code
    find / -name looking_for_this.log

    Otherwise if you mean search for items in Kodi library you have the search option in the Kodi library menu..

    This is much to deep water for me, if there is a typo, i won't regognize that and drowning would be likely. For instance: They are counting the GPIO headers in my option the wrong way arround. i would say that there button is connected on pin 13 and 14.

    But I am so in experienced, that my pin 5 and 6 probably are 35 and 36

    I changed that as your wiring if you look on my post above

    use_button=3 

    as Da Flex pointed out Pin 5 is GPIO 03 as gpiozero uses gpio numbering..


    So you keep using pin 5 (+) and 6 (-)

    Mario77 : downloaded the zip and tried to install it, but unable to.

    Which zip?

    I didn't mean you just download that zip and install it...

    but on previous post I made you a small modified script that will work..

    You ll need to create a system.d service that start the script or use autostart.sh to start it..

    This you can play around how you want ex changing the when released function to something like

    Code
    def rls():
            global held_for
            if (held_for > 3.0):
                    check_call(['/sbin/poweroff'])
            else:
                    check_call(['/sbin/reboot'])

    this will exec shutdown if held more then 3 seconds or reboot if less...

    You got plenty of options to playwith...ex my switch has an led built into it and it can blink or fade or whatever you want it to do but for that you ll need an npn transistor.

    Mario77 : How do I do that, where do i find an exact discription to do that?

    easy enough


    Will look something like this

    Taken from here just changed few bits to work with LE..

    You ll need to install Rpi Tools addon for this to work..