자동으로 디스플레이를 끄는 방법입니다.
/etc/systemd/system/ 경로에 enable-console-blanking.service 파일생성 하고 아래 내용을 입력합니다.
1분후 화면만 꺼집니다.
ffoooo@mapserver:~$ sudo vi /etc/systemd/system/enable-console-blanking.service
[Unit]
Description=Enable virtual console blanking
[Service]
Type=oneshot
Environment=TERM=linux
StandardOutput=tty
TTYPath=/dev/console
ExecStart=/usr/bin/setterm -blank 1
[Install]
WantedBy=multi-user.target
서비스 활성화 & 재부팅
ffoooo@mapserver:~$ sudo chmod 664 /etc/systemd/system/enable-console-blanking.service
ffoooo@mapserver:~$ sudo systemctl enable enable-console-blanking.service
ffoooo@mapserver:~$ sudo reboot
[Ubuntu 20.04 server] 자동으로 디스플레이 끄기 (tistory.com)
[Ubuntu 20.04 server] 자동으로 디스플레이 끄기
사무실에 남는 일체형PC가 있어서, 테스트머신으로 사용할 겸 우분투 서버를 설치해봤습니다. 일체형이다보니 모니터가 켜져있어서 모니터를 끄려고 구글링을 했으나.... 전부다 실패했습니다.
siane.tistory.com
'Ubuntu' 카테고리의 다른 글
| [Ubuntu 22.04 LTS] JDK 1.8 수동 설정 (1) | 2022.08.23 |
|---|---|
| [Ubuntu 22.04 LTS] "A start job is running for Wait for Network to be Configured" (2) | 2022.08.23 |
| [Ubuntu 22.04 LTS] 콘솔 잠금 vlock (2) | 2022.08.22 |
| [Ubuntu 22.04 LTS] Ubuntu 22.04.1 LTS 업그레이드하기 (0) | 2022.08.22 |
| [Ubuntu 22.04 LTS] 우분투 버전 확인 (0) | 2022.08.22 |