[Desktop-packages] [Bug 1967219] Re: Wayland: Cursor is 90° rotated on rotated screen

2022-05-22 Thread Vadym Abramchuck
Hi Timo,

Thanks for an update!

I can confirm the bug no longer happens with mutter (and friends, i.e.
mutter-common, libmutter etc) 42.1-0ubuntu1 (installed from jammy-
proposed). I'm not observing any other issues or side effects.

** Tags removed: verification-needed-jammy
** Tags added: verification-done-jammy

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1967219

Title:
  Wayland: Cursor is 90° rotated on rotated screen

Status in Mutter:
  Fix Released
Status in mutter package in Ubuntu:
  Fix Released
Status in mutter source package in Jammy:
  Fix Committed

Bug description:
  Impact
  --
  Cursor isn't pointed the right direction with multiple screens with different 
rotations. This seems to only happen when the Desktop Icons extension is 
disabled (for instance in the default GNOME session).

  Test Case
  ---

  1) Use one of the GNOME Shell extensions app to disable the Desktop Icons NG 
extension.
  2) Plug in a second monitor.
  3) Open the Settings App. Open the Displays page.
  4) Set one of the screens to have Orientation: Portrait Right
  5) Move your cursor from one screen to the other. It only happens if there 
aren't windows open under the cursor so this is easiest to reproduce if your 
windows are all minimized.

  What Could Go Wrong
  ---
  See the master bug for this update at LP: #1972726

  Original Bug Report
  ---
  I have a multi-screen setup with one of the displays being rotated (Portrait 
Right in Displays settings).

  Since upgrading to Jammy the cursor gets 90° rotated after being moved
  from a landscape to the rotated screen.

  This seems to be happening only in Overview or if cursor is hovered
  over the desktop. Hovering cursor over the application window (e.g.
  Terminal) would reset the rotation; however, after being moved back to
  the landscape screen, the cursor gets rotated again (but now in an
  opposite direction).

  This doesn't happen on Xorg and it wasn't happening on impish (wayland).
  This doesn't happen if desktop icons NG extension is enabled.

  
  Additional notes: sometimes the dead cursor copy stays near the screen edge 
after cursor is being moved to a different screen.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: mutter 42~beta-1ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
  Uname: Linux 5.15.0-23-generic x86_64
  ApportVersion: 2.20.11-0ubuntu79
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Mar 31 08:23:17 2022
  InstallationDate: Installed on 2019-04-17 (1078 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
  SourcePackage: mutter
  UpgradeStatus: Upgraded to jammy on 2022-03-30 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/1967219/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1967219] Re: Wayland: Cursor is 90° rotated on rotated screen

2022-03-31 Thread Vadym Abramchuck
Note: I just found the issue is only happening if DING extension is
disabled. I've updated the bug description but didn't find a way to
update the title.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1967219

Title:
  Wayland: Cursor is 90° rotated on rotated screen

Status in Mutter:
  Unknown
Status in mutter package in Ubuntu:
  New

Bug description:
  I have a multi-screen setup with one of the displays being rotated
  (Portrait Right in Displays settings).

  Since upgrading to Jammy the cursor gets 90° rotated after being moved
  from a landscape to the rotated screen.

  This seems to be happening only in Overview or if cursor is hovered
  over the desktop. Hovering cursor over the application window (e.g.
  Terminal) would reset the rotation; however, after being moved back to
  the landscape screen, the cursor gets rotated again (but now in an
  opposite direction).

  This doesn't happen on Xorg and it wasn't happening on impish (wayland).
  This doesn't happen if desktop icons NG extension is enabled.

  Steps to reproduce:

  1) Disable DING extension.
  2) Set up two screens, (1) being rotated and (2) in normal Landscape position.
  3) Move cursor to (2), it should be in normal position.
  4) Move cursor to (1).
  Expected: the cursor is in normal position.
  Actual: the cursor is rotated 90° CW.
  5) Open the application, move it to (1), hover the cursor over it.
  The cursor would go back to the normal position again.
  6) Move the cursor to (2)
  Expected: the cursor is in normal position.
  Actual: the cursor is rotated 90° CCW. As in the previous case, hovering 
