LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-29-2019, 07:19 PM   #1
Commomore
LQ Newbie
 
Registered: May 2018
Posts: 22

Rep: Reputation: Disabled
Nvidia gpu not being used even though it has been selected in nvidia settings


Hello,

I bought a new laptop with a 4k monitor. The problem is that it is using the integrated Intel UHD Graphics even though i changed it in the nvidia settings ("nvidia-settings" command).
However, when I type this command lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA, it says that the Intel UHD Graphics is being used.
When I use the command sudo prime-select query, it says nvidia.
When I type the command "nvidia-settings", i get the following message: "Prime: Requires offloading.
Also, it freezes and lags when playing 4k videos.
I should add that I installed bumblebee and the nvidia 390 driver (open source).
Thanks a lot

Last edited by Commomore; 04-30-2019 at 03:19 AM.
 
Old 04-30-2019, 01:00 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
assuming you're using ubuntu 18.04, look at this:
https://askubuntu.com/questions/1047...=SearchResults

and generally also this:
https://wiki.archlinux.org/index.php...GPU_offloading
 
Old 05-10-2019, 12:25 PM   #3
Commomore
LQ Newbie
 
Registered: May 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks for the links but they don't quite address my problem.
Yes, I run Xubuntu 18.04
I just don't understand why my nvidia graphics card does not
work even though the driver is installed and it is recognized
by my computer.
 
Old 05-10-2019, 09:52 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Commomore please use code flags and post the output of the following:

lspci
lshw | grep display
xrandr -q
lshw | grep -A10 display

and have you followed these steps to install the Nvidia drivers properly?

Code:
Step 1

	$ lspci -vnn | grep VGA

[user@ TV]$ lspci -vnn | grep VGA
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104 [GeForce GTX 770] [10de:1184] (rev a1) (prog-if 00 [VGA controller])

Step 2	-	Download NVIDIA drivers, this system they are stored:  /home/ray/NVIDIA

	$ ls NVIDIA-Linux-x86_64*

[user@ NVIDIA]$ d
total 104700
drwxrwxr-x.  2 ray ray      4096 Apr 18 12:09 ./
drwxr-xr-x. 31 ray ray      4096 Apr 18 12:09 ../
-rw-rw-r--.  1 ray ray 107195640 Apr 18 12:09 NVIDIA-Linux-x86_64-418.56.run

Step 3	-	Install all prerequisite:
	dnf -y groupinstall "Development Tools"
	dnf -y install dkms "kernel-devel-uname-r == $(uname -r)"

[root@ ~]# dnf -y groupinstall "Development Tools"
Adobe Systems Incorporated                                                                  13 kB/s | 2.9 kB     00:00    
Fedora Modular 29 - x86_64                                                                  38 kB/s |  17 kB     00:00    
Fedora Modular 29 - x86_64 - Updates                                                        49 kB/s |  17 kB     00:00    
Fedora 29 - x86_64 - Updates                                                                44 kB/s |  17 kB     00:00    
Fedora 29 - x86_64                                                                          45 kB/s |  18 kB     00:00    
google-chrome                                                                               14 kB/s | 1.3 kB     00:00    
Opera packages                                                                              3.9 kB/s | 2.9 kB     00:00    
RPM Fusion for Fedora 29 - Free - Updates                                                   6.4 kB/s | 3.6 kB     00:00    
RPM Fusion for Fedora 29 - Free                                                             5.2 kB/s | 3.2 kB     00:00    
RPM Fusion for Fedora 29 - Nonfree - Updates                                                6.0 kB/s | 3.7 kB     00:00    
RPM Fusion for Fedora 29 - Nonfree                                                          5.3 kB/s | 3.2 kB     00:00    
ZeroTier, Inc. RPM Release Repository                                                       33 kB/s | 2.9 kB     00:00    
Dependencies resolved.
=================================================================================================================================================
 Package                           Architecture                     Version                              Repository                         Size
=================================================================================================================================================
Installing Groups:
 Development Tools                                                                                                                              
Transaction Summary
=================================================================================================================================================
Complete!

[root@ ~]# dnf -y install dkms "kernel-devel-uname-r == $(uname -r)"
Last metadata expiration check: 0:01:54 ago on Thu 18 Apr 2019 12:19:22 PM EDT.
Package dkms-2.6.1-2.fc29.noarch is already installed.
Package kernel-devel-4.20.7-200.fc29.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Step 4	-	Disable nouveau drivers by changing the configuration: /etc/default/grub file.  Add the nouveau.modeset-0 into the line with GRUB_CMDLINE_LINUX...  see below:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=UUID=df614470-884d-4992-a13c-1665fb0a230e rhgb quiet nouveau.modeset=0"
GRUB_DISABLE_RECOVERY="true"

