Re: Power management

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

 



On 11/9/23 08:32, Iosif Fettich wrote:
merely out of curiosity, I asked your question on ChatGPT. Here's the answer:

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

This is sort of the solution. However, it needs to be run as the gdm user with "sudo -u gdm". "gsettings get" works, but the set fails with a dbus error.

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:

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:

This isn't used in Fedora.

    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.

This part probably works to disable suspend and hibernate always, which could be ok if that's what you want.
_______________________________________________
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