Toggling video output on/off without a display server.
I have a server running debian which is mostly headless but I want to connect a monitor to it to passively play videos. I'm currently playing videos by running mpv --vo drm over ssh so they it plays without a display server or having to log into a tty on the monitor.
The problem now is I want to automatically turn the monitor off overnight. Since it's an external monitor I can't directly power it off so I was thinking I can somehow disable the gpu video output (radeon rx 580 if that matters) so the monitor goes to sleep by itself. The only solutions I could find online were ones involving vbetool which seems like it only works for laptops, and ones involving xrandr which obviously requires an x server.
Is there a tool or driver setting to do what I want?
About this post
- Posted
- Archived
- Score
- 8 · 91% up
- Kind
- Text
- ID
- 11o7lyj
2 comments
Have you tried using setterm?
I'm not sure how it interacts with mpv's DRM output but
setterm --powerdown 0 >> /dev/tty1should tell the screen to sleep on that tty.Hmm that seems correct but isn't working, probably need to figure out how to enable
APM_DISPLAY_BLANK. Thanks.