[root@ ~]# cat /etc/default/grub 
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=UUID=1a1a2bef-b944-4e4e-98b4-132c1f6ae6e3 rhgb quiet nouveau.modeset=0 ipv6.disable=1"
GRUB_DISABLE_RECOVERY="true"

Based on your boot method select one of the following:

BIOS:
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
EFI:
$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

[root@ ~]# efibootmgr
BootCurrent: 0005
Timeout: 1 seconds
BootOrder: 0005,0004,0008,0003,0000,0001,0002,0006,0007
Boot0000* WD Passport X 107D 1073
Boot0001* SATA1:TOSHIBA HDWE150         
Boot0002* UEFI:CD/DVD Drive
Boot0003* UEFI: Built-in EFI Shell 
Boot0004* Windows Boot Manager
Boot0005* Fedora
Boot0006* UEFI:Removable Device
Boot0007* UEFI:Network Device
Boot0008* UEFI: WD Passport X 107D 1073

This system uses EFI:

[root@ ~]# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.0.7-200.fc29.x86_64
Found initrd image: /boot/initramfs-5.0.7-200.fc29.x86_64.img
Found linux image: /boot/vmlinuz-4.20.13-200.fc29.x86_64
Found initrd image: /boot/initramfs-4.20.13-200.fc29.x86_64.img
Found linux image: /boot/vmlinuz-4.20.7-200.fc29.x86_64
Found initrd image: /boot/initramfs-4.20.7-200.fc29.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-aab0b8d0f5e8411fbc2d59706da01fc1
Found initrd image: /boot/initramfs-0-rescue-aab0b8d0f5e8411fbc2d59706da01fc1.img
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done

Step 5	-	Reboot

Step 6	-	NVIDIA drviers must be installed when Xorg is stopped:

# systemctl isolate multi-user.target

Step 7	-	Install NVDIA drivers

# cd /home/ray/NVIDIA/
# bash NVIDIA-Linux-x86_64-*

When prompted answer Yes to installation of NVIDIA 32 bit compatibiltiy libriaries, overwrite existing 'libglvnd' files and automatica update of your X configuration file.

Step 8	-	Reboot system

WARNING
When using GDM display manager after login you may be greeted with a black screen. Please note that at the time of writing this issue sits with GDM and you are recommended to temporarily switch to some other display manager like for example sddm:
$ sudo dnf install sddm 
$ sudo systemctl disable gdm
$ sudo systemctl enable sddm
$ sudo reboot
All done. The Nvidia driver should now be installed on your Fedora 29 Linux system. Reboot your system now, login and run nvidia-settings to further configure your Nvidia graphic card settings.

Last edited by lleb; 05-10-2019 at 09:52 PM. Reason: typo
 
Old 05-11-2019, 04:03 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Commomore View Post
Thanks for the links but they don't quite address my problem.
how so?
please, be precise & verbose.
 
Old 05-15-2019, 03:34 AM   #6
Commomore
LQ Newbie
 
Registered: May 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
lspci:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:13.0 Non-VGA unclassified device: Intel Corporation Sunrise Point-LP Integrated Sensor Hub (rev 21)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Intel(R) 100 Series Chipset Family LPC Controller/eSPI Controller - 9D4E (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce MX130] (rev a2)
02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)



lshw | grep display:

*-display
*-display



xrandr -q:

Screen 0: minimum 8 x 8, current 1600 x 900, maximum 16384 x 16384
eDP-1-1 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 346mm x 194mm
3840x2160 60.00 + 59.98 59.97
3200x1800 59.96 59.94
2880x1620 59.96 59.97
2560x1600 59.99 59.97
2560x1440 59.99 59.99 59.96 59.95
2048x1536 60.00
1920x1440 60.00
1856x1392 60.01
1792x1344 60.01
2048x1152 59.99 59.98 59.90 59.91
1920x1200 59.88 59.95
1920x1080 60.01 59.97 59.96 59.93
1600x1200 60.00
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99* 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 disconnected (normal left inverted right x axis y axis)



lshw | grep -A10 display:

*-display
description: VGA compatible controller
product: UHD Graphics 620
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 07
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
--
*-display
description: 3D controller
product: GM108M [GeForce MX130]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom
configuration: driver=nvidia latency=0



