Bug 335264

Summary: Often after KDE updates, kscreen will incorrectly detect that the laptop has two screens
Product: [Plasma] KScreen Reporter: Valorie Zimmerman <valorie.zimmerman>
Component: commonAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: normal CC: dvratil
Priority: NOR    
Version First Reported In: 1.0.2   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Valorie Zimmerman 2014-05-24 09:10:20 UTC
Unfortunately, about half the time, systemsettings will open in the "other" screen, so I can't even correct the mistake. And if I turn off the wrong screen, I end up with black. At that point, I have to login via the console, and must `mv ~/.kde/share/apps/kscreen ~/.kde/share/apps/kscreenold` - not ideal. 

When I last spoke to Aleix about this, he asked for the output of kscreen-console bug. 

$ kscreen-console bug
START 
Config::current() took 107 milliseconds 

========================xrandr --verbose========================== 

Screen 0: minimum 320 x 200, current 1600 x 900, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x83
        Timestamp:  489960
        Subpixel:   no subpixels
        Clones:    
        CRTCs:      0 1
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        load detection: 1 
                range: (0, 1)
LVDS connected 1600x900+0+0 (0x47) normal (normal left inverted right x axis y axis) 382mm x 214mm
        Identifier: 0x84
        Timestamp:  489960
        Subpixel:   horizontal rgb
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:    
        CRTC:       0
        CRTCs:      0 1
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        EDID: 
                00ffffffffffff0006af9e1300000000
                01130103802615780ac4959e57539226
                0f505400000001010101010101010101
                0101010101011c2a406e61840c303020
                36007ed6100000180000000f00000000
                00000000000000000020000000fe0041
                554f0a202020202020202020000000fe
                004231373352573031205633200a0024
        scaling mode: Full 
                supported: None, Full, Center, Full aspect
  1600x900 (0x47)  107.8MHz -HSync -VSync *current +preferred
        h: width  1600 start 1648 end 1680 total 1966 skew    0 clock   54.8KHz
        v: height  900 start  903 end  909 total  912           clock   60.1Hz
  1440x900 (0x48)  106.5MHz -HSync +VSync
        h: width  1440 start 1528 end 1672 total 1904 skew    0 clock   55.9KHz
        v: height  900 start  903 end  909 total  934           clock   59.9Hz
  1280x854 (0x49)   89.2MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock   53.1KHz
        v: height  854 start  857 end  867 total  887           clock   59.9Hz
  1280x800 (0x4a)   83.5MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock   49.7KHz
        v: height  800 start  803 end  809 total  831           clock   59.8Hz
  1280x720 (0x4b)   74.5MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock   44.8KHz
        v: height  720 start  723 end  728 total  748           clock   59.9Hz
  1152x768 (0x4c)   71.8MHz -HSync +VSync
        h: width  1152 start 1216 end 1328 total 1504 skew    0 clock   47.7KHz
        v: height  768 start  771 end  781 total  798           clock   59.8Hz
  1024x768 (0x4d)   63.5MHz -HSync +VSync
        h: width  1024 start 1072 end 1176 total 1328 skew    0 clock   47.8KHz
        v: height  768 start  771 end  775 total  798           clock   59.9Hz
  800x600 (0x4e)   38.2MHz -HSync +VSync
        h: width   800 start  832 end  912 total 1024 skew    0 clock   37.4KHz
        v: height  600 start  603 end  607 total  624           clock   59.9Hz
  848x480 (0x4f)   31.5MHz -HSync +VSync
        h: width   848 start  872 end  952 total 1056 skew    0 clock   29.8KHz
        v: height  480 start  483 end  493 total  500           clock   59.7Hz
  720x480 (0x50)   26.8MHz -HSync +VSync
        h: width   720 start  744 end  808 total  896 skew    0 clock   29.9KHz
        v: height  480 start  483 end  493 total  500           clock   59.7Hz
  640x480 (0x51)   23.8MHz -HSync +VSync
        h: width   640 start  664 end  720 total  800 skew    0 clock   29.7KHz
        v: height  480 start  483 end  487 total  500           clock   59.4Hz
