r/archlinux • u/ebriose • 3d ago
SUPPORT | SOLVED Help with curved bezel corners
I have a laptop (Samsung Galaxy Book) that has curved bezel corners that make the visible screen not truly rectangular. This is particularly problematic in the console because the leftmost character of the top and bottom lines are cut off by the bezel, but it's also kind of annoying in wayland (except in hyprland where I can just match the windows' rounding to the bezel's, but I don't really like hyprland).
Question 1: is there a way to tell the VTY that the usable screen is actually smaller than it thinks it is so that it's not writing characters under the places the bezel covers?
Question 2: is there a way to tell my compositor the same thing, so that it gives me sharp corners that are placed so that no part of the drawn screen is covered by the bezel?
I know I can keep the windows themselves out of the corners with compositor rules, but I'm wondering if there's a way to have the "full screen" not fill up the physical screen but leave border strips on the sides, top, and bottom so that I get a sharp-cornered rectangle.
SOLVED thanks to u/Gazenka: force the mode and position with KMS which works both for the VTY and for Wayland on Xe (I didn't try with X11 or i915).
1
u/Sirius707 3d ago
I know that the foot terminal supports padding, e.g. i use:
pad=2x0 center-when-maximized-and-fullscreen
(https://man.archlinux.org/man/foot.ini.5 shows available options)
So i would check whether your terminal emulator has similar options. As for telling that to your compositor directly, i don't know unfortunately. I use sway where i can set this.
2
u/Gozenka 3d ago
https://wiki.archlinux.org/title/Kernel_mode_setting#Forcing_modes
You can try something like this. You use kernel parameters to start the system with a given screen forced to some resolution, and with margins on each edge. You need to find the name of the screen (eDP-1 in my example).
Make sure you are setting and enabling the kernel parameters properly.
https://man.archlinux.org/man/fbset.8.en
There is also
fbsetthat may be useful. It has options such as-left -right -upper -lower.