cursor over the application window fixes it's rotation.

  Additional notes: sometimes the dead cursor copy stays near the screen
  edge after cursor is being moved to a different screen.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: mutter 42~beta-1ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
  Uname: Linux 5.15.0-23-generic x86_64
  ApportVersion: 2.20.11-0ubuntu79
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Mar 31 08:23:17 2022
  InstallationDate: Installed on 2019-04-17 (1078 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
  SourcePackage: mutter
  UpgradeStatus: Upgraded to jammy on 2022-03-30 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/1967219/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1967219] Re: Wayland: Cursor is 90° rotated on rotated screen

2022-03-30 Thread Vadym Abramchuck
** Description changed:

  I have a multi-screen setup with one of the displays being rotated
  (Portrait Right in Displays settings).
  
  Since upgrading to Jammy the cursor gets 90° rotated after being moved
  from a landscape to the rotated screen.
  
  This seems to be happening only in Overview or if cursor is hovered over
  the desktop. Hovering cursor over the application window (e.g. Terminal)
  would reset the rotation; however, after being moved back to the
  landscape screen, the cursor gets rotated again (but now in an opposite
  direction).
  
  This doesn't happen on Xorg and it wasn't happening on impish (wayland).
+ This doesn't happen if desktop icons NG extension is enabled.
  
  Steps to reproduce:
  
- 1) Set up two screens, (1) being rotated and (2) in normal Landscape position.
- 2) Move cursor to (2), it should be in normal position.
- 3) Move cursor to (1).
+ 1) Disable DING extension.
+ 2) Set up two screens, (1) being rotated and (2) in normal Landscape position.
+ 3) Move cursor to (2), it should be in normal position.
+ 4) Move cursor to (1).
  Expected: the cursor is in normal position.
  Actual: the cursor is rotated 90° CW.
- 4) Open the application, move it to (1), hover the cursor over it.
+ 5) Open the application, move it to (1), hover the cursor over it.
  The cursor would go back to the normal position again.
- 5) Move the cursor to (2)
+ 6) Move the cursor to (2)
  Expected: the cursor is in normal position.
  Actual: the cursor is rotated 90° CCW. As in the previous case, hovering 
cursor over the application window fixes it's rotation.
  
  Additional notes: sometimes the dead cursor copy stays near the screen
  edge after cursor is being moved to a different screen.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: mutter 42~beta-1ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
  Uname: Linux 5.15.0-23-generic x86_64
  ApportVersion: 2.20.11-0ubuntu79
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Mar 31 08:23:17 2022
  InstallationDate: Installed on 2019-04-17 (1078 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
  SourcePackage: mutter
  UpgradeStatus: Upgraded to jammy on 2022-03-30 (0 days ago)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1967219

Title:
  Wayland: Cursor is 90° rotated on rotated screen

Status in mutter package in Ubuntu:
  New

Bug description:
  I have a multi-screen setup with one of the displays being rotated
  (Portrait Right in Displays settings).

  Since upgrading to Jammy the cursor gets 90° rotated after being moved
  from a landscape to the rotated screen.

  This seems to be happening only in Overview or if cursor is hovered
  over the desktop. Hovering cursor over the application window (e.g.
  Terminal) would reset the rotation; however, after being moved back to
  the landscape screen, the cursor gets rotated again (but now in an
  opposite direction).

  This doesn't happen on Xorg and it wasn't happening on impish (wayland).
  This doesn't happen if desktop icons NG extension is enabled.

  Steps to reproduce:

  1) Disable DING extension.
  2) Set up two screens, (1) being rotated and (2) in normal Landscape position.
  3) Move cursor to (2), it should be in normal position.
  4) Move cursor to (1).
  Expected: the cursor is in normal position.
  Actual: the cursor is rotated 90° CW.
  5) Open the application, move it to (1), hover the cursor over it.
  The cursor would go back to the normal position again.
  6) Move the cursor to (2)
  Expected: the cursor is in normal position.
  Actual: the cursor is rotated 90° CCW. As in the previous case, hovering 
