So, I’ve been diving into some gaming setups recently and ran into a bit of a snag that I hope someone can help me with. I’ve got this sweet Ubuntu rig for both gaming and general use, but I’ve noticed that every time it goes to sleep, it’s such a hassle to get it back up and running. I mean, I really don’t want to have to get up and manually press the power button every time.
Here’s where my wireless controller comes into play. I’ve read a bit about waking up systems through various peripherals, but I can’t seem to nail down if there’s a straightforward way to use my wireless gaming controller to wake up my Ubuntu machine. I’ve got a Bluetooth controller that I use with my PC, and it works like a charm for gaming, but when the system goes to sleep, I find myself either clicking around or shaking my mouse like a maniac to wake it up.
Has anyone found a solid solution or maybe a setting I need to tweak? I’ve dug into the power settings in Ubuntu, but nothing seems to jump out as a way to link my controller with wake functionality. I did come across some forums suggesting that certain drivers might help, but they seemed a bit outdated or not user-friendly.
Also, if that’s a no-go, I’m curious if there’s a way to prevent my Ubuntu system from going into sleep mode altogether. I get it; power saving is important, but honestly, my system just sits there idle for a while while I’m in the middle of a game, and then I have to mess around with waking it up.
I’m hoping someone out there has tackled this issue before and can steer me in the right direction. Any tips on configuring my controller, adjusting sleep settings, or even alternative workarounds would be massively appreciated. Thanks in advance for any help you can provide!
Controller Won’t Wake Up Ubuntu?
Hey there! I totally get your frustration with getting your Ubuntu setup to wake up, especially when you’re in the middle of gaming. I ran into something similar with my setup, and here are a few things that might help:
Waking Up with Your Bluetooth Controller
First up, not all controllers support waking up a sleeping system, but it’s worth a shot to check your settings. Here’s a simple way to link your controller:
Ctrl + Alt + T
.GRUB_CMDLINE_LINUX_DEFAULT
and addusbcore.autosuspend=-1
at the end, within the quotes.Ctrl + X
, thenY
to confirm changes).After rebooting, try using your controller to wake the machine.
Preventing Sleep Mode
If that doesn’t work, or if you just want to skip sleep mode altogether, you can do this:
This should keep your system awake while you’re in a game or whenever!
Driver Issues
If you’re feeling adventurous, you can check out the drivers:
Hope this helps! Let me know how it goes or if you have any questions. Happy gaming!
To use your wireless Bluetooth controller to wake your Ubuntu machine from sleep, first ensure that your controller and Bluetooth setup are correctly configured. Open a terminal and check if your controller is recognized by running the command
sudo lsusb
while the controller is connected. Next, you’ll want to look into enabling wake-on-input features. Ideally, you would need to install the packagexserver-xorg-input-evdev
orxserver-xorg-input-libinput
if you don’t have them already. Once installed, check your controller’s settings and make sure it is set to allow wake events. More specifically, you can edit the configuration file located at/etc/systemd/logind.conf
and uncomment or add the lineHandleLidSwitch=suspend
, which may help with waking the system using connected devices.If you find no success with the controller wake functionality, you can consider preventing your system from sleeping altogether, especially while gaming. Navigate to the Power settings in Ubuntu and change the ‘Suspend when inactive for’ option to ‘Never’. Additionally, you can use the terminal command
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
to disable sleep mode when plugged in. To save power while ensuring you don’t have to interact physically with your system often, consider adjusting the display sleep settings separately, allowing your gaming rig to remain active but darkening the screen when not engaged.