LVDS-1-1 connected (normal)
        Identifier: 0x43
        Timestamp:  2567542
        Subpixel:   horizontal rgb
        Clones:    
        CRTCs:      2 3 4 5
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        scaling mode: Full 
                supported: None, Full, Center, Full aspect
  1600x900 (0x47)  107.8MHz -HSync -VSync +preferred
        h: width  1600 start 1648 end 1680 total 1966 skew    0 clock   54.8KHz
        v: height  900 start  903 end  909 total  912           clock   60.1Hz
  1440x900 (0x48)  106.5MHz -HSync +VSync
        h: width  1440 start 1528 end 1672 total 1904 skew    0 clock   55.9KHz
        v: height  900 start  903 end  909 total  934           clock   59.9Hz
  1280x854 (0x49)   89.2MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock   53.1KHz
        v: height  854 start  857 end  867 total  887           clock   59.9Hz
  1280x800 (0x4a)   83.5MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock   49.7KHz
        v: height  800 start  803 end  809 total  831           clock   59.8Hz
  1280x720 (0x4b)   74.5MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock   44.8KHz
        v: height  720 start  723 end  728 total  748           clock   59.9Hz
  1152x768 (0x4c)   71.8MHz -HSync +VSync
        h: width  1152 start 1216 end 1328 total 1504 skew    0 clock   47.7KHz
        v: height  768 start  771 end  781 total  798           clock   59.8Hz
  1024x768 (0x4d)   63.5MHz -HSync +VSync
        h: width  1024 start 1072 end 1176 total 1328 skew    0 clock   47.8KHz
        v: height  768 start  771 end  775 total  798           clock   59.9Hz
  800x600 (0x4e)   38.2MHz -HSync +VSync
        h: width   800 start  832 end  912 total 1024 skew    0 clock   37.4KHz
        v: height  600 start  603 end  607 total  624           clock   59.9Hz
  848x480 (0x4f)   31.5MHz -HSync +VSync
        h: width   848 start  872 end  952 total 1056 skew    0 clock   29.8KHz
        v: height  480 start  483 end  493 total  500           clock   59.7Hz
  720x480 (0x50)   26.8MHz -HSync +VSync
        h: width   720 start  744 end  808 total  896 skew    0 clock   29.9KHz
        v: height  480 start  483 end  493 total  500           clock   59.7Hz
  640x480 (0x51)   23.8MHz -HSync +VSync
        h: width   640 start  664 end  720 total  800 skew    0 clock   29.7KHz
        v: height  480 start  483 end  487 total  500           clock   59.4Hz
HDMI-1-0 disconnected (normal)
        Identifier: 0x44
        Timestamp:  2567542
        Subpixel:   horizontal rgb
        Clones:    
        CRTCs:      2 3 4 5
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        dither: off 
                supported: off, on
        audio: auto 
                supported: off, on, auto
        underscan vborder: 0 
                range: (0, 128)
        underscan hborder: 0 
                range: (0, 128)
        underscan: off 
                supported: off, on, auto
        coherent: 1 
                range: (0, 1)
