#StackBounty: #nvidia #xorg #display #overheating V-Sync and weird behavior (causing overheating)

Bounty: 50

In some game (Eve Online), VSync is somewhat broken on Ubuntu. Well. Maybe it is coming from the game itself, but some things tell me I can configure Ubuntu to get it work.

How did I find out about that issue

My computer was overheating when running that game, but only when I select that Windows (I could run a htop above it, and my CPUs cool down immediatly)

Expected behavior

VSync works fine and caps my FPS to 120Hz, as my laptop’s monitor is.

Faulty behaviors

Well, there are differents things to say that drive me mad.

  1. Laptop monitor alone

I’ve narrowed the issue coming from the VSync because my FPS went all the way to the moon (400 to 800, and I don’t have Linus T. computer) when I selected the Window, and where capped to 60 when I selected another Windows.

I tried to fix that by bypassing DE settings by editing /etc/default/grub and adding nvidia-drm.modeset=1 to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". It went well tho, my FPS were capped. But my CPU didn’t like it, and all X are pretty laggy.
(that modification allowed me to see "Synchronized = 1" on nvidia-settings).

I then reversed that and told myself I’ll buy an external fan, don’t do anything requiring me not to alt-tab to another windows time to time to cool down my CPU, as a workaround.

  1. I plug an external monitor

Well, I wouldn’t be here if I didn’t observe a again weirder event about that. If I do have an external monitor plugged in (and turned on, obviously), and I launch Eve Online, wether the window is on my external monitor or my laptop monitor : everything works great !!!

I do not understand.

Workaround ? Resolution ?

Right now, I’m thinking more about a workaround from a resolution.

  • either simulate the existence of that eternal monitor (althought nothing is plugged in), with "turn on" and "turn off" scripts.
  • or resolve that issue, once for all

You’ll find all, I hope, you need, here, about my computer (inxi, xrandr)

No external monitor plugged in

brieucdug@msi:~
 $ inxi -SPARM -GCDN -v1 -xGCRS
System:    Host: msi Kernel: 5.4.0-48-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: KDE Plasma 5.18.5 
           Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Machine:   Type: Laptop System: Micro-Star product: GF65 Thin 9SEXR v: REV:1.0 serial: <superuser/root required> 
           Mobo: Micro-Star model: MS-16W1 v: REV:1.0 serial: <superuser/root required> UEFI: American Megatrends 
           v: E16W1IMS.108 date: 12/04/2019 
CPU:       Topology: Quad Core model: Intel Core i5-9300H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38400 
           Speed: 800 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA TU106 [GeForce RTX 2060] vendor: Micro-Star MSI driver: nvidia v: 450.66 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa 
           resolution: 1920x1080~120Hz 
           OpenGL: renderer: GeForce RTX 2060/PCIe/SSE2 v: 4.6.0 NVIDIA 450.66 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Device-2: NVIDIA TU106 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           Sound Server: ALSA v: k5.4.0-48-generic 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel port: 5000 bus ID: 00:14.3 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI driver: r8169 v: kernel 
           port: 3000 bus ID: 03:00.0 
