I'll try that tomorrow and let you know.
Posts by blueribb
-
-
No joy - Generic Legacy still did not work. I'll keep looking for a solution.
DaFlex - Thanks for all your help and patience.
-
-
-
I think I found the reason that it's not working. It seems xrandr has been removed from LE 11.0.1 Generic.
See this thread: LE11.0.1 on x86 machine - xrandr missing - alternative how to disable/enable HDMI port?
If I try the Generic Legacy (which still contains xrandr), will my script still be there?
By the way, I tried getedid create this morning and it did not help with my issue.
-
I finally got a good result by using cat 99-toggle_rate.power
LibreELEC:~/.config/sleep.conf.d # cat 99-toggle_rate.power
#!/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
-
I tried different combinations to get a result but failed.
login as: root
[email protected]'s password:
##############################################
# LibreELEC #
##############################################
LibreELEC (community): devel-20230310030330-dd3231d (Generic.x86_64)
LibreELEC:~ # cat <99-toggle_rate.power>
-sh: syntax error: unexpected newline
LibreELEC:~ # cd /storage/.config/sleep.conf.d
LibreELEC:~/.config/sleep.conf.d # cat <99-toggle_rate.power>
-sh: syntax error: unexpected newline
LibreELEC:~/.config/sleep.conf.d # nano <99-toggle_rate.power>
-sh: syntax error: unexpected newline
LibreELEC:~/.config/sleep.conf.d # cd
LibreELEC:~ # nano <99-toggle_rate.power>
-sh: syntax error: unexpected newline
LibreELEC:~ # nano <toggle-rate.power>
-sh: syntax error: unexpected newline
LibreELEC:~ #
-
I managed to get everything back in place and now both scripts are present in sleep.conf.d
Bad news is I still have no sound when powering back on from resume. I can toggle video refresh rate from 60 to 59.94, respond NO to the popup and the sound returns.
Back to square one.
I tried running this part of the script manually but got these errors:
login as: root
[email protected]'s password:
##############################################
# LibreELEC #
##############################################
LibreELEC (community): devel-20230310030330-dd3231d (Generic.x86_64)
LibreELEC:~ # cd /storage/.config/sleep.conf.d
LibreELEC:~/.config/sleep.conf.d # ls
20-custom-sleep.sh README
99-toggle_rate.power sleep.conf.sample
LibreELEC:~/.config/sleep.conf.d # /usr/bin/xrandr -display :0 --output HDMI-0 -
-mode 1920x1080 --rate 50
-sh: /usr/bin/xrandr: not found
LibreELEC:~/.config/sleep.conf.d # /usr/bin/xrandr -display :0 --output HDMI-0 -
-mode 1920x1080 --rate 60
-sh: /usr/bin/xrandr: not found
LibreELEC:~/.config/sleep.conf.d # xrandr -display :0 --output HDMI1 --mode 1920
x1080 --rate 59.94
-sh: xrandr: not found
LibreELEC:~/.config/sleep.conf.d # xrandr -display :0 --output HDMI1 --mode
1920x1080 --rate 60
-
I think I deleted sleep.d and sleep.conf.d by mistake. I found 99-toggle_rate.power in config.sleep.d
Oh boy - Now I'm really confused
Here's another screen shot:
login as: root
[email protected]'s password:
##############################################
# LibreELEC #
##############################################
LibreELEC (community): devel-20230310030330-dd3231d (Generic.x86_64)
LibreELEC:~ # rm -fr sleep.d
LibreELEC:~ # cd sleep.conf.d
-sh: cd: can't cd to sleep.conf.d: No such file or directory
LibreELEC:~ # cd /storage/config/sleep.d
-sh: cd: can't cd to /storage/config/sleep.d: No such file or directory
LibreELEC:~ # cd /storage/.config/sleep.d
LibreELEC:~/.config/sleep.d # ls
99-toggle_rate.power
LibreELEC:~/.config/sleep.d # cd sleep.conf.d
-sh: cd: can't cd to sleep.conf.d: No such file or directory
LibreELEC:~/.config/sleep.d # cd
LibreELEC:~ # cd /storage/.config
LibreELEC:~/.config # ls
aacs modules-load.d sysctl.d
boot.status pulse system.d
firmware pulse-daemon.conf.d timesyncd.conf.d
hosts.conf rc_keymaps tmpfiles.d
hwdb.d rc_maps.cfg.sample udev.rules.d
iptables samba.conf.sample wireguard
logind.conf.d sleep.conf.d
modprobe.d sleep.d
LibreELEC:~/.config # rmdir sleep.d
rmdir: 'sleep.d': Directory not empty
LibreELEC:~/.config # rm -rf sleep.d
LibreELEC:~/.config # cd
LibreELEC:~ # cd /storage/.config
LibreELEC:~/.config # ls
aacs modprobe.d sleep.conf.d
boot.status modules-load.d sysctl.d
firmware pulse system.d
hosts.conf pulse-daemon.conf.d timesyncd.conf.d
hwdb.d rc_keymaps tmpfiles.d
iptables rc_maps.cfg.sample udev.rules.d
logind.conf.d samba.conf.sample wireguard
LibreELEC:~/.config #
-
1. Resolution 1920 X 1080p
2. sleep.conf.d is already there
3. remdir sleep.d : Directory not empty
4. cd sleep.conf.d : I also have Readme sleep.conf.sample
I tried to copy the script into the SSH terminal but couldn't figure out how. I right-clicked and it seemed to copy it but when I typed ls, it wasn't there. What did I do wrong? Here's a screen shot of the results so far:
login as: root
[email protected]'s password:
##############################################
# LibreELEC #
##############################################
LibreELEC (community): devel-20230310030330-dd3231d (Generic.x86_64)
LibreELEC:~ # cd /storage/.config
LibreELEC:~/.config # ls
aacs modules-load.d sysctl.d
boot.status pulse system.d
firmware pulse-daemon.conf.d timesyncd.conf.d
hosts.conf rc_keymaps tmpfiles.d
hwdb.d rc_maps.cfg.sample udev.rules.d
iptables samba.conf.sample wireguard
logind.conf.d sleep.conf.d
modprobe.d sleep.d
LibreELEC:~/.config # rmdir sleep.d
rmdir: 'sleep.d': Directory not empty
LibreELEC:~/.config # cd sleep.conf.d
LibreELEC:~/.config/sleep.conf.d # ls
README sleep.conf.sample
LibreELEC:~/.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
README sleep.conf.sample
LibreELEC:~/.config/sleep.conf.d #
LibreELEC:~/.config/sleep.conf.d #
LibreELEC:~/.config/sleep.conf.d #
-
Yes - I have the /storage/.config/sleep.d directory
The 20-custom-sleep.sh script was probably on my old NUC, not the newer one.
I know there are quite a few different fixes (patches) for this problem but has there ever been a permanent fix?
-
I replaced a 2013 Intel NUC with a newer model from 2018. I now have everything working perfectly except for NO AUDIO when turning on the NUC from resume. My old NUCs suffered from this same issue and mglae (developer) helped me to install a script which toggled the video resolution causing the audio to return. This always worked with my older NUCs. I SSHed into my newer NUC this morning and copy/pasted the script into the new NUC. I wasn't sure how to save and exit properly, so I just typed EXIT and Putty closed.
My newer NUC still has no audio when turning on from suspend, unless I toggle the video resolution. Was I supposed to SAVE the Putty Session's changes?
Here's a link to my old thread. The fix starts at post # 32 No Sound when turning on from resume - Intel NUC
Old NUC: DC53427HYE (2013)
Newer NUC: NUC8i5BEK (2018)
-
You may want to research "long press" keymaps.
-
The volume control for which device?
- Kodi
- TV
- Amp / Receiver
-
The NUC8i5BEK only has a single HDMI port
-
Update: I sent the NUC11TNKi3 back for a refund and received a NUC8i5BEK. Works perfectly out of the box. No problems with keyboard or remote control. This thread can now be closed.
-
Oh boy...
Da Flex - Thanks for your help, but I'll pass. I'm 72 and don't have the patience to dive into this. The default keymaps should have worked with my new rig. By the way, there was nothing that I could see in keymaps using your instructions above. My older NUC's worked fine out of the box. I did have to program some keys on my Logitech Harmony 665 for specific functions, but keyboards always worked as expected. Since the keyboard is useless with this new NUC, I am going to assume the fault is the NUC.
-