ubuntu修改笔记本合盖动作 #5

Closed
opened 2024-06-27 15:40:34 +08:00 by Sirius · 2 comments
Owner
sudo vi /etc/systemd/logind.conf

#HandleLidSwitchExternalPower=suspend改为HandleLidSwitchExternalPower=ignore

重启服务

sudo service systemd-logind restart
```bash sudo vi /etc/systemd/logind.conf ``` 把`#HandleLidSwitchExternalPower=suspend`改为`HandleLidSwitchExternalPower=ignore` 重启服务 ```bash sudo service systemd-logind restart ```
Sirius added the architecture label 2024-06-27 15:40:34 +08:00
Author
Owner

屏幕1分钟自动关闭

setterm --blank 1
屏幕1分钟自动关闭 ```bash setterm --blank 1 ```
Sirius added ubuntu and removed architecture labels 2025-03-18 17:05:29 +08:00
Author
Owner
sudo visudo
your_username ALL=(ALL) NOPASSWD:ALL
```shell sudo visudo ``` ``` your_username ALL=(ALL) NOPASSWD:ALL ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Sirius/note#5