Bug 1904139

Summary: Automatic Logout Feature not working
Product: Red Hat Enterprise Linux 8 Reporter: yzheng <yzheng>
Component: gnome-settings-daemonAssignee: Carlos Garnacho <cgarnach>
Status: CLOSED ERRATA QA Contact: Martin Krajnak <mkrajnak>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: ayadav, bberg, cgarnach, desktop-qa-list, jreznik, mboisver, mkrajnak, redhat, rstrode, takirby, tpelka, tpopela
Target Milestone: rcKeywords: FutureFeature, Triaged, ZStream
Target Release: 8.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gnome-settings-daemon-3.32.0-15.el8 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1672998 Environment:
Last Closed: 2021-11-09 19:33:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1672998    
Bug Blocks:    
Deadline: 2021-08-09   

Comment 1 Martin Krajnak 2021-07-30 13:01:34 UTC
Hi Carlos, do we have time to fix this in 8.5 ? 

I can reproduce the same issue on 8.5.

gnome-settings-daemon-3.32.0-14.el8.x86_64

Steps to reproduce:
$ gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type logout
$ gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 30
$ Wait for 30 seconds

Actual results:
A notification is shown, saying that the user will be logged out, but nothing happens.

Comment 3 Benjamin Berg 2021-07-30 13:12:29 UTC
Upstream this was changed to simply suppress the notification. i.e. the feature is just completely disabled inside VMs.

Comment 5 Benjamin Berg 2021-07-30 13:21:37 UTC
Wait, I was looking at the wrong commit (related to "logout" being disabled in GDM).

This was fixed upstream by https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/commit/c07ea84b54964ef95461047c53d358f4570e8808

Comment 6 Martin Krajnak 2021-08-11 07:40:47 UTC
gnome-settings-daemon-3.32.0-15.el8.x86_64

Comment 11 errata-xmlrpc 2021-11-09 19:33:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: GNOME security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4381