https://bugs.kde.org/show_bug.cgi?id=394532

            Bug ID: 394532
           Summary: Multimonitor - Task Manager lists tasks for wrong
                    screen after screens switched off
           Product: plasmashell
           Version: 5.12.4
          Platform: Kubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Task Manager
          Assignee: h...@kde.org
          Reporter: jordanlepp...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: 1.0

I have two screens, and the task manager on each screen is filtered to only
show tasks from that screen. After the screens switch off, either manually or
automatically due to power saving, when the screens come back on, the task
manager on the right-hand screen shows the tasks for the left-hand screen.
Also, all tasks have moved to the left-hand screen.

I've found two workarounds to cope with this for the time being:
1. Switch the right-hand screen off and on. Both screens will then go blank for
a few seconds, then the right-hand task manager is fixed.
2. Kill and restart plasma-shell.

I should mention other multi-monitor bugs I've found workarounds for but might
be related. I originally tried setting up a different panel setup on each
screen, but after the screens switched off and on the panels would be messed up
- both screens would have the same panel, or one panel would go missing. I
eventually just set up the same panel on both screens, and had to reapply this
multiple times until it was stable. I suspect the way Plasma detects what each
screen is, or maps the panel config to each screen, gets confused when the
screens switch off and on, and this could be related to the panel bug. I've
also had serious trouble getting the wallpaper and desktop-icon config on my
screens to stay correct.


SETUP
* Kubuntu 18.04, all updates as of 21-MAY-2018
* Nvidia GTX 980Ti, using proprietary driver nvidia-driver-390 (390.48)
* Two 4k monitors connected via DisplayPort
* The right-hand screen is set as the primary screen (in Plasma settings and in
NVidia settings)


Some details:

In kscreen-doctor monitor, I see this error when the screens turn off:
QXcbConnection: XCB error: 148 (Unknown), sequence: 422, resource id: 0, major
code: 140 (Unknown), minor code: 20
QXcbConnection: XCB error: 148 (Unknown), sequence: 424, resource id: 0, major
code: 140 (Unknown), minor code: 20

No errors when I turn the right screen off and on to fix the issue.


In ~/.local/share/kscreen:

$ cat ab40d22f255027ccf68c7cda86e02dc5                                          
[                                                                               
    {                                                                           
        "enabled": true,                                                        
        "id": "d915b0a4b961c7f98c1684b5bda3c3c7",                               
        "metadata": {                                                           
            "fullname": "xrandr-ASUS PB287Q-127007",                            
            "name": "DP-4"                                                      
        },                                                                      
        "mode": {                                                               
            "refresh": 59.99662399291992,                                       
            "size": {                                                           
                "height": 2160,                                                 
                "width": 3840                                                   
            }                                                                   
        },
        "pos": {
            "x": 0,
            "y": 0
        },
        "primary": true,
        "rotation": 1,
        "scale": 1
    }
]

$ cat f5b5d034f6fe6f96d0dc115152858eb9
[
    {
        "enabled": true,
        "id": "6673f17fb50a7502fe141330288a2b18",
        "metadata": {
            "fullname": "xrandr-ASUS PB287Q-41632",
            "name": "DP-2"
        },
        "mode": {
            "refresh": 59.99662399291992,
            "size": {
                "height": 2160,
                "width": 3840
            }
        },
        "pos": {
            "x": 3840,
            "y": 0
        },
        "primary": true,
        "rotation": 1,
        "scale": 1
    },
    {
        "enabled": true,
        "id": "d915b0a4b961c7f98c1684b5bda3c3c7",
        "metadata": {
            "fullname": "xrandr-ASUS PB287Q-127007",
            "name": "DP-4"
        },
        "mode": {
            "refresh": 59.99662399291992,
            "size": {
                "height": 2160,
                "width": 3840
            }
        },
        "pos": {
            "x": 0,
            "y": 0
        },
        "primary": false,
        "rotation": 1,
        "scale": 1
    }
]

$ cat fc7d61093060ac371dc7f0cda8b63971
[
    {
        "enabled": true,
        "id": "6673f17fb50a7502fe141330288a2b18",
        "metadata": {
            "fullname": "xrandr-ASUS PB287Q-41632",
            "name": "DP-2"
        },
        "mode": {
            "refresh": 59.99662399291992,
            "size": {
                "height": 2160,
                "width": 3840
            }
        },
        "pos": {
            "x": 3840,
            "y": 0
        },
        "primary": true,
        "rotation": 1,
        "scale": 1
    }
]

When my screens are switched back on / woken up, the second file,
f5b5d034f6fe6f96d0dc115152858eb9, has its modified date changed (no content
change though). After turning the right-hand screen off and on, both the first
and second files (ab40d22f255027ccf68c7cda86e02dc5 and
f5b5d034f6fe6f96d0dc115152858eb9) have their last modified date changed (no
content change).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to