Thanks but I couldn't follow your steps. I don't understand them.
 
Old 05-15-2019, 07:37 AM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Thank you for the outputs. There are plenty of folks here who can help with that. Moving forward please use code tags.

Code:
[ code ]
remove the spaces around code. to close just [/ code ] will close the flag. Much easier to read that way.

What of the steps for installing the Nvidia drivers was unclear? It is a step by step process. It starts off with displaying how to update your system, moves to downloading the drivers, than finishes with installing drives and setting GDM or other display manager to function.
 
Old 05-24-2019, 07:27 AM   #8
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 192

Rep: Reputation: 130Reputation: 130
Hi,
I'm not sure that my info would some help for your trouble.
Please try to refer NVIDIA's Linux forum thread below.
NVIDIA Linux forum's thread

In my case, my note PC is "msi GL-62". This PC has also nvidia GPU on intel board.
I installed NVIDIA driver version 430.14 and made my xorg.conf (/etc/X11/xorg.conf) by using the script which you can find the last post in above thead.
For example, my lspci info and xorg.conf is below.

Code:
#lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1)
00:1c.3 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #4 (rev f1)
00:1f.0 ISA bridge: Intel Corporation HM170 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)
03:00.0 Ethernet controller: Qualcomm Atheros QCA8171 Gigabit Ethernet (rev 10)

#cat /etc/X11/xorg.conf
--->8----->8------>8-----
Section "ServerLayout"
	Identifier "layout"
	Screen 0 "nvidia"
	Inactive "intel"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce 940MX"
	BusID "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "nvidia"
	Device "nvidia"
	Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
	Identifier "intel"
	Driver "modesetting"
EndSection

Section "Screen"
	Identifier "intel"
	Device "intel"
EndSection
--->8----->8------>8-----

And I added following line in ~/.xinitc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96
===============
In my case above. I'm using NVIDIA's optimus function, not bumblemee. So, it has no-switchable function to intel VGA.
Please refer also Arch wiki "nvidia optimus"
Please see also

Last edited by J_W; 05-24-2019 at 11:33 PM.
 
Old 05-25-2019, 05:15 AM   #9
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 192

Rep: Reputation: 130Reputation: 130
OK. The former my comment was a example on Slackware linux environment.
Fortunatelly, there is debian9 (strech) in other partition of the same PC.
So, I tested to install bumblebee on the debian9 and confirmed it works fine.
Referenced URL:
https://wiki.debian.org/NvidiaGraphi...s#Installation
https://wiki.debian.org/Bumblebee

Step-1) Add additional repository to /etc/apt/sources.list
I added following lines to sources.list.
----- >8 ------ >8 ----- >8 -----
# stretch-backports
deb http://httpredir.debian.org/debian/ stretch-backports non-free contrib main
----- >8 ------ >8 ----- >8 -----

Step-2) Install package
# apt-get update
# apt-get install bumblebee-nvidia primus libgl1-nvidia-glx

Step-3) Add <USER> to group bumblebee
# adduser $USER bumblebee
$USER is your user name.

Step-4) Edit /etc/bumblebee/xorg.conf.nvidia
This was need for me. Without this step, $ optirun <application> failed to start for me.
$ cat /etc/bumblebee/xorg.conf.nvidia
Code:
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.

   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection
Step-5) Confirm with glxgears
Code:
$ optirun glxgears -info
GL_RENDERER   = GeForce 940MX/PCIe/SSE2
GL_VERSION    = 4.6.0 NVIDIA 390.116
GL_VENDOR     = NVIDIA Corporation
GL_EXTENSIONS = GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture ...
Be sure that tested distro is not the same as your's.
 
Old 05-26-2019, 02:40 PM   #10
Commomore
LQ Newbie
 
Registered: May 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks for the suggestion but I am getting too many error messages (stretch-backports InRelease' is not signed; gpg: keyserver receive failed: No data
etc. etc.)
I downloaded the bumblebee-nvidia primus file with Synaptic but it didn't say libgl1-nvidia-glx.
I searched the exact file name on Debian's website but couldn't find it and apt says:

---"Package libgl1-nvidia-glx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgl1-nvidia-glx' has no installation candidate---

I added the following lines to sources.list:

deb http://deb.debian.org/debian stretch-backports main contrib non-free
deb-src http://deb.debian.org/debian stretch-backports main contrib non-free


Thanks

Last edited by Commomore; 05-31-2019 at 11:24 PM.
 
