I think sleep.d is outdated, and sleep.conf.d is used by current LE versions. However, you can try both directories.
Posts by Da Flex
-
-
Read post #4 again.
- You will need 99-toggle_rate.power. That script does the actual resolution switch.
- xrandr makes no sense, delete it (rm /storage/.config/sleep.conf.d/xrandr).
- I'm not sure whether you need 20-custom-sleep.sh. Try with and without it.
The only difference to post #4 is that you have to edit 99-toggle_rate.power, and replace HDMI1 by DP1. You can use the nano editor for that.
-
-
If I try the Generic Legacy (which still contains xrandr), will my script still be there?
Yes. I thought you're already using it.
-
Yep, that looks good. If you're already in the right directory, the file name is enough for cat / nano.
-
You have to use the full path to the files, so it's:
Codecat /storage/.config/sleep.conf.d/20-custom-sleep.sh cat /storage/.config/sleep.conf.d/99-toggle_rate.powerMaybe it's worth to give them explicit execution rights:
Codechmod +x /storage/.config/sleep.conf.d/20-custom-sleep.sh chmod +x /storage/.config/sleep.conf.d/99-toggle_rate.powerYou 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 ;; esac20-custom-sleep.sh:
Bash
Display More#!/bin/sh . /etc/profile for script in $HOME/.config/sleep.conf.d/*.power; do if [ -f $script ]; then progress "running custom sleep script $script ($@)..." sh $script $@ fi done exit 0Eventually 20-custom-sleep.sh is not needed, so also try without it:
-
You missed the point before config:
Quotecd /storage/config/sleep.d
Please stay focused.
If needed, create a new directory by mkdir /storage/.config/sleep.conf.d.
-
Use rm -rf sleep.d to delete the directory and its content.
QuoteDisplay MoreLibreELEC:~/.config/sleep.conf.d # cat >/storage/.config/sleep.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
LibreELEC:~/.config/sleep.conf.d # ls
The first line is obviously wrong, because we want to use sleep.conf.d, and not sleep.d as directory. Please copy & paste correctly.

-
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:
If you don't have it, create it:
Then delete /storage/.config/sleep.d:
Then go into the directory, and look what's inside:
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.
Codecat >/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 EOFAfter that you should see the new file:
Result:
Quote99-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:
Code
Display Morecat >/storage/.config/sleep.conf.d/20-custom-sleep.sh <<'EOF' #!/bin/sh . /etc/profile for script in $HOME/.config/sleep.conf.d/*.power; do if [ -f $script ]; then progress "running custom sleep script $script ($@)..." sh $script $@ fi done exit 0 EOFAfter that you should see the new file:
Result:
Quote20-custom-sleep.sh README
99-toggle_rate.power sleep.conf.sample
Reboot, and hope that it works.

-
So you created the /storage/.config/sleep.d directory, and have the 20-custom-sleep.sh script as content, right?
-
A developer has replied to me. He says, the unmount error of the screenshot is normal, and has nothing to do with our issue.
Instead it's probably an issue with reboot parameters. I'm trying to figure out, how to edit them...
-
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.
-
-
I can run the gparted live usb? just a fsck i guess?
That's good, so you get the option to repair a partition instantly.
-
sIRwa2 Thanks for the log. I don't see any errors at the end of it. Usually unmounting a device fails, if it contains errors.
Can you download a tool to check all your internal partitions? (boot start from USB stick or CD)
-
I also had an empty list on LE 11.0.0 at first. I had to switch to update channel 10, and then back to 11 to fill the list with LE 11.0.1.
I've been informed the developers about that issue, but no reply. I hope it will be fixed at LE 12.
-
If the LSPCon driver is bad, we can't rely on that device list. Something is fishy on it.
Maybe it's best to open the box, and identify all chips.
I also want to see kodi.log, generated by pastekodi.