sudo vim /usr/lib/systemd/system-sleep/windows
#!/bin/bash
# Enable the use of hybrid-sleep for hibernate/reboot into windows when dual booting.
# requires the flag HybridSleepMode=reboot to be enabled in /etc/systemd/sleep.conf
# and grub-reboot to be installed
case $1/$2 in
pre/hybrid-sleep)
# grub-reboot 2\
# sudo bootctl set-oneshot auto-windows
# sudo efibootmgr -n 0006
;;
esac
sudo chmod +x /usr/lib/systemd/system-sleep/windows
sudo vim /usr/lib/systemd/system-sleep/fancontrol
#!/bin/bash
# fancontrol resume hook
case $1 in
post) fancontrol ;;
esac
sudo chmod +x /usr/lib/systemd/system-sleep/fancontrol
Sleep is broken, so no hybrid sleep. Hibernation is not working, so reboot it is
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=bash -c 'systemctl reboot --boot-loader-entry=auto-windows;$SHELL'
Name=Windows
Terminal=true