Change Kernel driver

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
Saehnchen
Level 1
Level 1
Posts: 6
Joined: Thu Jul 19, 2018 8:11 am

Change Kernel driver

Post by Saehnchen » Thu Jul 19, 2018 8:22 am

Installed Mint 19 a few days ago, had been using Ubuntu 16.04 to this point. When I tried playing a game, the performance was not as well as expected - I found out, my NVIDIA uses the open source driver instead of the driver from NVIDIA itself.
Selection_001.png
I was a little confused, because in the driver manager I checked the NVIDIA driver to be used.
Selection_003.png
Selection_003.png (23.81 KiB) Viewed 542 times
Furthermore I am quite sure, that the MX-150 is in use, but I am confused because with the command

Code: Select all

lspci -v
I do find this:
Selection_002.png
I am not really sure how I can check, which graphics card is in use. But the greater problem is, that I have no idea why the "wrong" driver is used and how I can fix this problem - help would be really nice! Thanks a lot already!

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

Re: Change Kernel driver

Post by roblm » Sat Jul 21, 2018 2:15 pm

Open the Terminal, use these commands and post the output:

Code: Select all

inxi -SMCGx 
ls /etc/modprobe.d
lspci -nnk |egrep -A3 -i "3D|VGA"	
head -n 200 /var/log/Xorg.0.log
The last command will have 200 lines. Copy the output, open the Mint forum reply window, select the </> button at the top and press Ctlr+V to paste the copied lines into a code display window.

Saehnchen
Level 1
Level 1
Posts: 6
Joined: Thu Jul 19, 2018 8:11 am

Re: Change Kernel driver

Post by Saehnchen » Sat Jul 21, 2018 5:34 pm

Code: Select all

System:    Host: Saehnchen Kernel: 4.15.0-20-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: MATE 1.20.1 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: Acer product: Aspire A515-51G v: V1.15 serial: N/A
           Mobo: KBL model: Charmander_KL v: V1.15 serial: N/A
           UEFI: Insyde v: V1.15 date: 01/08/2018
CPU:       Quad core Intel Core i5-8250U (-MT-MCP-) 
           arch: Kaby Lake rev.10 cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 14400
           clock speeds: max: 3400 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz
           4: 800 MHz 5: 800 MHz 6: 800 MHz 7: 800 MHz 8: 800 MHz
Graphics:  Card-1: Intel UHD Graphics 620 bus-ID: 00:02.0
           Card-2: NVIDIA GP108M [GeForce MX150] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting,nouveau (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2)
           version: 4.5 Mesa 18.0.5 Direct Render: Yes

Code: Select all

alsa-base.conf              blacklist-oss.conf
blacklist-ath_pci.conf      blacklist-rare-network.conf
blacklist.conf              dkms.conf
blacklist-firewire.conf     iwlwifi.conf
blacklist-framebuffer.conf  nvidia-graphics-drivers.conf
blacklist-modem.conf

Code: Select all

00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07)
	Subsystem: Acer Incorporated [ALI] UHD Graphics 620 [1025:1193]
	Kernel driver in use: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GP108M [GeForce MX150] [10de:1d10] (rev a1)
	Subsystem: Acer Incorporated [ALI] GP108M [GeForce MX150] [1025:119a]
	Kernel driver in use: nouveau

Code: Select all

[     7.810] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[     7.810] X Protocol Version 11, Revision 0
[     7.810] Build Operating System: Linux 4.4.0-119-generic x86_64 Ubuntu
[     7.810] Current Operating System: Linux Saehnchen 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64
[     7.810] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-20-generic root=UUID=9468eba3-0ee5-4c09-b85d-527806892d9d ro quiet splash vt.handoff=1
[     7.810] Build Date: 13 April 2018  08:07:36PM
[     7.810] xorg-server 2:1.19.6-1ubuntu4 (For technical support please see http://www.ubuntu.com/support) 
[     7.810] Current version of pixman: 0.34.0
[     7.810] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     7.810] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     7.810] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jul 21 23:25:55 2018
[     7.810] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     7.811] (==) No Layout section.  Using the first Screen section.
[     7.811] (==) No screen section available. Using defaults.
[     7.811] (**) |-->Screen "Default Screen Section" (0)
[     7.811] (**) |   |-->Monitor "<default monitor>"
[     7.811] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     7.811] (==) Automatically adding devices
[     7.811] (==) Automatically enabling devices
[     7.811] (==) Automatically adding GPU devices
[     7.811] (==) Automatically binding GPU devices
[     7.811] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     7.811] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[     7.811] 	Entry deleted from font path.
[     7.811] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[     7.811] 	Entry deleted from font path.
[     7.811] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[     7.811] 	Entry deleted from font path.
[     7.811] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[     7.811] 	Entry deleted from font path.
[     7.811] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[     7.811] 	Entry deleted from font path.
[     7.811] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[     7.811] (==) ModulePath set to "/usr/lib/xorg/modules"
[     7.811] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     7.811] (II) Loader magic: 0x556a67a84020
[     7.811] (II) Module ABI versions:
[     7.811] 	X.Org ANSI C Emulation: 0.4
[     7.811] 	X.Org Video Driver: 23.0
[     7.811] 	X.Org XInput driver : 24.1
[     7.811] 	X.Org Server Extension : 10.0
[     7.811] (++) using VT number 7