Drives:    Local Storage: total: 476.94 GiB used: 320.17 GiB (67.1%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLQ512HALU-00000 size: 476.94 GiB 
RAID:      Message: No RAID data was found. 
Partition: ID-1: / size: 467.96 GiB used: 320.17 GiB (68.4%) fs: ext4 dev: /dev/nvme0n1p2 
Info:      Processes: 287 Uptime: 50m Memory: 7.62 GiB used: 3.14 GiB (41.1%) Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 
           Shell: bash v: 5.0.17 inxi: 3.0.38 


brieucdug@msi:~
 $ xrandr --prop
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
        CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
                0 1 
        CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
        BorderDimensions: 4 
                supported: 4
        Border: 0 0 0 0 
                range: (0, 65535)
        SignalFormat: TMDS 
                supported: TMDS
        ConnectorType: HDMI 
        ConnectorNumber: 2 
        _ConnectorLocation: 2 
        non-desktop: 0 
                supported: 0, 1
eDP-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
        EDID: 
                00ffffffffffff0006afedd000000000
                0b1d0104a52213780348358f57599229
                1e505400000001010101010101010101
                010101010101987180c870383e406c30
                aa0058c110000018782d80c870383e40
                6c30aa0058c110000018000000fd0030
                788a8a1e010a202020202020000000fe
                004231353648414e31332e30200a00f0
        PRIME Synchronization: 0 
                supported: 0, 1
        scaling mode: Full aspect 
                supported: Full, Center, Full aspect
        max bpc: 12 
                range: (6, 12)
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        link-status: Good 
                supported: Good, Bad
        CONNECTOR_ID: 86 
                supported: 86
        non-desktop: 0 
                range: (0, 1)
   1920x1080    120.11*+  59.97    59.96    59.93    48.08  
   1680x1050     84.94    74.89    69.88    59.95    59.88  
   1600x1024     60.17  
   1400x1050     85.00    74.76    70.00    59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     85.02    75.02    60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      85.00    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     100.00    85.06    85.00    75.00    75.00    70.00    60.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       85.02    74.96    69.88    60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       85.08    74.76    70.06    59.98  
   800x450       59.95    59.82  
   640x512       85.02    75.02    60.02  
   720x450       59.89  
   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  
   680x384       59.80    59.96  
   640x400       59.88    59.98    85.08  
   576x432      100.11    85.15    85.09    75.00    75.00    70.00    60.06  
   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 

With my external monitor plugged (laptop’s is the primary)

brieucdug@msi:~
 $ inxi -SPARM -GCDN -v1 -xGCRS
System:    Host: msi Kernel: 5.4.0-48-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: KDE Plasma 5.18.5 
           Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Machine:   Type: Laptop System: Micro-Star product: GF65 Thin 9SEXR v: REV:1.0 serial: <superuser/root required> 
           Mobo: Micro-Star model: MS-16W1 v: REV:1.0 serial: <superuser/root required> UEFI: American Megatrends 
           v: E16W1IMS.108 date: 12/04/2019 
CPU:       Topology: Quad Core model: Intel Core i5-9300H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38400 
           Speed: 800 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA TU106 [GeForce RTX 2060] vendor: Micro-Star MSI driver: nvidia v: 450.66 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa 
           resolution: 1360x768~60Hz, 1920x1080~120Hz 
           OpenGL: renderer: GeForce RTX 2060/PCIe/SSE2 v: 4.6.0 NVIDIA 450.66 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Device-2: NVIDIA TU106 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           Sound Server: ALSA v: k5.4.0-48-generic 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel port: 5000 bus ID: 00:14.3 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI driver: r8169 v: kernel 
           port: 3000 bus ID: 03:00.0 
Drives:    Local Storage: total: 476.94 GiB used: 320.17 GiB (67.1%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLQ512HALU-00000 size: 476.94 GiB 
RAID:      Message: No RAID data was found. 
Partition: ID-1: / size: 467.96 GiB used: 320.17 GiB (68.4%) fs: ext4 dev: /dev/nvme0n1p2 
Info:      Processes: 287 Uptime: 50m Memory: 7.62 GiB used: 3.14 GiB (41.2%) Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 
           Shell: bash v: 5.0.17 inxi: 3.0.38 


brieucdug@msi:~
 $ xrandr --prop              
Screen 0: minimum 8 x 8, current 3280 x 1080, maximum 32767 x 32767
HDMI-0 connected 1360x768+1920+0 (normal left inverted right x axis y axis) 708mm x 398mm
        EDID: 
                00ffffffffffff00410c521e01010101
                1b110103804728788a288e9e55489724
                16484badce0031594559615981800101
                010101010101662150b051001b304070
                3600c48e21000018a91a00a050001630
                30203700c48e21000018000000fc0057
                584741205456202833290a20000000fd
                002f551f500e000a2020202020200136
                02032c71521f10202122140593041211
                0302011615070623090707830100006c
                030c002000b82dc03d013701011d00bc
                52d01e20b8285540c48e2100001a011d
                007251d01e206e285500c48e2100001e
                011d80d0721c1620102c2580c48e2100
                009e011d8018711c1620582c2500c48e
                2100009e0000000000000000000000f7
        CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
                0 1 
        CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
        BorderDimensions: 4 
                supported: 4
        Border: 0 0 0 0 
                range: (0, 65535)
        SignalFormat: TMDS 
                supported: TMDS
        ConnectorType: HDMI 
        ConnectorNumber: 2 
        _ConnectorLocation: 2 
        non-desktop: 0 
                supported: 0, 1
   1360x768      60.02*+
   1920x1080     59.94    50.00    29.97    25.00    23.98  
   1280x1024     60.02  
   1280x768      59.99  
   1280x720      60.00    59.94    50.00    50.00  
   1024x768      85.00    75.03    70.07    60.00  
   800x600       85.06    75.00    72.19    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       85.01    75.00    72.81    59.93    59.94  
eDP-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
        EDID: 
                00ffffffffffff0006afedd000000000
                0b1d0104a52213780348358f57599229
                1e505400000001010101010101010101
                010101010101987180c870383e406c30
                aa0058c110000018782d80c870383e40
                6c30aa0058c110000018000000fd0030
                788a8a1e010a202020202020000000fe
                004231353648414e31332e30200a00f0
        PRIME Synchronization: 0 
                supported: 0, 1
        scaling mode: Full aspect 
                supported: Full, Center, Full aspect
        max bpc: 12 
                range: (6, 12)
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        link-status: Good 
                supported: Good, Bad
        CONNECTOR_ID: 86 
                supported: 86
        non-desktop: 0 
                range: (0, 1)
   1920x1080    120.11*+  59.97    59.96    59.93    48.08  
   1680x1050     84.94    74.89    69.88    59.95    59.88  
   1600x1024     60.17  
   1400x1050     85.00    74.76    70.00    59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     85.02    75.02    60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      85.00    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     100.00    85.06    85.00    75.00    75.00    70.00    60.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       85.02    74.96    69.88    60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       85.08    74.76    70.06    59.98  
   800x450       59.95    59.82  
   640x512       85.02    75.02    60.02  
   720x450       59.89  
   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  
   680x384       59.80    59.96  
   640x400       59.88    59.98    85.08  
   576x432      100.11    85.15    85.09    75.00    75.00    70.00    60.06  
   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  
  1280x1024 (0x1f7) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1024x768 (0x215) 94.500MHz +HSync +VSync
        h: width  1024 start 1072 end 1168 total 1376 skew    0 clock  68.68KHz
        v: height  768 start  769 end  772 total  808           clock  85.00Hz
  1024x768 (0x216) 78.750MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock  60.02KHz
        v: height  768 start  769 end  772 total  800           clock  75.03Hz
  1024x768 (0x217) 75.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1328 skew    0 clock  56.48KHz
        v: height  768 start  771 end  777 total  806           clock  70.07Hz
  1024x768 (0x218) 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 (0x232) 50.000MHz +HSync +VSync
        h: width   800 start  856 end  976 total 1040 skew    0 clock  48.08KHz
        v: height  600 start  637 end  643 total  666           clock  72.19Hz
  800x600 (0x233) 49.500MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock  46.88KHz
        v: height  600 start  601 end  604 total  625           clock  75.00Hz
  800x600 (0x234) 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 (0x24c) 36.000MHz -HSync -VSync
        h: width   640 start  696 end  752 total  832 skew    0 clock  43.27KHz
        v: height  480 start  481 end  484 total  509           clock  85.01Hz
  640x480 (0x24e) 31.500MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock  37.50KHz
        v: height  480 start  481 end  484 total  500           clock  75.00Hz
  640x480 (0x24f) 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


Experiments :

  • Gnome/KDE : same results
  • KDE compositor on/off : same results
  • Eve’s settings "interval one" is what I have when I’m at 60FPS with an external monitor. When I set "imediate rates", it goes all to the moon (and client crashs, eventually). Conclusion : "interval one" works (VSync is working to 60 FPS)


Get this bounty!!!

#StackBounty: #drivers #nvidia #graphics #20.04 Update NVIDIA driver (two cards) on Ubuntu 20.04

Bounty: 50

Is there a way of specifying the device when updating a graphical card driver? In my case I have two graphical cards and driver updates get applied to just one of them Titan Xp. The one that I want to update is the NVIDIA GF119, which is currently stuck in "Manual Install" and I cannot get it updated to a later NVIDIA driver.

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1d.0/0000:04:00.1 ==
modalias : pci:v000010DEd00000E08sv000010DEsd00001154bc04sc03i00
vendor   : NVIDIA Corporation
model    : GF119 HDMI Audio Controller
driver   : oem-audio-hda-daily-dkms - third-party free

== /sys/devices/pci0000:b2/0000:b2:00.0/0000:b3:00.0 ==
modalias : pci:v000010DEd00001B02sv000010DEsd000011DFbc03sc00i00
vendor   : NVIDIA Corporation
model    : GP102 [TITAN Xp]
driver   : nvidia-driver-450-server - distro non-free
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-435 - distro non-free
driver   : nvidia-driver-450 - distro non-free recommended
driver   : nvidia-driver-440-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

== /sys/devices/pci0000:00/0000:00:1d.0/0000:04:00.0 ==
modalias : pci:v000010DEd0000107Dsv000010DEsd00001154bc03sc00i00
vendor   : NVIDIA Corporation
model    : GF119 [NVS 310]
manual_install: True
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-340 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
...

Any help on how I can manage to update the driver for the GF119 would be greatly appreaciated as I currently cannot connect a second monitor to this card.


Get this bounty!!!

#StackBounty: #drivers #nvidia #sound #pulseaudio NVidia Sound Output Device Missing

Bounty: 50

I am using Ubuntu 20.04.

When I booted my PC, I could select my GPU’s DisplayPort cable as an audio out.

Now it has disappeared, and I only see my motherboard’s output device.

If I run pacmd list-cards, I still see the NVidia device:

$ pacmd list-cards

2 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_07_00.1>
    driver: <module-alsa-card.c>
    owner module: 7
    properties:
        alsa.card = "0"
        alsa.card_name = "HDA NVidia"
        alsa.long_card_name = "HDA NVidia at 0xfc080000 irq 88"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:07:00.1"
        sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:07:00.1/sound/card0"
        device.bus = "pci"
        device.vendor.id = "10de"
        device.vendor.name = "NVIDIA Corporation"
        device.product.id = "0fb8"
        device.product.name = "GP108 High Definition Audio Controller"
        device.string = "0"
        device.description = "GP108 High Definition Audio Controller"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
        output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
        output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
        output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
        output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
        output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
        output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
        output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
        output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
        output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
        output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
        output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
        output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
        output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
        off: Off (priority 0, available: unknown)
    active profile: <off>
    ports:
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
    index: 1
    name: <alsa_card.pci-0000_09_00.4>
    driver: <module-alsa-card.c>
    owner module: 8
    properties:
        alsa.card = "1"
        alsa.card_name = "HD-Audio Generic"
        alsa.long_card_name = "HD-Audio Generic at 0xfc400000 irq 90"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:09:00.4"
        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:09:00.4/sound/card1"
        device.bus = "pci"
        device.vendor.id = "1022"
        device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
        device.product.id = "1487"
        device.product.name = "Starship/Matisse HD Audio Controller"
        device.string = "1"
        device.description = "Starship/Matisse HD Audio Controller"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        input:analog-stereo: Analogue Stereo Input (priority 65, available: no)
        output:analog-stereo: Analogue Stereo Output (priority 6500, available: no)
        output:analog-stereo+input:analog-stereo: Analogue Stereo Duplex (priority 6565, available: no)
        output:analog-surround-21: Analogue Surround 2.1 Output (priority 1300, available: no)
        output:analog-surround-21+input:analog-stereo: Analogue Surround 2.1 Output + Analogue Stereo Input (priority 1365, available: no)
        output:analog-surround-40: Analogue Surround 4.0 Output (priority 1200, available: no)
        output:analog-surround-40+input:analog-stereo: Analogue Surround 4.0 Output + Analogue Stereo Input (priority 1265, available: no)
        output:analog-surround-41: Analogue Surround 4.1 Output (priority 1300, available: no)
        output:analog-surround-41+input:analog-stereo: Analogue Surround 4.1 Output + Analogue Stereo Input (priority 1365, available: no)
        output:analog-surround-50: Analogue Surround 5.0 Output (priority 1200, available: no)
        output:analog-surround-50+input:analog-stereo: Analogue Surround 5.0 Output + Analogue Stereo Input (priority 1265, available: no)
        output:analog-surround-51: Analogue Surround 5.1 Output (priority 1300, available: no)
        output:analog-surround-51+input:analog-stereo: Analogue Surround 5.1 Output + Analogue Stereo Input (priority 1365, available: no)
        output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
        output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analogue Stereo Input (priority 5565, available: no)
        off: Off (priority 0, available: unknown)
    active profile: <output:iec958-stereo>
    sinks:
        alsa_output.pci-0000_09_00.4.iec958-stereo/#0: Starship/Matisse HD Audio Controller Digital Stereo (IEC958)
    sources:
        alsa_output.pci-0000_09_00.4.iec958-stereo.monitor/#0: Monitor of Starship/Matisse HD Audio Controller Digital Stereo (IEC958)
    ports:
        analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
            properties:
                
        analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
            properties:
                
        analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"
        iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
            properties:
                

Why can’t I set my GPU as the output device anymore?

UPDATE: If I reboot my machine, I can see the GPU as an output device.

EDIT:

This fixed it

sudo apt-get install --reinstall alsa-base pulseaudio
pulseaudio -k && sudo alsa force-reload


Get this bounty!!!

#StackBounty: #linux #nvidia #hdmi #deepin Deepin 20 – HDMI not working

Bounty: 50

I installed Deepin 20 (Community) and HDMI port not working.

I’ve already check ISO MD5 and everything is ok. Also, i tried to install in these following OS and the results are:

  • Deepin 15.10: HDMI Not working, NVIDIA not detected
  • Deepin 15.11: HDMI Not working, NVIDIA not detected
  • Deepin 20 beta: HDMI not working, NVIDIA detected
  • Elementary OS: HDMI works, NVIDIA detected
  • Ubuntu >=15: HDMI works and NVIDIA detected

My PC setup:

  • Laptop Lenovo ideapad L340 Gamer
  • NVIDIA GeForce GTX 1050 3GB

xrandr

$ xrandr --listmonitors

Monitors: 1
0: +*eDP-1 1920/344x1080/194+0+0  eDP-1

Deepin Device Manager

NVIDIA Controller

enter image description here

Intel Controller

enter image description here


Get this bounty!!!

#StackBounty: #arch-linux #nvidia Screen Flickering with NVIDIA drivers

Bounty: 50

I’ve recently set up my own Arch linux installation. I’m having some problems with one of the monitors in my dual monitor setup. Every once in a while, seemingly at random, my monitor will go black for a second before refreshing. This is pretty frustrating. It only happens with one of my monitors, the other monitor is completely unaffected. I have tried all sort of things and read loads of forum posts, but I’m unable to fix this problem.

I am running the nvidia-450 driver, with a GTX 1080 TI. The problem monitor is connected over displayport and is a 2k monitor. The other monitor is also connected over displayport and is a 1080p monitor.

Here are some command outputs that might help, edited for relevant sections:

lspci - k

08:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
    Subsystem: Gigabyte Technology Co., Ltd Device 374c
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia

dmesg

[    5.896505] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  450.66  Wed Aug 12 19:37:58 UTC 2020
[    5.947554] [drm] [nvidia-drm] [GPU ID 0x00000800] Loading driver
[    5.947559] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:08:00.0 on minor 0
[    6.031959] audit: type=1130 audit(1598214227.195:21): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=nvidia-persistenced comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    6.034669] usb 1-5: set resolution quirk: cval->res = 384
[    6.034934] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
[    6.119775] uvcvideo 1-5:1.0: Entity type for entity Extension 4 was not initialized!
[    6.119779] uvcvideo 1-5:1.0: Entity type for entity Extension 6 was not initialized!
[    6.119781] uvcvideo 1-5:1.0: Entity type for entity Extension 7 was not initialized!
[    6.119783] uvcvideo 1-5:1.0: Entity type for entity Processing 2 was not initialized!
[    6.119785] uvcvideo 1-5:1.0: Entity type for entity Extension 3 was not initialized!
[    6.119787] uvcvideo 1-5:1.0: Entity type for entity Camera 1 was not initialized!
[    6.119882] input: UVC Camera (046d:0825) as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-5/1-5:1.0/input/input32
[    6.119971] usbcore: registered new interface driver uvcvideo
[    6.119972] USB Video Class driver (1.1.1)
[    6.135659] usbcore: registered new interface driver snd-usb-audio
[    7.092020] audit: type=1103 audit(1598214228.255:22): pid=541 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_env,pam_permit acct="lightdm" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
[    7.114373] audit: type=1130 audit(1598214228.278:23): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@976 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.124372] audit: type=1101 audit(1598214228.288:24): pid=545 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_permit,pam_time acct="lightdm" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.124392] audit: type=1103 audit(1598214228.288:25): pid=545 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=? acct="lightdm" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[    7.124425] audit: type=1006 audit(1598214228.288:26): pid=545 uid=0 old-auid=4294967295 auid=976 tty=(none) old-ses=4294967295 ses=1 res=1
[    7.743903] igb 0000:06:00.0 enp6s0: igb: enp6s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[    7.956953] IPv6: ADDRCONF(NETDEV_CHANGE): enp6s0: link becomes ready
[    9.320055] usb 5-4: device descriptor read/64, error -110
[   24.893783] usb 5-4: device descriptor read/64, error -110
[   25.123356] usb 5-4: new high-speed USB device number 4 using xhci_hcd
[   30.440070] usb 5-4: device descriptor read/64, error -110
[   46.013782] usb 5-4: device descriptor read/64, error -110
[   46.120071] usb usb5-port4: attempt power cycle
[   46.763345] usb 5-4: new high-speed USB device number 5 using xhci_hcd
[   51.863777] xhci_hcd 0000:09:00.3: Timeout while waiting for setup device command
[   57.197078] xhci_hcd 0000:09:00.3: Timeout while waiting for setup device command
[   57.403701] usb 5-4: device not accepting address 5, error -62
[   57.526684] usb 5-4: new high-speed USB device number 6 using xhci_hcd
[   62.530134] xhci_hcd 0000:09:00.3: Timeout while waiting for setup device command
[   67.863370] xhci_hcd 0000:09:00.3: Timeout while waiting for setup device command
[   68.070345] usb 5-4: device not accepting address 6, error -62
[   68.070416] usb usb5-port4: unable to enumerate USB device
[   71.757209] kauditd_printk_skb: 5 callbacks suppressed

