ken*_*nyB 8 laptop power-management
This is closely related to this question: How can I tell Ubuntu to do nothing when I close my laptop lid?.
I would like to stop Ubuntu from suspending or sleeping when the laptop lid is closed, while still turning the screen off to save power. How can I do that?
This is for a Dell Precision 5550 running Ubuntu 20.04 preinstalled.
小智 3
我认为的答案就在这里:配置linux笔记本电脑以关闭屏幕,但在盖子关闭时仍保持运行
步骤是
sudo gedit /etc/systemd/logind.conf
Run Code Online (Sandbox Code Playgroud)
改成#HandleLidSwitch=suspend
HandleLidSwitch=lock
然后
sudo systemctl restart systemd-logind.service
Run Code Online (Sandbox Code Playgroud)
小智 0
只需安装GNOME Tweaks,它就可以在 Ubuntu 上正常运行
打开终端并安装 gnome-tweaks 并打开它。
sudo apt update
sudo apt install gnome-tweaks
gnome-tweaks
Run Code Online (Sandbox Code Playgroud)
之后,您可以看到一个选项,即关闭笔记本电脑盖时暂停。您只需禁用该选项,如下图所示。