Skip to content

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?

8 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
8 · 91% up
Kind
Text
ID
11o7lyj

Author

7
posts
27
comments
0
media
View profile

2 comments

Have you tried using setterm?

I'm not sure how it interacts with mpv's DRM output but setterm --powerdown 0 >> /dev/tty1 should tell the screen to sleep on that tty.

1 points

Hmm that seems correct but isn't working, probably need to figure out how to enable APM_DISPLAY_BLANK. Thanks.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.