Bug 354379

Summary: Wallpaper fails to rotate 90 on dual screen with external scr. on left. Stays horiz. and spills over onto right scr.
Product: [Plasma] Plasma Workspace Wallpapers Reporter: PhillB <phillb>
Component: generalAssignee: Plasma Development Mailing List <plasma-devel>
Status: RESOLVED FIXED    
Severity: normal CC: mklapetek
Priority: NOR    
Version: 5.4.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of entire Virtual screen
Left screen pplugged in to VGA1 port on Acer Aspire 5750
Laptop screen shows background spilling over in top left.

Description PhillB 2015-10-26 06:54:36 UTC
Laptop has a Benq external monitor plugged in on the left.

The Benq is rotate 90 so it stands tall (portrait).

The wallpaper stays landscape most times. Sometimes it's just black (no wallpaper). Occassionally it comes good if you logout and then login. Always portrait on startup.

Programs work fine. I can drag windows over to the left screen and they behave as expected.

Reproducible: Always

Steps to Reproduce:
1. Plug a monitor in portrait mode.
2. Set the screen to be left of laptop screen.
3. Log out. Powerdown and restart. Wallpaper is landscape not portrait.
4. Log out and login (no powerdown). Sometimes works OK, sometimes not.

Actual Results:  
The bottom part of the portrait screen is black. The image has spilled over on the the right hand monitor. You have to click on the righthand background to get over the top of the lefthand background.

Expected Results:  
Left hand monitor should have the wallpaper in portrait mode (which it does occasionally).

I've tried various combinations of moving the screen positions on the settings. Disabling and re-enabling etc. etc. I can't find any particular thing that will make it always work in portrait mode.
Comment 1 PhillB 2015-10-26 06:55:57 UTC
Oops - Always LANDSCAPE on startup (should be portrait) - sorry.
Comment 2 PhillB 2015-10-26 06:58:15 UTC
BTW. It used to work fine on Fedora 21.
Comment 3 PhillB 2015-10-26 23:39:13 UTC
This is only thing I've managed to find so far.
 
https://www.reddit.com/r/kde/comments/3cc570/displaymonitor_settings_reset_on_every_reboot/

I'm about to try the work around suggested in the last post which is:

On Fedora 22 my process was

    rm ~/.local/share/kscreen/*
    rm ~/.config/kactivitymanagerdc
    rm ~/.config/plasma-org.kde.plasma.desktop-appletsrc
    reboot
    make configuration changes that i needed in kscreen, with background settings, and added panels/widgets.
    chmod 444 ~/.local/share/kscreen/*

Now it seems to be sticking for the most part. Sometimes when I log out and then back in quickly it will revert but then I just reboot and everything is how it should be. Weird.
Comment 4 PhillB 2015-10-27 00:54:34 UTC
I also deleted everything in ~/.kde/share/apps/kscreen/*.

Everything appears to be going OK for now. My backgrounds are portrait again :-)
Comment 5 PhillB 2015-10-27 04:01:52 UTC
It's back again. Don't know what I did. Background always landscape always now.

To get it back to portrait I have to unplug the screen. Do all the deletes then reboot. Then I plug the screen back in and run KScreen which sees the (re)added screen and it works.

Wierd.
Comment 6 PhillB 2015-10-27 04:29:04 UTC
I have discovered that the background can be made to go portrait again by using xrandr from the commandline.

Unplug the screen. Run xrandr (no parameters). This gets back to single screen mode. Then plug the monitor back in and run xrandr again. Voila!
Comment 7 PhillB 2015-10-27 20:13:03 UTC
So now I've tried to drive xrandr directly to get what I need (see below).

Results are variable. Sometimes it works other times one or other screen goes black and its desktop stops working. I can still drag windows on to it though and the screen are always in the correct posistion. Also the K-menu thing on the bottom left pops up in the wrong place (in the middle of the screen) as if the screen hasn't rotated.

Running this script several times generally makes things go nuts. It may have the wrong combination of parameters or something? The idea is to turn the screen of and then on again. 

#!/bin/bash
set -x
xrandr \
  --output LVDS1 \
  --auto \
  --pos 0x0 \
  --rotate normal \
  --output VGA1 \
  --off
xrandr \
  --output LVDS1 \
  --auto \
  --pos 1050x912 \
  --rotate normal \
  --output VGA1 \
  --auto \
  --pos 0x0 \
  --rotate left
Comment 8 PhillB 2015-11-13 00:17:35 UTC
The latest thing I've tried is to completely delete the .kde directory followed by logging out and logging in. This was in the hope that the issue was related to some setting within kde.

The activities were preserved, so I assume that information is not kept in the .kde directory.

The issue of not rotating the external screen was still present.

I'm now suspecting that this issue is related to Activities. It seems that when initializing an Activity the desktop does not listen (or only sometimes listens) to the rotate -90 setting.

For the time being I've unrotated the physical screen (most inconvenient for reading documents).
Comment 9 PhillB 2015-11-15 01:57:40 UTC
Latest update on Fedora 22 has completely thrown my dual monitor functionality out the window. No dual monitor operation at all now.

Completely fails, crashes, can't launch apps. Using another computer now.

After booting with a single monitor and then plugging in the second monitor, using xrandr no longer works at all and simply reports the screen settings.
Comment 10 Christoph Feck 2015-11-15 02:04:25 UTC
Please do not report multiple issues in a single ticket. This one is about wallpaper rotation. Please report lost dual monitor functionality, fails, crashes, etc. separately. It is also suggested to try latest releases (i.e. Fedora 23) before reporting bugs.
Comment 11 PhillB 2015-11-16 01:21:47 UTC
(In reply to Christoph Feck from comment #10)
> Please do not report multiple issues in a single ticket. This one is about
> wallpaper rotation. Please report lost dual monitor functionality, fails,
> crashes, etc. separately. It is also suggested to try latest releases (i.e.
> Fedora 23) before reporting bugs.

Hi Christoper,

Thanks. I've upgraded to Fedora23 as recommended.
My desktop is working again.
The rotation issue is still present in the latest revision Fedora 23 with:
Version 5.4.3
KDE Frameworks 5.16.0
Qt 5.5.0 (built against 5.5.0)
The xcb windowing system
Comment 12 PhillB 2015-11-16 03:34:05 UTC
Created attachment 95526 [details]
Screenshot of entire Virtual screen

Some screenshots (3) to show the issue. Looks like I can only add them one at a time.
Comment 13 PhillB 2015-11-16 03:35:45 UTC
Created attachment 95527 [details]
Left screen pplugged in to VGA1 port on Acer Aspire 5750
Comment 14 PhillB 2015-11-16 03:37:12 UTC
Created attachment 95528 [details]
Laptop screen shows background spilling over in top left.
Comment 15 PhillB 2015-12-02 23:20:25 UTC
Latest update to Fedora 23 seems to have fixed my issue. Thanks.

Please close.