hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.42k stars 898 forks source link

Underscan/Overscan Support #277

Open NdranC opened 2 years ago

NdranC commented 2 years ago

I'm not 100% sure if this feature is already possible but I know this is an issue with sway as well.

I use a TV as part of my computer setup that requires a 5% underscan for it to work. Can this feature be added to hyprland?

vaxerski commented 2 years ago

what is a 5% underscan in this scenario? 5% FPS less?

fufexan commented 2 years ago

https://en.wikipedia.org/wiki/Overscan

It means there's a black box around the displayed image. It's not taking up the entire screen.

NdranC commented 2 years ago

xrandr --output HDMI-A-1 --right-of HDMI-A-0 --set underscan on --set 'underscan hborder' 96 --set 'underscan vborder' 54

This is the xrandr command I would use. It basically reduces the edge around the screen by adding a black border around it. Of about 5% in my case. In xrandr you have to manually calculate it.

fufexan commented 2 years ago

The overscan problem has to be addressed in wlroots first. See https://github.com/swaywm/sway/issues/5038

vaxerski commented 2 years ago

thats what I suspected. It's too low level of a thing

Honkazel commented 2 months ago

What bout now?

vaxerski commented 2 months ago

if you can explain what underscan/overscan is

diniamo commented 2 months ago

See the wiki page above.

Overscan = the edges of the displayed content are cut off by the physical boundaries of the monitor Underscan = there is a black bar between the edges of the displayed content and the physical boundaries of the monitor

vaxerski commented 1 month ago

dunno. I'll remove the label, though.

Paul-Eau commented 1 week ago

AFAIK overscan/underscan should be able to be set with the modeline option in the monitor section of hypr.conf. After some research I found this website which explains how to work with custom modeline, a list for TVs is available here if that would be helpful. This tool allows the creation of modeline with an option to resolve the overscan problem. But since Hyprland has its own composer (aquamarine), the modeline option no longer seems to work as indicated #7179 #6953 #7172. I haven't tested on other compositor if the problem persists. A workaround I've found is too lower the resolution of the concerned monitor or to increase the gap_out value from hypr.conf for the concerned monitor with workspace rules. I hope it can help.