[     7.811] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     7.812] (II) xfree86: Adding drm device (/dev/dri/card0)
[     7.840] (II) xfree86: Adding drm device (/dev/dri/card1)
[     7.842] (--) PCI:*(0:0:2:0) 8086:5917:1025:1193 rev 7, Mem @ 0xb2000000/16777216, 0xc0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[     7.842] (--) PCI: (0:1:0:0) 10de:1d10:1025:119a rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128
[     7.842] (II) LoadModule: "glx"
[     7.842] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     7.850] (II) Module glx: vendor="X.Org Foundation"
[     7.850] 	compiled for 1.19.6, module version = 1.0.0
[     7.850] 	ABI class: X.Org Server Extension, version 10.0
[     7.850] (==) Matched nouveau as autoconfigured driver 0
[     7.850] (==) Matched modesetting as autoconfigured driver 1
[     7.850] (==) Matched fbdev as autoconfigured driver 2
[     7.850] (==) Matched vesa as autoconfigured driver 3
[     7.850] (==) Assigned the driver to the xf86ConfigLayout
[     7.850] (II) LoadModule: "nouveau"
[     7.850] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[     7.851] (II) Module nouveau: vendor="X.Org Foundation"
[     7.851] 	compiled for 1.19.3, module version = 1.0.15
[     7.851] 	Module class: X.Org Video Driver
[     7.851] 	ABI class: X.Org Video Driver, version 23.0
[     7.851] (II) LoadModule: "modesetting"
[     7.851] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[     7.851] (II) Module modesetting: vendor="X.Org Foundation"
[     7.851] 	compiled for 1.19.6, module version = 1.19.6
[     7.851] 	Module class: X.Org Video Driver
[     7.851] 	ABI class: X.Org Video Driver, version 23.0
[     7.851] (II) LoadModule: "fbdev"
[     7.851] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[     7.851] (II) Module fbdev: vendor="X.Org Foundation"
[     7.851] 	compiled for 1.19.3, module version = 0.4.4
[     7.851] 	Module class: X.Org Video Driver
[     7.851] 	ABI class: X.Org Video Driver, version 23.0
[     7.851] (II) LoadModule: "vesa"
[     7.851] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[     7.851] (II) Module vesa: vendor="X.Org Foundation"
[     7.851] 	compiled for 1.19.3, module version = 2.3.4
[     7.851] 	Module class: X.Org Video Driver
[     7.851] 	ABI class: X.Org Video Driver, version 23.0
[     7.851] (II) NOUVEAU driver Date:   Fri Apr 21 14:41:17 2017 -0400
[     7.851] (II) NOUVEAU driver for NVIDIA chipset families :
[     7.851] 	RIVA TNT        (NV04)
[     7.851] 	RIVA TNT2       (NV05)
[     7.851] 	GeForce 256     (NV10)
[     7.851] 	GeForce 2       (NV11, NV15)
[     7.851] 	GeForce 4MX     (NV17, NV18)
[     7.851] 	GeForce 3       (NV20)
[     7.851] 	GeForce 4Ti     (NV25, NV28)
[     7.851] 	GeForce FX      (NV3x)
[     7.851] 	GeForce 6       (NV4x)
[     7.851] 	GeForce 7       (G7x)
[     7.851] 	GeForce 8       (G8x)
[     7.851] 	GeForce GTX 200 (NVA0)
[     7.851] 	GeForce GTX 400 (NVC0)
[     7.851] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     7.851] (II) FBDEV: driver for framebuffer: fbdev
[     7.851] (II) VESA: driver for VESA chipsets: vesa
[     7.863] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[     7.881] (II) modeset(0): using drv /dev/dri/card0
[     7.881] (WW) Falling back to old probe method for fbdev
[     7.881] (II) Loading sub module "fbdevhw"
[     7.881] (II) LoadModule: "fbdevhw"
[     7.882] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[     7.882] (II) Module fbdevhw: vendor="X.Org Foundation"
[     7.882] 	compiled for 1.19.6, module version = 0.0.2
[     7.882] 	ABI class: X.Org Video Driver, version 23.0
[     7.882] (WW) Falling back to old probe method for vesa
[     7.882] (II) [drm] nouveau interface version: 1.3.1
[     7.882] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     7.882] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[     7.882] (==) modeset(0): RGB weight 888
[     7.882] (==) modeset(0): Default visual is TrueColor
[     7.882] (II) Loading sub module "glamoregl"
[     7.882] (II) LoadModule: "glamoregl"
[     7.882] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[     7.887] (II) Module glamoregl: vendor="X.Org Foundation"
[     7.887] 	compiled for 1.19.6, module version = 1.0.0
[     7.887] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.887] (II) glamor: OpenGL accelerated X.org driver based.
[     8.048] (II) glamor: EGL version 1.4 (DRI2):
[     8.051] (II) modeset(0): glamor initialized
[     8.052] (II) modeset(0): Output eDP-1 has no monitor section
[     8.063] (II) modeset(0): Output HDMI-1 has no monitor section
[     8.065] (II) modeset(0): EDID for output eDP-1
[     8.065] (II) modeset(0): Manufacturer: NCP  Model: 1c  Serial#: 0
[     8.065] (II) modeset(0): Year: 2017  Week: 0
[     8.065] (II) modeset(0): EDID Version: 1.4
[     8.065] (II) modeset(0): Digital Display Input
[     8.065] (II) modeset(0): 6 bits per channel
[     8.065] (II) modeset(0): Digital interface is DisplayPort
[     8.065] (II) modeset(0): Max Image Size [cm]: horiz.: 34  vert.: 19
[     8.065] (II) modeset(0): Gamma: 2.20
[     8.065] (II) modeset(0): No DPMS capabilities specified
[     8.065] (II) modeset(0): Supported color encodings: RGB 4:4:4 
[     8.065] (II) modeset(0): Default color space is primary color space
[     8.065] (II) modeset(0): First detailed timing is preferred mode
[     8.065] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[     8.065] (II) modeset(0): redX: 0.592 redY: 0.360   greenX: 0.342 greenY: 0.557
[     8.065] (II) modeset(0): blueX: 0.158 blueY: 0.109   whiteX: 0.313 whiteY: 0.329
[     8.065] (II) modeset(0): Manufacturer's mask: 0
[     8.065] (II) modeset(0): Supported detailed timing:
[     8.065] (II) modeset(0): clock: 139.8 MHz   Image Size:  344 x 194 mm
[     8.065] (II) modeset(0): h_active: 1920  h_sync: 1968  h_sync_end 2000 h_blank_end 2080 h_border: 0
[     8.065] (II) modeset(0): v_active: 1080  v_sync: 1083  v_sync_end 1089 v_blanking: 1120 v_border: 0
[     8.065] (II) modeset(0): Supported detailed timing:
[     8.065] (II) modeset(0): clock: 111.8 MHz   Image Size:  344 x 194 mm
[     8.065] (II) modeset(0): h_active: 1920  h_sync: 1968  h_sync_end 2000 h_blank_end 2080 h_border: 0
[     8.065] (II) modeset(0): v_active: 1080  v_sync: 1083  v_sync_end 1089 v_blanking: 1120 v_border: 0
[     8.065] (II) modeset(0): Monitor name: LM156LF1L03
[     8.065] (II) modeset(0): EDID (in hex):
[     8.065] (II) modeset(0): 	00ffffffffffff0038701c0000000000
[     8.065] (II) modeset(0): 	001b010495221378069a85975c578e28
[     8.065] (II) modeset(0): 	1c505400000001010101010101010101
[     8.065] (II) modeset(0): 	010101010101993680a0703828403020
[     8.065] (II) modeset(0): 	360058c210000018ae2b80a070382840
[     8.065] (II) modeset(0): 	3020360058c210000018000000100000
[     8.065] (II) modeset(0): 	000000000000000000000000000000fc
[     8.065] (II) modeset(0): 	004c4d3135364c46314c30330a200076
[     8.065] (II) modeset(0): Printing probed modes for output eDP-1
[     8.065] (II) modeset(0): Modeline "1920x1080"x60.0  139.77  1920 1968 2000 2080  1080 1083 1089 1120 -hsync -vsync (67.2 kHz eP)
[     8.065] (II) modeset(0): Modeline "1920x1080"x119.9  266.50  1920 1944 1960 2000  1080 1081 1084 1111 doublescan +hsync -vsync (133.2 kHz d)
[     8.065] (II) modeset(0): Modeline "1920x1080"x60.0  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync (67.2 kHz d)
[     8.065] (II) modeset(0): Modeline "1920x1080"x59.9  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (66.6 kHz d)
[     8.065] (II) modeset(0): Modeline "1920x1080"x48.0  111.82  1920 1968 2000 2080  1080 1083 1089 1120 -hsync -vsync (53.8 kHz e)
[     8.065] (II) modeset(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz d)
[     8.065] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz d)
[     8.065] (II) modeset(0): Modeline "1600x1024"x60.2  103.12  1600 1600 1656 1664  1024 1024 1029 1030 +hsync +vsync (62.0 kHz d)
[     8.065] (II) modeset(0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[     8.065] (II) modeset(0): Modeline "1600x900"x120.0  246.00  1600 1728 1900 2200  900 901 904 932 doublescan -hsync +vsync (111.8 kHz d)
[     8.065] (II) modeset(0): Modeline "1600x900"x119.9  186.50  1600 1624 1640 1680  900 901 904 926 doublescan +hsync -vsync (111.0 kHz d)
[     8.065] (II) modeset(0): Modeline "1600x900"x59.9  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync (56.0 kHz d)
[     8.065] (II) modeset(0): Modeline "1600x900"x59.8   97.50  1600 1648 1680 1760  900 903 908 926 +hsync -vsync (55.4 kHz d)
[     8.065] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[     8.065] (II) modeset(0): Modeline "1440x900"x59.9  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz d)
[     8.065] (II) modeset(0): Modeline "1400x900"x60.0  103.50  1400 1480 1624 1848  900 903 913 934 -hsync +vsync (56.0 kHz d)
[     8.065] (II) modeset(0): Modeline "1400x900"x59.9   86.50  1400 1448 1480 1560  900 903 913 926 +hsync -vsync (55.4 kHz d)
[     8.065] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[     8.065] (II) modeset(0): Modeline "1440x810"x120.0  198.12  1440 1548 1704 1968  810 811 814 839 doublescan -hsync +vsync (100.7 kHz d)
[     8.065] (II) modeset(0): Modeline "1440x810"x119.9  151.88  1440 1464 1480 1520  810 811 814 833 doublescan +hsync -vsync (99.9 kHz d)
[     8.065] (II) modeset(0): Modeline "1368x768"x59.9   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync (47.8 kHz d)
[     8.065] (II) modeset(0): Modeline "1368x768"x59.9   72.25  1368 1416 1448 1528  768 771 781 790 +hsync -vsync (47.3 kHz d)
[     8.065] (II) modeset(0): Modeline "1360x768"x59.8   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync (47.7 kHz d)
[     8.065] (II) modeset(0): Modeline "1360x768"x60.0   72.00  1360 1408 1440 1520  768 771 781 790 +hsync -vsync (47.4 kHz d)
[     8.065] (II) modeset(0): Modeline "1280x800"x120.0  174.25  1280 1380 1516 1752  800 801 804 829 doublescan -hsync +vsync (99.5 kHz d)
[     8.065] (II) modeset(0): Modeline "1280x800"x119.9  134.25  1280 1304 1320 1360  800 801 804 823 doublescan +hsync -vsync (98.7 kHz d)
[     8.065] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz d)

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