Let me know if you need any more info. This problem has been driving me crazy.


Get this bounty!!!

#StackBounty: #nvidia #xorg #xinerama Why won't my saved Nvidia X settings rotate my screen?

Bounty: 100

I have a dual monitor setup and I rotate one of my screens to the left. It is currently working as expected, and is a simple configuration.

enter image description here

The saved /etc/X11/xorg.conf looks like:

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


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      "Philips PHL 241B8Q"
    HorizSync       85.0 - 85.0
    VertRefresh     48.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 3GB"
EndSection

Section "Screen"

# Removed Option "nvidiaXineramaInfoOrder" "DFP-5"
# Removed Option "nvidiaXineramaInfoOrder" "DFP-3"
# Removed Option "metamodes" "DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Now when I turn the screens off, things get Ubuntu-y. When I turn them back on, the rotate left setting will be unapplied, and the screens will sometimes be in reversed order, i.e., adjusting settings for the screen on the left will change settings for the screen on the right, and the right screen will need to be dragged over so the screens swap places and then apply the rotate setting.

enter image description here

It’s not the end of the world, but every time I turn my screens on I have to play this little guessing game with the Nvidia UI – rotate the screen, apply, oops that was one of Ubuntu’s trick cases where I need to move the right screen over to be the left screen, drag right screen over to left, rotate left screen, save, finally working – all because the saved Xorg config doesn’t load the config like it’s meant to.