cursor over the application window fixes it's rotation.

  Additional notes: sometimes the dead cursor copy stays near the screen
  edge after cursor is being moved to a different screen.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: mutter 42~beta-1ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
  Uname: Linux 5.15.0-23-generic x86_64
  ApportVersion: 2.20.11-0ubuntu79
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Mar 31 08:23:17 2022
  InstallationDate: Installed on 2019-04-17 (1078 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
  SourcePackage: mutter
  UpgradeStatus: Upgraded to jammy on 2022-03-30 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1967219/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1967219] [NEW] Wayland: Cursor is 90° rotated on rotated screen

2022-03-30 Thread Vadym Abramchuck
Public bug reported:

I have a multi-screen setup with one of the displays being rotated
(Portrait Right in Displays settings).

Since upgrading to Jammy the cursor gets 90° rotated after being moved
from a landscape to the rotated screen.

This seems to be happening only in Overview or if cursor is hovered over
the desktop. Hovering cursor over the application window (e.g. Terminal)
would reset the rotation; however, after being moved back to the
landscape screen, the cursor gets rotated again (but now in an opposite
direction).

This doesn't happen on Xorg and it wasn't happening on impish (wayland).

Steps to reproduce:

1) Set up two screens, (1) being rotated and (2) in normal Landscape position.
2) Move cursor to (2), it should be in normal position.
3) Move cursor to (1).
Expected: the cursor is in normal position.
Actual: the cursor is rotated 90° CW.
4) Open the application, move it to (1), hover the cursor over it.
The cursor would go back to the normal position again.
5) Move the cursor to (2)
Expected: the cursor is in normal position.
Actual: the cursor is rotated 90° CCW. As in the previous case, hovering cursor 
over the application window fixes it's rotation.

Additional notes: sometimes the dead cursor copy stays near the screen
edge after cursor is being moved to a different screen.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mutter 42~beta-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu Mar 31 08:23:17 2022
InstallationDate: Installed on 2019-04-17 (1078 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
SourcePackage: mutter
UpgradeStatus: Upgraded to jammy on 2022-03-30 (0 days ago)

** Affects: mutter (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug jammy third-party-packages wayland-session

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1967219

Title:
  Wayland: Cursor is 90° rotated on rotated screen

Status in mutter package in Ubuntu:
  New

Bug description:
  I have a multi-screen setup with one of the displays being rotated
  (Portrait Right in Displays settings).

  Since upgrading to Jammy the cursor gets 90° rotated after being moved
  from a landscape to the rotated screen.

  This seems to be happening only in Overview or if cursor is hovered
  over the desktop. Hovering cursor over the application window (e.g.
  Terminal) would reset the rotation; however, after being moved back to
  the landscape screen, the cursor gets rotated again (but now in an
  opposite direction).

  This doesn't happen on Xorg and it wasn't happening on impish
  (wayland).

  Steps to reproduce:

  1) Set up two screens, (1) being rotated and (2) in normal Landscape position.
  2) Move cursor to (2), it should be in normal position.
  3) Move cursor to (1).
  Expected: the cursor is in normal position.
  Actual: the cursor is rotated 90° CW.
  4) Open the application, move it to (1), hover the cursor over it.
  The cursor would go back to the normal position again.
  5) Move the cursor to (2)
  Expected: the cursor is in normal position.
  Actual: the cursor is rotated 90° CCW. As in the previous case, hovering 
cursor over the application window fixes it's rotation.

  Additional notes: sometimes the dead cursor copy stays near the screen
  edge after cursor is being moved to a different screen.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: mutter 42~beta-1ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
  Uname: Linux 5.15.0-23-generic x86_64
  ApportVersion: 2.20.11-0ubuntu79
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Mar 31 08:23:17 2022
  InstallationDate: Installed on 2019-04-17 (1078 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
  SourcePackage: mutter
  UpgradeStatus: Upgraded to jammy on 2022-03-30 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1967219/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1859955] Re: Long delays and repeated flashing when docking laptop with multiple monitors

