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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue