Multiple monitors with different orientation leads to stretched wallpaper when waking up.
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | nautilus (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
I have three monitors all hooked up to a Radeon 6950, using fglrx. One of the monitors is in portrait orientation and is a 1680x1050 monitor while the two monitors in landscape are 1920x1200 monitors.
When I first select a wallpaper (say a wallpaper that is 1920x1200), it does the Right Thing. That is, the two landscape monitors show the wallpaper as you'd expect to see a 1920x1200 image on a 1920x1200 image display. The portrait monitor shows a slightly scaled portrait aspect rectangle out of the center of that wallpaper.
When I leave my computer for some amount of time the wallpaper on the two landscape monitors is zoomed by what I assume to be the same percentage as the wallpaper on the portrait monitor.
I say "for some amount of time" because if I set "Turn screen off when inactive for:" to 1 minute and "Lock screen after:" to 1 minute and then wake them up and unlock after a few minutes the problem hasn't manifested itself, but _every_ time I'm away from the computer for longer periods of time the issue has manifested.
To fix, I merely change the wallpaper to another wallpaper and then back again. At this point the wallpaper displays correctly.
See the attached image for screenshots of the issue.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: nautilus 1:3.5.90.
ProcVersionSign
Uname: Linux 3.5.0-27-generic x86_64
NonfreeKernelMo
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Sat Apr 13 10:42:19 2013
ExecutablePath: /usr/bin/nautilus
GsettingsChanges: b'org.gnome.
InstallationDate: Installed on 2012-10-19 (175 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
ProcEnviron:
PATH=(custom, user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)
| Dustin Wyatt (dustin-wyatt) wrote : | #2 |
| Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in nautilus (Ubuntu): | |
| status: | New → Confirmed |
| Andrew Exo (andrewexo) wrote : | #4 |
This happens every time I log in. I also have a monitor in portrait and one in landscape. Both are 1920x1080.
| Furkan (falaca) wrote : | #5 |
I am experiencing the same bug in Ubuntu 14.04. My main monitor is landscape 2560x1440, and secondary monitor (on the left of the main monitor) is portrait 1920x1200.
Is there any fix in sight? And is this confirmed to be a bug in nautilus? The Ubuntu lock screen always follows the correct behaviour, but the desktop is what gets distorted after a reboot.
| Furkan (falaca) wrote : | #6 |
I did some preliminary examination of the nautilus source code from the Trusty repo. There is a helper object which is used to change the desktop background, in libnautilus-
The actual scaling and drawing of the desktop background is done in gnome-bg.c in the libgnome-desktop package. If/when I get the chance, I'll try to play around with it and see if I figure it out.
| Furkan (falaca) wrote : | #7 |
I've confirmed that this bug is due to nautilus, but haven't been successful in fixing it (except for a workaround, described at the end of this post). The steps to reproduce the issue are:
1) Set the wallpaper using either the system settings dialog, or gsettings from the terminal (either method will display the wallpaper correctly)
2) Shut down nautilus by typing "nautilus -q" in a terminal
3) Launch nautilus again, and the wallpaper proportions will now be incorrect (the picture will be overly magnified on the larger monitor)
In upstream, gnome shell is now responsible for rendering the background, and nautilus simply renders an invisible background over it and places the icons on top, as per these 5 commits on Feb. 20th, 2013:
https:/
https:/
https:/
https:/
https:/
Applying the above patches to Ubuntu's nautilus gives strange results (severe flickering). So for now, I just made myself a simple workaround. I wrote the bash script below and added it to my startup applications:
#!/bin/bash
gsettings set org.gnome.
sleep 5 # give a few seconds for the wallpaper to change
gsettings set org.gnome.
Basically you need to change the wallpaper mode, and then change it back to what you had originally (in my case "zoom"), and the wallpaper will be redrawn corretly. I hope that helps whoever else might be experiencing this bug.


Turns out that this happens every time I reboot.