![登录桌面时黑屏](https://linux22.com/image/76419/%E7%99%BB%E5%BD%95%E6%A1%8C%E9%9D%A2%E6%97%B6%E9%BB%91%E5%B1%8F.png)
在库班图 15.10通过显示管理器登录时出现黑屏。我可以使用 Ctrl-Alt-F6 登录文本控制台并查看我的文件,但即使在这种环境中,当我键入时,startx
屏幕也会变成空白,并且不会发生任何进一步的情况。我已将~/.kde
目录重命名为,~/.kde-old
但问题仍然存在。
显示管理器有一个设置“故障安全”,当我尝试使用它设置登录时,几秒钟后我会再次启动回到显示管理器屏幕。
这是 dmesg,我已经粘贴了下面的相关行,但单击链接将带您进入存储整个日志的 Pastebin。
[ 117.572448] kscreen_backend[1626]: segfault at 10 ip 00007f8c0cf068c0 sp 00007ffdfd0ed358 error 4 in KSC_XRandR.so[7f8c0cef3000+20000]
[ 118.556865] kactivitymanage[1610]: segfault at 18 ip 00007fdc57430ee0 sp 00007ffde65b6878 error 4 in libqxcb.so[7fdc57402000+b5000]
[ 118.569140] krunner[1633]: segfault at 18 ip 00007fcd52973e38 sp 00007ffed1ec3370 error 4 in libqxcb.so[7fcd5292a000+b5000]
[ 118.572032] kdeconnectd[1632]: segfault at 18 ip 00007fcb022f3e38 sp 00007ffc58549500 error 4 in libqxcb.so[7fcb022aa000+b5000]
[ 118.578476] kscreen_backend[1639]: segfault at 18 ip 00007f0956e02e38 sp 00007ffc3a121980 error 4 in libqxcb.so[7f0956db9000+b5000]
[ 118.578622] kwin_x11[1629]: segfault at 18 ip 00007f2f5d039e38 sp 00007ffcf6c160e0 error 4 in libqxcb.so[7f2f5cff0000+b5000]
[ 118.998290] plasmashell[1655]: segfault at 18 ip 00007f39a8edae38 sp 00007ffcf531f110 error 4 in libqxcb.so[7f39a8e91000+b5000]
[ 120.469171] kglobalaccel5[1685]: segfault at 18 ip 00007fc6917f1e38 sp 00007fffb2965630 error 4 in libqxcb.so[7fc6917a8000+b5000]
[ 120.475815] kglobalaccel5[1687]: segfault at 18 ip 00007f7b14409e38 sp 00007ffe5d3a59f0 error 4 in libqxcb.so[7f7b143c0000+b5000]
[ 120.735669] kglobalaccel5[1700]: segfault at 18 ip 00007fde7578ae38 sp 00007ffe9d3d7520 error 4 in libqxcb.so[7fde75741000+b5000]
[ 124.165384] show_signal_msg: 2 callbacks suppressed
[ 124.165389] korgac[1719]: segfault at 18 ip 00007f4e33530e38 sp 00007ffe1e69b010 error 4 in libqxcb.so[7f4e334e7000+b5000]
[ 124.203178] IPv6: ADDRCONF(NETDEV_UP): wlp5s0b1: link is not ready
[ 124.821375] wlp5s0b1: authenticate with b0:48:7a:fd:99:ae
[ 124.823047] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 1/3)
[ 125.023234] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 2/3)
[ 125.227080] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 3/3)
[ 125.431014] wlp5s0b1: authentication with b0:48:7a:fd:99:ae timed out
[ 125.627814] korgac[1727]: segfault at 18 ip 00007f0294472e38 sp 00007ffeec678ea0 error 4 in libqxcb.so[7f0294429000+b5000]
[ 127.951872] klauncher[1774]: segfault at 18 ip 00007f25f91b2e38 sp 00007fffc3569a90 error 4 in libqxcb.so[7f25f9169000+b5000]
[ 136.059194] wlp5s0b1: authenticate with b0:48:7a:fd:99:ae
[ 136.059317] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 1/3)
[ 136.261035] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 2/3)
[ 136.464894] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 3/3)
[ 136.668804] wlp5s0b1: authentication with b0:48:7a:fd:99:ae timed out
[ 149.191322] IPv6: ADDRCONF(NETDEV_UP): wlp5s0b1: link is not ready
[ 149.816413] wlp5s0b1: authenticate with b0:48:7a:fd:99:ae
[ 149.816517] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 1/3)
[ 150.017451] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 2/3)
[ 150.221322] wlp5s0b1: direct probe to b0:48:7a:fd:99:ae (try 3/3)
[ 150.425210] wlp5s0b1: authentication with b0:48:7a:fd:99:ae timed out
[ 152.779659] kscreen_backend[1965]: segfault at 10 ip 00007f253f78c8c0 sp 00007ffe7a87d1b8 error 4 in KSC_XRandR.so[7f253f779000+20000]
[ 152.941924] kactivitymanage[1952]: segfault at 18 ip 00007f1ae218bee0 sp 00007ffe18581458 error 4 in libqxcb.so[7f1ae215d000+b5000]
[ 152.973211] kscreen_backend[1976]: segfault at 18 ip 00007f6ec2cf9e38 sp 00007ffe34ea0320 error 4 in libqxcb.so[7f6ec2cb0000+b5000]
[ 152.997937] ksmserver[1975]: segfault at 18 ip 00007f756b05de38 sp 00007fffb2c7fe80 error 4 in libqxcb.so[7f756b014000+b5000]
我无法找到在哪里xrandr
存储它的配置而且X日志似乎没有什么问题。我应该如何从这里排除故障,除了核武器~
甚至是/
?
请注意,此 Kubuntu 版本使用 Plasma 5,因此我进行了全新安装,而不是从以前的版本升级。安装很顺利,我已经使用该系统一个多星期了,没有任何相关问题。这是一台有时连接到外部显示器的笔记本电脑。
编辑:我刚刚创建了一个新用户test
,该用户也从所谓的故障安全登录模式中启动。但是,该用户可以正常登录其桌面。因此,问题似乎出在我的用户的配置文件中。我现在正在将它们一分为二,但我仍然对想法持开放态度。谢谢。
答案1
问题似乎出在~/.local/share/kscreen
.笔记本电脑在悬挂时连接到外部显示器,但在打开机箱时没有显示器。我必须强调,我已经在这个设置上做过很多次了,所以我不知道为什么在这个特定的时间事情会崩溃。这是有问题的文件,以供将来参考(是的,当我再次遇到同样的问题时,我可能会在六个月后看到这个问题):
$ pwd
/home/dotancohen/.local/share/kscreen
$ ls
57aa46c23fd36deda7a9cfb885d7ecee 57aa46c23fd36deda7a9cfb885d7ecee_lidOpened 62f30f6a728bde980d325725a3f19f77
$ cat 57aa46c23fd36deda7a9cfb885d7ecee
[
{
"enabled": true,
"id": "9dda8f0b1446d1e151e4d85bb529df5d",
"metadata": {
"fullname": "xrandr-unknown",
"name": "LVDS1"
},
"mode": {
"refresh": 60.001659393310547,
"size": {
"height": 768,
"width": 1366
}
},
"pos": {
"x": 1080,
"y": 464
},
"primary": true,
"rotation": 1
}
]
$ cat 57aa46c23fd36deda7a9cfb885d7ecee_lidOpened
[
{
"enabled": true,
"id": "9dda8f0b1446d1e151e4d85bb529df5d",
"metadata": {
"fullname": "xrandr-unknown",
"name": "LVDS1"
},
"mode": {
"refresh": 60.001659393310547,
"size": {
"height": 768,
"width": 1366
}
},
"pos": {
"x": 1080,
"y": 464
},
"primary": true,
"rotation": 1
}
]
$ cat 62f30f6a728bde980d325725a3f19f77
[
{
"enabled": true,
"id": "9dda8f0b1446d1e151e4d85bb529df5d",
"metadata": {
"fullname": "xrandr-unknown",
"name": "LVDS1"
},
"mode": {
"refresh": 60.001659393310547,
"size": {
"height": 768,
"width": 1366
}
},
"pos": {
"x": 1080,
"y": 464
},
"primary": true,
"rotation": 1
},
{
"enabled": true,
"id": "0ffbea62a50d7b3aa8d01f0a7a422554",
"metadata": {
"fullname": "xrandr-E2342-211NDTC7A529",
"name": "VGA1"
},
"mode": {
"refresh": 60,
"size": {
"height": 1080,
"width": 1920
}
},
"pos": {
"x": 0,
"y": 0
},
"primary": false,
"rotation": 2
}
]
Dotan,只需运行它即可完成:
$ rm -rf ~/.local/share/kscreen
亲吻 Meirav、Maayan、Ofek 和 Ety!