UB
Universal Blue•3mo ago
Fwenk

Controller stops working after sleep mode

Desktop Bazzite OS, AMD GPU, happens with all controller types. (Xbox, PS4...) Reboot fixes the problem. Is this linux kernel related or Bazzite OS?
6 Replies
Zeglius
Zeglius•3mo ago
Are there controllers connected through Bluetooth? Chances are Bluetooth not disconnecting from these before suspension
Fwenk
Fwenk•3mo ago
Yes all bluetooth. Ow ok
Zeglius
Zeglius•3mo ago
Alright, for me seems it works. Would like to improve it but should work. try pasting this in the terminal:
sudo tee /etc/systemd/system/bazzite-bluetooth-sleep-workaround.service <<EOF
[Unit]
Description=Reset bluetooth controller before sleep
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
ExecCondition=/usr/bin/systemctl is-enabled bluetooth.service
ExecStart=/usr/bin/systemctl restart bluetooth.service
RemainAfterExit=yes

[Install]
WantedBy=default.target
EOF
systemctl enable --now bazzite-bluetooth-sleep-workaround.service
sudo tee /etc/systemd/system/bazzite-bluetooth-sleep-workaround.service <<EOF
[Unit]
Description=Reset bluetooth controller before sleep
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
ExecCondition=/usr/bin/systemctl is-enabled bluetooth.service
ExecStart=/usr/bin/systemctl restart bluetooth.service
RemainAfterExit=yes

[Install]
WantedBy=default.target
EOF
systemctl enable --now bazzite-bluetooth-sleep-workaround.service
After, try suspending and see if the controller keeps connected
Fwenk
Fwenk•3mo ago
That worked. My controller is working after sleep mode. Thx a lot! 🙏 Aah in the game it’s gone again. It does make the clicking noise. But in Steam Game Mode GUI it does work
Zeglius
Zeglius•3mo ago
Yeah, basically will restart bluetooth before going to sleep, forcing controllers to disconnect beforehand
Zeglius
Zeglius•3mo ago
Probably this will be applied by default in future releases https://github.com/ublue-os/bazzite/pull/1390
GitHub
feat: Apply bluetooth controller stuck on sleep workaround by Zegli...
This solves the issue with controllers being kept powered on during suspend. See issue #1289, issue #1040 and potentialy issue #1119
Want results from more Discord servers?
Add your server