본문 바로가기
Ubuntu

[Ubuntu 22.04 LTS] 자동으로 디스플레이 끄기

by UpDream- 2022. 8. 22.

 

자동으로 디스플레이를 끄는 방법입니다.

 

/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