Re: Change Kernel driver

Post by roblm » Sat Jul 21, 2018 6:55 pm

The Nvidia driver is not enabled. Check in the BIOS for a Secure Boot setting, usually under the Security category. It should be disabled. If that looks OK, then use these commands and post the output:

Code: Select all

xed /var/log/gpu-manager.log
ls /lib/modules/`uname -r`/kernel/drivers/char/drm/

Saehnchen
Level 1
Level 1
Posts: 6
Joined: Thu Jul 19, 2018 8:11 am

Re: Change Kernel driver

Post by Saehnchen » Sat Jul 21, 2018 8:27 pm

Code: Select all

log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/4.15.0-20-generic/updates/dkms
Looking for amdgpu modules in /lib/modules/4.15.0-20-generic/updates/dkms
Is nvidia loaded? yes
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? no
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:5917
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:1d10
BusID "PCI:1@0:0:0"
Is boot vga? no
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Found "/dev/dri/card0", driven by "i915"
output 0:
	card0-eDP-1
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 1
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
The number of cards has changed!
Has the system changed? Yes
System configuration has changed
Intel IGP detected
Intel hybrid system
Nvidia driver version 390.48 detected
Creating /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf

Code: Select all

nvidia-drm.ko  nvidia.ko  nvidia-modeset.ko  nvidia-uvm.ko

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

