Skip to content

Instantly share code, notes, and snippets.

@davidhaley
Last active October 9, 2022 03:14
Show Gist options
  • Save davidhaley/c4bc6a070c13523727fd10aae1c1e1c3 to your computer and use it in GitHub Desktop.
Save davidhaley/c4bc6a070c13523727fd10aae1c1e1c3 to your computer and use it in GitHub Desktop.
LG C2 Enable 120hz (Nvidia) on login
# 1. Install nvidia-settings
$ pacman -Syu nvidia-settings
# 2. Run nvidia-settings
$ nvidia-settings
# 3. Set the correct refresh-rate in nvidia-settings (e.g. 120hz)
# X Server Display Configuration -> Set refresh-rate to desired, and Apply
# 4. Set the correct refresh-rate in Gnome
# Settings -> Display -> Set refresh-rate to match previous step
# 5. Verify Gnome's monitors settings are correct
$ code ~/.config/monitors.xml
# e.g.
<monitors version="2">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>HDMI-0</connector>
<vendor>GSM</vendor>
<product>LG TV SSCR2</product>
<serial>0x01010101</serial>
</monitorspec>
<mode>
<width>3840</width>
<height>2160</height>
<rate>119.87979888916016</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
</monitors>
# 6. Copy monitors.xml to gdm's config directory
$ cp ~/.config/monitors.xml /var/lib/gdm/.config/
# 7. Update the file's owner
$ chown gdm:gdm /var/lib/gdm/.config/monitors.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment