You are not logged in.

#1 2024-02-06 05:19:19

atticarch
Member
From: Basement
Registered: 2024-02-04
Posts: 37

[SOLVED] Setting Resolution Via Boot Parameters Not Working

I'm trying to set my monitor's resolution via boot parameters so that it immediately appoints my monitor a 1920x1080@60 resolution while forcing my monitor to stay on. I'm doing this because it'll happen on occasion that my monitor isn't detected by Hyprland after logging-in via SDDM. As a result, it turns off and I need to unplug and then re-plug my HDMI cord, which I don't want to do lest it burns-out or whatever. This is currently what my linux.conf file looks like:

title   Arch Linux (linux)
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options root=PARTUUID=ad78069d-bfb7-4963-a884-216f9f20a604 rw rootfstype=ext4 video=eDP-1:d video=DP-2:1920x1080@60e

According to the documentation, I should be doing this correctly, but it doesn't seem to take effect: the image is stretched, blurry, and partially off-screen towards the bottom - like it's scaling-up 1280x720 or some lower resolution. Perhaps it should be noted that the "off-screen" bit only applies to SDDM: when logged into Hyprland, it's selfsame to the previously-described resolution, except all on-screen.

I've tried with "me" appended, just "video=DP-2:e"/"video=DP-2:D", and also tried without "@60", but to no avail: the resolution stays exactly as aforementioned regardless.

Anyone have any ideas? Suggestions will be greatly appreciated.

EDIT: checked with xrandr -q, and it seems it is running at 1024x768@59.92. Tried a few other things, like setting each to their own "options" line in the .conf file, but same results nevertheless.


SOLUTION

You need to be extremely specific. Run "xrandr -q" in the terminal and take note of the decimals for the fps. For example, mine is running at 59.96. So, my linux.conf file now looks like this:

title   Arch Linux (linux)
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options root=PARTUUID=ad78069d-bfb7-4963-a884-216f9f20a604 rw rootfstype=ext4 video=eDP-1:d video=DP-2:1920x1080@59.96e

Last edited by atticarch (2024-02-06 07:33:19)


ouch his jaw

Offline

#2 2024-02-06 06:51:12

d.ALT
Member
Registered: 2019-05-10
Posts: 956

Re: [SOLVED] Setting Resolution Via Boot Parameters Not Working

Just to be sure, are you having any success if you go with

video=1280x1024

?
Is the output actually named DP-2 or DP2?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2024-02-06 07:07:35

atticarch
Member
From: Basement
Registered: 2024-02-04
Posts: 37

Re: [SOLVED] Setting Resolution Via Boot Parameters Not Working

d.ALT wrote:

Just to be sure, are you having any success if you go with

video=1280x1024

?
Is the output actually named DP-2 or DP2?

Tried with 1280x720 and it's as though I didn't change anything at all: same exact stretch and position. Checked with xrandr again just to be sure and it's "DP-2".

EDIT: Found the solution and will add it to OP shortly. Thank you for your help. Solution was a bit more straight-forward than I expected.

Last edited by atticarch (2024-02-06 07:26:45)


ouch his jaw

Offline

Board footer

Powered by FluxBB