Been a Ubuntu desktop user for 5 years now but this stuff is honestly just embarrassing, the need to debug something as simple as a monitor configuration.


Get this bounty!!!

#StackBounty: #nvidia #xorg #xinerama Why won't my saved Nvidia X settings rotate my screen?

Bounty: 100

I have a dual monitor setup and I rotate one of my screens to the left. It is currently working as expected, and is a simple configuration.

enter image description here

The saved /etc/X11/xorg.conf looks like:

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


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      "Philips PHL 241B8Q"
    HorizSync       85.0 - 85.0
    VertRefresh     48.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 3GB"
EndSection

Section "Screen"

# Removed Option "nvidiaXineramaInfoOrder" "DFP-5"
# Removed Option "nvidiaXineramaInfoOrder" "DFP-3"
# Removed Option "metamodes" "DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Now when I turn the screens off, things get Ubuntu-y. When I turn them back on, the rotate left setting will be unapplied, and the screens will sometimes be in reversed order, i.e., adjusting settings for the screen on the left will change settings for the screen on the right, and the right screen will need to be dragged over so the screens swap places and then apply the rotate setting.

enter image description here

It’s not the end of the world, but every time I turn my screens on I have to play this little guessing game with the Nvidia UI – rotate the screen, apply, oops that was one of Ubuntu’s trick cases where I need to move the right screen over to be the left screen, drag right screen over to left, rotate left screen, save, finally working – all because the saved Xorg config doesn’t load the config like it’s meant to.

Been a Ubuntu desktop user for 5 years now but this stuff is honestly just embarrassing, the need to debug something as simple as a monitor configuration.


Get this bounty!!!

#StackBounty: #nvidia #xorg #xinerama Why won't my saved Nvidia X settings rotate my screen?

Bounty: 100

I have a dual monitor setup and I rotate one of my screens to the left. It is currently working as expected, and is a simple configuration.

enter image description here

The saved /etc/X11/xorg.conf looks like:

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


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      "Philips PHL 241B8Q"
    HorizSync       85.0 - 85.0
    VertRefresh     48.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 3GB"
EndSection

Section "Screen"

# Removed Option "nvidiaXineramaInfoOrder" "DFP-5"
# Removed Option "nvidiaXineramaInfoOrder" "DFP-3"
# Removed Option "metamodes" "DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Now when I turn the screens off, things get Ubuntu-y. When I turn them back on, the rotate left setting will be unapplied, and the screens will sometimes be in reversed order, i.e., adjusting settings for the screen on the left will change settings for the screen on the right, and the right screen will need to be dragged over so the screens swap places and then apply the rotate setting.

enter image description here

It’s not the end of the world, but every time I turn my screens on I have to play this little guessing game with the Nvidia UI – rotate the screen, apply, oops that was one of Ubuntu’s trick cases where I need to move the right screen over to be the left screen, drag right screen over to left, rotate left screen, save, finally working – all because the saved Xorg config doesn’t load the config like it’s meant to.

