Position has not updated after display resolution change

Bug #1931803 reported by Plutoz
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Plank
In Progress
Undecided
Unassigned

Bug Description

Hi everyone,

I have some issues with the bottom position of Plank.
When I plug an external monitor with higher max resolution to my laptop and I apply it as single display, Plank stucks at the position of previous monitor's resolution instead of applying of the new bottom position (see attached screenshot).

After a re-login, Plank uses the expected bottom position.

After this I've also tried to switch to a lower resolution and in this case, Plank did not show at all (I guess, it stayed at the original position outside the new resolution).

OS: Ubuntu Budgie 21.04 (Kernel: Linux 5.11.0-18-generic)
Gnome version: 3.38.5
Video card & driver: Geforce GTX 950M (with Nvvidia driver: 460.80)
Plank version: 0.11.89

This issue was not present in a previous version was bundled with Ubuntu Budgie 20.10 but happened immediately after version upgrade.

Thanks,
Plutoz

Revision history for this message
Plutoz (plutoz01) wrote :
Revision history for this message
Ben Reaves (rbreaves) wrote (last edit ):

I was just about to create this issue ticket as well. I have a working work around - but I believe if we used the same type of code or logic used in xeventbind to detect resolution changes then we could reasonably update Plank to relocate itself without needing to restart the entire program.

https://github.com/ritave/xeventbind

For now though users can implement this workaround that I worked out using xeventbind.
https://discourse.ubuntubudgie.org/t/fix-plank-location-when-changing-resolution/5198

Revision history for this message
Ben Reaves (rbreaves) wrote (last edit ):

This patch does not actually working like it should, at least not for me. It needs to be revisited and then tested on Ubuntu Budgie 21.04 imo and Ubuntu in general with x11. Assuming this was only tested on Debian.

https://salsa.debian.org/debian-mate-team/plank
https://salsa.debian.org/debian-mate-team/plank/-/commit/6c6c46a8c27b6d3da299a872a0ebdbad08eadb57

https://launchpad.net/ubuntu/+source/plank/0.11.89-3

This is what I am running.

apt list plank -a
plank/hirsute,now 0.11.89-3 amd64 [installed,automatic]

OS: Ubuntu Budgie 21.04 x86_64
Host: VMware Virtual Platform None
Kernel: 5.11.0-25-generic
Uptime: 1 day, 1 hour, 41 mins
Packages: 1760 (dpkg), 37 (brew), 5 (snap)
Shell: zsh 5.8
Resolution: 2880x1800
DE: Budgie 10.5.2
WM: Mutter(Budgie)
Theme: Mojave-dark [GTK2/3]
Icons: McMojave-circle-dark [GTK2/3]
Terminal: xfce4-terminal
Terminal Font: DejaVu Sans Mono for Powerline 12
CPU: Intel i7-4770HQ (2) @ 2.194GHz
GPU: 00:0f.0 VMware SVGA II Adapter
Memory: 3214MiB / 3894MiB

Revision history for this message
Dominik Leiss (eekiig) wrote :

I can confirm this bug after upgrading from Ubuntu 20.04 to 22.04.
If I change the resolution (Or login from SDDM with lower resolution),
the dock keeps the position of the lower resolution.
For the autostart on login I've set a timeout of 5s, so plank is able to recognize the right resolution and starts with the right position. But this wouldn't work if i start from suspend mode (as plank is already running.)

Plank still needs to redefine the position if the resolution changes.

Plank Version:
plank/jammy,now 0.11.89-4 amd64

OS (X11):
KDE Neon 5.26
Kernel: 5.15.0-56-generic
KDE Plasma: 5.26.4
KDE Framework: 5.101.0
QT-Version: 5.15.7

Revision history for this message
fossfreedom (fossfreedom) wrote :

This has been resolved by the upstream pull request https://github.com/ricotz/plank/pull/6

So the plank package needs to refresh the patch 0001_changed-plank-positioning-according-to-workarea.patch

Working on this.

Changed in plank:
status: New → In Progress
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.