Fails to deactivate dpms off mode after user initiated wake-up events(not system-suspended, just locked and dpms active)

Bug #1801609 reported by Chris Rainey
118
This bug affects 18 people
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Xubuntu 18.10 with Xubuntu.desktop session running. System will lock and turn-off monitors(automatically or manually), but--will not wake-up monitors upon keyboard or mouse activity. I can type unlock password, blindly and then the monitors will wake and show unlocked session.

WORKAROUND: I uninstalled light-locker, then, I installed gnome-screensaver. Xfce4(Xubuntu.desktop) will fallback on gnome-screensaver if light-locker is not found or installed.

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: light-locker (not installed)
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
Uname: Linux 4.18.0-10-generic x86_64
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Nov 4 13:01:36 2018
InstallationDate: Installed on 2018-11-03 (0 days ago)
InstallationMedia: Xubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.2)
SourcePackage: light-locker
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Chris Rainey (ckrzen) wrote :
Revision history for this message
Chris Rainey (ckrzen) wrote :

Confirming that this problem exists on two different systems. Both systems(desktop and laptop) are using an Intel video card year 2009 or newer.

Additionally, it would seem that the real issue is that light-locker or some sub-system is not switching the display back to VT-8, as I can wake the screen by signaling: Ctrl+Alt+F{1,2,3,etc.}, followed by Ctrl+Alt+F8 to regain the login screen.

Systems:

1. 2nd Gen Intel Core i3-2120 Processor (3M, 3.30GHz) w/HD2000 Graphics, Dell Optiplex 390

2. i5-2520M(2.5GHz) Intel HD Graphics, Lenovo ThinkPad T420

Revision history for this message
Chris Rainey (ckrzen) wrote :

Soooo looking forward to Sean's xfce4-screensaver @ https://github.com/xfce-mirror/xfce4-screensaver !!

If you are reading this, please help test this *new* program.

Chris Rainey (ckrzen)
summary: - Dual monitors(vga+HDMI) fail to wake after screen-lock(no system-
- suspend)
+ Fails to VT-switch back to lightdm after user initiated wake-up
+ events(not system-suspended, just locked)
summary: Fails to VT-switch back to lightdm after user initiated wake-up
- events(not system-suspended, just locked)
+ events(not system-suspended, just locked and dpms active)
Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote : Re: Fails to VT-switch back to lightdm after user initiated wake-up events(not system-suspended, just locked and dpms active)

Does terminating light-locker and running "dm-tool lock" trigger the bug?

I assume that the problem is either caused by the GPU driver (both systems have the same generation Intel graphics) or lightdm-gtk-greeter.

Changed in light-locker (Ubuntu):
status: New → Incomplete
Revision history for this message
Chris Rainey (ckrzen) wrote :

Hi Theo, thanks for the follow-up. In answer to your question:

YES! "dm-tool lock" produces exact same result.

$ killall light-locker

$ dm-tool lock

Revision history for this message
Chris Rainey (ckrzen) wrote :

Also, upon reflection, it would seem that the actual issue is _not_ a failure to switch to VT8, as I can blindly enter passwd and return to session. It would seem that the video driver is simply not coming out of +dpms mode. I will update the title to better reflect that.

summary: - Fails to VT-switch back to lightdm after user initiated wake-up
+ Fails to deactivate dpms off mode after user initiated wake-up
events(not system-suspended, just locked and dpms active)
Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Are there any hints in the system or lightdm logs?

