我已经使用 KDE 5.35/Plasma 5.8 和 Kubuntu 16.04 很长一段时间了,我认为它是有史以来第一个没有多显示器问题的版本。 到现在为止...
几个星期以来,我一直遇到 Plasma 小部件和面板问题(我只有 1 个小部件 + 1 个面板)。我的默认配置是笔记本电脑(屏幕打开),带有扩展坞 + 通过扩展坞的显示端口连接的外部显示器。每隔几天,我需要断开笔记本电脑的对接,然后通过笔记本电脑的 VGA 端口连接投影仪。然后恢复到我的默认配置。
这已经工作了相当长一段时间。但最近几周,当我将笔记本电脑重新连接到扩展坞时,小部件和面板都看不见了。似乎 Plasma“认为”这只是另一种配置,并希望将其显示在另一个屏幕上。
很难说这件事究竟何时开始发生的。
对于如何调试该问题有什么想法吗?
ll .local/share/kscreen/
02b2519f10b073932721cd54471a5d31
0bc0f89da7e951d55bdfa65793aa345a
0faea465ff6c527f2aa69abb7c930e1a
155ff4718615fda4a9282c0b70d2cac2
191c4762f0984fc4cc0152d8105d3326
27017d423df578a745236143e3e26975
2916a81176ce7c981ab06bd0995f026d
3711daa6087565303445e59abd0dab22
42695ce0307127da62aae36c0c605aec
4e60e42f297aa863d831a17b07d96c8e
72d0666c5ae310ce6d8e75380df9a178
72d0666c5ae310ce6d8e75380df9a178_lidOpened
7b64f87a8dcd5140beff328b9eedbacf
8cf9a2afe62c0bb6a53787ccd0b96688
8cf9a2afe62c0bb6a53787ccd0b96688_lidOpened
8fcd01dc21bb29c21ffc70cae0a7eeda
a7bd88cd5eca9730b3ad4e6d34305ab8
b19a6594df416975d9ca6eebcc870b7f
c48ae748aca5918d355ddb5f219317fb
c48ae748aca5918d355ddb5f219317fb_lidOpened
d4da5d828750ea65d3c2966a4ac51ce4
d4da5d828750ea65d3c2966a4ac51ce4_lidOpened
f054a39fc3bd56d8db7b561b2b9b45f8
f572b8dbda3159ff1340e300891c5478
f572b8dbda3159ff1340e300891c5478_lidOpened
f78388f04b63d7028f0cc4fb881bc831
f78388f04b63d7028f0cc4fb881bc831_lidOpened
fbdb4927340a24964629ea70ddfb7ad8
kscreen.log
kscreen-console monitor > kscreen-changes.log
START: Requesting Config
Received config. Took 19 milliseconds
Remember to enable KSRandR or KSRandR11 in kdebugdialog
Screen:
maxSize: QSize(32767, 32767)
minSize: QSize(8, 8)
currentSize: QSize(3520, 1200)
-----------------------------------------------------
Id: 67
Name: "LVDS1"
Type: "Panel (Laptop)"
Connected: true
Enabled: true
Primary: true
Rotation: 1
Pos: QPoint(0,300)
MMSize: QSize(309, 174)
Size: QSize(1600, 900)
Clones: None
Mode: "77"
Preferred Mode: "77"
Preferred modes: ("77")
Modes:
"239" "" QSize(1600, 900) 40.0399
"240" "" QSize(1440, 900) 59.8874
"241" "" QSize(1368, 768) 60
"242" "" QSize(1360, 768) 59.799
"243" "" QSize(1360, 768) 59.96
"244" "" QSize(1152, 864) 59.9971
"245" "" QSize(1280, 720) 59.9995
"246" "" QSize(1024, 768) 60.0038
"247" "" QSize(1024, 576) 59.9989
"248" "" QSize(960, 540) 59.9991
"249" "" QSize(800, 600) 60.3165
"250" "" QSize(800, 600) 56.25
"251" "" QSize(864, 486) 59.9998
"252" "" QSize(800, 450) 59.9993
"253" "" QSize(640, 480) 59.9405
"254" "" QSize(720, 405) 60
"255" "" QSize(640, 360) 59.9971
"77" "" QSize(1600, 900) 60.0572
EDID Info:
Device ID: "xrandr-unknown"
Name: ""
Vendor: ""
Serial: ""
EISA ID: ""
Hash: "4e2dbe1d5420b32701f974e2318d6f34"
Width: 31
Height: 17
Gamma: 2
Red: QQuaternion(scalar:1, vector:(0.599609, 0.347656, 0))
Green: QQuaternion(scalar:1, vector:(0.320312, 0.570312, 0))
Blue: QQuaternion(scalar:1, vector:(0.150391, 0.129883, 0))
White: QQuaternion(scalar:1, vector:(0.313477, 0.329102, 0))
-----------------------------------------------------
Id: 68
Name: "DP1"
Type: "DisplayPort"
Connected: true
Enabled: true
Primary: false
Rotation: 1
Pos: QPoint(1600,0)
MMSize: QSize(518, 324)
Size: QSize(1920, 1200)
Clones: None
Mode: "256"
Preferred Mode: "256"
Preferred modes: ("256")
Modes:
"240" "" QSize(1440, 900) 59.8874
"246" "" QSize(1024, 768) 60.0038
"249" "" QSize(800, 600) 60.3165
"256" "" QSize(1920, 1200) 59.9502
"257" "" QSize(1920, 1080) 60
"258" "" QSize(1600, 1200) 60
"259" "" QSize(1680, 1050) 59.9543
"260" "" QSize(1280, 1024) 60.0197
"261" "" QSize(1280, 800) 59.8103
"262" "" QSize(1280, 720) 60
"263" "" QSize(640, 480) 60
"78" "" QSize(1600, 900) 60
EDID Info:
Device ID: "xrandr-HP E242-CNC60901QH"
Name: "HP E242"
Vendor: ""
Serial: "CNC60901QH"
EISA ID: ""
Hash: "bdb63d1785df48d2cc1cb3ffb2d929eb"
Width: 52
Height: 32
Gamma: 2
Red: QQuaternion(scalar:1, vector:(0.65332, 0.332031, 0))
Green: QQuaternion(scalar:1, vector:(0.303711, 0.632812, 0))
Blue: QQuaternion(scalar:1, vector:(0.150391, 0.0644531, 0))
White: QQuaternion(scalar:1, vector:(0.313477, 0.329102, 0))
-----------------------------------------------------
Id: 69
Name: "DP2"
Type: "DisplayPort"
Connected: false
-----------------------------------------------------
Id: 70
Name: "DP3"
Type: "DisplayPort"
Connected: false
-----------------------------------------------------
Id: 71
Name: "HDMI1"
Type: "HDMI"
Connected: false
-----------------------------------------------------
Id: 72
Name: "HDMI2"
Type: "HDMI"
Connected: false
-----------------------------------------------------
Id: 73
Name: "HDMI3"
Type: "HDMI"
Connected: false
-----------------------------------------------------
Id: 74
Name: "VGA1"
Type: "VGA"
Connected: false
-----------------------------------------------------
Id: 75
Name: "VIRTUAL1"
Type: "Unknown"
Connected: false
kscreen: Requesting missing EDID for outputs (67)
kscreen: Requesting missing EDID for outputs (67)
kscreen: Requesting missing EDID for outputs (67)
kscreen: Requesting missing EDID for outputs (67, 68)
kscreen: Requesting missing EDID for outputs (67, 68)
kscreen: Requesting missing EDID for outputs (67, 68)
答案1
我在这里引用上面的答案:
根据您遇到的问题的原因,您可以通过编辑
plasma-org.kde.plasma.desktop-appletsrc
文件然后执行以下任一操作来修复此问题:kquitapp plasmashell && kstart plasmashell
我遇到的一个原因是,当我连接到外部显示器并随后断开连接时,多显示器功能有时会“丢失”笔记本电脑屏幕上的任务栏(我认为这是在 Plasma 5.5 或 5.6 中)。在这种情况下,我发现问题出在任务栏配置中的 lastScreen 设置。要解决此问题,请在 plasma-org.kde.plasma.desktop-appletsrc 中找到如下所示的文本部分:
[Containments][1] activityId= formfactor=2 immutability=1 lastScreen=1 location=4 plugin=org.kde.panel wallpaperplugin=org.kde.image
(这些行中的一些可能会因您的配置而有所不同。在我的配置中,此部分在文件中只有十几行,但我不知道可能会有多大差异。)
设置
lastscreen=0
帮我解决了这个问题。我认为这0
代表我的笔记本电脑屏幕,1
是外接显示器。