If I shut my laptop's display and unplug too quickly, I sometimes find that when I re-open the display that the Mate screensaver unlock dialog and background have shifted to the left of the display instead of being centered, the unlock dialog, although visible, is inoperative, and the right side of the display has a block of background image.
The mouse pointer still moves and even changes state.
I can press ctrl-alt-F1 to enter a console and login. A "ps aux" shows that all processes are still running, including Firefox, Thunderbird, etc.
I have tried issuing some mate-screensaver-command with various options but this had no effect.
Can someone help by suggesting some console commands that may help revive X into a usable state and return to my work?
In greater detail before I file a bug report (I need to better understand how to reproduce this bug):
This happens when my laptop is receiving power via USB-C from an external display (which I usually don't use as a secondary display -- so the external display is in sleep mode). I'm on Ubuntu Mate 24.04.1 LTS. Laptop is a Thinkpad X1 gen 9 with resolution 3840x2400 (such a high resolution is sometimes not handled smoothly by X when an external display with a much lower resolution is connected). I have not experienced this issue when unplugging from a conventional power supply.
Thank you,
Thomas
1 Like
Welcome, @thomas2net to the community!
1 Like
It looks like this is a mate-screensaver bug related to the now closed:
opened 11:15AM - 18 May 17 UTC
closed 08:10AM - 24 Aug 18 UTC
HP EliteBook 840 G2 (J8R62EA#AK8)
eDP1=1920x1080
DP-1=1920x1200
DP-2=1920x120… 0
eDP1 is off in Monitor Preferences and
DP-1 and DP-2 are side by side as one virtual screen
lock screen, turn off and on both DP-1 and DP-2, the mate-screenlocker only
locks one screen, the other one is usable and accepts input before any unlock operation.
In the Xorg log one can see this:
....
[780090.438] (II) intel(0): Enabled output DP1-2
[780090.438] (II) intel(0): Enabled output DP1-1
[780090.439] (II) intel(0): Enabled output DP1-2
[780090.789] (II) intel(0): resizing framebuffer to 3840x1200
[780090.807] (II) intel(0): switch to mode [email protected] on DP1-2 using pipe 0, position (1920, 0), rotation normal, reflection none
[780090.854] (II) intel(0): switch to mode [email protected] on eDP1 using pipe 2, position (0, 0), rotation normal, reflection none
[780091.932] (II) intel(0): Enabled output DP1-1
[780091.932] (II) intel(0): Enabled output DP1-2
[780091.932] (II) intel(0): Enabled output DP1-1
[780091.932] (II) intel(0): Enabled output DP1-2
[780091.932] (II) intel(0): Disabled output DP1-3
[780091.938] (II) intel(0): Enabled output DP1-1
[780091.939] (II) intel(0): Enabled output DP1-2
[780091.939] (II) intel(0): Enabled output DP1-1
[780091.939] (II) intel(0): Enabled output DP1-2
[780092.236] (II) intel(0): resizing framebuffer to 1920x1080
[780092.237] (EE) intel(0): failed to set mode: Invalid argument [22]
[780092.238] (II) intel(0): Enabled output DP1-1
[780092.239] (II) intel(0): Enabled output DP1-2
[780092.240] (II) intel(0): Enabled output DP1-1
[780092.240] (II) intel(0): Enabled output DP1-2
[780092.280] (EE) intel(0): failed to set mode: Invalid argument [22]
[780092.281] (II) intel(0): Enabled output DP1-1
[780092.282] (II) intel(0): Enabled output DP1-2
[780092.283] (II) intel(0): Enabled output DP1-1
[780092.303] (II) intel(0): switch to mode [email protected] on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[780105.529] (II) intel(0): Enabled output DP1-1
[780105.531] (II) intel(0): Enabled output DP1-1
[780105.532] (II) intel(0): Enabled output DP1-2
[780105.533] (II) intel(0): Enabled output DP1-3
....
<bountysource-plugin>
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45323268-mate-screensaver-1-18-1-does-not-always-lock-all-screens?utm_campaign=plugin&utm_content=tracker%2F1635706&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1635706&utm_medium=issues&utm_source=github).
</bountysource-plugin>
opened 03:57AM - 28 Nov 17 UTC
closed 10:03PM - 08 Sep 18 UTC
#### Expected behaviour
Upon resume from a screen-locked suspended state, the s… creen is locked and a password prompt is displayed regardless of whether a new display has been attached or removed when the computer was suspended.
#### Actual behaviour
Upon resume from a screen-locked suspended state, if a display has been attached or removed when the computer was suspended, then the screen is unlocked and cannot be locked either via a hotkey or a mate-screensaver command at a terminal. Killing and restarting the mate-screensaver process gets it going again.
NB: I see this with a Quad-HD LCD connected to my Dell Latitude E6220 laptop via a DisplayPort cable attached to its dock. Suspend the laptop with the screen locked, dock it, and resume it, and the unlocked desktop is displayed. Same problem if the screen is locked and the laptop is suspended with the external display attached, and then the laptop is resumed after disconnecting the external display.
NB2: I haven't tested what happens when an external screen is connected or disconnected with the screen locked and the laptop running.
#### Steps to reproduce the behaviour
1) Lock the screen without an external display attached.
2) Suspend to RAM.
3) Connect an external display.
4) Resume from suspend.
5) Observe that the screen is no longer locked.
6) Attempt to lock the screen and observe that it fails.
7) (Optional): Kill the mate-screensaver process and restart it. The screensaver will now operate normally until a display is added or removed.
#### MATE general version
mate-desktop-1.19.1-1.fc27.x86_64
#### Package version
1.19
#### Linux Distribution
Fedora 27 (this bug was seen previously with Fedora 26 and with Arch Linux).
#### Link to downstream report of your Distribution
**### NB: The issue I describe above appears to be identical to the one in https://github.com/mate-desktop/mate-screensaver/issues/126#issuecomment-319489655**
I guess we'll soon have the pleasure of re-opening them...