Andre Robatino wrote:
> The instructions at
> https://discussion.fedoraproject.org/t/gnome-suspends-after-15-minutes-of-user-inactivity-even-on-ac-power/79801
> worked up to and including F42, but no longer do. As a
> result, unless one is logged into GNOME, the machine will
> suspend after 15 minutes. For example, if one is only
> ssh'd into the machine this will happen. The command to
> see the current settings still works, but the command to
> change settings doesn't.

Posting the error message to show _how_ it doesn't work
would likely be helpful.  I was curious, so I ran the
Workstation Live image in a VM and ran the commands from the
link:

    liveuser@localhost-live:~$ sudo -u gdm dbus-run-session gsettings 
list-recursively org.gnome.settings-daemon.plugins.power | grep sleep
    org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 900
    org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
    org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 900
    org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 
'suspend'

    liveuser@localhost-live:~$ sudo -u gdm dbus-run-session gsettings set 
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
    dbus-daemon[6841]: [session uid=42 pid=6841 pidfd=5] Activating service 
name='ca.desrt.dconf' requested by ':1.0' (uid=42 pid=6842 comm="gsettings set 
org.gnome.settings-daemon.plugins.po" 
label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
    dbus-daemon[6841]: [session uid=42 pid=6841 pidfd=5] Successfully activated 
service 'ca.desrt.dconf'

    (process:6842): dconf-WARNING **: 03:19:29.245: failed to commit changes to 
dconf: 
GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: 
Failed to create file “/var/lib/gdm/.config/dconf/user.48R6E3”: No such file or 
directory

The "No such file or directory" made me check whether
/var/lib/gdm/.config/ existed.  It does not.  That was
removed from the rpm as part of recent commit to the gdm
package, https://src.fedoraproject.org/rpms/gdm/c/29b8d24
(Simplify packaging, 2025-09-16).  One of the changes
dropped the creation of the gdm user home directory and the
.config within it.

The instructions just need to document creating the
directory now, e.g.:

    sudo install -dpv -o gdm -g gdm -m 0700 ~gdm/.config

After that, the '... gsettings set ...' command works.

Whether the gdm package maintainers might consider it a bug
that the directory isn't created, I am not sure.  Reading
the commit message of the change I referenced earlier makes
me suspect the answer could be no.  But perhaps with a
concrete example of the sort of change that Fedora has
recommended to users for several releases would help.

-- 
Todd

Attachment: signature.asc
Description: PGP signature

-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to