VGA-1-1 disconnected (normal)
        Identifier: 0x45
        Timestamp:  2567542
        Subpixel:   no subpixels
        Clones:    
        CRTCs:      2 3 4 5
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        load detection: 1 
                range: (0, 1)
  1600x900 (0x47)  107.8MHz
        h: width  1600 start 1648 end 1680 total 1966 skew    0 clock   54.8KHz
        v: height  900 start  903 end  909 total  912           clock   60.1Hz
  1440x900 (0x48)  106.5MHz
        h: width  1440 start 1528 end 1672 total 1904 skew    0 clock   55.9KHz
        v: height  900 start  903 end  909 total  934           clock   59.9Hz
  1280x854 (0x49)   89.2MHz
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock   53.1KHz
        v: height  854 start  857 end  867 total  887           clock   59.9Hz
  1280x800 (0x4a)   83.5MHz
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock   49.7KHz
        v: height  800 start  803 end  809 total  831           clock   59.8Hz
  1280x720 (0x4b)   74.5MHz
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock   44.8KHz
        v: height  720 start  723 end  728 total  748           clock   59.9Hz
  1152x768 (0x4c)   71.8MHz
        h: width  1152 start 1216 end 1328 total 1504 skew    0 clock   47.7KHz
        v: height  768 start  771 end  781 total  798           clock   59.8Hz
  1024x768 (0x4d)   63.5MHz
        h: width  1024 start 1072 end 1176 total 1328 skew    0 clock   47.8KHz
        v: height  768 start  771 end  775 total  798           clock   59.9Hz
  800x600 (0x4e)   38.2MHz
        h: width   800 start  832 end  912 total 1024 skew    0 clock   37.4KHz
        v: height  600 start  603 end  607 total  624           clock   59.9Hz
  848x480 (0x4f)   31.5MHz
        h: width   848 start  872 end  952 total 1056 skew    0 clock   29.8KHz
        v: height  480 start  483 end  493 total  500           clock   59.7Hz
  720x480 (0x50)   26.8MHz
        h: width   720 start  744 end  808 total  896 skew    0 clock   29.9KHz
        v: height  480 start  483 end  493 total  500           clock   59.7Hz
  640x480 (0x51)   23.8MHz
        h: width   640 start  664 end  720 total  800 skew    0 clock   29.7KHz
        v: height  480 start  483 end  487 total  500           clock   59.4Hz
 

========================Outputs=================================== 

KScreen version:  1.0.2.1 
Screen: 
        maxSize: QSize(8192, 8192) 
        minSize: QSize(320, 200) 
        currentSize: QSize(1600, 900) 

-----------------------------------------------------
 
Id:  68 
Name:  "HDMI-1-0" 
Type:  "Unknown" 
Connected:  false 

-----------------------------------------------------
 
Id:  69 
Name:  "VGA-1-1" 
Type:  "Unknown" 
Connected:  false 

-----------------------------------------------------
 
Id:  131 
Name:  "VGA-0" 
Type:  "Unknown" 
Connected:  false 

-----------------------------------------------------
 
Id:  132 
Name:  "LVDS" 
Type:  "Panel (Laptop)" 
Connected:  true 
Enabled:  true 
Primary:  false 
Rotation:  1 
Pos:  QPoint(0,0) 
MMSize:  QSize(382, 214) 
Size:  QSize(1600, 900) 
Clones:  None 
Mode:  "71" 
Preferred Mode:  "71" 
Preferred modes:  ("71", "71") 
Modes:  
         "77"    "1024x768"   QSize(1024, 768)   59.9201 
         "78"    "800x600"   QSize(800, 600)   59.8614 
         "79"    "848x480"   QSize(848, 480)   59.6591 
         "80"    "720x480"   QSize(720, 480)   59.7098 
         "81"    "640x480"   QSize(640, 480)   59.375 
         "71"    "1600x900"   QSize(1600, 900)   60.123 
         "72"    "1440x900"   QSize(1440, 900)   59.8874 
         "73"    "1280x854"   QSize(1280, 854)   59.8929 
         "74"    "1280x800"   QSize(1280, 800)   59.8103 
         "75"    "1280x720"   QSize(1280, 720)   59.8551 
         "76"    "1152x768"   QSize(1152, 768)   59.7821 
EDID Info:  
        Device ID:  "xrandr-AU Optronics" 
        Name:  "" 
        Vendor:  "AU Optronics" 
        Serial:  "" 
        EISA ID:  "B173RW01 V3" 
        Hash:  "beac385f6f6d2a096e4b203330eba197" 
        Width:  38 
        Height:  21 
        Gamma:  2 
        Red:  QQuaternion(scalar:1, vector:(0.620117, 0.339844, 0)) 
        Green:  QQuaternion(scalar:1, vector:(0.325195, 0.570312, 0)) 
        Blue:  QQuaternion(scalar:1, vector:(0.150391, 0.0595703, 0)) 
        White:  QQuaternion(scalar:1, vector:(0.313477, 0.329102, 0)) 

