[SOLVED] Nvidia 780M on Asus G750JH - stuttering

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
User avatar
peterling
Level 2
Level 2
Posts: 53
Joined: Thu Mar 31, 2016 6:58 pm

[SOLVED] Nvidia 780M on Asus G750JH - stuttering

Post by peterling » Sun Feb 10, 2019 4:28 pm

Hello,

I freshly installed 19.1 on my Asus G750JH Notebook.
Performance was ok, but I need my lappy for rendering with blender.
So I installed in drivers -> nvidia-driver-410. Rendering was fast, but the complete desktop was stuttering every 2 sec for just a split of a second.
Went to drivers -> nvidia-340. Rendering was fast but same problem as with nvidia-driver-410.

So I downloaded the driver from Nvidia website. Installed "NVIDIA-Linux-x86_64-410.93.run"

Installation was not possible.
ERROR: Unable to load the 'nvidia-drm' kernel module.
ERROR: Installation has failed.
So I rebooted. Low resolution desktop awaited me.

I found this post:
viewtopic.php?t=273042

I followed every step:

Code: Select all

[b]sudo apt-get remove --purge nvidia-*[/b]
next re-boot your machine.

Then

Code: Select all

dpkg -l | grep -i nvidia
hopefully you'll have no results.
I did all this.
But I have results:
:?: :?
ii libcuda1-340 340.107-0ubuntu0.18.04.1 amd64 NVIDIA CUDA runtime library
ii libnvidia-common-410 410.78-0ubuntu1~18.04~pop0 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-410:amd64 410.78-0ubuntu1~18.04~pop0 amd64 NVIDIA libcompute package
I am now unsure what to do. My problem are gone. Stuttering is gone. Rendering is fast. glxgears runs without stuttering.

But is this how it should be?

Some more info:

Code: Select all

inxi -SMCGx
System:    Host: Usarian Kernel: 4.15.0-20-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30) Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: ASUSTeK product: G750JH v: 1.0 serial: N/A
           Mobo: ASUSTeK model: G750JH v: 1.0 serial: N/A
           BIOS: American Megatrends v: G750JH.206 date: 12/02/2013
CPU:       Quad core Intel Core i7-4700HQ (-MT-MCP-) arch: Haswell rev.3 cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19155
           clock speeds: max: 3400 MHz 1: 1047 MHz 2: 1353 MHz 3: 1378 MHz 4: 1223 MHz 5: 1365 MHz 6: 1422 MHz
           7: 1401 MHz 8: 1103 MHz