Re: Change Kernel driver

Post by roblm » Sun Jul 22, 2018 7:56 am

Did you open the NVIDIA X Server Settings utility to the PRIME Profiles page to select the Nvidia GPU and then reboot?

Use these commands and post the output:

Code: Select all

sudo prime-select nvidia
xed /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf

User avatar
Pjotr
Level 20
Level 20
Posts: 10885
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Change Kernel driver

Post by Pjotr » Sun Jul 22, 2018 8:01 am

This might help (it did for me):
https://sites.google.com/site/easylinux ... won-t-load
(item 12, left column)
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Saehnchen
Level 1
Level 1
Posts: 6
Joined: Thu Jul 19, 2018 8:11 am

Re: Change Kernel driver

Post by Saehnchen » Mon Jul 23, 2018 7:47 am

@Pjotr The problem that is mentioned in your link is not mine. When I open the Driver Manager, i get:
Selection_004.png
So there is a driver in use, but thanks!

@robim

Code: Select all

Info: the nvidia profile is already set
and

Code: Select all

# DO NOT EDIT. AUTOMATICALLY GENERATED BY gpu-manager

Section "OutputClass"
    Identifier "Nvidia Prime"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "IgnoreDisplayDevices" "CRT"
    Option "PrimaryGPU" "Yes"
    ModulePath "/x86_64-linux-gnu/nvidia/xorg"