/var/log/lightdm/*.log

Also, does running "sleep 1 && xset dpms force off" in general work properly or do you encounter the same bug?

Revision history for this message
Chris Rainey (ckrzen) wrote :

lightdm & syslog(relevant sections only), attached. I saw nothing suspicious, although the lightdm.log seemed to have the most relevant entries.

Also,

$ sleep 1 && xset dpms force off

works normally and as expected.

Revision history for this message
Chris Rainey (ckrzen) wrote : Re: [Bug 1801609] Re: Fails to deactivate dpms off mode after user initiated wake-up events(not system-suspended, just locked and dpms active)

lightdm & syslog(relevant sections only), attached. I saw nothing
suspicious, although the lightdm.log seemed to have the most relevant
entries.

Also,

$ sleep 1 && xset dpms force off

works normally and as expected.

On Tue, Nov 6, 2018 at 11:56 AM Theo Linkspfeifer <
<email address hidden>> wrote:

> Are there any hints in the system or lightdm logs?
>
> /var/log/lightdm/*.log
>
> Also, does running "sleep 1 && xset dpms force off" in general work
> properly or do you encounter the same bug?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1801609
>
> Title:
> Fails to deactivate dpms off mode after user initiated wake-up
> events(not system-suspended, just locked and dpms active)
>
> Status in light-locker package in Ubuntu:
> Incomplete
>
> Bug description:
> Xubuntu 18.10 with Xubuntu.desktop session running. System will lock
> and turn-off monitors(automatically or manually), but--will not wake-
> up monitors upon keyboard or mouse activity. I can type unlock
> password, blindly and then the monitors will wake and show unlocked
> session.
>
> WORKAROUND: I uninstalled light-locker, then, I installed gnome-
> screensaver. Xfce4(Xubuntu.desktop) will fallback on gnome-screensaver
> if light-locker is not found or installed.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 18.10
> Package: light-locker (not installed)
> ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
> Uname: Linux 4.18.0-10-generic x86_64
> ApportVersion: 2.20.10-0ubuntu13
> Architecture: amd64
> CurrentDesktop: XFCE
> Date: Sun Nov 4 13:01:36 2018
> InstallationDate: Installed on 2018-11-03 (0 days ago)
> InstallationMedia: Xubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.2)
> SourcePackage: light-locker
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/light-locker/+bug/1801609/+subscriptions
>

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

I did not spot anything relevant in your log files either.

Sadly, no idea how to debug this further also.

affects: light-locker (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Chris Rainey (ckrzen) wrote :

@Theo: Thanks for your help.

On Fri, Nov 9, 2018 at 10:15 AM Theo Linkspfeifer <
<email address hidden>> wrote:

> I did not spot anything relevant in your log files either.
>
> Sadly, no idea how to debug this further also.
>
> ** Package changed: light-locker (Ubuntu) => xorg-server (Ubuntu)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1801609
>
> Title:
> Fails to deactivate dpms off mode after user initiated wake-up
> events(not system-suspended, just locked and dpms active)
>
> Status in xorg-server package in Ubuntu:
> Incomplete
>
> Bug description:
> Xubuntu 18.10 with Xubuntu.desktop session running. System will lock
> and turn-off monitors(automatically or manually), but--will not wake-
> up monitors upon keyboard or mouse activity. I can type unlock
> password, blindly and then the monitors will wake and show unlocked
> session.
>
> WORKAROUND: I uninstalled light-locker, then, I installed gnome-
> screensaver. Xfce4(Xubuntu.desktop) will fallback on gnome-screensaver
> if light-locker is not found or installed.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 18.10
> Package: light-locker (not installed)
> ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
> Uname: Linux 4.18.0-10-generic x86_64
> ApportVersion: 2.20.10-0ubuntu13
> Architecture: amd64
> CurrentDesktop: XFCE
> Date: Sun Nov 4 13:01:36 2018
> InstallationDate: Installed on 2018-11-03 (0 days ago)
> InstallationMedia: Xubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.2)
> SourcePackage: light-locker
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1801609/+subscriptions
>

Revision history for this message
Lawrence Houston (lhoust) wrote :

Confirming this problem exists with my Toshiba Satellite C650 (Core i3-2350M 2.3 GHz, onboard Intel HD Graphics 3000), with a fresh Xubuntu 18.10 Installation.

In my case switching to another Virtual Terminal and back to VT-7 (Alt-Ctrl-F7), returns me to an unblanked XFCE Desktop!

For me another "workaround" is plugging an external monitor into the Satellite C650's VGA Port, which also unblanks my XFCE Desktop.

Although terminating light-locker and running "dm-tool lock" does trigger the bug, under those conditions my VGA Port "workaround" does not work.

I have not observed a "Locked Screen" and therefore blindly typing my password does not work...

The problem does not exist with an Ubuntu 18.10 Installation on my Satellite C650.

My own Bug Report https://bugs.launchpad.net/bugs/1803268 is a Duplicate of those one.

Changed in xorg-server (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Few more things:

- Does running "dm-tool switch-to-greeter" instead trigger the bug?
- Does simply waiting at the login screen for 10 minutes trigger the bug?
- Can the bug be reproduced after installing and booting an older kernel version? I suggest to test with 4.15 (version used in 18.04).

https://wiki.ubuntu.com/KernelMainlineBuilds
http://kernel.ubuntu.com/~kernel-ppa/mainline/

Revision history for this message
Lawrence Houston (lhoust) wrote :

With my Toshiba Satellite C650 (Core i3-2350M 2.3 GHz, onboard Intel HD Graphics 3000):

- Running "dm-tool switch-to-greeter" does NOT trigger the Bug, rather it takes me to a
  Locked Screen, from which I can Unlock and return to my Desktop

- From a Blanked Login Screen. Behaviour is what it should be, that is to say the Screen Unblanks
  with either a Keystroke or a Mouse Event and one can Login

- With the MainBuild 4.15.18 and the 4.20.0-rc3 Kernels the Bug remains, the Screen remains Blanked
  and will NOT respond to Keystrokes or Mouse Events

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

The cause of this issue has to be in Xorg 1.20 then (18.04 comes with 1.19).

I assume that xserver-xorg-video-intel is still installed by default, so please check if removing this driver package has any effect (the generic modesetting driver will be used instead).

For reference the greeter code:
https://git.launchpad.net/lightdm-gtk-greeter/tree/src/lightdm-gtk-greeter.c#n2830

Revision history for this message
Lawrence Houston (lhoust) wrote :

The Bug is present whether or not xserver-xorg-video-intel driver is installed.

From what I can determine the generic modsetting driver is being used in either case!

Attached is the Xorg.0.log with the xserver-xorg-video-intel driver installed?

Revision history for this message
Lawrence Houston (lhoust) wrote :

Attached is the Xorg.0.log without the xserver-xorg-video-intel driver installed?

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Indeed. The log file does not list intel_drv.so, so maybe Xorg has to be explicitly configured to do so.

Here is an upstream bug report which appears be closely related to the blanking problem:

https://bugs.freedesktop.org/show_bug.cgi?id=108021

Revision history for this message
Junaid Ahmed (hattingokbori87) wrote :

Tested positive on: Intel Core i3 3rd generation, Intel HD graphics
                    Also with Intel Core i7 8700k & Intel Core M-5Y31

Revision history for this message
Ben Bethge (bbethge) wrote :

Enabling the intel driver by creating /etc/X11/xorg.conf containing
    Section "Device"
        Identifier "intel"
        Driver "intel"
    EndSection
still results in a blank screen (no backlight), but it comes on when moving the pointer, like it did in Xubuntu 18.04.

Revision history for this message
Olexii (noise2003) wrote :

@bbethge, your solution worked for me. After creating xorg.conf and enabling intel driver screen wakes up after lock and behaviour is right. Xubuntu 18.10, Intel(R) HD Graphics 620 (Kaby Lake GT2).

Revision history for this message
Chris Rainey (ckrzen) wrote :

More info here, as well:

If I only set the "Switch off after" Display setting to >1 Minute and leave
the other settings("Blank after" and "Put to sleep after") at 0(Never),
then the display wakes up normally!

This was tested on the originally affected system(s) and required no
customized xorg.conf.

On Sun, Feb 17, 2019 at 1:10 PM Noise <email address hidden> wrote:

> @bbethge, your solution worked for me. After creating xorg.conf and
> enabling intel driver screen wakes up after lock and behaviour is right.
> Xubuntu 18.10, Intel(R) HD Graphics 620 (Kaby Lake GT2).
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1801609
>
> Title:
> Fails to deactivate dpms off mode after user initiated wake-up
> events(not system-suspended, just locked and dpms active)
>
> Status in xorg-server package in Ubuntu:
> Confirmed
>
> Bug description:
> Xubuntu 18.10 with Xubuntu.desktop session running. System will lock
> and turn-off monitors(automatically or manually), but--will not wake-
> up monitors upon keyboard or mouse activity. I can type unlock
> password, blindly and then the monitors will wake and show unlocked
> session.
>
> WORKAROUND: I uninstalled light-locker, then, I installed gnome-
> screensaver. Xfce4(Xubuntu.desktop) will fallback on gnome-screensaver
> if light-locker is not found or installed.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 18.10
> Package: light-locker (not installed)
> ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
> Uname: Linux 4.18.0-10-generic x86_64
> ApportVersion: 2.20.10-0ubuntu13
> Architecture: amd64
> CurrentDesktop: XFCE
> Date: Sun Nov 4 13:01:36 2018
> InstallationDate: Installed on 2018-11-03 (0 days ago)
> InstallationMedia: Xubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.2)
> SourcePackage: light-locker
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1801609/+subscriptions
>

Revision history for this message
Kevin Brubeck Unhammer (unhammer) wrote :

A simple workaround (that worked for me at least):

    sudo apt install slick-greeter
    printf '[Seat:*]\ngreeter-session=slick-greeter\n' | sudo tee -a /etc/lightdm/lightdm.conf

Revision history for this message
Teresa e Junior (teresaejunior) wrote :

I would refrain from messing with the video drivers just to workaround a bug in the screen locker. Solution #27 doesn't work for me either.

What works for me is killing light-locker and replacing it with xfce4-screensaver or gnome-screensaver. I haven't tested mate-screensaver and xscreensaver.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 18.10 (cosmic) reached end-of-life on July 18, 2019.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in xorg-server (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Paulo Marcel Coelho Aragão (marcelpaulo) wrote :

I'm running Xubuntu 18.0.03, which hasn't reached end-of-life, and this bug is still present. It was introduced when I upgraded to kernel 5.0 with xorg 1.20.4-1ubuntu3~18.04.1. It can be circumvented using either of 2 methods:

1. Uninstalling light-locker and installing xscreensaver
or
2. As suggested by @bbethge, created /etc/X11/xorg.conf.d/20-intel.conf:
Section "Device"
   Identifier "Intel Graphics"
   Driver "intel"
EndSection

Revision history for this message
Paulo Marcel Coelho Aragão (marcelpaulo) wrote :

Ops, apologies for the typo, I'm running Xubuntu 18.04.03

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.