[Share Experiences] 取消笔记本电脑关盖进入睡眠/挂起
Tofloor
poster avatar
青稚°
Moderator
2023-05-07 15:43
Author

话不多说开始教程

编辑/etc/systemd/logind.conf

sudo gedit /etc/systemd/logind.conf (根据自己情况修改,gedit,可以修改为vim,nano根据自己使用的编辑器决定)

找到#HandleLidSwitch=suspend

修改为:

HandleLidSwitch=ignore

保存退出,输入命令:sudo systemctl restart systemd-logind.service

之后重启电脑

如何恢复呢?

只需要把ignore改回suspend就可以了。

Reply Favorite View the author
All Replies
阿尼亚
deepin
2023-05-07 15:51
#1

版主姐姐辛苦了,小姐姐。blush

Reply View the author
阿尼樱奈奈
Moderator
2023-05-07 15:54
#2

感谢你的教程。

Reply View the author
青稚°
Moderator
2023-05-07 16:12
#3
阿尼樱奈奈

感谢你的教程。

真甜

Reply View the author
Tonny
deepin
2023-05-07 17:22
#4
It has been deleted!
Tonny
deepin
2023-05-07 17:32
#5
It has been deleted!
青稚°
Moderator
2023-05-07 17:58
#6
Tonny It has been deleted!

好的,受教了,但是别人他们都说是休眠。

Reply View the author
hanzn-zzx
deepin
2023-05-07 18:42
#7

貌似系统设置里面可以调的吧

Reply View the author
阿尼樱奈奈
Moderator
2023-05-07 18:44
#8
hanzn-zzx

貌似系统设置里面可以调的吧

是的。但是有部分情况下即使调整了,仍然会出现自动休眠的现象

Reply View the author
青稚°
Moderator
2023-05-07 18:45
#9
hanzn-zzx

貌似系统设置里面可以调的吧

有时候调整了都不好使,所以出个教程。

Reply View the author
Tonny
deepin
2023-05-07 18:46
#10
It has been deleted!
hanzn-zzx
deepin
2023-05-07 18:50
#11
阿尼樱奈奈

是的。但是有部分情况下即使调整了,仍然会出现自动休眠的现象

这肯定是个bug(不过deepin类似的bug多了去了joy

我手头没有deepin的笔记本,所以不太了解。

Reply View the author
青稚°
Moderator
2023-05-07 18:50
#12
Tonny It has been deleted!

默认成休眠就不知道了,这个教程到哪里搜索,说的都是休眠,我只不过是修改了一些内容。joy

Reply View the author
hanzn-zzx
deepin
2023-05-07 18:51
#13
Tonny It has been deleted!

like

Reply View the author
132******48
deepin
2023-05-08 00:46
#14

收 藏 备 孕

like

Reply View the author