Old 05-30-2019, 02:44 PM   #11
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
Not sure if this is your issue but on Gentoo you have to remove some stuff in kernel. Nvidia uses binary driver and some kernel figurations needs to be fixed. Below is what should be enabled/disabled. Using built in Agp kernel caused me some issues so I don't use it. I use built in AGP from Nvidia works better for me anyway. ALso Direct Rendering I disable as well use built in Nvidia as well for that. Also I am sure in your bios you can disable built in graphics. In mine I had to disable IGPU Multi Monitor because it would recognize both GPU's and I only wanted Nvidia. One of the reasons I went with Gentoo. Most distros have issues running new versions of Nvidia because of kernel configurations issue with distro. Most likely that is issue and fix is to compile your own kernel.

Code:
Kernel Configuration:[*] Enable loadable module support --->

Processor type and features --->[*] MTRR (Memory Type Range Register) support

Bus options (PCI etc.) --->[*] Mark VGA/VBE/EFI FB as generic system framebuffer

Device Drivers --->
Character devices --->[*] IPMI top-level message handler

Device Drivers ---> (ONLY THINGS THAT SHOULD BE ENABLED UNLESS YOUR CARD IS AGP)
Graphics support --->
  < > /dev/agpgart (AGP Support)  ----    
  -*- VGA Arbitration                                                                                            
  (16)  Maximum number of GPUs                                                                                   
  [ ] Laptop Hybrid Graphics - GPU switching support  
  < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  ----   
  [ ] Enable DisplayPort CEC-Tunneling-over-AUX HDMI support  
      Frame buffer Devices  --->  
  [*] Bootup logo

Frame buffer Devices ---> (ONLY THINGS THAT SHOULD BE ENABLED)
<*> Support for frame buffer devices --->
<*> Enable Video Mode Handling Helpers
<*> Enable Tile blitting support
<*> Simple frame buffer support


Make sure all Nvidia is not a module or built in kernel
 < > nVidia Framebuffer Support
 < > nVidia Riva support

Last edited by drillsar; 05-30-2019 at 03:00 PM.
 
Old 05-31-2019, 09:53 PM   #12
Commomore
LQ Newbie
 
Registered: May 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi. Thank you for your reply. How can I see all this information? What do I need to type into the terminal?

Last edited by Commomore; 05-31-2019 at 11:12 PM.
 
Old 05-31-2019, 11:14 PM   #13
Commomore
LQ Newbie
 
Registered: May 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by J_W View Post
OK. The former my comment was a example on Slackware linux environment.
Fortunatelly, there is debian9 (strech) in other partition of the same PC.
So, I tested to install bumblebee on the debian9 and confirmed it works fine.
Referenced URL:
https://wiki.debian.org/NvidiaGraphi...s#Installation
https://wiki.debian.org/Bumblebee

Step-1) Add additional repository to /etc/apt/sources.list
I added following lines to sources.list.
----- >8 ------ >8 ----- >8 -----
# stretch-backports
deb http://httpredir.debian.org/debian/ stretch-backports non-free contrib main
----- >8 ------ >8 ----- >8 -----

Step-2) Install package
# apt-get update
# apt-get install bumblebee-nvidia primus libgl1-nvidia-glx

Step-3) Add <USER> to group bumblebee
# adduser $USER bumblebee
$USER is your user name.

Step-4) Edit /etc/bumblebee/xorg.conf.nvidia
This was need for me. Without this step, $ optirun <application> failed to start for me.
$ cat /etc/bumblebee/xorg.conf.nvidia
Code:
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.

   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection
Step-5) Confirm with glxgears
Code:
$ optirun glxgears -info
GL_RENDERER   = GeForce 940MX/PCIe/SSE2
GL_VERSION    = 4.6.0 NVIDIA 390.116
GL_VENDOR     = NVIDIA Corporation
GL_EXTENSIONS = GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture ...
Be sure that tested distro is not the same as your's.

I don't understand step 4. What did you edit and how? Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squirrelmail cannot read email even though they've been received xweque Linux - Server 3 12-15-2015 03:45 PM
[SOLVED] Swap is being used even though RAM doesn't fill up on Slackware64 13.37 alexjohnson Slackware 4 10-24-2011 03:57 PM
mysql not installing even though dependencies have been resolved lonetwins Linux - Newbie 2 02-16-2009 11:26 AM
ssh prompts for password even though public and private keys have been generated kaplan71 Linux - Software 6 05-07-2008 04:57 PM
DRI enabled, but not used, even though card supports it. Gold Yo Linux - Hardware 4 07-30-2005 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration