Done. It worked.

Thanks

Em qui., 9 de nov. de 2023 às 13:32, Iosif Fettich
<ifett...@gmail.com> escreveu:
>
> 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@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



-- 
Celso Vianna
BSD User: 51318
http://www.bsdcounter.org

Palmas/TO
_______________________________________________
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

Reply via email to