NVIDIA 740M x intel

Questions about hardware and drivers
Forum rules
Before you post please read this

NVIDIA 740M x intel

Postby xieu90 on Wed Mar 05, 2014 8:13 am

Hi everyone,
I'm trying to install Nvidia driver on my new laptop which has nvidia 740m and also intel on board 4000 or 4400 or whatever. I think these card are called optimus or something.
I'm using LMDE 64 bit 2014 03
from new site I tried sgfxi but it sees only intel card


inxi -F
I see only intel, NVIDIA ...

Code: Select all
System:    Host: ace-laptop Kernel: 3.11-2-amd64 x86_64 (64 bit) Desktop: MATE 1.6.1  Distro: LinuxMint 1 debian
Machine:   System: Hewlett-Packard product: HP Pavilion 15 Notebook PC version: 0896100000304100000620100
           Mobo: Hewlett-Packard model: 2166 version: 29.23 Bios: Insyde version: F.21 date: 08/08/2013
CPU:       Dual core Intel Core i7-4500U CPU (-HT-MCP-) cache: 4096 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx)
           Clock Speeds: 1: 768.00 MHz 2: 768.00 MHz 3: 768.00 MHz 4: 1800.00 MHz
[b]Graphics:  Card: Intel Haswell-ULT Integrated Graphics Controller
           X.Org: 1.14.3 drivers: vesa,intel (unloaded: fbdev) Resolution: 1368x768@0.0hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.3, 256 bits) GLX Version: 2.1 Mesa 9.2.2[/b]
Audio:     Card-1: Intel Lynx Point-LP HD Audio Controller driver: snd_hda_intel Sound: ALSA ver: k3.11-2-amd64
           Card-2: Intel Device 0a0c driver: snd_hda_intel
Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169
           IF: eth0 state: down mac: a0:48:1c:16:b4:44
           Card-2: Realtek RTL8188EE Wireless Network Adapter driver: rtl8188ee
           IF: wlan0 state: up mac: 70:18:8b:38:51:f1
Drives:    HDD Total Size: 508.0GB (1.5% used) 1: id: /dev/sda model: WDC_WD5000LPVX size: 500.1GB
           2: USB id: /dev/sdb model: JumpDrive size: 7.9GB
Partition: ID: / size: 40G used: 4.5G (12%) fs: ext4
Sensors:   System Temperatures: cpu: 44.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 162 Uptime: 42 min Memory: 708.2/3736.8MB Client: Shell (bash) inxi: 1.9.14


nvidia-detect --> No GPU found or something like that
lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 09)

lspci -nn | grep 3D
0a:00.0 3D controller [0302]: NVIDIA Corporation GK208M [GeForce GT 740M] [10de:1292] (rev a1)

dmesg | grep bbswitch
Code: Select all
[  676.888986] bbswitch: version 0.7
[  676.888991] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[  676.888995] bbswitch: Found discrete VGA device 0000:0a:00.0: \_SB_.PCI0.RP05.PEGP
[  676.889077] bbswitch: detected an Optimus _DSM function
[  676.889130] bbswitch: Succesfully loaded. Discrete card 0000:0a:00.0 is on
[  676.891703] bbswitch: disabling discrete graphics
[  726.255345] bbswitch: enabling discrete graphics
[  726.777928] bbswitch: disabling discrete graphics
[ 1003.943462] bbswitch: enabling discrete graphics
[ 1021.826019] bbswitch: disabling discrete graphics
[ 1024.098446] bbswitch: enabling discrete graphics
[ 1051.139191] bbswitch: disabling discrete graphics
[ 1053.324996] bbswitch: enabling discrete graphics
[ 1112.938504] bbswitch: disabling discrete graphics
[ 1115.431948] bbswitch: enabling discrete graphics
[ 1216.115753] bbswitch: disabling discrete graphics
[ 1221.663898] bbswitch: enabling discrete graphics



I also tried to install nvidia-current, but it isnt in repository
I tried a lot of bumblebee guide, also tried to install nvidia.run from nvidia site. nvidia-driver.
and then i saw /usr/lib/nvidia so i guess the driver is installed. but when i run nvidia-settings it say i dont use any driver. and above codes.
also edited bumblebee.conf (driver,kernel...)

whenever i run opritun glxgears I get error:
optirun glxgears
[ 3254.959658] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver
[ 3254.959789] [ERROR]Aborting because fallback start is disabled.

primusrun glxgears
primus: fatal: Bumblebee daemon reported: error: Could not load GPU driver



