Bug 1854290

Summary: Physical device fails to wakeup via org.gnome.ScreenSaver D-Bus API
Product: Red Hat Enterprise Linux 8 Reporter: Tomas Popela <tpopela>
Component: gnome-shellAssignee: Florian Müllner <fmuellner>
Status: CLOSED ERRATA QA Contact: Michael Boisvert <mboisver>
Severity: high Docs Contact:
Priority: high    
Version: 8.3CC: desktop-qa-list, fmuellner, jadahl, mboisver, mcatanza, nbansal, pbhoot, tpelka, tpopela
Target Milestone: rcKeywords: Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gnome-shell-3.32.2-22.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1850201 Environment:
Last Closed: 2021-05-18 14:38:46 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: 1850201    
Bug Blocks:    

Comment 5 Michael Boisvert 2021-02-16 18:55:23 UTC
Testing results running gnome-shell-3.32.2-27.el8.

Steps:

1. Set Blank screen time 1 minute
    Settings > Power > Blank  Screen > 1 Minute

2. Disable screenlock

3. sleep 75 ; python3 dbus-python.py

Script contents:

import gi
from gi.repository import GLib
from gi.repository import Gio
bus = Gio.bus_get_sync(Gio.BusType.SESSION, None)
bus.call_sync('org.gnome.ScreenSaver',
              '/org/gnome/ScreenSaver',
              'org.gnome.ScreenSaver',
              'SetActive',
              GLib.Variant('(b)', (False, )),
              None,
              Gio.DBusCallFlags.NO_AUTO_START,
              -1,
              None)

Results: After 60 seconds the screen dims and at 75 seconds the screen is woken back up. This is the desired result.

Comment 7 errata-xmlrpc 2021-05-18 14:38:46 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:1586