EndSection
Are the outputs.

Edit: I don't know when this happened, but now my problem seems to have been fixed..

Code: Select all

lspci -v
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev a1)
	Subsystem: Acer Incorporated [ALI] GP108M [GeForce MX150]
	Flags: bus master, fast devsel, latency 0, IRQ 133
	Memory at b3000000 (32-bit, non-prefetchable) [size=16M]
	Memory at a0000000 (64-bit, prefetchable) [size=256M]
	Memory at b0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 4000 [size=128]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
Thank you a lot for your help and effort, although I'm not sure, when and how exactly this problem got fixed... Could somebody tell me that? Then I would know next time, what to do when I have this problem!

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

Re: Change Kernel driver

Post by roblm » Mon Jul 23, 2018 11:48 am

Even though Driver Manager shows the Nvidia driver is installed, that does not mean it is being loaded for use in graphics processing.
Pjotr was telling you to add a blacklist nouveau line to /etc/modprobe.d/blacklist.conf to disable the nouveau driver, but that is already being done in the /etc/modprobe.d/nvidia-graphics-drivers.conf file.

You didn’t answer this question in a previous post:
Did you open the NVIDIA X Server Settings utility to the PRIME Profiles page to select the Nvidia GPU and then reboot? This is required in Mint 19, not just to log out and back in, which was done in Mint 18.

The sudo prime-select nvidia command may have triggered a reconfiguration but you probably would have needed to reboot.
To verify if the Nvidia driver is now loaded, would you post the output of this command again:
head -n 200 /var/log/Xorg.0.log

Saehnchen
Level 1
Level 1
Posts: 6
Joined: Thu Jul 19, 2018 8:11 am

Re: Change Kernel driver

Post by Saehnchen » Wed Jul 25, 2018 4:22 am

Sorry, I somehow missed this question. If I remember correctly, I tried to do it but I was not able to select the PRIME Profiles page.

This is my output now:

Code: Select all

[     6.926] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[     6.926] X Protocol Version 11, Revision 0
[     6.926] Build Operating System: Linux 4.4.0-119-generic x86_64 Ubuntu
[     6.926] Current Operating System: Linux Saehnchen 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64
[     6.926] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-20-generic root=UUID=9468eba3-0ee5-4c09-b85d-527806892d9d ro quiet splash vt.handoff=1
[     6.926] Build Date: 13 April 2018  08:07:36PM
[     6.926] xorg-server 2:1.19.6-1ubuntu4 (For technical support please see http://www.ubuntu.com/support) 
[     6.926] Current version of pixman: 0.34.0
[     6.926] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     6.926] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     6.926] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 25 10:12:35 2018
[     6.926] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     6.927] (==) No Layout section.  Using the first Screen section.
[     6.927] (==) No screen section available. Using defaults.
[     6.927] (**) |-->Screen "Default Screen Section" (0)
[     6.927] (**) |   |-->Monitor "<default monitor>"
[     6.927] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     6.927] (==) Automatically adding devices
[     6.927] (==) Automatically enabling devices
[     6.927] (==) Automatically adding GPU devices
[     6.927] (==) Automatically binding GPU devices
[     6.927] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     6.927] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[     6.927] 	Entry deleted from font path.
[     6.927] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[     6.927] 	Entry deleted from font path.
[     6.927] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[     6.927] 	Entry deleted from font path.
[     6.927] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[     6.927] 	Entry deleted from font path.
[     6.927] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[     6.927] 	Entry deleted from font path.
[     6.927] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[     6.927] (==) ModulePath set to "/usr/lib/xorg/modules"
[     6.927] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     6.927] (II) Loader magic: 0x557c3f0a5020
[     6.927] (II) Module ABI versions:
[     6.927] 	X.Org ANSI C Emulation: 0.4
[     6.927] 	X.Org Video Driver: 23.0
[     6.927] 	X.Org XInput driver : 24.1
[     6.927] 	X.Org Server Extension : 10.0
[     6.928] (++) using VT number 7