Code: Select all
optirun -vvv glxgears
[ 1420.049071] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1420.049719] [INFO]Configured driver: nvidia
[ 1420.049985] [DEBUG]optirun version 3.2.1 starting...
[ 1420.050025] [DEBUG]Active configuration:
[ 1420.050044] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1420.050075] [DEBUG] X display: :8
[ 1420.050093] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
[ 1420.050116] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1420.050141] [DEBUG] Accel/display bridge: auto
[ 1420.050160] [DEBUG] VGL Compression: proxy
[ 1420.050186] [DEBUG] VGLrun extra options:
[ 1420.050209] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[ 1420.050285] [DEBUG]Using auto-detected bridge primus
[ 1420.053753] [INFO]Response: No - error: Could not load GPU driver

[ 1420.053811] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 1420.053898] [DEBUG]Socket closed.
[ 1420.053956] [ERROR]Aborting because fallback start is disabled.
[ 1420.054010] [DEBUG]Killing all remaining processes.


I dont have any path from this line
[ 1420.050209] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
may be because of it?



how should i install nvidia driver now ?
sgfxi ?
get the run file from nvidia site?
install nvidia-driver with apt-get install?
or install bumblebee + bumblebee-nvidia?

or something else?
also are there anyway to check if driver is really installed/working.
xieu90
Level 2
Level 2
 
Posts: 85
Joined: Fri Dec 05, 2008 12:43 pm

Linux Mint is funded by ads and donations.
 

Re: NVIDIA 740M x intel

Postby Zleep-Dogg on Mon Mar 24, 2014 9:10 pm

I have the exact same issue with a GTX 765M, and have tested the ideas I could google and think of for now, so any ideas would be appriecieated...

edit: scratch that - I managed to finally find the right tweak here (combined with one of the things I read on a few other sites...

in /etc/bumblebee/bumblebee.conf change
Code: Select all
Driver=
to
Code: Select all
Driver=nvidia

and
Code: Select all
KernelDriver=nvidia
to
Code: Select all
KernelDriver=nvidia-current

then restart bumblebeed
Code: Select all
sudo service bumblebeed restart
Zleep-Dogg
Level 1
Level 1
 
Posts: 6
Joined: Mon Dec 20, 2010 2:39 pm

Re: NVIDIA 740M x intel

Postby xieu90 on Thu Mar 27, 2014 8:06 am

I tried your site long ago and it didnt work
today I tried it again, but still the same

I did it like this
Code: Select all
sudo apt-get install bumblebee-nvidia primus
(during installation there were 2 errors like nouveau conflict, restart to solve it and nvidia xserver isnt configured, pls configure it manual, I just click OK and continued and also ignored it)
Code: Select all
sudo adduser $USER bumblebee
(I got message: my username is already in bumblebee group)

Code: Select all
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
0a:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)


Code: Select all
sudo pluma /etc/bumblebee/xorg.conf.nvidia



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:0a: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



sudo pluma /etc/bumblebee/bumblebee.conf

I changed things like you did, driver = nvidia and kerneldriver to nvidia-current, didnt touch other things


with LMDE 201403 I have 3.11 Kernel so I just tried this one too
Code: Select all
sudo pluma /etc/default/grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset rcutree.rcu_idle_gp_delay=1"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Code: Select all
sudo update-grub
sudo reboot
then
sudo service bumblebeed restart
optirun -vvv glxgears
[  859.118014] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  859.118280] [INFO]Configured driver: nvidia
[  859.118370] [DEBUG]optirun version 3.2.1 starting...
[  859.118383] [DEBUG]Active configuration:
[  859.118390] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  859.118402] [DEBUG] X display: :8
[  859.118414] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
[  859.118422] [DEBUG] Socket path: /var/run/bumblebee.socket
[  859.118432] [DEBUG] Accel/display bridge: auto
[  859.118452] [DEBUG] VGL Compression: proxy
[  859.118460] [DEBUG] VGLrun extra options:
[  859.118467] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[  859.118494] [DEBUG]Using auto-detected bridge primus
[  859.120600] [INFO]Response: No - error: [XORG] (EE)

[  859.120656] [ERROR]Cannot access secondary GPU - error: [XORG] (EE)

[  859.120699] [DEBUG]Socket closed.
[  859.120740] [ERROR]Aborting because fallback start is disabled.
[  859.120761] [DEBUG]Killing all remaining processes.


