Posts by Da Flex

    You have to use the full path to the files, so it's:

    Code
    cat /storage/.config/sleep.conf.d/20-custom-sleep.sh
    cat /storage/.config/sleep.conf.d/99-toggle_rate.power

    Maybe it's worth to give them explicit execution rights:

    Code
    chmod +x /storage/.config/sleep.conf.d/20-custom-sleep.sh
    chmod +x /storage/.config/sleep.conf.d/99-toggle_rate.power

    You can see the file rights by ls -l.

    Please check the content of the new files by nano <FILENAME>, or by cat <FILENAME>.

    99-toggle_rate.power:

    Bash
    #!/bin/sh
    case "$1" in
       post)
         xrandr -display :0 --output HDMI1 --mode 1920x1080 --rate 59.94
         xrandr -display :0 --output HDMI1 --mode 1920x1080 --rate 60
         ;;
    esac

    20-custom-sleep.sh:

    Eventually 20-custom-sleep.sh is not needed, so also try without it:

    Code
    rm /storage/.config/sleep.conf.d/20-custom-sleep.sh
    reboot

    Use rm -rf sleep.d to delete the directory and its content.

    The first line is obviously wrong, because we want to use sleep.conf.d, and not sleep.d as directory. Please copy & paste correctly. :rolleyes:

    Instructions:

    First go to Settings -> System -> Display -> Resolution, and note down your preferred GUI resolution. You will need it later.

    On my Rpi (LE 11.0.1), the directory /storage/.config/sleep.conf.d was pre-installed. So I think that's the right one.

    Please check whether you have it:

    Code
    cd /storage/.config
    ls

    If you don't have it, create it:

    Code
    mkdir sleep.conf.d

    Then delete /storage/.config/sleep.d:

    Code
    rmdir sleep.d

    Then go into the directory, and look what's inside:

    Code
    cd sleep.conf.d
    ls

    I have a README and a sleep.conf.sample file inside. For your purpose, you have to add two more files:

    • 99-toggle_rate.power
    • 20-custom-sleep.sh

    To create 99-toggle_rate.power, copy the following code into your SSH terminal, and hit Enter to execute it. Eventually edit the resolutions first, depending on your preferred GUI resolution (see above). To do so, copy the script into an editor of your local OS, and edit both lines. Then copy the result into your SSH terminal, and hit Enter. In case you're trapped in input mode after this (> sign before cursor), type EOF, and hit Enter.

    Code
    cat >/storage/.config/sleep.conf.d/99-toggle_rate.power <<'EOF'
    #!/bin/sh
    case "$1" in
       post)
         xrandr -display :0 --output HDMI1 --mode 1920x1080 --rate 59.94
         xrandr -display :0 --output HDMI1 --mode 1920x1080 --rate 60
         ;;
    esac
    EOF

    After that you should see the new file:

    Code
    ls

    Result:

    Quote

    99-toggle_rate.power README sleep.conf.sample

    To create 20-custom-sleep.sh, copy the following code into your SSH terminal, and hit Enter to execute it:

    After that you should see the new file:

    Code
    ls

    Result:

    Quote

    20-custom-sleep.sh README

    99-toggle_rate.power sleep.conf.sample

    Reboot, and hope that it works. :)

    Could it be an ssd thing?

    Thanks for checking your drive!

    I think you're on the right path with the SSD. The OS partition has no errors, so it could be an SSD trim command, or another SSD-specific command, which can't be executed. Probably the SSD driver doesn't work correctly on AMD Ryzen.

    Because I'm not familiar with the SSD shutdown procedure of LE, I've informed developers to have a look. Stay tuned.

    It's very likely that your hardware uses a DiplayPort-to-HDMI adapter (LSPCon chip):

    Code
    14.605] (II) intel(0): Output DP1 has no monitor section
    14.605] (II) intel(0): Enabled output DP1
    14.606] (II) intel(0): Output HDMI1 has no monitor section
    14.606] (II) intel(0): Enabled output HDMI1
    14.606] (II) intel(0): Output DP2 has no monitor section
    14.606] (II) intel(0): Enabled output DP2
    14.606] (II) intel(0): Output HDMI2 has no monitor section
    14.606] (II) intel(0): Enabled output HDMI2

    Linux drivers for such chips have known issues. My suggestion: garbage.

    PS: Maybe it's worth to try the other HDMI ports of your TV.