[     6.928] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     6.929] (II) xfree86: Adding drm device (/dev/dri/card0)
[     6.952] (II) xfree86: Adding drm device (/dev/dri/card1)
[     6.953] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules"
[     6.953] (**) OutputClass "Nvidia Prime" ModulePath extended to "/x86_64-linux-gnu/nvidia/xorg,/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules"
[     6.953] (**) OutputClass "Nvidia Prime" setting /dev/dri/card1 as PrimaryGPU
[     6.955] (--) PCI: (0:0:2:0) 8086:5917:1025:1193 rev 7, Mem @ 0xb2000000/16777216, 0xc0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[     6.955] (--) PCI:*(0:1:0:0) 10de:1d10:1025:119a rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128
[     6.955] (II) LoadModule: "glx"
[     6.956] (II) Loading /usr/lib/x86_64-linux-gnu/nvidia/xorg/libglx.so
[     7.019] (II) Module glx: vendor="NVIDIA Corporation"
[     7.019] 	compiled for 4.0.2, module version = 1.0.0
[     7.019] 	Module class: X.Org Server Extension
[     7.020] (II) NVIDIA GLX Module  390.48  Wed Mar 21 23:42:56 PDT 2018
[     7.021] (II) Applying OutputClass "nvidia" to /dev/dri/card1
[     7.021] 	loading driver: nvidia
[     7.021] (II) Applying OutputClass "Nvidia Prime" to /dev/dri/card1
[     7.021] 	loading driver: nvidia
[     7.021] (==) Matched nvidia as autoconfigured driver 0
[     7.021] (==) Matched nvidia as autoconfigured driver 1
[     7.021] (==) Matched nouveau as autoconfigured driver 2
[     7.021] (==) Matched nouveau as autoconfigured driver 3
[     7.021] (==) Matched modesetting as autoconfigured driver 4
[     7.021] (==) Matched fbdev as autoconfigured driver 5
[     7.021] (==) Matched vesa as autoconfigured driver 6
[     7.021] (==) Assigned the driver to the xf86ConfigLayout
[     7.021] (II) LoadModule: "nvidia"
[     7.021] (II) Loading /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
[     7.027] (II) Module nvidia: vendor="NVIDIA Corporation"
[     7.027] 	compiled for 4.0.2, module version = 1.0.0
[     7.027] 	Module class: X.Org Video Driver
[     7.028] (II) LoadModule: "nouveau"
[     7.028] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[     7.029] (II) Module nouveau: vendor="X.Org Foundation"
[     7.029] 	compiled for 1.19.3, module version = 1.0.15
[     7.029] 	Module class: X.Org Video Driver
[     7.029] 	ABI class: X.Org Video Driver, version 23.0
[     7.029] (II) LoadModule: "modesetting"
[     7.029] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[     7.029] (II) Module modesetting: vendor="X.Org Foundation"
[     7.029] 	compiled for 1.19.6, module version = 1.19.6
[     7.029] 	Module class: X.Org Video Driver
[     7.029] 	ABI class: X.Org Video Driver, version 23.0
[     7.029] (II) LoadModule: "fbdev"
[     7.029] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[     7.029] (II) Module fbdev: vendor="X.Org Foundation"
[     7.029] 	compiled for 1.19.3, module version = 0.4.4
[     7.029] 	Module class: X.Org Video Driver
[     7.029] 	ABI class: X.Org Video Driver, version 23.0
[     7.029] (II) LoadModule: "vesa"
[     7.029] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[     7.029] (II) Module vesa: vendor="X.Org Foundation"
[     7.029] 	compiled for 1.19.3, module version = 2.3.4
[     7.029] 	Module class: X.Org Video Driver
[     7.029] 	ABI class: X.Org Video Driver, version 23.0
[     7.030] (II) NVIDIA dlloader X Driver  390.48  Wed Mar 21 23:18:15 PDT 2018
[     7.030] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     7.030] (II) NOUVEAU driver Date:   Fri Apr 21 14:41:17 2017 -0400
[     7.030] (II) NOUVEAU driver for NVIDIA chipset families :
[     7.030] 	RIVA TNT        (NV04)
[     7.030] 	RIVA TNT2       (NV05)
[     7.030] 	GeForce 256     (NV10)
[     7.030] 	GeForce 2       (NV11, NV15)
[     7.030] 	GeForce 4MX     (NV17, NV18)
[     7.030] 	GeForce 3       (NV20)
[     7.031] 	GeForce 4Ti     (NV25, NV28)
[     7.031] 	GeForce FX      (NV3x)
[     7.031] 	GeForce 6       (NV4x)
[     7.031] 	GeForce 7       (G7x)
[     7.031] 	GeForce 8       (G8x)
[     7.031] 	GeForce GTX 200 (NVA0)
[     7.031] 	GeForce GTX 400 (NVC0)
[     7.031] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     7.031] (II) FBDEV: driver for framebuffer: fbdev
[     7.031] (II) VESA: driver for VESA chipsets: vesa
[     7.042] (II) Loading sub module "fb"
[     7.042] (II) LoadModule: "fb"
[     7.043] (II) Loading /usr/lib/xorg/modules/libfb.so
[     7.043] (II) Module fb: vendor="X.Org Foundation"
[     7.043] 	compiled for 1.19.6, module version = 1.0.0
[     7.043] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.043] (II) Loading sub module "wfb"
[     7.043] (II) LoadModule: "wfb"
[     7.043] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     7.044] (II) Module wfb: vendor="X.Org Foundation"
[     7.044] 	compiled for 1.19.6, module version = 1.0.0
[     7.044] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.044] (II) Loading sub module "ramdac"
[     7.044] (II) LoadModule: "ramdac"
[     7.044] (II) Module "ramdac" already built-in
[     7.046] (WW) Falling back to old probe method for modesetting
[     7.056] (WW) Falling back to old probe method for fbdev
[     7.056] (II) Loading sub module "fbdevhw"
[     7.056] (II) LoadModule: "fbdevhw"
[     7.057] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[     7.057] (II) Module fbdevhw: vendor="X.Org Foundation"
[     7.057] 	compiled for 1.19.6, module version = 0.0.2
[     7.057] 	ABI class: X.Org Video Driver, version 23.0
[     7.057] (WW) Falling back to old probe method for vesa
[     7.077] (II) modeset(G0): using drv /dev/dri/card0
[     7.077] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     7.077] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[     7.077] (==) NVIDIA(0): RGB weight 888
[     7.077] (==) NVIDIA(0): Default visual is TrueColor
[     7.077] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[     7.078] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[     7.078] (II) Applying OutputClass "Nvidia Prime" options to /dev/dri/card1
[     7.078] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[     7.078] (**) NVIDIA(0): Option "IgnoreDisplayDevices" "CRT"
[     7.078] (**) NVIDIA(0): Enabling 2D acceleration
[     7.317] (II) NVIDIA(0): NVIDIA GPU GeForce MX150 (GP108-A) at PCI:1:0:0 (GPU-0)
[     7.317] (--) NVIDIA(0): Memory: 2097152 kBytes
[     7.317] (--) NVIDIA(0): VideoBIOS: 86.08.0e.00.1a
[     7.317] (II) NVIDIA(0): Detected PCI Express Link width: 4X
[     7.317] (II) NVIDIA(0): Validated MetaModes:
[     7.317] (II) NVIDIA(0):     "NULL"
[     7.317] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[     7.317] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[     7.317] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[     7.317] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[     7.317] (==) modeset(G0): RGB weight 888
[     7.317] (==) modeset(G0): Default visual is TrueColor
[     7.317] (II) Loading sub module "glamoregl"
[     7.317] (II) LoadModule: "glamoregl"
[     7.318] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[     7.327] (II) Module glamoregl: vendor="X.Org Foundation"
[     7.327] 	compiled for 1.19.6, module version = 1.0.0
[     7.327] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.327] (II) glamor: OpenGL accelerated X.org driver based.
[     7.363] (II) glamor: EGL version 1.4 (DRI2):
[     7.375] (II) modeset(G0): glamor initialized
[     7.376] (II) modeset(G0): Output eDP-1-1 has no monitor section
[     7.386] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[     7.387] (II) modeset(G0): EDID for output eDP-1-1
[     7.387] (II) modeset(G0): Manufacturer: NCP  Model: 1c  Serial#: 0
[     7.387] (II) modeset(G0): Year: 2017  Week: 0
[     7.387] (II) modeset(G0): EDID Version: 1.4
[     7.387] (II) modeset(G0): Digital Display Input
[     7.387] (II) modeset(G0): 6 bits per channel
[     7.387] (II) modeset(G0): Digital interface is DisplayPort
[     7.387] (II) modeset(G0): Max Image Size [cm]: horiz.: 34  vert.: 19
[     7.387] (II) modeset(G0): Gamma: 2.20
[     7.387] (II) modeset(G0): No DPMS capabilities specified
[     7.387] (II) modeset(G0): Supported color encodings: RGB 4:4:4 
[     7.387] (II) modeset(G0): Default color space is primary color space
[     7.387] (II) modeset(G0): First detailed timing is preferred mode

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

