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

Closed
opened 2 years ago by Sirius · 2 comments
Sirius commented 2 years ago
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 2 years ago
Sirius closed this issue 2 years ago
Sirius commented 2 years ago
Poster
Owner

屏幕1分钟自动关闭

setterm --blank 1
屏幕1分钟自动关闭 ```bash setterm --blank 1 ```
Sirius added
ubuntu
and removed
architecture
labels 1 year ago
Sirius commented 1 year ago
Poster
Owner
sudo visudo
your_username ALL=(ALL) NOPASSWD:ALL
```shell sudo visudo ``` ``` your_username ALL=(ALL) NOPASSWD:ALL ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sirius/note#5
Loading…
There is no content yet.