Re: Power management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

merely out of curiosity, I asked your question on ChatGPT. Here's the answer:

---
To prevent Fedora from going to sleep when no user is logged in, you can modify the power settings and systemd configurations. Here are the steps to change this behavior:

1.    Open Terminal: Open a terminal on your Fedora system.

2.    Check the Current Power Settings:
    To see the current power settings, you can use the following command:

    bash

gsettings list-recursively org.gnome.settings-daemon.plugins.power

This will show you the current values and settings for power management.

3. Modify Power Settings:
To change the behavior when no user is logged in, you can set the sleep-inactive-ac-timeout and sleep-inactive-battery-timeout values to -1, which effectively disables sleep. Run the following commands:

bash

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout -1 gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout -1

4. Check Systemd Configuration:
You should also check your systemd configuration to ensure that it's not overriding your power settings. Run the following command to display the current settings:

bash

sudo systemctl show sleep.target

Look for a line that starts with InactiveExitTimestamp. If it's set to yes, it means the system will go to sleep when no user is logged in. To disable this, run the following command:

bash

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

5. Reboot: After making these changes, it's a good idea to reboot your system to ensure that the new settings take effect.

After following these steps, your Fedora system should no longer go to sleep when no user is logged in, even when the power mode is set to "performance."

---

Seems quite ok to me...

Best regards,

Iosif Fettich
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux