Screen stuttering when using nouveau or nvidia drivers
by LuxGiammi from LinuxQuestions.org on (#4VX16)
Hi everybody,
I've just installed Debian 10 (without any Desktop Environment because I wanted to install the i3wm) on my notebook Asus G75, in BIOS mode.
As soon as the system booted up for the first time, I installed Code:xorg, xorg-dev, build-essentials, linux-headers-4.19.0-6-amd64.
When I tried to install the NVidia driver I've gotten from https://www.nvidia.com/Download/driv...x/137276/en-us by running Code:sh nvidia.run I found out that there was an error when building the nvidia-drm module.
So I switched to the nouveau driver, installed Code:i3, compton and after having configured i3 to execute compton on startup I tested my screen by using this tool https://www.testufo.com/stutter#demo...000000&pps=720 and I get video stuttering: it's like the lines are going back and forth for ~30 pixels very quickly instead of going forward.
So I tried to install the nvidia driver from the Debian package repository: I installed nvidia-detect which advised me to install nvidia-legacy-390xx-driver. When I did it, rebooted the computer, I get the very same screen stuttering effect, even after having configured the nvidia driver with nvidia-settings.
That's my hardware configuration:
Code:00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4)
00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GF114M [GeForce GTX 670M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 105 (rev c4)
04:00.0 Ethernet controller: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet (rev c0)I also have two screens, but I'm only interested to keep the external one, as I use my notebook as a workstation.
And my software configuration is this:
- i3: the configuration file is the default one, except that I added this line near the beginning of the file Code:exec --no-startup-id compton --config ~/.config/compton.conf -CGb --backend glx --paint-on-overlay --vsync opengl-swc-compton: I copied and pasted this configuration file: https://www.reddit.com/r/linuxmaster...on_this_might/
My 10-nvidia.conf file:
Code:# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 390.116
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 "FUS P19-3P"
HorizSync 30.0 - 82.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 670M"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "metamodes" "HDMI-0: 1280x1024_75 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSectionDo somebody have a fix? I'm quite desperate, as I've also tried to install Debian with GNOME and with KDE and I get the same artifacts with nouveau (I must admit I haven't tried the nVidia driver in that situation)
Moreover, I know I was able to configure it right the last time: I managed to install it from the .run file provided by NVidia, but I had some hardware problems a month ago and I had to change disk (and therefore to reinstall Debian). I still have the old configuration files, but they don't solve the problem in this installation.
Thanks a lot.


I've just installed Debian 10 (without any Desktop Environment because I wanted to install the i3wm) on my notebook Asus G75, in BIOS mode.
As soon as the system booted up for the first time, I installed Code:xorg, xorg-dev, build-essentials, linux-headers-4.19.0-6-amd64.
When I tried to install the NVidia driver I've gotten from https://www.nvidia.com/Download/driv...x/137276/en-us by running Code:sh nvidia.run I found out that there was an error when building the nvidia-drm module.
So I switched to the nouveau driver, installed Code:i3, compton and after having configured i3 to execute compton on startup I tested my screen by using this tool https://www.testufo.com/stutter#demo...000000&pps=720 and I get video stuttering: it's like the lines are going back and forth for ~30 pixels very quickly instead of going forward.
So I tried to install the nvidia driver from the Debian package repository: I installed nvidia-detect which advised me to install nvidia-legacy-390xx-driver. When I did it, rebooted the computer, I get the very same screen stuttering effect, even after having configured the nvidia driver with nvidia-settings.
That's my hardware configuration:
Code:00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4)
00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GF114M [GeForce GTX 670M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 105 (rev c4)
04:00.0 Ethernet controller: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet (rev c0)I also have two screens, but I'm only interested to keep the external one, as I use my notebook as a workstation.
And my software configuration is this:
- i3: the configuration file is the default one, except that I added this line near the beginning of the file Code:exec --no-startup-id compton --config ~/.config/compton.conf -CGb --backend glx --paint-on-overlay --vsync opengl-swc-compton: I copied and pasted this configuration file: https://www.reddit.com/r/linuxmaster...on_this_might/
My 10-nvidia.conf file:
Code:# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 390.116
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 "FUS P19-3P"
HorizSync 30.0 - 82.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 670M"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "metamodes" "HDMI-0: 1280x1024_75 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSectionDo somebody have a fix? I'm quite desperate, as I've also tried to install Debian with GNOME and with KDE and I get the same artifacts with nouveau (I must admit I haven't tried the nVidia driver in that situation)
Moreover, I know I was able to configure it right the last time: I managed to install it from the .run file provided by NVidia, but I had some hardware problems a month ago and I had to change disk (and therefore to reinstall Debian). I still have the old configuration files, but they don't solve the problem in this installation.
Thanks a lot.