2020-07-10 Thread Vadym Abramchuck
I'm facing the same issue on Dell XPS 13 9380 and Type-C dock with 2
displays. Sometimes I'm seeing all 3 screens flashing, sometimes they go
black but mouse pointer is visible (and it's moving). Like in the
original report, it may take up to 20 seconds for screens to settle.

Could be somehow related to #1883292.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1859955

Title:
  Long delays and repeated flashing when docking laptop with multiple
  monitors

Status in gnome-shell package in Ubuntu:
  Triaged
Status in mutter package in Ubuntu:
  Triaged

Bug description:
  Running Focal on my ThinkPad T450, but not unique to this release as
  it happened on 19.10 (and probably older releases too).

  Steps to reproduce.

  While running GNOME Shell, attach the laptop to additional external monitors.
  (I'm using a docking station, but equally you can attach them via the video 
ports on the laptop itself)

  Expected outcome

  Desktop on 1 monitor goes away.
  Desktop comes back on N monitors.

  Actual outcome

  Laptop display goes black
  Laptop display comes back, moved 50% horizontally
  One external monitor comes on
  Laptop display goes back to normal
  Second external monitor comes on
  All three displays go off again
  Laptop display comes on again alone
  Laptop display goes off again
  laptop display comes on again
  External monitors come back on again
  System is usable.

  The entire process takes twenty seconds.

  https://www.youtube.com/watch?v=QuSudpxVOao

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: gnome-shell 3.34.3-1ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-9.12-generic 5.4.3
  Uname: Linux 5.4.0-9-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu15
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Jan 16 10:21:05 2020
  DisplayManager: gdm3
  InstallationDate: Installed on 2018-02-04 (710 days ago)
  InstallationMedia: neon userlts "Xenial" - Build amd64 LIVE Binary 
20180202-11:07
  RelatedPackageVersions: mutter-common 3.34.3-1ubuntu1
  SourcePackage: gnome-shell
  UpgradeStatus: Upgraded to focal on 2020-01-08 (7 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1859955/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1883292] Re: Laptop not suspending on lid close after external monitors disconnected

2020-06-16 Thread Vadym Abramchuck
Hi Sebastien, thank you for your response!
I've attached the log file obtained via:

journalctl -b 0 > ~/1883292-journalctl-b.log

> that's a process from the gdm user, when did you enter that command
exactly? in your user session unlocked?

Yes, the session was unlocked and my dock station was disconnected.

I haven't restarted Gnome session since I reported the issue; that's
what I'm currently getting with dock *connected*:

$ systemd-inhibit --list --mode=block
WHO   UID  USER  PID COMMWHAT   
  WHY 
MODE 
gdm   123  gdm   1977595 gsd-power   handle-lid-switch  
  External monitor attached or configuration changed recently 
block
gdm   123  gdm   1977593 gsd-media-keys  
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block
abram 1000 abram 779132  gsd-power   handle-lid-switch  
  External monitor attached or configuration changed recently 
block
abram 1000 abram 779130  gsd-media-keys  
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block
abram 1000 abram 778915  gnome-session-b shutdown:sleep 
  user session inhibited  
block

5 inhibitors listed.


I've just disconnected the dock, waited for a few seconds before laptop screen 
lights up and ran the same command again; now there are only 3 inhibitors:

$ systemd-inhibit --list --mode=block
WHO   UID  USER  PID COMM   WHAT
 WHY 
MODE 
gdm   123  gdm   1977595 gsd-power  handle-lid-switch   
 External monitor attached or configuration changed recently 
block
gdm   123  gdm   1977593 gsd-media-keys 
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block
abram 1000 abram 779130  gsd-media-keys 
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block

3 inhibitors listed.

As you can see, the remaining one is the same 1977595 PID as before.

> did you enter that command exactly? in your user session unlocked?
it's weird that there is a greeter process around, they should be
stopped once the user is logged in

Hmm, I have a different issue which I didn't report yet which I thought
isn't related. Sometimes when I connect the dock OR change one of
displays settings (like orientation) via Gnome UI the laptop screen goes
black. Displays settings UI still shows it as available and I can move
mouse, windows etc where it's supposed to be but it's not showing
anything. I found that switching to greeter via ctrl+alt+f1 (or f2?) and
then back to Gnome session (ctrl+alt+f1/2) fixes this. I believe this is
happening since 19.04; I never reported it since I thought it could be
one of intel GPU driver bugs and it would be fixed elsewhere.

Now I think this could be related somehow; probably I've faced the black
screen issue when I connected the dock, "fixed" it by switching to
greeter and then back to user session and this could cause a sleep
issue?..

Sorry if my explanation looks confusing; let me know if there's
something else I could check.

** Attachment added: "1883292-journalctl-b.log.gz"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1883292/+attachment/5384385/+files/1883292-journalctl-b.log.gz

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1883292

Title:
  Laptop not suspending on lid close after external monitors
  disconnected

Status in gnome-settings-daemon package in Ubuntu:
  Incomplete

Bug description:
  I have a Dell XPS 13 9380 laptop with Type-C dock. There are two
  external monitors (DisplayPort) and USB mouse attached to the doc.

  Normally I disconnect the dock cable from the laptop, close the laptop lid 
and laptop suspends.
  However, sometimes it doesn't suspend.
  I can see the 'Lid closed.' message in systemd-logind log which is normally 
followed by a sleep.
  Once this happens, laptop no longer suspends on lid close until I restart 
Gnome session.
  Also, if I lock it, the screen goes black but the backlight does not turn off.

  I can put computer to a sleep from Gnome menu.

  I'm not sure if it's issue is specific to Type-C dock though. It
  happens rarely, maybe 1 of 20 times.

  It appears like gsd does not detect monitors disconnect event in some
  cases:

  abram@abram-laptop:~$ systemd-inhibit --list --mode=block 
  WHO   UID  USER  PID COMM   WHAT   

[Desktop-packages] [Bug 1883292] Re: Laptop not suspending on lid close after external monitors disconnected

2020-06-12 Thread Vadym Abramchuck
I'll try to keep my laptop in this state for few days in case I could
provide any further info.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1883292

Title:
  Laptop not suspending on lid close after external monitors
  disconnected

Status in gnome-settings-daemon package in Ubuntu:
  New

Bug description:
  I have a Dell XPS 13 9380 laptop with Type-C dock. There are two
  external monitors (DisplayPort) and USB mouse attached to the doc.

  Normally I disconnect the dock cable from the laptop, close the laptop lid 
and laptop suspends.
  However, sometimes it doesn't suspend.
  I can see the 'Lid closed.' message in systemd-logind log which is normally 
followed by a sleep.
  Once this happens, laptop no longer suspends on lid close until I restart 
Gnome session.
  Also, if I lock it, the screen goes black but the backlight does not turn off.

  I can put computer to a sleep from Gnome menu.

  I'm not sure if it's issue is specific to Type-C dock though. It
  happens rarely, maybe 1 of 20 times.

  It appears like gsd does not detect monitors disconnect event in some
  cases:

  abram@abram-laptop:~$ systemd-inhibit --list --mode=block 
  WHO   UID  USER  PID COMM   WHAT  
   WHY 
MODE 
  gdm   123  gdm   1977595 gsd-power  handle-lid-switch 
   External monitor attached or configuration changed recently 
block
  gdm   123  gdm   1977593 gsd-media-keys 
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block
  abram 1000 abram 779130  gsd-media-keys 
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block

  3 inhibitors listed.

  I've also seen a similar issue mentioned at askubuntu: 
https://askubuntu.com/questions/1196871/gnome-supend-on-laptop-lid-close-no-longer-works-since-19-10-upgrade
  The accepted answer involves killing gsd-power but that's more like a 
workaround than a fix; the same presumably happens when Gnome session is 
restarted.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: gnome-settings-daemon 3.36.1-0ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-33.37-generic 5.4.34
  Uname: Linux 5.4.0-33-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.2
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME
  Date: Fri Jun 12 19:19:35 2020
  InstallationDate: Installed on 2019-04-17 (421 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
  SourcePackage: gnome-settings-daemon
  UpgradeStatus: Upgraded to focal on 2020-04-02 (70 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1883292/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1883292] [NEW] Laptop not suspending on lid close after external monitors disconnected

2020-06-12 Thread Vadym Abramchuck
Public bug reported:

I have a Dell XPS 13 9380 laptop with Type-C dock. There are two
external monitors (DisplayPort) and USB mouse attached to the doc.

Normally I disconnect the dock cable from the laptop, close the laptop lid and 
laptop suspends.
However, sometimes it doesn't suspend.
I can see the 'Lid closed.' message in systemd-logind log which is normally 
followed by a sleep.
Once this happens, laptop no longer suspends on lid close until I restart Gnome 
session.
Also, if I lock it, the screen goes black but the backlight does not turn off.

I can put computer to a sleep from Gnome menu.

I'm not sure if it's issue is specific to Type-C dock though. It happens
rarely, maybe 1 of 20 times.

It appears like gsd does not detect monitors disconnect event in some
cases:

abram@abram-laptop:~$ systemd-inhibit --list --mode=block 
WHO   UID  USER  PID COMM   WHAT
 WHY 
MODE 
gdm   123  gdm   1977595 gsd-power  handle-lid-switch   
 External monitor attached or configuration changed recently 
block
gdm   123  gdm   1977593 gsd-media-keys 
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block
abram 1000 abram 779130  gsd-media-keys 
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block

3 inhibitors listed.

I've also seen a similar issue mentioned at askubuntu: 
https://askubuntu.com/questions/1196871/gnome-supend-on-laptop-lid-close-no-longer-works-since-19-10-upgrade
The accepted answer involves killing gsd-power but that's more like a 
workaround than a fix; the same presumably happens when Gnome session is 
restarted.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-settings-daemon 3.36.1-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-33.37-generic 5.4.34
Uname: Linux 5.4.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: GNOME
Date: Fri Jun 12 19:19:35 2020
InstallationDate: Installed on 2019-04-17 (421 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
SourcePackage: gnome-settings-daemon
UpgradeStatus: Upgraded to focal on 2020-04-02 (70 days ago)

** Affects: gnome-settings-daemon (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug focal

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1883292

Title:
  Laptop not suspending on lid close after external monitors
  disconnected

Status in gnome-settings-daemon package in Ubuntu:
  New

Bug description:
  I have a Dell XPS 13 9380 laptop with Type-C dock. There are two
  external monitors (DisplayPort) and USB mouse attached to the doc.

  Normally I disconnect the dock cable from the laptop, close the laptop lid 
and laptop suspends.
  However, sometimes it doesn't suspend.
  I can see the 'Lid closed.' message in systemd-logind log which is normally 
followed by a sleep.
  Once this happens, laptop no longer suspends on lid close until I restart 
Gnome session.
  Also, if I lock it, the screen goes black but the backlight does not turn off.

  I can put computer to a sleep from Gnome menu.

  I'm not sure if it's issue is specific to Type-C dock though. It
  happens rarely, maybe 1 of 20 times.

  It appears like gsd does not detect monitors disconnect event in some
  cases:

  abram@abram-laptop:~$ systemd-inhibit --list --mode=block 
  WHO   UID  USER  PID COMM   WHAT  
   WHY 
MODE 
  gdm   123  gdm   1977595 gsd-power  handle-lid-switch 
   External monitor attached or configuration changed recently 
block
  gdm   123  gdm   1977593 gsd-media-keys 
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block
  abram 1000 abram 779130  gsd-media-keys 
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block

  3 inhibitors listed.

  I've also seen a similar issue mentioned at askubuntu: 
https://askubuntu.com/questions/1196871/gnome-supend-on-laptop-lid-close-no-longer-works-since-19-10-upgrade
  The accepted answer involves killing gsd-power but that's more like a 
workaround than a fix; the same presumably happens when Gnome session is 
restarted.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: gnome-settings-daemon 3.36.1-0ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-33.37-generic 5.4.34
  Uname: Linux 5.4.0-33-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.2
  Architecture: amd64