Open utterances-bot opened 2 years ago
Any luck with the hibernate/suspend issue?
I found the root cause of the issue (at least on my XPS 9510). Closing the lid while having bluetooth enabled was somehow waking the computer, so I managed to test a fix of the issue just by disabling bluetooth in Gnome. Closing the lid now enter in S3 deep sleep.
So I wrote a script to disable bluetooth and reenable it whenever I close/open the lid.
rfkill block bluetooth
and make it executable : chmod +x YOUR_SCRIPT_NAME
2) Create a service
[Unit]
Description=User suspend actions
Before=suspend.target
[Service]
User=%I
ExecStart=/home/YOUR_USERNAME/YOUR_SCRIPT_NAME
[Install]
WantedBy=sleep.target
3) Enable service
sudo systemctl enable suspend@YOUR_USERNAME
4) Create service
[Unit]
Description=User suspend actions
Before=suspend.target
[Service]
User=%I
ExecStart=/home/YOUR_USERNAME/YOUR_SCRIPT_NAME
[Install]
WantedBy=suspend.target
4) Enable service
sudo systemctl enable resume@YOUR_USERNAME
@dannycoulombe I managed to get it working days before my XPS decided to die, so I couldn't get this post updated. I use LUKS with an encrypted swap partition, and it turns out I didn't enable the resume
[1] hook in my mkinitcpio
config and some other things. These are the file changes I needed to do.
Dell XPS 9510 and the linux experience | Ben Mezger
I’ve recently decided to migrate back to Linux after some years of using a MacBook. I haven’t distanced myself from Linux while using the Mac, as I had a Thinkpad x320 by my side all the time running Archlinux. I wanted something much more powerful than the Macbook, along with a lightweight design and something that would last for the next five years. I’ve got myself a Dell XPS, with the following specification:
https://benmezger.github.io/notes/dell_xps_9510_and_the_linux_experience/