Been a Ubuntu desktop user for 5 years now but this stuff is honestly just embarrassing, the need to debug something as simple as a monitor configuration.


Get this bounty!!!

#StackBounty: #nvidia #xorg #xinerama Why won't my saved Nvidia X settings rotate my screen?

Bounty: 100

I have a dual monitor setup and I rotate one of my screens to the left. It is currently working as expected, and is a simple configuration.

enter image description here

The saved /etc/X11/xorg.conf looks like:

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


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      "Philips PHL 241B8Q"
    HorizSync       85.0 - 85.0
    VertRefresh     48.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 3GB"
EndSection

Section "Screen"

# Removed Option "nvidiaXineramaInfoOrder" "DFP-5"
# Removed Option "nvidiaXineramaInfoOrder" "DFP-3"
# Removed Option "metamodes" "DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Now when I turn the screens off, things get Ubuntu-y. When I turn them back on, the rotate left setting will be unapplied, and the screens will sometimes be in reversed order, i.e., adjusting settings for the screen on the left will change settings for the screen on the right, and the right screen will need to be dragged over so the screens swap places and then apply the rotate setting.

enter image description here

It’s not the end of the world, but every time I turn my screens on I have to play this little guessing game with the Nvidia UI – rotate the screen, apply, oops that was one of Ubuntu’s trick cases where I need to move the right screen over to be the left screen, drag right screen over to left, rotate left screen, save, finally working – all because the saved Xorg config doesn’t load the config like it’s meant to.

