You are not logged in.
hello everyone
recently ive changed my luks decryption method, so i had to set up a login manager
i wanted to use a tui one, and encountered an issue:
i have dual monitor setup, one runs at fullhd and the other one at 2k
when i get into TTY, the resolution is set to full hd, because of frame buffer
obviously, tui login manager also got resized
there were two options: either i cope with the way frame buffer works, or i disable my other monitor via KMS
while coping, i encountered the same issue on forums
using that post, i hacked my own solution, which runs ddcutil and fbset on startup, setting my 2nd monitor to standby mode and changing the resolution on my main monitor, and after login it runs ddcutil again to power on the other monitor
the service unit i used:
[Unit]
PartOf=systemd-user-sessions.service
Before=systemd-user-sessions.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/bin/tty-monitor
[Install]
WantedBy=multi-user.targetand the script:
#!/bin/sh
ddcutil setvcp D6 04 --display 2
fbset -xres 2560 -yres 1440this workaround works with greetd tui, but doesnt with ly or lemurs. are there any proper ways of doing the same thing?
Last edited by jakka (2024-08-11 15:03:51)
Offline