when I run inxi -Fxz I dont see nvidia card either
Code: Select all
inxi -Fxz
System:    Host: ace-laptop Kernel: 3.11-2-amd64 x86_64 (64 bit, gcc: 4.8.1) Desktop: MATE 1.6.1  Distro: LinuxMint 1 debian
Machine:   System: Hewlett-Packard product: HP Pavilion 15 Notebook PC version: 0896100000304100000620100
           Mobo: Hewlett-Packard model: 2166 version: 29.40 Bios: Insyde version: F.51 date: 12/12/2013
CPU:       Dual core Intel Core i7-4500U CPU (-HT-MCP-) cache: 4096 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9576.96
           Clock Speeds: 1: 768.00 MHz 2: 1100.00 MHz 3: 768.00 MHz 4: 768.00 MHz
Graphics:  Card: Intel Haswell-ULT Integrated Graphics Controller bus-ID: 00:02.0
           X.Org: 1.14.3 drivers: vesa,intel (unloaded: fbdev) Resolution: 1368x768@0.0hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.3, 256 bits) GLX Version: 2.1 Mesa 9.2.2 Direct Rendering: Yes
Audio:     Card-1: Intel Lynx Point-LP HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2: Intel Device 0a0c driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture ver: k3.11-2-amd64
Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller
           driver: r8169 ver: 2.3LK-NAPI port: 4000 bus-ID: 09:00.0
           IF: eth0 state: down mac: <filter>
           Card-2: Realtek RTL8188EE Wireless Network Adapter driver: rtl8188ee port: 5000 bus-ID: 08:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 5009.1GB (13.1% used) 1: id: /dev/sda model: WDC_WD5000LPVX size: 500.1GB
           2: id: /dev/sdb model: Backup+_Desk size: 4000.8GB 3: id: /dev/sdc model: Portable size: 500.1GB
           4: id: /dev/sdd model: Name n/a size: 8.1GB
Partition: ID: / size: 40G used: 5.8G (16%) fs: ext4
Sensors:   System Temperatures: cpu: 53.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 174 Uptime: 15 min Memory: 509.9/3736.8MB Runlevel: 2 Gcc sys: 4.8.2
           Client: Shell (bash 4.2.45) inxi: 1.9.14


Did you do the same thing like me ?
xieu90
Level 2
Level 2
 
Posts: 85
Joined: Fri Dec 05, 2008 12:43 pm

Re: NVIDIA 740M x intel

Postby Zleep-Dogg on Thu Mar 27, 2014 3:36 pm

It looks similar, except for the grub-part

Code: Select all
$ uname -a
Linux esben-laptop 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux


Code: Select all
$ lspci | grep "VGA\|3D"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GK106M [GeForce GTX 765M] (rev ff)


Code: Select all
$ cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-current
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau


Code: Select all
$ cat /etc/bumblebee/xorg.conf.nvidia
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


Note that I also see no nvidia card with either nvidia-detect or inxi:

Code: Select all
$ nvidia-detect
No NVIDIA GPU detected.
$ inxi -Fxz
System:    Host: esben-laptop Kernel: 3.11-2-amd64 x86_64 (64 bit, gcc: 4.8.1)
           Desktop: MATE 1.6.1  Distro: LinuxMint 1 debian
Machine:   Mobo: Notebook model: W35xSTQ_370ST Bios: American Megatrends version: 4.6.5 date: 11/13/2013
CPU:       Quad core Intel Core i7-4700MQ CPU (-HT-MCP-) cache: 6144 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19157
           Clock Speeds: 1: 800.00 MHz 2: 800.00 MHz 3: 2401.00 MHz 4: 800.00 MHz 5: 800.00 MHz 6: 800.00 MHz 7: 800.00 MHz 8: 800.00 MHz
Graphics:  Card: Intel 4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0
           X.Org: 1.14.3 drivers: intel (unloaded: fbdev,vesa) Resolution: 1920x1080@60.0hz
           GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 9.2.2 Direct Rendering: Yes
Audio:     Card-1: Intel 8 Series/C220 Series High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture ver: k3.11-2-amd64
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 ver: 2.3LK-NAPI port: d000 bus-ID: 04:00.2
           IF: eth0 state: down mac: <filter>
           Card-2: Intel Centrino Advanced-N 6235 driver: iwlwifi ver: in-tree: bus-ID: 03:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 180.0GB (7.7% used) 1: id: /dev/sda model: INTEL_SSDSC2CT18 size: 180.0GB
Partition: ID: / size: 39G used: 9.9G (28%) fs: ext4 ID: /home size: 111G used: 3.0G (3%) fs: ext4
           ID: swap-1 size: 17.82GB used: 0.00GB (0%) fs: swap
Sensors:   System Temperatures: cpu: 40.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 201 Uptime: 2:35 Memory: 1263.8/16004.3MB Runlevel: 2 Gcc sys: 4.8.2
           Client: Shell (bash 4.2.45) inxi: 1.9.14


looking at lsmod, nvidia (or nouveau) driver should ONLY be there WHILE you are running optirun (or primusrun):

Code: Select all
$ lsmod | grep nvidia
[1]

Start a rendering and check again:
Code: Select all
$ optirun -vvv glxgears
[10057.005683] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[10057.006373] [INFO]Configured driver: nvidia
[10057.006687] [DEBUG]optirun version 3.2.1 starting...
[10057.006744] [DEBUG]Active configuration:
[10057.006763] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[10057.006795] [DEBUG] X display: :8
[10057.006814] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
[10057.006845] [DEBUG] Socket path: /var/run/bumblebee.socket
[10057.006871] [DEBUG] Accel/display bridge: auto
[10057.006895] [DEBUG] VGL Compression: proxy
[10057.006916] [DEBUG] VGLrun extra options:
[10057.006945] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[10057.007026] [DEBUG]Using auto-detected bridge primus
[10058.470336] [INFO]Response: Yes. X is active.

[10058.470346] [INFO]Running application using primus.
[10058.470444] [DEBUG]Process glxgears started, PID 8276.
305 frames in 5.0 seconds = 60.924 FPS
301 frames in 5.0 seconds = 60.035 FPS
301 frames in 5.0 seconds = 60.039 FPS
301 frames in 5.0 seconds = 60.038 FPS
301 frames in 5.0 seconds = 60.039 FPS
301 frames in 5.0 seconds = 60.042 FPS
301 frames in 5.0 seconds = 60.039 FPS
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  153 (DRI2)
  Minor opcode of failed request:  8 (DRI2SwapBuffers      )
  Resource id in failed request:  0x4200002
  Serial number of failed request:  6518
  Current serial number in output stream:  6519
primus: warning: dropping a frame to avoid deadlock
primus: warning: timeout waiting for display worker
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 32 requests (32 known processed) with 0 events remaining.
[10096.578085] [DEBUG]SIGCHILD received, but wait failed with No child processes
[10096.578101] [DEBUG]Socket closed.
[10096.578110] [DEBUG]Killing all remaining processes.

(the last part is after closing the window)

an lsmod during optirun (or primusrun):
Code: Select all
$ lsmod | grep nvidia
nvidia               9438739  40
i2c_core               24084  6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nvidia



Here's what I have installed:
Code: Select all
$ dpkg --list | grep -i "nvidia\|primus"
ii  bbswitch-dkms                                0.7-2                           amd64        Interface for toggling the power on nVidia Optimus video cards
ii  bumblebee                                    3.2.1-4                         amd64        NVIDIA Optimus support for Linux
ii  bumblebee-nvidia                             3.2.1-4                         amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  glx-alternative-nvidia                       0.4.1                           amd64        allows the selection of NVIDIA as GLX provider
ii  libgl1-nvidia-glx:amd64                      319.72-1                        amd64        NVIDIA binary OpenGL libraries
ii  libgl1-nvidia-glx:i386                       319.72-1                        i386         NVIDIA binary OpenGL libraries
ii  libgl1-nvidia-glx-i386                       319.72-1                        i386         NVIDIA binary OpenGL 32-bit libraries
ii  libnvidia-ml1:amd64                          319.72-1                        amd64        NVIDIA Management Library (NVML) runtime library
ii  nvidia-alternative                           319.72-1                        amd64        allows the selection of NVIDIA as GLX provider
ii  nvidia-detect                                319.72-1                        amd64        NVIDIA GPU detection utility
ii  nvidia-driver                                319.72-1                        amd64        NVIDIA metapackage
ii  nvidia-installer-cleanup                     20131102+1                      amd64        cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common                         20131102+1                      amd64        NVIDIA binary kernel module support files
ii  nvidia-kernel-dkms                           319.72-1                        amd64        NVIDIA binary kernel module DKMS source
ii  nvidia-settings                              319.72-1                        amd64        tool for configuring the NVIDIA graphics driver
ii  nvidia-support                               20131102+1                      amd64        NVIDIA binary graphics driver support files
ii  nvidia-vdpau-driver:amd64                    319.72-1                        amd64        NVIDIA vdpau driver
ii  nvidia-xconfig                               319.72-1                        amd64        X configuration tool for non-free NVIDIA drivers
ii  primus                                       0~20130904-1                    amd64        client-side GPU offloading for NVIDIA Optimus
ii  primus-libs:amd64                            0~20130904-1                    amd64        Shared libraries for primus
ii  primus-libs:i386                             0~20130904-1                    i386         Shared libraries for primus
ii  primus-libs-ia32                             0~20130904-1                    i386         Shared libraries for primus (32-bit)
ii  xserver-xorg-video-nvidia                    319.72-1                        amd64        NVIDIA binary Xorg driver