Re: Change Kernel driver

Post by roblm » Wed Jul 25, 2018 8:11 pm

Saehnchen wrote:
Wed Jul 25, 2018 4:22 am
If I remember correctly, I tried to do it but I was not able to select the PRIME Profiles page.
Along with other changes to nvidia-prime in Ubuntu 18.04/Mint 19, there does not appear to be a PRIME Profiles page. I just read the same thing reported by a Ubuntu 18.04 user in another topic.

The info in the Xorg.0.log file looks OK now, showing the Nvidia and modesetting drivers are loading.

Saehnchen
Level 1
Level 1
Posts: 6
Joined: Thu Jul 19, 2018 8:11 am

Re: Change Kernel driver

Post by Saehnchen » Fri Jul 27, 2018 5:18 am

roblm wrote:
Wed Jul 25, 2018 8:11 pm
Along with other changes to nvidia-prime in Ubuntu 18.04/Mint 19, there does not appear to be a PRIME Profiles page. I just read the same thing reported by a Ubuntu 18.04 user in another topic.
The strange thing is, now I can select this PRIME Profiles page. I am a little confused. Or do you mean this was now somehow added through any command..?

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

Re: Change Kernel driver

Post by roblm » Fri Jul 27, 2018 7:44 pm

I only said there appears to be no PRIME Profiles page because you and one other user with an Optimus system reported it was missing. I will need to see what other users report.

Can you switch GPUs using that page and then rebooting?

The only command that could have triggered a configuration change was sudo prime-select nvidia.


EDITED: After some more investigation, I’m certain that the PRIME Profiles page should be present after installing nvidia-prime and the Nvidia driver.

Post Reply

Return to “Graphics Cards & Monitors”