tuigreet icon indicating copy to clipboard operation
tuigreet copied to clipboard

The screen size does not automatically adapt to the notebook's built-in monitor and external monitor (different resolutions)

Open ktech0 opened this issue 1 year ago • 8 comments

System information:

  • Distribution:
  • greetd version: 0.10.3
  • tuigreet version: 0.9.1
  • Installation method (from source, package, binary, etc.): pacman
  • tuigreet command line:
[terminal]
vt = 1

[default_session]
command = "tuigreet --cmd Hyprland"

Image

ktech0 avatar Jan 27 '25 13:01 ktech0

Same problem here, tho this probably isnt an issue with tuigreet itself, as it happens whenever i am in tty console. I tried setting screen modes in kernel params (video=DP-1:2560x1440@144) but it had no effect. Hopefully somebody knows how to fix.

Image

Doosty avatar Feb 13 '25 09:02 Doosty

Same problem here. Would love a fix or workaround of some sort.

rwtallant13 avatar Feb 15 '25 04:02 rwtallant13

same here, even when i'm only using a single external display and the laptop is closed (docked/clamshell mode)

emenel avatar Feb 21 '25 18:02 emenel

Ditto, I can't seem to find configuration setting related to this. Are there any?

andar1an avatar Feb 27 '25 17:02 andar1an

Would also appreciate this as I was also unable to set video= parameters, seems like the default frame buffer cannot be monitor independent (not really familiar with this aspect of Linux at all)?

I was able to work around it somewhat by explicitly setting the resolution to my main monitor. It causes other monitors that don't support the same resolution to look odd, but it's better than the alternative in my opinion.

Setup a udev rule to have systemd create a .device unit file that is activated when the frame buffer is first created

> cat /etc/udev/rules.d/99-framebuffer.rules
# Create systemd units when the framebuffer has been created

SUBSYSTEM=="graphics", KERNEL=="fb0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="fb-resolution.service"

Then create the above service file to set the frame buffer resolution as soon as the device is created

> cat /etc/systemd/system/fb-resolution.service
[Unit]
Description=Set the framebuffer resolution

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/fbset -g 2560 1440 2560 1440 32

Note you don't need to enable the unit or add any of the usual Wants=, WantedBy=, etc. as the systemd udev generator will handle it.

Trezamere avatar Mar 08 '25 20:03 Trezamere

I have the same issue with a dual monitor setup. I want to show the tuigreet only on the main (ultrawide) monitor, but the greeter is in the wrong resolution shifted to the left like in the initial picture and there is no option to disable the second display. What would be the right way to configure this @apognu ?

itpropro avatar Apr 22 '25 15:04 itpropro

Same issue here. Only started happening once I connected a third monitor that did not match the same resolution as my first and second monitors (both 1440p, new one is 1920x1200). Would love a fix @apognu

emmas02-commits avatar Aug 11 '25 01:08 emmas02-commits

video= parameters in GRUB_CMDLINE_LINUX_DEFAULT do not work

Would love a fix @apognu :)

ilya-nikolaev avatar Nov 09 '25 08:11 ilya-nikolaev