You are not logged in.

#1 2023-11-17 20:56:09

fk29g
Member
Registered: 2023-11-17
Posts: 2

[SOLVED] Firefox stuck at 60hz on dual-monitor setup

Edit: Found the solution


I have a dual monitor setup: One 144hz (DP-4) and one 60 hz (HDMI-0) monitor. From my experience on other distros, I know that variable refresh rates can be a pain to setup on X11.

But I got it working by adding these lines to /etc/profile

export __GL_SYNC_TO_VBLANK=1
export __GL_SYNC_DISPLAY_DEVICE=DP-4
export VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE=DP-4

And using this xorg.conf (auto generated after editing nvidia-settings)

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 545.29.02


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics W2361"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 61.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce GTX 1660"
EndSection

Section "Screen"

# Removed Option "metamodes" "HDMI-0: 1920x1080 +1920+0 {ForceCompositionPipeline=On}, DP-4: 1920x1080_144 +0+0 {ForceCompositionPipeline=On, AllowGSYNCCompatible=On}"
# Removed Option "metamodes" "HDMI-0: 1920x1080 +1920+0 {ForceCompositionPipeline=On}, DP-4: 1920x1080_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}"
# Removed Option "metamodes" "HDMI-0: 1920x1080 +1920+0, DP-4: 1920x1080_144 +0+0 {ForceCompositionPipeline=On, AllowGSYNCCompatible=On}"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "HDMI-0: 1920x1080 +1920+0 {ForceCompositionPipeline=On}, DP-4: 1920x1080_144 +0+0 {ForceCompositionPipeline=On, AllowGSYNCCompatible=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

The problem is, all my applications are making use of the higher refresh rate, except for Firefox, which only runs at 144fps when my second, 60hz monitor is turned off. Apart from obviously low fps, Firefox also lags a lot/feels very sluggish.

My compositor is Compfy. I tried messing around with it's vsync settings as well as wm-support variable, but without success. Disabling compfy also does not fix the problem. Things I also tried include reinstalling firefox, deleting .mozilla, installing LibreWolf (same issue) as well as setting layout.frame_rate in about:config to different values (0 and 144).

Any tips? I have read a lot of threads online about similar issues, but nothing helped.

Edit: Wayland is not an option as I'm using AwesomeWM

Last edited by fk29g (2023-11-21 17:35:49)

Offline

Board footer

Powered by FluxBB