Results 1 to 4 of 4

Thread: How to permanently set GSYNC on?

  1. #1
    Join Date
    Jun 2006
    Location
    Croatia
    Beans
    226
    Distro
    Ubuntu

    How to permanently set GSYNC on?

    Hello,

    haven't been around the forums forever,... recently had some time to set up a dual boot on my Lenovo Legion Y520 gaming laptop. First tried to give a shot to Manjaro, but it just couldn't handle dual monitor setup...

    Mint works great out of the box, but I see that now the monitors and resolutions are handled in monitors.xml file. This works great, but I am missing how to set the GSYNC "metamode" for my nvidia card?

    I can do it manually, but I would like it to be the default, persistant setting.
    The xorg.conf produced by nvidia-settings is:
    Code:
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings:  version 440.44
    
    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 LG ULTRAWIDE"
        HorizSync       164.0 - 164.0
        VertRefresh     50.0 - 144.0
        Option         "DPMS"
    EndSection
    
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GTX 1060 with Max-Q Design"
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        Option         "Stereo" "0"
        Option         "nvidiaXineramaInfoOrder" "DFP-3"
        Option         "metamodes" "2560x1080_144 +1920+0 {AllowGSYNCCompatible=On}"
        Option         "SLI" "Off"
        Option         "MultiGPU" "Off"
        Option         "BaseMosaic" "off"
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection
    obviously the
    Code:
        Option         "metamodes" "2560x1080_144 +1920+0 {AllowGSYNCCompatible=On}"
    being the key interesting part.

    Is there some way to integrate this with the ubuntu way since xorg.conf seems to be depreciated?



    here's some on my config:

    Code:
    niksavel@nik-lap-mint:~$ xrandr
    Screen 0: minimum 8 x 8, current 2560 x 1080, maximum 32767 x 32767
    DP-0 disconnected (normal left inverted right x axis y axis)
    DP-1 disconnected (normal left inverted right x axis y axis)
    HDMI-0 disconnected (normal left inverted right x axis y axis)
    DP-2 connected primary 2560x1080+0+0 (normal left inverted right x axis y axis) 798mm x 334mm
       2560x1080     59.94 + 144.00*  120.00   119.88   100.00    99.94    74.94  
       1920x1080    119.93   119.88   100.00    99.90    74.91    60.00    59.94  
       1600x900     119.95  
       1280x1024    119.96    75.02  
       1280x720     119.88   119.86   100.00    59.94  
       1152x864     119.77  
       1024x768     119.99    75.03    60.00  
       800x600       75.00    60.32  
       720x480       59.94  
       640x480       75.00    59.94    59.93  
    DP-3 disconnected (normal left inverted right x axis y axis)
    eDP-1-1 connected (normal left inverted right x axis y axis)
       1920x1080     60.02 +  60.01    59.97    59.96    59.93  
       1680x1050     59.95    59.88  
       1600x1024     60.17  
       1400x1050     59.98  
       1600x900      59.99    59.94    59.95    59.82  
       1280x1024     60.02  
       1440x900      59.89  
       1400x900      59.96    59.88  
       1280x960      60.00  
       1440x810      60.00    59.97  
       1368x768      59.88    59.85  
       1360x768      59.80    59.96  
       1280x800      59.99    59.97    59.81    59.91  
       1152x864      60.00  
       1280x720      60.00    59.99    59.86    59.74  
       1024x768      60.04    60.00  
       960x720       60.00  
       928x696       60.05  
       896x672       60.01  
       1024x576      59.95    59.96    59.90    59.82  
       960x600       59.93    60.00  
       960x540       59.96    59.99    59.63    59.82  
       800x600       60.00    60.32    56.25  
       840x525       60.01    59.88  
       864x486       59.92    59.57  
       800x512       60.17  
       700x525       59.98  
       800x450       59.95    59.82  
       640x512       60.02  
       720x450       59.89  
       700x450       59.96    59.88  
       640x480       60.00    59.94  
       720x405       59.51    58.99  
       684x384       59.88    59.85  
       680x384       59.80    59.96  
       640x400       59.88    59.98  
       576x432       60.06  
       640x360       59.86    59.83    59.84    59.32  
       512x384       60.00  
       512x288       60.00    59.92  
       480x270       59.63    59.82  
       400x300       60.32    56.34  
       432x243       59.92    59.57  
       320x240       60.05  
       360x202       59.51    59.13  
       320x180       59.84    59.32  
      1024x768 (0x1d9) 65.000MHz -HSync -VSync
            h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
            v: height  768 start  771 end  777 total  806           clock  60.00Hz
      800x600 (0x1db) 40.000MHz +HSync +VSync
            h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
            v: height  600 start  601 end  605 total  628           clock  60.32Hz
      640x480 (0x1de) 25.175MHz -HSync -VSync
            h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
            v: height  480 start  490 end  492 total  525           clock  59.94Hz
    niksavel@nik-lap-mint:~$ inxi -Fxxxz
    System:
      Host: nik-lap-mint Kernel: 5.4.0-37-generic x86_64 bits: 64 compiler: gcc 
      v: 7.5.0 Desktop: Cinnamon 4.4.8 wm: muffin 4.4.2 dm: LightDM 1.26.0 
      Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
    Machine:
      Type: Laptop System: LENOVO product: 80YY v: Lenovo Y520-15IKBM 
      serial: <filter> Chassis: type: 10 v: Lenovo Y520-15IKBM serial: <filter> 
      Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <filter> 
      UEFI: LENOVO v: 5XCN26WW date: 12/20/2018 
    Battery:
      ID-1: BAT0 charge: 39.9 Wh condition: 41.1/45.0 Wh (91%) volts: 12.7/11.5 
      model: SMP L16M3P24 type: Li-poly serial: <filter> status: Unknown 
    CPU:
      Topology: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP 
      arch: Kaby Lake rev: 9 L2 cache: 6144 KiB 
      flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 44798 
      Speed: 3400 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 3094 2: 3149 
      3: 3230 4: 3305 5: 3108 6: 3223 7: 3194 8: 3143 
    Graphics:
      Device-1: Intel vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
      chip ID: 8086:591b 
      Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] vendor: Lenovo 
      driver: nvidia v: 440.59 bus ID: 01:00.0 chip ID: 10de:1c20 
      Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia 
      unloaded: fbdev,nouveau,vesa tty: N/A 
      OpenGL: renderer: GeForce GTX 1060 with Max-Q Design/PCIe/SSE2 
      v: 4.6.0 NVIDIA 440.59 direct render: Yes 
    Audio:
      Device-1: Intel CM238 HD Audio vendor: Lenovo driver: snd_hda_intel 
      v: kernel bus ID: 00:1f.3 chip ID: 8086:a171 
      Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel 
      v: kernel bus ID: 01:00.1 chip ID: 10de:10f1 
      Device-3: DisplayLink type: USB driver: cdc_ncm,snd-usb-audio 
      bus ID: 2-3.1:3 chip ID: 17e9:6000 serial: <filter> 
      Sound Server: ALSA v: k5.4.0-37-generic 
    Network:
      Device-1: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter 
      vendor: Lenovo driver: rtl8821ae v: kernel port: 4000 bus ID: 02:00.0 
      chip ID: 10ec:8821 
      IF: wlp2s0 state: down mac: <filter> 
      Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
      vendor: Lenovo driver: r8169 v: kernel port: 3000 bus ID: 03:00.0 
      chip ID: 10ec:8168 
      IF: enp3s0 state: down mac: <filter> 
      IF-ID-1: enx803f5d10c94b state: up speed: N/A duplex: N/A mac: <filter> 
    Drives:
      Local Storage: total: 1.84 TiB used: 284.41 GiB (15.1%) 
      ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW010T8 size: 953.87 GiB 
      speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 002C scheme: GPT 
      ID-2: /dev/sda vendor: Western Digital model: WD10SPZX-24Z10T0 
      size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> 
      rev: 1A01 scheme: GPT 
    Partition:
      ID-1: / size: 125.07 GiB used: 88.36 GiB (70.7%) fs: ext4 
      dev: /dev/nvme0n1p7 
      ID-2: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap 
      dev: /dev/nvme0n1p6 
    Sensors:
      System Temperatures: cpu: 65.0 C mobo: N/A gpu: nvidia temp: 54 C 
      Fan Speeds (RPM): N/A 
    Info:
      Processes: 311 Uptime: 47m Memory: 15.53 GiB used: 6.48 GiB (41.7%) 
      Init: systemd v: 237 runlevel: 5 Compilers: gcc: 7.5.0 alt: 7 Shell: bash 
      v: 4.4.20 running in: gno

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,904
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: How to permanently set GSYNC on?

    Quote Originally Posted by NiksaVel View Post
    Is there some way to integrate this with the ubuntu way since xorg.conf seems to be depreciated?
    xorg.conf will still be used if it's there, it's just that it doesn't have to be there for everything to work. Importantly, you can use snippets of a config in xorg.conf.d if there's some aspect that you need to change without having to specify the whole thing.
    None but ourselves can free our minds

  3. #3
    Join Date
    Jun 2006
    Location
    Croatia
    Beans
    226
    Distro
    Ubuntu

    Re: How to permanently set GSYNC on?

    If I understand how things work correctly, I have to define both monitors in xorg.conf and than the image will be output to both of them unless I manually disable it, no? I mean regardless of wether it is connected or not...?

  4. #4
    Join Date
    Jun 2006
    Location
    Croatia
    Beans
    226
    Distro
    Ubuntu

    Re: How to permanently set GSYNC on?

    To answer my own question, maybe it will be of use to someone...

    The CLI command to turn on GSYNC compatibility metamode that I needed is:
    Code:
    nvidia-settings --assign CurrentMetaMode="DP-2: 2560x1080_144 { AllowGSYNCCompatible=On }"
    Added it to my startup commands and voila

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •