You are not logged in.

#1 2024-08-10 10:00:24

TheConfiguringNeverEnds
Member
Registered: 2021-08-06
Posts: 10

Forbid a certain refresh rate from being used?

I have a monitor which supports 1920x1080 @ 144Hz. Due to some damage it has sustained, it no longer functions properly at that refresh rate. The screen is mostly black with a thin bar of the image coming through at the top of the screen. I have managed to get it to use 60Hz instead, which is quite a downgrade but I'm willing to live with it until I can get a new monitor. My issue is this: it only uses this refresh rate at the desktop. The boot logo, menu, and login screen still assume 144Hz. Thanks to the thin strip at the top, I can technically tell what part of the process I am in and know when to type my password, but this is not ideal. The xrandr for my display follows:

eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080    144.00 +  60.01    59.97    59.96    60.00    59.93*
1680x1050     59.95    59.88
1400x1050     74.76    59.98
1600x900      59.99    59.94    59.95    59.82
1280x1024     85.02    75.02    60.02
1400x900      59.96    59.88
1280x960      85.00    60.00
1440x810      60.00    59.97
1368x768      59.88    59.85
1280x800      59.99    59.97    59.81    59.91
1152x864      75.00
1280x720      60.00    59.99    59.86    59.74
1024x768      85.00    75.05    60.04    85.00    75.03    70.07    60.00
1024x768i     86.96
960x720       85.00    75.00    60.00
928x696       75.00    60.05
896x672       75.05    60.01
1024x576      59.95    59.96    59.90    59.82
960x600       59.93    60.00
832x624       74.55
960x540       59.96    59.99    59.63    59.82
800x600       85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25
840x525       60.01    59.88
864x486       59.92    59.57
700x525       74.76    59.98
800x450       59.95    59.82
640x512       85.02    75.02    60.02
700x450       59.96    59.88
640x480       85.09    60.00    85.01    72.81    75.00    59.94
720x405       59.51    58.99
720x400       85.04
684x384       59.88    59.85
640x400       59.88    59.98    85.08
576x432       75.00
640x360       59.86    59.83    59.84    59.32
640x350       85.08
512x384       85.00    75.03    70.07    60.00
512x384i      87.06
512x288       60.00    59.92
416x312       74.66
480x270       59.63    59.82
400x300       85.27    72.19    75.12    60.32    56.34
432x243       59.92    59.57
320x240       85.18    72.81    75.00    60.05
360x202       59.51    59.13
360x200       85.04
320x200       85.27
320x180       59.84    59.32
320x175       85.27

As you can see, 144Hz is preferred at this resolution. Is there a way to forbid this refresh rate? Or at least make it no longer the preferred one? I have seen mention of an xrandr option called --delmode and/or --rmmode, but this happens with both options:

xrandr: cannot find mode "1920x1080_144.00"

Apparently the mode needs to be "unused" for rmmode to work, but I am not currently using 144Hz, so this should not be an issue. delmode doesn't work either and that has no stipulation about the mode being unused. Does the answer even lie within xrandr? I do not know how to proceed.

Offline

#2 2024-08-10 10:12:52

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Forbid a certain refresh rate from being used?

Which bootloader and "login screen" is this? You should be able to configure the desired resolution there as well.


Jin, Jîyan, Azadî

Offline

#3 2024-08-10 11:00:16

TheConfiguringNeverEnds
Member
Registered: 2021-08-06
Posts: 10

Re: Forbid a certain refresh rate from being used?

The bootloader is just regular old GRUB and the login manager is sddm.

Offline

#4 2024-08-10 11:11:00

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Forbid a certain refresh rate from being used?


Jin, Jîyan, Azadî

Offline

#5 2024-08-10 12:20:55

TheConfiguringNeverEnds
Member
Registered: 2021-08-06
Posts: 10

Re: Forbid a certain refresh rate from being used?

SDDM does use X but as I have shown in my original post I can't forbid the refresh rate using delmode/rmmode. As for the GRUB docs Head_on_a_Stick sent, they are irrelevant as they have nothing to say about refresh rate, only mentioning resolution.

Offline

#6 2024-08-10 16:02:10

mesaprotector
Member
Registered: 2024-03-03
Posts: 197

Re: Forbid a certain refresh rate from being used?

TheConfiguringNeverEnds wrote:

SDDM does use X but as I have shown in my original post I can't forbid the refresh rate using delmode/rmmode. As for the GRUB docs Head_on_a_Stick sent, they are irrelevant as they have nothing to say about refresh rate, only mentioning resolution.

Well, if you set the framebuffer resolution to 1680×1050, wouldn't that fix the problem as it'd use the highest available 59.95 Hz refresh rate?

Last edited by mesaprotector (2024-08-10 16:02:38)

Offline

#7 2024-08-10 17:45:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,176

Re: Forbid a certain refresh rate from being used?

You can either inject a modified EDID (this is gonna cover everything but the firmware and bootloader) or, for SDDM/X11, configure the preferred mode.
This frankly depends more on the DDX driver than anything else, for most https://man.archlinux.org/man/extra/xor … #Option~49 will do, but for the nvidia blob you'll have to use the metamode syntax (on the upside, the driver allows for most control - you can just ignore the edid completely and provide your own set of modes)

You'll not be able to do much wrt the UEFI/Boot Logo, though.

Online

#8 2024-08-11 04:43:41

TheConfiguringNeverEnds
Member
Registered: 2021-08-06
Posts: 10

Re: Forbid a certain refresh rate from being used?

mesaprotector wrote:
TheConfiguringNeverEnds wrote:

SDDM does use X but as I have shown in my original post I can't forbid the refresh rate using delmode/rmmode. As for the GRUB docs Head_on_a_Stick sent, they are irrelevant as they have nothing to say about refresh rate, only mentioning resolution.

Well, if you set the framebuffer resolution to 1680×1050, wouldn't that fix the problem as it'd use the highest available 59.95 Hz refresh rate?

I suppose I don't care too much about the bootloader running at full HD. I will try this.

EDIT: I have tried this and it doesn't seem to respect any of my settings in /etc/default/grub except for GRUB_CMDLINE_LINUX_DEFAULT which does at least mean I can see the boot logs by adding video=1920x1080@60 (strangely, 59.93 does not work here, even though in any other context literally setting the refresh rate to 60 doesn't work and only 59.93 does). I have tried to change other things in /etc/default/grub like the theme and such and it doesn't reflect these changes at all upon reboot.

Last edited by TheConfiguringNeverEnds (2024-08-11 05:04:19)

Offline

#9 2024-08-11 07:36:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,176

Re: Forbid a certain refresh rate from being used?

While off topic, see https://wiki.archlinux.org/title/GRUB/T … tmap_fonts - you need to have a properly formatted background or theme tbw. and oc. run grub-mkconfig to apply those

Online

Board footer

Powered by FluxBB