kb/docs/src/03_Linux做主力/19_笔记本做服务器.md

15 lines
630 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 合上笔记本盖子不休眠
1. 编辑 `/etc/systemd/logind.conf`
2. 找到 `#HandleLidSwitch` 这一行意思是合上笔记本上盖后的行为默认suspend修改为ignore即合盖不休眠。然后还要去掉前面的#。保存文件。
3. 重启systemd服务
```shell
service systemd-logind restart
```
## 关闭屏幕
1. 安装vbetool软件apt-get install vbetool
2. 关闭显示器:`vbetool dpms off`
打开显示器:`vbetool dpms on`
## 参考资料
[用笔记本作为PVE服务器如何关闭屏幕以节电](https://blog.csdn.net/William_Lee1333/article/details/128095617)