One problem I unfortunately haven't fixed yet is that in setting up netflix (ie. pipelight or netflix-desktop) I only get a black screen during playback (I can login and start playback perfectly, but only hear the audio behind a black screen). this site suggests it might be something with the 32 bit acceleration but I haven't found a working solution for that yet...
Zleep-Dogg
Level 1
Level 1
 
Posts: 6
Joined: Mon Dec 20, 2010 2:39 pm

Re: NVIDIA 740M x intel

Postby xieu90 on Fri Mar 28, 2014 3:51 pm

I compared your files to mine and they are almost the same
except i didnt have i386 packages
ii libgl1-nvidia-glx:i386 319.72-1
ii libgl1-nvidia-glx-i386 319.72-1
ii primus-libs:i386 0~20130904-1
ii primus-libs-ia32

I installed them and it still doesnt work.

I also tried this tutorial
http://forums.debian.net/viewtopic.php?f=16&t=110314

I managed to manually switch the GPU on or off
cat /proc/acpi/bbswitch
echo ON > /proc/acpi/bbswitch
echo OFF > /proc/acpi/bbswitch


but at the end I still couldnt run optirun glxgears

may be I will wait 1 year for next version of lmde and hope it will somehow work
and I also have no idea about your netflix-desktop ....
have you post a separate topic about it ?
xieu90
Level 2
Level 2
 
Posts: 85
Joined: Fri Dec 05, 2008 12:43 pm

Re: NVIDIA 740M x intel

Postby Zleep-Dogg on Sat Mar 29, 2014 7:06 pm

I generally don't start help-topics until I've pretty much given up fixing things on my own - and with another look at things I managed to fix my netflix (ie. 32 bit wine graphics) as well :-)

Code: Select all
$netflix-desktop --showdebug

revealed some errors along the lines of
Code: Select all
libGL error: dlopen /usr/lib/i386-linux-gnu/dri/i965_dri.so failed (/usr/lib/i386-linux-gnu/dri/i965_dri.so: cannot open shared object file: No such file or directory)

Looking for that file, I realized I was missing the 32-bit dri-packages:
Code: Select all
$ locate i965_dri.so
/usr/lib/x86_64-linux-gnu/dri/i965_dri.so
$ apt-file search i965_dri.so
libgl1-mesa-dri: /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
libgl1-mesa-dri-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/dri/i965_dri.so


so a
Code: Select all
$ sudo apt-get install libgl1-mesa-dri:i386
and voila - my netflix was working on the new machine as well :)

One caveat: I can't seem to force it to use the nvidia-drivers (optirun/primusrun has no effect on what card wine/silverlight tries to use) but since it runs smoothly enough, without, I don't really care...


As for your issues, I'm afraid my knowledge on the optimus-area is quite limited (a week ago I hadn't even heard of optimus), so I'm out of ideas beyond what I managed to get to work... I wish you good luck though :) and should you wish any further info from my setup to compare to, then just let me know...
Zleep-Dogg
Level 1
Level 1
 
Posts: 6
Joined: Mon Dec 20, 2010 2:39 pm

Re: NVIDIA 740M x intel

Postby xieu90 on Sun Mar 30, 2014 4:00 pm

Congratulation on getting it work ^^
and thanks for your help, if I have any more questions I will post it here or pm you.
I'm quite busy at this time so i have to give up for now and wait a bit, may be i will get some new idea to try in the mean time or some tutorials will appear somewhere :D
xieu90
Level 2
Level 2
 
Posts: 85
Joined: Fri Dec 05, 2008 12:43 pm

Re: NVIDIA 740M x intel

Postby primski on Thu Apr 10, 2014 3:25 am

posting to find later. just got a new laptop with 740M and intel.
primski
Level 1
Level 1
 
Posts: 24
Joined: Fri Nov 13, 2009 1:22 pm

Re: NVIDIA 740M x intel