Graphics:  Card: NVIDIA GK104M [GeForce GTX 780M] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 ) drivers: nvidia (unloaded: modesetting,fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.01hz
           OpenGL: renderer: GeForce GTX 780M/PCIe/SSE2 version: 4.6.0 NVIDIA 410.93 Direct Render: Yes

Code: Select all

lspci -nnk |egrep -A3 -i "3D|VGA"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104M [GeForce GTX 780M] [10de:119f] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GK104M [GeForce GTX 780M] [1043:213e]
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Code: Select all

ls /etc/modprobe.d
alsa-base.conf          blacklist-firewire.conf     blacklist-nvidia-nouveau.conf  dkms.conf             mdadm.conf
blacklist-ath_pci.conf  blacklist-framebuffer.conf  blacklist-oss.conf             hda-jack-retask.conf  qemu-system-x86.conf
blacklist.conf          blacklist-modem.conf        blacklist-rare-network.conf    iwlwifi.conf

Code: Select all

ls /etc/X11
app-defaults             fonts    xinit  Xreset    Xresources  Xsession.d        xsm         Xwrapper.config
default-display-manager  rgb.txt  xkb    Xreset.d  Xsession    Xsession.options  XvMCConfig

Code: Select all

ls /lib/modules/`uname -r`/kernel/drivers/char/drm/
...

Code: Select all

head -n 200 /var/log/Xorg.0.log
[    15.210] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[    15.211] X Protocol Version 11, Revision 0
[    15.211] Build Operating System: Linux 4.4.0-138-generic x86_64 Ubuntu
[    15.211] Current Operating System: Linux Usarian 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64
[    15.211] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-20-generic root=UUID=1cb3a845-45c8-4707-9378-0b3df50a9c3f ro elevator=deadline acpi_backlight=vendor
[    15.211] Build Date: 25 October 2018  04:11:27PM
[    15.211] xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support) 
[    15.211] Current version of pixman: 0.34.0
[    15.211] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    15.211] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    15.211] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Feb 10 19:35:48 2019
[    15.211] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    15.211] (==) No Layout section.  Using the first Screen section.
[    15.211] (==) No screen section available. Using defaults.
[    15.211] (**) |-->Screen "Default Screen Section" (0)
[    15.211] (**) |   |-->Monitor "<default monitor>"
[    15.212] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    15.212] (==) Automatically adding devices
[    15.212] (==) Automatically enabling devices
[    15.212] (==) Automatically adding GPU devices
[    15.212] (==) Automatically binding GPU devices
[    15.212] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    15.214] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    15.214] 	Entry deleted from font path.
[    15.214] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    15.214] 	Entry deleted from font path.
[    15.214] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    15.214] 	Entry deleted from font path.
[    15.214] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    15.214] 	Entry deleted from font path.
[    15.214] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    15.214] 	Entry deleted from font path.
[    15.214] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[    15.214] (==) ModulePath set to "/usr/lib/xorg/modules"
[    15.214] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    15.214] (II) Loader magic: 0x55b47715f020
[    15.214] (II) Module ABI versions:
[    15.214] 	X.Org ANSI C Emulation: 0.4
[    15.214] 	X.Org Video Driver: 23.0
[    15.214] 	X.Org XInput driver : 24.1
[    15.214] 	X.Org Server Extension : 10.0
[    15.215] (++) using VT number 7

