您尚未登录。

#1 2022-05-28 00:03:24

XBatteria
会员
注册时间: 2022-04-09
帖子: 1

关于笔记本在使用外接拓展屏幕的情况下挂起无法恢复的问题

如题,KDE桌面环境,在使用HDMI外接屏幕的情况下进入睡眠会导致无法正常唤醒
唤醒时会点亮屏幕,但会卡死在一个猜测是tty的界面,整个界面只有左上角有一个控制台光标
尝试过切换tty,进行切换到除tty1以外的tty时光标会闪动一下但对切换以外的输入没有反应
切换到tty1时光标消失并彻底卡死
另外,当这种情况出现,强制关机后开机,主要屏幕的桌面显示的是次要屏幕的桌面,次要屏幕的桌面则是全黑,需要在显示设置中两次调整屏幕位置(调整到另一边后还原位置)才能恢复
没有使用外接屏幕时一切正常
如果有什么需要看的log,希望能说得具体一些,对于这方面实在不太熟悉,谢谢

离线

#2 2022-07-28 10:53:30

oaksharks
会员
注册时间: 2022-04-11
帖子: 4

Re: 关于笔记本在使用外接拓展屏幕的情况下挂起无法恢复的问题

我现在也是kde,

                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Host: OMEN by HP Laptop 16-b0xxx
               `+oooooo:                 Kernel: 5.15.55-1-lts
               -+oooooo+:                Uptime: 10 mins
             `/:-:++oooo+:               Packages: 1110 (pacman)
            `/++++/+++++++:              Shell: zsh 5.9
           `/++++++++++++++:             Resolution: 1920x1080, 2560x1440
          `/+++ooooooooooooo/`           DE: Plasma 5.25.3
         ./ooosssso++osssssso+`          WM: KWin


睡眠唤醒之后检测不到使用typec转hdmi链接的显示器,笔记本的屏幕可以用,目前有两个方法可以参考:
1. 重新插拔typec转接器
2. 重启sddm: sudo systemctl restart sddm

重启sddm 跟注销差不多,会重启X。

离线

#3 2022-07-29 10:33:43

oaksharks
会员
注册时间: 2022-04-11
帖子: 4

Re: 关于笔记本在使用外接拓展屏幕的情况下挂起无法恢复的问题

再补充一下:
出现问题之后查看/var/log/Xorg.0.log:
```
34035.334] (II) UnloadModule: "libinput"
[ 34045.156] (EE) modeset(0): failed to set mode: No such file or directory
[ 34045.156] (WW) modeset(0): hotplug event: connector 335's link-state is BAD, tried resetting the current mode. You may be leftwith a black screen if this fails...
[ 34045.158] (II) modeset(0): EDID vendor "CMN", prod id 5634
[ 34045.158] (II) modeset(0): Printing DDC gathered Modelines:
[ 34045.158] (II) modeset(0): Modeline "1920x1080"x0.0  342.06  1920 1968 2000 2080  1080 1090 1096 1142 +hsync -vsync (164.5 kHz eP)
[ 34045.158] (II) modeset(0): Modeline "1920x1080"x0.0  142.53  1920 1968 2000 2080  1080 1090 1096 1142 +hsync -vsync (68.5 kHz e)
[ 34045.189] (EE) modeset(0): failed to set mode: No such file or directory
[ 34045.189] (WW) modeset(0): hotplug event: connector 335's link-state is BAD, tried resetting the current mode. You may be leftwith a black screen if this fails...
[ 34045.191] (II) modeset(0): EDID vendor "CMN", prod id 5634
[ 34045.191] (II) modeset(0): Printing DDC gathered Modelines:
[ 34045.191] (II) modeset(0): Modeline "1920x1080"x0.0  342.06  1920 1968 2000 2080  1080 1090 1096 1142 +hsync -vsync (164.5 kHz eP)
[ 34045.191] (II) modeset(0): Modeline "1920x1080"x0.0  142.53  1920 1968 2000 2080  1080 1090 1096 1142 +hsync -vsync (68.5 kHz e)
```
感觉这一行可能是相关的:
[ 34045.156] (EE) modeset(0): failed to set mode: No such file or directory

好像是显示器没有挂载上?
我用xrandr 查看了一下显示器,然后就加载上了。
到这,问题基本解决。

离线

页脚