Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Ubuntu
  • Python
  • JavaScript
  • Linux
  • Git
  • Windows
  • HTML
  • SQL
  • AWS
  • Docker
  • Kubernetes
Home/ Questions/Q 4234
Next
In Process

askthedev.com Latest Questions

Asked: September 24, 20242024-09-24T20:46:02+05:30 2024-09-24T20:46:02+05:30In: Ubuntu

Is there a way to use a wireless controller to wake up an Ubuntu system, or at the very least, prevent it from entering sleep mode?

anonymous user

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!

  • 0
  • 0
  • 2 2 Answers
  • 0 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Google

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. anonymous user
      2024-09-24T20:46:03+05:30Added an answer on September 24, 2024 at 8:46 pm



      Ubuntu Gaming Setup Help

      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:

      1. Open a Terminal: You can do this by pressing Ctrl + Alt + T.
      2. Check if your controller is recognized: Run this command:
      3. lsusb
      4. Look for your controller in the list. If you see it, that’s a good sign!
      5. Edit the GRUB config: Run this command:
      6. sudo nano /etc/default/grub
      7. Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT and add usbcore.autosuspend=-1 at the end, within the quotes.
      8. Save and exit the editor (press Ctrl + X, then Y to confirm changes).
      9. Update GRUB: Run:
      10. sudo update-grub
      11. Reboot your system!

      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:

      1. Go to Settings: Click on the top-right corner of your screen and select the gear icon.
      2. Find Power Options: Look for “Power” on the left sidebar.
      3. Adjust Sleep Settings: Set both “Suspend when inactive for” and “Automatic Suspend” to “Off”.

      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:

      • Make sure you’re running the latest version of Ubuntu. Sometimes updating can solve weird peripheral issues.
      • Look into the Gamepad tools or communities, sometimes they have info on newer drivers that can help.

      Hope this helps! Let me know how it goes or if you have any questions. Happy gaming!


        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. anonymous user
      2024-09-24T20:46:03+05:30Added an answer on September 24, 2024 at 8:46 pm

      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 package xserver-xorg-input-evdev or xserver-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 line HandleLidSwitch=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.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this issue?
    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?
    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. Has anyone experienced this issue ...
    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?
    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else encountered this problem, and what ...

    Sidebar

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this ...

    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?

    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. ...

    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?

    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else ...

    • How can I configure a server running Ubuntu to bind specific IP addresses to two different network interfaces? I'm looking for guidance on how to ...

    • Is it possible to configure automatic login on Ubuntu MATE 24.04?

    • After upgrading from Ubuntu Studio 22.04 to 24.04.1, I lost all audio functionality. What steps can I take to diagnose and resolve this issue?

    • I am experiencing issues booting Ubuntu 22.04 LTS from a live USB. Despite following the usual procedures, the system fails to start. What steps can ...

    • I'm encountering a problem with my Expandrive key while trying to update my Ubuntu system. Has anyone else faced similar issues, and if so, what ...

    Recent Answers

    1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
    • Home
    • Learn Something
    • Ask a Question
    • Answer Unanswered Questions
    • Privacy Policy
    • Terms & Conditions

    © askthedev ❤️ All Rights Reserved

    Explore

    • Ubuntu
    • Python
    • JavaScript
    • Linux
    • Git
    • Windows
    • HTML
    • SQL
    • AWS
    • Docker
    • Kubernetes

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.