笔记本电脑盖关闭时 HDMI 显示器停止工作

笔记本电脑盖关闭时 HDMI 显示器停止工作

我的 Ubuntu 笔记本电脑上连接了一个 HDMI 显示器,我通常在关闭笔记本电脑盖的情况下工作。

由于某种原因,设置突然停止工作。

现在,当我合上盖子时,外接显示器屏幕变黑,就像没有信号一样,但系统没有挂起或休眠,因为当我打开盖子时,一切都从我离开的地方开始(没有登录屏幕)。

dconf 编辑器设置

journalctl -b -0输出:

...skipping...
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1152x864"x60.0   81.62  1152 1216 1336 1520  864 865 868 895 -hsync +vsync (53.7 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1680x1050"x0.0  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1280x800"x0.0   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1920x1080"x75.0  220.64  1920 2056 2264 2608  1080 1081 1084 1128 -hsync +vsync (84.6 kHz e)
sep 23 14:28:04 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (--) modeset(0): HDMI max TMDS frequency 300000KHz
sep 23 14:28:04 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym ff53 with keysym ff53 (keycode 72).
sep 23 14:28:04 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym ff51 with keysym ff51 (keycode 71).
sep 23 14:28:04 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym 6f with keysym 6f (keycode 20).
sep 23 14:29:16 ag_latitude systemd-logind[1049]: Lid opened.
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Allocate new frame buffer 2560x1080 stride
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): EDID vendor "GSM", prod id 30484
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Using hsync ranges from config file
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Using vrefresh ranges from config file
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Printing DDC gathered Modelines:
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "2560x1080"x0.0  181.25  2560 2608 2640 2720  1080 1083 1093 1111 +hsync -vsync (66.6 kHz eP)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "2560x1080"x0.0  228.25  2560 2608 2640 2720  1080 1083 1093 1119 +hsync -vsync (83.9 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "2560x1440"x0.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "720x480"x0.0   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1920x1080"x0.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1280x720"x0.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "720x576"x0.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1152x864"x60.0   81.62  1152 1216 1336 1520  864 865 868 895 -hsync +vsync (53.7 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1680x1050"x0.0  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1280x800"x0.0   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (II) modeset(0): Modeline "1920x1080"x75.0  220.64  1920 2056 2264 2608  1080 1081 1084 1128 -hsync +vsync (84.6 kHz e)
sep 23 14:29:16 ag_latitude /usr/lib/gdm3/gdm-x-session[2304]: (--) modeset(0): HDMI max TMDS frequency 300000KHz
sep 23 14:29:16 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym ff53 with keysym ff53 (keycode 72).
sep 23 14:29:16 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym ff51 with keysym ff51 (keycode 71).
sep 23 14:29:16 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym 6f with keysym 6f (keycode 20).
sep 23 14:29:17 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym ff53 with keysym ff53 (keycode 72).
sep 23 14:29:17 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym ff51 with keysym ff51 (keycode 71).
sep 23 14:29:17 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym 6f with keysym 6f (keycode 20).
sep 23 14:29:19 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym ff53 with keysym ff53 (keycode 72).
sep 23 14:29:19 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym ff51 with keysym ff51 (keycode 71).
sep 23 14:29:19 ag_latitude org.gnome.Shell.desktop[2486]: Window manager warning: Overwriting existing binding of keysym 6f with keysym 6f (keycode 20).

答案1

从:关闭盖子问题


要使 Ubuntu 在笔记本电脑盖关闭时不执行任何操作:/etc/systemd/logind.conf以 root 身份在文本编辑器中打开文件,例如

sudo -H gedit /etc/systemd/logind.conf

添加一行HandleLidSwitch=ignore

使用以下命令重新启动 systemd 守护程序:

sudo service systemd-logind restart

如果不起作用,请设置以下内容

IgnoreLid=true/etc/UPower/UPower.conf

相关内容