Posts by Mario77

    Hardware decoding (with licenses) will still work on RPi2/3.

    Major issues on RPi2/3 are that the video driver currently has a severe problem (video cuts out and needs reboot), GPU accelerated HEVC decoding and deinterlacing doesn't work (deinterlacing also doesn't work on RPi4).

    Therefore we decided to do the initial LE10 releases only for RPi4 - RPi2 will follow later, when the major bugs are ironed out.

    so long,

    Hias

    Thanks for quick info..I asked as I v seen a post elsewhere that has nothing to do with LE, which made me wonder:

    Quote

    There is no support for hardware accelerated VC-1 or MPEG2 on Raspberry Pi, even on existing devices where codec packs have been purchased.

    There is also no deinterlacing for Live TV with hardware acceleration on Raspberry Pi, but we are hoping that support is introduced later at some point with a Kodi 19 point release. This should be less of an issue on Raspberry Pi 4, which should be able to handle deinterlacing in software.

    additive
    sh /storage/.config/autostart.sh results in:
    LibreELEC: ~ # sh /storage/.config/autostart.sh
    LibreELEC: ~ # File "/storage/.kodi/userdata/scripts/powershutdown_serialless.py", line 51 os.system ("echo" Raspberry Pi Shutdown! "> / dev / pts / 1") ^
    SyntaxError: invalid syntax

    Code
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/1")

    try copy and paste this exactly..

    below is yours...you moved few bits:

    Code
    os.system ("echo" Raspberry Pi Shutdown! "> / dev / pts / 1")

    It worked here...no reason it doesn't work for you...you can open more terminal windows to test from one to the other and you ll see the message popping up..

    I m not great with python hence i gave you the shell version of the command..you r basically sending an sh command from a py script..

    I m not sure what your script is for but if it's something important you can even send an automated email from libreelec to your email..

    try before line 50 in your script add

    Code
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/1") 

    that is for 1 open terminal


    if you have more then

    to find all open terminals

    Code
    find /dev/pts

    then you can edit your script ex

    Code
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/1")
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/2")
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/3")

    etc


    that should send a message to all terminals

    "Raspberry Pi Shutdown!"

    Check your autostart.sh script if you just created it for any errors DOS format and not UNIX?

    this should start your script like on startup..

    Code
    sh /storage/.config/autostart.sh

    run this on autostart.sh

    Code
    dos2unix /storage/.config/autostart.sh
    
    chmod 777 /storage/.config/autostart.sh

    the autostart.sh in your zip file is in windows dos...needs to be unix format..but might have changed by uploading or downloading or whatever..not sure...try those 2 commands and you should be good to go..

    I just had a thought.
    A faulty usb to sata adapter couldn't short something in the pi and make HDMI audio not work could it?

    I have that, plus also that ssd fail, plus my spdif card on my pc seems faulty now as well.

    Plus I tried to charge my torch up from my pc and that won't charge from anything now.

    I am wondering if i have a fault somewhere.

    I can't think of anything other than the adapter and ssd that are common between my pc and pi.

    I had a cable like that for a long time connected to my pi2 and hdd never gave me problems...Now I got an external hdd connected which is a little better aesthetically but nothing else..

    If I want just to start rpi only do I need to add the dtoverlay=gpio-shutdown to config.txt. and 1 maybe stupid question - where is this config.txt file on pri4

    To power up, all that’s required is to connect physical pin 5 (BCM 3) to the ground next to it. This functionality is enabled by default.

    To shut down with the same button, just add the line dtoverlay=gpio-shutdown to /flash/config.txt

    config.txt is read only

    to edit ssh

    Code
    mount -o remount,rw /flash

    then to make it read only again

    Code
    mount -o remount,ro /flash

    True for the reboot and shutdown. In fact I am using the Kodi app on the phone as a remote control but for the activation I can not use it

    So you said just shorting pin 5 and 6 will start rpi( you mean GPIO3 and GND)??? Directly shorting them with nothing else?

    Yeah thats what I mean gpio3 and the gnd across it...you add dtoverlay=gpio-shutdown to config.txt..

    Mario77, Da Flex,

    Your explanations are very useful. I was thinking to implement such a button on my Pi4 BUT I was thinking... What if the power button is with IR for the regular TV or Bluetooth from the phone. Is this possible to be done? I think this will be just a bit better for usage

    Thanks again for your explanations!

    That will be usefull just for startup if it works...basically reboot and shut down are the same as the ones you r using now from Kodi power menu..so you can set the remote buttons even without switch..

    Just a quick idea is a transistor between pin 5 and 6 and an ir receiver connected to it...basically if you short pin 5 and 6 rpi will start.

    Thank you!


    speed steps in script are low so you dont see much difference by looking at the fan

    Code
    tempSteps = [30, 35, 40, 45, 50, 55, 60, 65, 70, 75]  # [°C]
    speedSteps = [0, 35, 45, 50, 55, 60, 70, 80, 90, 100]  # [%]

    try to change the steps and you ll see a big jump from 50% to 100%

    something like:

    Code
    tempSteps = [45, 50]  # [°C]
    speedSteps = [50, 100]  # [%]

    This way it jumps from 50% straight to full throttle

    How can I verify that the speed fan is temperature controlled? I am looking at it and speed seems the same all the time

    Post #74 I posted a small script calibrate.py

    That is similar script to the one on #60 but works manually from terminal instead of reading temperatures...it's just for testing and to find your fan minimum speed...mine started at 30%...less then that and it wont turn...

    You can test fan with that script from terminal....you type 50 will be 50% speed..100 will be 100% speed and so on...

    Did you connect transistor base to the proper gpio?

    I have a great request:

    Can you sum up 1 working solutions with all the steps needed in your first post as the topic is interesting but it is going longer and longer.

    The topic is growing and in 1 part we have scripts, update in another, after there is script with variable speed and for me it is a bit confusing

    Thanks in advance!

    What are you planning to do?

    2 pin 5v fan ?

    Script in post #60 works fine for PWM temp/speed control..

    You just need to make circuit..

    Well although power button works as intended..unfortunately it doesn't work if system is for some reason frozen..so it might still need a dirty power shutdown once in a while..

    Led On - Start - Quick Press Restart - Long Press Shutdown