Been a Ubuntu desktop user for 5 years now but this stuff is honestly just embarrassing, the need to debug something as simple as a monitor configuration.


Get this bounty!!!

#StackBounty: #nvidia #xorg #xinerama Why won't my saved Nvidia X settings rotate my screen?

Bounty: 100

I have a dual monitor setup and I rotate one of my screens to the left. It is currently working as expected, and is a simple configuration.

enter image description here

The saved /etc/X11/xorg.conf looks like:

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


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      "Philips PHL 241B8Q"
    HorizSync       85.0 - 85.0
    VertRefresh     48.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1060 3GB"
EndSection

Section "Screen"

# Removed Option "nvidiaXineramaInfoOrder" "DFP-5"
# Removed Option "nvidiaXineramaInfoOrder" "DFP-3"
# Removed Option "metamodes" "DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "DP-0: nvidia-auto-select +0+0 {rotation=left, ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-2: nvidia-auto-select +1080+420 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Now when I turn the screens off, things get Ubuntu-y. When I turn them back on, the rotate left setting will be unapplied, and the screens will sometimes be in reversed order, i.e., adjusting settings for the screen on the left will change settings for the screen on the right, and the right screen will need to be dragged over so the screens swap places and then apply the rotate setting.

enter image description here

It’s not the end of the world, but every time I turn my screens on I have to play this little guessing game with the Nvidia UI – rotate the screen, apply, oops that was one of Ubuntu’s trick cases where I need to move the right screen over to be the left screen, drag right screen over to left, rotate left screen, save, finally working – all because the saved Xorg config doesn’t load the config like it’s meant to.

Been a Ubuntu desktop user for 5 years now but this stuff is honestly just embarrassing, the need to debug something as simple as a monitor configuration.


Get this bounty!!!