Postby primski on Mon May 05, 2014 7:02 am

primski wrote:posting to find later. just got a new laptop with 740M and intel.


got it to work somehow. at least it's not saying Could not load GPU driver anymore.

but running optimus glxgears gives me about 60fps just like running it without optimus, on intel's gpu so i don't think it's working as intended as 740m should be much more powerful.
primski
Level 1
Level 1
 
Posts: 24
Joined: Fri Nov 13, 2009 1:22 pm

Re: NVIDIA 740M x intel

Postby xieu90 on Mon May 05, 2014 3:59 pm

i dont know which one is running now,
but i get 1400-1500 fps
I think it is intel
from Zleep-Dogg post he also has 60 fps on his nvidia card
according to my information then his card > my nvidia card > intel card
so this optimus thing is quite ??????
I think i will wait for next updae of lmde, some how i feel april releases are somewhat buggyíer than October/Decembar release.
Until then I will just sit in darkness with sunglasses and stare at monitor like a retard mafia :D:D:D
xieu90
Level 2
Level 2
 
Posts: 85
Joined: Fri Dec 05, 2008 12:43 pm

Re: NVIDIA 740M x intel

Postby xieu90 on Tue May 13, 2014 3:49 pm

I managed to get nvida 740 to work I see CUDA in Blender, and a little bit higher fps than normal (setting brightness still doesnt work, hdmi also doesnt work)
optimusrun glxgears wont work(still cant find or load secondary graphics bla bla something)
primusrun didnt check
using these 2 links
http://forums.debian.net/viewtopic.php?f=16&t=110314
https://blog.psy-q.ch/2013/07/nvidia-op ... n-testing/

From first link we have these codes
Code: Select all
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install bbswitch-dkms intel-microcode firmware-linux-nonfree bumblebee bumblebee-nvidia primus primus-libs primus-libs:i386 linux-headers-$(uname -r)
sudo pluma /etc/bumblebee/bumblebee.conf

(change KernelDriver=nvidia to KernelDriver=nvidia-current then save and exit)

next code is a bit redundant, but I did it ^^
Code: Select all
sudo addgroup <your_username_here> bumblebee

After that I rebooted and ignored the rest of first link, if you want you can do it, i might try to do it too.
I needed CUDA for Blender so I also did this it is optional .
# apt-get install nvidia-cuda-toolkit


After reboot I followed second link and used this code
Code: Select all
sudo update-alternatives --config glx


here I had these
------------------------------------------------------------------------------------------------------------
ace@ace-laptop ~ $ sudo update-alternatives --config glx
There are 2 choices for the alternative glx (providing /usr/lib/glx).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/nvidia 100 auto mode
* 1 /usr/lib/mesa-diverted 5 manual mode
2 /usr/lib/nvidia 100 manual mode

Press enter to keep the current choice[*], or type selection number:
-------------------------------------------------------------------------------------------------------------

so of course I pressed 0 and pressed enter cause i wanted nvidia.
after that running glxgears i see that the fps is higher than normal

here is example
ace@ace-laptop ~ $ sudo update-alternatives --config glx
There are 2 choices for the alternative glx (providing /usr/lib/glx).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/nvidia 100 auto mode
1 /usr/lib/mesa-diverted 5 manual mode
2 /usr/lib/nvidia 100 manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/glx (glx) in manual mode
ace@ace-laptop ~ $ glxgears
6249 frames in 5.0 seconds = 1249.645 FPS
6492 frames in 5.0 seconds = 1298.356 FPS
6528 frames in 5.0 seconds = 1305.592 FPS
ace@ace-laptop ~ $ sudo update-alternatives --config glx
There are 2 choices for the alternative glx (providing /usr/lib/glx).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/nvidia 100 auto mode
* 1 /usr/lib/mesa-diverted 5 manual mode
2 /usr/lib/nvidia 100 manual mode

Press enter to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
ace@ace-laptop ~ $ glxgears
Xlib: extension "NV-GLX" missing on display ":0.0".
7367 frames in 5.0 seconds = 1472.818 FPS
7520 frames in 5.0 seconds = 1501.221 FPS
---------------------------------------------------------------------------------------------------------------
about 100 fps difference
and in blender i can choose gpu rendering now.
Just still have to use sunglasses at night 8) and no second screen (hdmi) :cry:
but LMDE rocks and roll :lol: :lol: :lol:
xieu90
Level 2
Level 2
 
Posts: 85
Joined: Fri Dec 05, 2008 12:43 pm

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 5 guests