You are not logged in.

#1 2021-10-07 18:03:47

dnnd
Member
Registered: 2021-09-28
Posts: 2
Website

tty/tuigreet/greetd configuration on multi-monitor setup

Hi guys!
I have some problems with proper tuigreet/greetd configuration on my setup (4k laptop + external 1920x1200 monitor, intel GPU and nvidia GPU with proprietary driver, early KMS enabled).

1. tty size isn't scaled on the laptop screen, so I get normal size full-screen login window on the external monitor, but it's very small on the laptop. It happens only if the external monitor is attached - if I don't attach it, tty scales perfectly on the laptop screen. Is it actually possible to have different tty scaling on different screens?
2. The login window is polluted with systemd boot log. I've seen the relevant issue on tuigreet (https://github.com/apognu/tuigreet/issues/17) and on greetd repositories (https://todo.sr.ht/~kennylevinsen/greetd/26), and it seems for me that disabling "wall" logging in journald together with "vt = 2" in greetd/config.toml should fix the issue, but it doesn't. Changing greetd service type from "simple" to "idle" doesn't help as well.
The issue doesn't occurs when the external monitor isn't attached. Is it a greetd/tuigreet bug or it's just a misconfiguration from my side?

Screenshots: https://imgur.com/a/7h9ld0U

System information

inxi -SGzy (note the incorrect display resolution as inxi don't work with Wayland nicely):

System:
  Kernel: 5.14.9-zen2-1-zen x86_64 bits: 64 Desktop: sway 1.6.1
  Distro: Arch Linux
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 470.74
  Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
  Display: wayland server: X.Org 1.21.1.2 compositor: sway driver:
  loaded: modesetting,nvidia resolution: 1: 1920x1080~60Hz 2: 1920x1200~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.3

I have early KMS enabled,  /etc/mkinitcpio.conf :

MODULES=(i915 nvidia nvidia_modeset nvidia_uvm nvidia_drm)

I don't use a dedicated bootloader, my boot is configured via efibootmgr. efibootmgr -v -u:

BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000
Boot0000* Glorious Arch Linux	HD(1,GPT,c0495c1f-82ad-4712-940a-92ba4cc78f78,0x800,0x100000)/File(\vmlinuz-linux-zen)root=PARTUUID=1ad98e23-6deb-e84c-8748-5091ade6f83e rw initrd=\intel-ucode.img initrd=\initramfs-linux-zen.img systemd.unified_cgroup_hierarchy=1 cgroup_no_v1=all nvidia-drm.modeset=1 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off

greetd configuration:

[terminal]
vt = 2
[default_session]
command = "tuigreet --remember --remember-session --time --cmd 'sway-envd --my-next-gpu-wont-be-nvidia'"
user = "greeter"

Last edited by dnnd (2021-10-07 23:32:30)

Offline

Board footer

Powered by FluxBB