-----------------------------------------------------
 
Id:  67 
Name:  "LVDS-1-1" 
Type:  "Panel (Laptop)" 
Connected:  true 
Enabled:  false 
Primary:  false 
Rotation:  1 
Pos:  QPoint(0,0) 
MMSize:  QSize(0, 0) 
Clones:  None 
Mode:  "" 
Preferred Mode:  "71" 
Preferred modes:  ("71", "71") 
Modes:  
         "77"    "1024x768"   QSize(1024, 768)   59.9201 
         "78"    "800x600"   QSize(800, 600)   59.8614 
         "79"    "848x480"   QSize(848, 480)   59.6591 
         "80"    "720x480"   QSize(720, 480)   59.7098 
         "81"    "640x480"   QSize(640, 480)   59.375 
         "71"    "1600x900"   QSize(1600, 900)   60.123 
         "72"    "1440x900"   QSize(1440, 900)   59.8874 
         "73"    "1280x854"   QSize(1280, 854)   59.8929 
         "74"    "1280x800"   QSize(1280, 800)   59.8103 
         "75"    "1280x720"   QSize(1280, 720)   59.8551
         "76"    "1152x768"   QSize(1152, 768)   59.7821
EDID Info:
        Unavailable

========================Configurations============================

Configs in:  "/home/valorie/.kde/share/apps/kscreen/"
Number of files:  1

"12a206a1bd9ba54a4ce53064e3eb3190"
"[
 {
  "enabled" : true,
  "id" : "beac385f6f6d2a096e4b203330eba197",
  "metadata" :   {
   "fullname" : "xrandr-AU Optronics",
   "name" : "LVDS"
  },
  "mode" :   {
   "refresh" : 60.123,
   "size" :    {
    "height" : 900,
    "width" : 1600
   }
  },
  "pos" :   {
   "x" : 0,
   "y" : 0
  },
  "primary" : false,
  "rotation" : 1
 },
 {
  "enabled" : false,
  "id" : "LVDS-1-1",
  "metadata" :   {
   "name" : "LVDS-1-1"
  },
  "pos" :   {
   "x" : 1600,
   "y" : 0
  },
  "primary" : false,
  "rotation" : 1
 }
]"

Reproducible: Always

Steps to Reproduce:
1. do a random kde update via apt update && apt dist-upgrade
2. notice that application screens are disappearing off to the left or right
3. alt+f2 kscreen > if it appears on the correct screen, easily fixed. If not, the trouble is described above.


Expected Results:  
I expect that the correct size of my screen will be detected, and all application windows will be displayed within the laptop screen.

Sysinfo for 'valorie-HP-Pavilion-dv7-Notebook-PC': Running inside KDE 4.13.0 on Ubuntu 14.04, Trusty Tahr powered by Linux 3.13.0-24-generic, CPU: AMD Phenom(tm) II P960 Quad-Core Processor at 800-1800/1800 MHz, RAM: 4847/5712 MB, Storage: 286/528 GB, 260 procs, 6.15h up

This has been happening for many months, but only after some updates.
Comment 1 Valorie Zimmerman 2014-05-24 09:11:39 UTC
Oh, I have the old config files if those will help.
Comment 2 Daniel Vrátil 2015-03-06 15:16:07 UTC
Hi Valorie,

the problem is that your system reports two laptop screens (LVDS1 and LVDS1-1) - this usually happens when you have two graphic cards, or when you have crappy GPU drivers.

I guess it's possible that the labels get interchanged after reboot or driver update randomly, so we cannot reliably tell which screen is which.

I honestly don't know what to do about this...
Comment 3 Valorie Zimmerman 2016-01-15 23:42:01 UTC
Dan, I notice that this bug is still open. I no longer experience this, so I guess the bug can be closed as fixed.