[    15.215] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    15.215] (II) xfree86: Adding drm device (/dev/dri/card0)
[    15.217] (--) PCI:*(0:1:0:0) 10de:119f:1043:213e rev 161, Mem @ 0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    15.217] (II) LoadModule: "glx"
[    15.218] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    15.228] (II) Module glx: vendor="X.Org Foundation"
[    15.228] 	compiled for 1.19.6, module version = 1.0.0
[    15.228] 	ABI class: X.Org Server Extension, version 10.0
[    15.228] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[    15.228] 	loading driver: nvidia
[    15.228] (==) Matched nvidia as autoconfigured driver 0
[    15.228] (==) Matched nouveau as autoconfigured driver 1
[    15.228] (==) Matched nouveau as autoconfigured driver 2
[    15.228] (==) Matched modesetting as autoconfigured driver 3
[    15.228] (==) Matched fbdev as autoconfigured driver 4
[    15.228] (==) Matched vesa as autoconfigured driver 5
[    15.228] (==) Assigned the driver to the xf86ConfigLayout
[    15.228] (II) LoadModule: "nvidia"
[    15.229] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    15.260] (II) Module nvidia: vendor="NVIDIA Corporation"
[    15.260] 	compiled for 4.0.2, module version = 1.0.0
[    15.260] 	Module class: X.Org Video Driver
[    15.261] (II) LoadModule: "nouveau"
[    15.261] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[    15.263] (II) Module nouveau: vendor="X.Org Foundation"
[    15.263] 	compiled for 1.19.3, module version = 1.0.15
[    15.263] 	Module class: X.Org Video Driver
[    15.263] 	ABI class: X.Org Video Driver, version 23.0
[    15.263] (II) LoadModule: "modesetting"
[    15.263] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    15.263] (II) Module modesetting: vendor="X.Org Foundation"
[    15.263] 	compiled for 1.19.6, module version = 1.19.6
[    15.263] 	Module class: X.Org Video Driver
[    15.263] 	ABI class: X.Org Video Driver, version 23.0
[    15.263] (II) LoadModule: "fbdev"
[    15.263] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    15.264] (II) Module fbdev: vendor="X.Org Foundation"
[    15.264] 	compiled for 1.19.3, module version = 0.4.4
[    15.264] 	Module class: X.Org Video Driver
[    15.264] 	ABI class: X.Org Video Driver, version 23.0
[    15.264] (II) LoadModule: "vesa"
[    15.264] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    15.264] (II) Module vesa: vendor="X.Org Foundation"
[    15.264] 	compiled for 1.19.3, module version = 2.3.4
[    15.264] 	Module class: X.Org Video Driver
[    15.264] 	ABI class: X.Org Video Driver, version 23.0
[    15.265] (II) NVIDIA dlloader X Driver  410.93  Thu Dec 20 17:07:57 CST 2018
[    15.265] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    15.265] (II) NOUVEAU driver Date:   Fri Apr 21 14:41:17 2017 -0400
[    15.265] (II) NOUVEAU driver for NVIDIA chipset families :
[    15.265] 	RIVA TNT        (NV04)
[    15.265] 	RIVA TNT2       (NV05)
[    15.265] 	GeForce 256     (NV10)
[    15.265] 	GeForce 2       (NV11, NV15)
[    15.265] 	GeForce 4MX     (NV17, NV18)
[    15.265] 	GeForce 3       (NV20)
[    15.265] 	GeForce 4Ti     (NV25, NV28)
[    15.265] 	GeForce FX      (NV3x)
[    15.265] 	GeForce 6       (NV4x)
[    15.265] 	GeForce 7       (G7x)
[    15.265] 	GeForce 8       (G8x)
[    15.265] 	GeForce GTX 200 (NVA0)
[    15.265] 	GeForce GTX 400 (NVC0)
[    15.265] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    15.265] (II) FBDEV: driver for framebuffer: fbdev
[    15.265] (II) VESA: driver for VESA chipsets: vesa
[    15.324] (II) Loading sub module "fb"
[    15.324] (II) LoadModule: "fb"
[    15.324] (II) Loading /usr/lib/xorg/modules/libfb.so
[    15.325] (II) Module fb: vendor="X.Org Foundation"
[    15.325] 	compiled for 1.19.6, module version = 1.0.0
[    15.325] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    15.325] (II) Loading sub module "wfb"
[    15.325] (II) LoadModule: "wfb"
[    15.325] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    15.325] (II) Module wfb: vendor="X.Org Foundation"
[    15.325] 	compiled for 1.19.6, module version = 1.0.0
[    15.325] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    15.325] (II) Loading sub module "ramdac"
[    15.325] (II) LoadModule: "ramdac"
[    15.325] (II) Module "ramdac" already built-in
[    15.328] (WW) Falling back to old probe method for modesetting
[    15.328] (WW) Falling back to old probe method for fbdev
[    15.328] (II) Loading sub module "fbdevhw"
[    15.328] (II) LoadModule: "fbdevhw"
[    15.328] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    15.329] (II) Module fbdevhw: vendor="X.Org Foundation"
[    15.329] 	compiled for 1.19.6, module version = 0.0.2
[    15.329] 	ABI class: X.Org Video Driver, version 23.0
[    15.329] (WW) Falling back to old probe method for vesa
[    15.329] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    15.329] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    15.329] (==) NVIDIA(0): RGB weight 888
[    15.329] (==) NVIDIA(0): Default visual is TrueColor
[    15.329] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    15.329] (**) NVIDIA(0): Enabling 2D acceleration
[    15.329] (II) Loading sub module "glxserver_nvidia"
[    15.329] (II) LoadModule: "glxserver_nvidia"
[    15.330] (II) Loading /usr/lib/xorg/modules/extensions/libglxserver_nvidia.so
[    15.462] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[    15.462] 	compiled for 4.0.2, module version = 1.0.0
[    15.462] 	Module class: X.Org Server Extension
[    15.463] (II) NVIDIA GLX Module  410.93  Thu Dec 20 17:04:33 CST 2018
[    16.278] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[    16.278] (--) NVIDIA(0):     CRT-0
[    16.278] (--) NVIDIA(0):     DFP-0 (boot)
[    16.278] (--) NVIDIA(0):     DFP-1
[    16.278] (--) NVIDIA(0):     DFP-2
[    16.278] (--) NVIDIA(0):     DFP-3
[    16.278] (--) NVIDIA(0):     DFP-4
[    16.280] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 780M (GK104) at PCI:1:0:0 (GPU-0)
[    16.281] (--) NVIDIA(0): Memory: 4194304 kBytes
[    16.281] (--) NVIDIA(0): VideoBIOS: 80.04.9f.00.09
[    16.281] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    16.282] (--) NVIDIA(GPU-0): CRT-0: disconnected
[    16.282] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
[    16.282] (--) NVIDIA(GPU-0): 
[    16.283] (--) NVIDIA(GPU-0): Chi Mei Optoelectronics corp. (DFP-0): connected
[    16.283] (--) NVIDIA(GPU-0): Chi Mei Optoelectronics corp. (DFP-0): Internal LVDS
[    16.283] (--) NVIDIA(GPU-0): Chi Mei Optoelectronics corp. (DFP-0): 330.0 MHz maximum pixel clock
[    16.283] (--) NVIDIA(GPU-0): 
[    16.283] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    16.283] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    16.283] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    16.283] (--) NVIDIA(GPU-0): 
[    16.283] (--) NVIDIA(GPU-0): DFP-2: disconnected
[    16.283] (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
[    16.283] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[    16.283] (--) NVIDIA(GPU-0): 
[    16.283] (--) NVIDIA(GPU-0): DFP-3: disconnected
[    16.283] (--) NVIDIA(GPU-0): DFP-3: Internal DisplayPort
[    16.283] (--) NVIDIA(GPU-0): DFP-3: 960.0 MHz maximum pixel clock
[    16.283] (--) NVIDIA(GPU-0): 
[    16.283] (--) NVIDIA(GPU-0): DFP-4: disconnected
[    16.283] (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
[    16.283] (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
[    16.283] (--) NVIDIA(GPU-0): 
[    16.285] (==) NVIDIA(0): 
[    16.285] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[    16.285] (==) NVIDIA(0):     will be used as the requested mode.
[    16.285] (==) NVIDIA(0): 
[    16.285] (II) NVIDIA(0): Validated MetaModes:
[    16.285] (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
[    16.285] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[    16.287] (--) NVIDIA(0): DPI set to (128, 130); computed from "UseEdidDpi" X config
[    16.287] (--) NVIDIA(0):     option

Code: Select all

xed /etc/X11/xorg.conf
...
Is there everything ok? Should I be worried?

Hope someone can shed light ... thanks
Last edited by peterling on Mon Feb 11, 2019 6:52 pm, edited 1 time in total.
Kernel: 4.15.0-20-generic x86_64 (64 bit) - Desktop: Cinnamon 19 Distro: Linux Mint 19 Tara

User avatar
roblm
Level 9
Level 9
Posts: 2992
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia 780M on Asus G750JH - stuttering

Post by roblm » Sun Feb 10, 2019 8:12 pm

It appears you have a partial Nvidia driver installation of the nvidia-410.93 driver you downloaded from Nvidia’s website. Your inxi output and the log file lists that driver, so you never removed it. The sudo apt-get remove --purge nvidia-* command you used will not remove that driver. It’s for removing drivers installed through the package manager.

That’s why there is no output from this command; there should be 4 kernel modules listed:
ls /lib/modules/`uname -r`/kernel/drivers/char/drm/

The nvidia-installer that comes with a downloaded driver installs the kernel modules in a different location.

Question: You have a laptop with Optimus technology. Did you disable the Intel GPU in the BIOS by selecting the Discrete GPU, instead of Hybrid Graphics?

You reported this error message:
ERROR: Unable to load the 'nvidia-drm' kernel module.
ERROR: Installation has failed.
That message can be seen when trying to install the Nvidia driver but the Intel GPU is enabled in the nvidia-prime program. You have to switch to the Nvidia GPU in the Nvidia Settings utility or use the command: sudo prime-select nvidia

For an Optimus laptop, you should use the distro’s package manager to install the Nvidia driver unless you plan on only using the Nvidia GPU. If you want to be able to switch GPUs, then the installation must be modified and is a lot more complicated. The instructions for doing that are in my guide in this topic, under the section:
How to install the Nvidia driver on an Optimus laptop (integrated Intel + Nvidia card)
viewtopic.php?f=59&t=154932&start=20#p847465

I suggest doing these steps:
Use this command in the Terminal to remove the downloaded Nvidia driver: sudo nvidia-installer --uninstall
If you get a black screen after doing that, then press and hold the Alt key and then press, one at a time, the keys R, E, I, S, U, B.

Remove the blacklist-nvidia-nouveau.conf file: sudo rm /etc/modprobe.d/blacklist-nvidia-nouveau.conf

Update the initial ramdisk: sudo update-initramfs -u

Remove other Nvidia files from the 340.107 and 410.78 installations: apt autoremove

Reboot. When you get to the desktop, post the output of inxi -Gx

User avatar
peterling
Level 2
Level 2
Posts: 53
Joined: Thu Mar 31, 2016 6:58 pm

Re: Nvidia 780M on Asus G750JH - stuttering

Post by peterling » Mon Feb 11, 2019 4:11 am

:!: ***Thanks a lot man for this quick and very detailed info.*** :!:

I will follow and reply as soon as possible.

Some answers as far as I can tell so far:
I think this laptop has no optimus graphics. It is more a portable pc. 8) But this machine makes me render my projects quite quickly.

https://www.asus.com/ROG-Republic-Of-Gamers/ROG-G750JH/

Thanks again and I will report back after work.
Kernel: 4.15.0-20-generic x86_64 (64 bit) - Desktop: Cinnamon 19 Distro: Linux Mint 19 Tara

User avatar
roblm
Level 9
Level 9
Posts: 2992
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia 780M on Asus G750JH - stuttering

Post by roblm » Mon Feb 11, 2019 8:39 am

peterling wrote: I think this laptop has no optimus graphics
The Intel Core i7-4700HQ Processor has integrated Intel HD Graphics 4600 but it is not accessible on your gaming model. This review of the ASUS ROG G750JH on NotebookCheck says:
We were a bit disappointed that the G750JH does not support switchable graphics; Nvidia's Optimus technology is not integrated.
https://www.notebookcheck.net/Review-Up ... 271.0.html

If you haven’t done anything yet, then post the output of this command. It’s possible that the nvidia-drm.ko kernel module was the only component that was not installed: ls /lib/modules/`uname -r`/kernel/drivers/video/

User avatar
peterling
Level 2
Level 2
Posts: 53
Joined: Thu Mar 31, 2016 6:58 pm

Re: Nvidia 780M on Asus G750JH - stuttering

Post by peterling » Mon Feb 11, 2019 3:11 pm

Hello again,

thanks for helping me out. I just came home from work. Have not done anything yet.

Here the output of:

Code: Select all

ls /lib/modules/`uname -r`/kernel/drivers/video/
backlight  nvidia-drm.ko  nvidia-modeset.ko  vgastate.ko
fbdev	   nvidia.ko	  nvidia-uvm.ko
I spot the:

Code: Select all

nvidia-drm.ko 
What is my best step? Thanks a lot. You are a real genius.
Kernel: 4.15.0-20-generic x86_64 (64 bit) - Desktop: Cinnamon 19 Distro: Linux Mint 19 Tara

User avatar
roblm
Level 9
Level 9
Posts: 2992
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia 780M on Asus G750JH - stuttering

Post by roblm » Mon Feb 11, 2019 5:25 pm

All 4 Nvidia kernel modules were built and installed. The error message you had posted said:
ERROR: Unable to load the 'nvidia-drm' kernel module.
Use this command to check if that module is loading: lsmod | grep nvidia

If it is the only one that is not loading, then that’s OK because according to the info in this NVIDIA Accelerated Linux Graphics Driver README and Installation Guide, the nvidia-drm.ko module is not needed for your single GPU system:
http://us.download.nvidia.com/XFree86/L ... E/kms.html

Sometimes a module that doesn't load will prevent another one from loading. However, you can try loading it with the command:
sudo modprobe nvidia-drm and then check again with the lsmod | grep nvidia command.

User avatar
peterling
Level 2
Level 2
Posts: 53
Joined: Thu Mar 31, 2016 6:58 pm

Re: Nvidia 780M on Asus G750JH - stuttering

Post by peterling » Mon Feb 11, 2019 6:02 pm

Code: Select all

lsmod | grep nvidia
nvidia_uvm            794624  0
nvidia_drm            40960  4
nvidia_modeset       1040384  8 nvidia_drm
nvidia              16621568  323 nvidia_modeset,nvidia_uvm
drm_kms_helper        167936  1 nvidia_drm
drm                   401408  7 nvidia_drm,drm_kms_helper
ipmi_msghandler        53248  2 nvidia,ipmi_devintf
I spot an "nvidia_drm" ... is that the one we are looking for?

I then tried to load it manually as you suggested:

Code: Select all

sudo modprobe nvidia-drm
...
(no output - no errors)

and checked again as you said with:

Code: Select all

lsmod | grep nvidia
nvidia_uvm            794624  0
nvidia_drm             40960  4
nvidia_modeset       1040384  8 nvidia_drm
nvidia              16621568  323 nvidia_modeset,nvidia_uvm
drm_kms_helper        167936  1 nvidia_drm
drm                   401408  7 nvidia_drm,drm_kms_helper
ipmi_msghandler        53248  2 nvidia,ipmi_devintf
which is the same output as the one one top. :?

So the "nvidia_drm" is the same like "nvidia-drm"?

What do you think?

I really have to thank you a lot. You saved me a lot of time. I do not know what I would have done without your good advice ... :!:
Kernel: 4.15.0-20-generic x86_64 (64 bit) - Desktop: Cinnamon 19 Distro: Linux Mint 19 Tara

User avatar
roblm
Level 9
Level 9
Posts: 2992
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia 780M on Asus G750JH - stuttering

Post by roblm » Mon Feb 11, 2019 6:19 pm

peterling wrote: So the "nvidia_drm" is the same like "nvidia-drm"?
Yes. Everything looks fine. I don’t why your output of the /lib/modules/`uname -r`/kernel/drivers/video/ command has it that way. I just checked with my PC and got this, which is usually seen:

Code: Select all

nvidia_384_drm.ko  nvidia_384.ko  nvidia_384_modeset.ko  nvidia_384_uvm.k
The ERROR: Installation has failed message must not have been an actual error. Like I previously said, I’ve only seen that with Optimus systems and the installation was really aborted.

That explains why everything is performing well, so you can leave the nvidia-410.93 driver installed. That driver wasn’t available through the graphics-drivers PPA when I checked yesterday, so that it could be installed through the Driver Manager, but probably will be available soon.

User avatar
peterling
Level 2
Level 2
Posts: 53
Joined: Thu Mar 31, 2016 6:58 pm

[SOLVED] Re: Nvidia 780M on Asus G750JH - stuttering

Post by peterling » Mon Feb 11, 2019 6:52 pm

Thanks a lot for your great help! Really appreciated.

You have a paypal account so I can stand you a cop of coffee?
Kernel: 4.15.0-20-generic x86_64 (64 bit) - Desktop: Cinnamon 19 Distro: Linux Mint 19 Tara

User avatar
roblm
Level 9
Level 9
Posts: 2992
Joined: Sun Feb 24, 2013 2:41 pm

Re: [SOLVED] Re: Nvidia 780M on Asus G750JH - stuttering

Post by roblm » Mon Feb 11, 2019 8:00 pm

peterling wrote: You have a paypal account so I can stand you a cop of coffee?
Thanks but I don’t drink coffee.

I just did an installation of the same nvidia-410.93 driver on one of my testing PCs and got the same result with the naming method used for the kernel modules, so evidently that’s how Nvidia names them, vs the Linux developers:
ls /lib/modules/`uname -r`/kernel/drivers/video/

Code: Select all

backlight  fbdev  nvidia-drm.ko  nvidia.ko  nvidia-modeset.ko  nvidia-uvm.ko  vgastate.ko

User avatar
peterling
Level 2
Level 2
Posts: 53
Joined: Thu Mar 31, 2016 6:58 pm

Re: [SOLVED] Nvidia 780M on Asus G750JH - stuttering

Post by peterling » Tue Feb 12, 2019 4:31 am

:!: Thanks a lot. :!: Really appreciate it.

That calms me.

One funny thing to mention: The little Tasklet (Applet) called "GPU temperature" does not work anymore sine then. :D But that's not really a problem for me as far as the rest is working. :D

Greetings!
Kernel: 4.15.0-20-generic x86_64 (64 bit) - Desktop: Cinnamon 19 Distro: Linux Mint 19 Tara

User avatar
roblm
Level 9
Level 9
Posts: 2992
Joined: Sun Feb 24, 2013 2:41 pm

Re: [SOLVED] Nvidia 780M on Asus G750JH - stuttering

Post by roblm » Tue Feb 12, 2019 8:45 pm

peterling wrote: The little Tasklet (Applet) called "GPU temperature" does not work anymore sine then.
It works for me with the downloaded driver. I think your NVIDIA X Server Settings utility was removed. If it was, then use this command to re-install it: apt install nvidia-settings

User avatar
peterling
Level 2
Level 2
Posts: 53
Joined: Thu Mar 31, 2016 6:58 pm

Re: [SOLVED] Nvidia 780M on Asus G750JH - stuttering

Post by peterling » Wed Feb 13, 2019 6:28 pm

I think your NVIDIA X Server Settings utility was removed.
You are right. Had not noticed it before. Now installed. Everything is fine as before. Thanks again. You are the master. :!:
Kernel: 4.15.0-20-generic x86_64 (64 bit) - Desktop: Cinnamon 19 Distro: Linux Mint 19 Tara

User avatar
roblm
Level 9
Level 9
Posts: 2992
Joined: Sun Feb 24, 2013 2:41 pm

Re: [SOLVED] Nvidia 780M on Asus G750JH - stuttering

Post by roblm » Fri Feb 15, 2019 4:13 pm

I did some further testing to find out the reason for those error messages that were displayed after installing the nvidia-410.93 driver and how to prevent their occurrence from future installations. I also wanted to make sure you are not stuck with an unstable driver installation that prevents the use of the Driver Manager.

You initially installed the nvidia-410.78 driver from the graphics-drivers.PPA. That was uninstalled and the nvidia-340.107 driver was installed.

You then installed the nvidia-410.93 driver, which was downloaded from Nvidia’s website, but did not mention if the nvidia-340.107 driver was uninstalled first. I assumed you did. However, you actually did not, so the "ERROR: Unable to load the 'nvidia-drm' kernel module" message resulted from there being two nvidia-drm modules now installed. You then used the command sudo apt-get remove --purge nvidia-*

I don’t know what guide you used for installing downloaded Nvidia drivers but most do not mention that any Nvidia driver already installed through the distro’s package manager should be uninstalled first. My guide does mention that.

If you want to continue installing Nvidia drivers directly from Nvidia’s website, then the 410.78 driver does not need to be uninstalled first. That will be done automatically by the nvidia-installer during the installation of a different driver. You will continue to see those error messages at the end but they are harmless. Normally you would then use the command
sudo service lightdm start, but now you will need to reboot.

If you want to go back to using Driver Manager, them first remove the blacklist-nvidia-nouveau.conf file:
sudo rm /etc/modprobe.d/blacklist-nvidia-nouveau.conf

Update the initial ramdisk: sudo update-initramfs -u

Uninstall the nvidia-410.93 driver: sudo nvidia-installer --uninstall

Reboot. If you get a black screen, then press and hold the Alt key and then press, one at a time, the letters R, E, I, S, U, B.

The desktop will be in Fallback mode and you won’t be able to use Driver Manager.

Usually the nvidia-340 driver installation would install the nvidia-340 libraries and create some file links which would be removed when it was uninstalled, but then the nvidia-410 driver was installed, so it made some changes that now prevents removal of those libraries and links by the apt package manager. The best way to do that now is to re-install the nvidia-340 driver and uninstall it again.

When you use the command apt install nvidia-340, you will see this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libxnvctrl0 screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
Recommended packages:
nvidia-settings nvidia-opencl-icd-340
The following NEW packages will be installed:
nvidia-340
0 upgraded, 1 newly installed, 0 to remove and 235 not upgraded.
Need to get 0 B/51.9 MB of archives.
After this operation, 274 MB of additional disk space will be used.
Selecting previously unselected package nvidia-340.
(Reading database ... 251096 files and directories currently installed.)
Preparing to unpack .../nvidia-340_340.107-0ubuntu0.18.04.2_amd64.deb ...
Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.2_amd64.deb (--unpack):
new nvidia-340 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Use this command to remove libGL.so.1.distrib: sudo rm /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib


Running apt install nvidia-340 again, the significant lines are:
dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libEGL.so.1.distrib' with different file '/usr/lib/x86_64-linux-gnu/libEGL.so.1', not allowed
Use this command to remove libEGL.so.1.distrib: sudo rm /usr/lib/x86_64-linux-gnu/libEGL.so.1.distrib


Running apt install nvidia-340 again, the significant lines are:
dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGLESv2.so.2.distrib' with different file '/usr/lib/x86_64-linux-gnu/libGLESv2.so.2', not allowed
Use this command to remove libGLESv2.so.2.distrib: sudo rm /usr/lib/x86_64-linux-gnu/libGLESv2.so.2.distrib


Now run the apt install nvidia-340 command again and hopefully it should work. After the installation and rebooting, the Driver Manager should now be working. Then remove that driver and after rebooting, the nouveau driver should be installed.

If you decide to install a driver downloaded from Nvidia’s website, those error messages should be gone and all the normal installation steps can be used.

User avatar
peterling
Level 2
Level 2
Posts: 53
Joined: Thu Mar 31, 2016 6:58 pm

Re: [SOLVED] Nvidia 780M on Asus G750JH - stuttering

Post by peterling » Sat Feb 16, 2019 4:58 am

It is very nice of you to dig so deep into this problem. But I am too cowardly to go back now to the Driver Manager. :oops: I am so happy that it is now running smoothly my fan only running from time to time ... my rendering speed is convenient ... it cannot really get better.

If I had not had this problems with the Driver Manager and the nvidia-410.78 driver before I would not have installed the nvidia-410.93. But nothing was running smooth and even youtube vids were lagging every ~2-3 secs. Fan was running all the time.

But you are right. Looking into the Driver manager all is greyed out now. And it makes me a little worry. But I think I will still leave it as it is.

I am gonna copy your posting on my harddrive just in case. So if I am in trouble I will gonna use it to revert back to Driver Manager.

Thanks again for your very very detailed and excellent troubleshooting! :!:
Kernel: 4.15.0-20-generic x86_64 (64 bit) - Desktop: Cinnamon 19 Distro: Linux Mint 19 Tara

Post Reply

Return to “Graphics Cards & Monitors”