Brooks Computing Systems
USA
Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites

To disable sleep mode on a XFCE desktop environment running on a Gentoo system, you will need to modify the power manage

To disable sleep mode on a XFCE desktop environment running on a Gentoo system, you will need to modify the power management settings. Here are the steps to do this:

  • Type the following command to edit the power management settings file:
     sudo nano /etc/acpi/default.sh
  • This will open a text editor where you can modify the script.

  • Locate the line that contains `# Handle sleep and hibernate on button press.` If it's commented out (starts with `#`), remove the `#` to uncomment it.
  • Find the lines related to handling sleep, hibernate, and wake events. You might see something like:
     handle_suspend() {
         logger "Power key pressed: suspend"
         systemctl suspend
     }
  • Modify this line to disable sleep mode. For example, you can change it to a no-op command or comment it out if the system should not react to power button presses for sleep:
     handle_suspend() {
         # logger "Power key pressed: suspend"
         # systemctl suspend
         echo "Sleep disabled by user."
     }
  • Save and close the file using `Ctrl + X`, then press `Y` to confirm changes, and `Enter` to save.

  • You can test if your system still hibernates or sleeps when you press the power button by pressing the power button on your computer (if it has one). If sleep is disabled, nothing should happen.

  • Open XFCE settings by clicking on the XFCE4 icon in the top panel and selecting "Settings Manager" > "Power Management".
  • In the power management settings, you might see options to disable sleep mode. Follow the instructions to turn off sleep mode if available.

  • After making these changes, reboot your system to ensure that the new configuration is applied:
     sudo reboot

By following these steps, you should be able to disable sleep mode on a XFCE desktop environment running on Gentoo. If you encounter any issues or need further assistance, please let me know!

Quality, Reliability & Service        Consultancy for Mainframes, Desktops & Web Sites
Visit https://bcs.archman.us Contact Us https://bcs.archman.us/contact Languages
Thank You For Visiting
Brooks Computing Systems
USA
Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites
Quality, Reliability & Service
Visit Visit Our Site