Nvidia GT740M + Intel

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mmax

Nvidia GT740M + Intel

Post by mmax »

Hi,

I can't get my NVIDIA GeForce GT 740M running with Linux Mint 17 and need help. It did work about two weeks ago but since a dist-upgrade it doesn't. I tried the bumblebee package with the nvidia-331 drivers but when I start cinnamon I get the message "Running in software rendering mode" and I don't get any hardware accelleration any more.

Here are some informations:

Code: Select all

uname -a
Linux envy 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

cat /etc/bumblebee/bumblebee.conf
...
## 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-331
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-331:/usr/lib32/nvidia-331
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-331/xorg,/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
Xorg.0.log -> http://pastebin.com/GbCPw0H3

I allready struggle around a while with this problem - Any Ideas how to fix it?

Thanks,
Max
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mmax

Re: Nvidia GT740M + Intel

Post by mmax »

OK ... i removed the bumblebee stuff and try to get my X.org running without it.

These are the nvidia packages I have installed:

Code: Select all

ii  nvidia-331                                  331.38-0ubuntu7.1                                   amd64        NVIDIA binary driver - version 331.38
ii  nvidia-331-uvm                              331.38-0ubuntu7.1                                   amd64        NVIDIA Unified Memory kernel module
ii  nvidia-libopencl1-331                       331.38-0ubuntu7.1                                   amd64        NVIDIA OpenCL Driver and ICD Loader library
ii  nvidia-opencl-icd-331                       331.38-0ubuntu7.1                                   amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                0.6.2linuxmint1                                     amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             331.20-0ubuntu8                                     amd64        Tool for configuring the NVIDIA graphics driver
But I guess It's a problem of th BusID for the nvidia driver - if I set it to "PCI:1@0:0:0" the driver gets loaded but doesn't find a valid display device - see this Xorg.0.log
If i set it to something else or comment it out - It says "(EE) No devices detected" - see this Xorg.0.log

Here is what I allready tried:

Code: Select all

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 740M"
#    BusID          "PCI:0@0:2:0"  # No devide found
#    BusID          "PCI:0:1:0"    # No device found
#    BusID          "PCI:1@0:0:0"  # High CPU load - Treiber wird geladen
#    BusID          "PCI:2@0:0:0"
#    BusID         "PCI:1@0:1:0"
    Option         "NoLogo" "true"
    Option         "ConstrainCursor" "off"
    Option         "UseEDID" "false"
    Option         "UseDisplayDevice" "none"
EndSection
Any Ideas what has to be the right BusID?
Ph0z3

Re: Nvidia GT740M + Intel

Post by Ph0z3 »

i made a thread on getting nVidia cards running... plus fan control! :)

http://forums.linuxmint.com/viewtopic.php?f=42&t=183042

let me know if that gets you running.
mmax

Re: Nvidia GT740M + Intel

Post by mmax »

Yes, I allready tried that but still no success.

If I set the BusID in the Device section in xorg.conf to "PCI:1:0:0" the driver is loaded but can't find a valid display and the Xorg server runs at 100% CPU usage:

Code: Select all

...
[   429.851] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[   429.851] (==) NVIDIA(0): RGB weight 888
[   429.851] (==) NVIDIA(0): Default visual is TrueColor
[   429.851] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   429.851] (**) NVIDIA(0): Option "NoLogo" "true"
[   429.851] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[   429.851] (**) NVIDIA(0): Option "ConstrainCursor" "off"
[   429.851] (**) NVIDIA(0): Option "UseEDID" "false"
[   429.851] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[   429.851] (**) NVIDIA(0): Enabling 2D acceleration
[   429.851] (**) NVIDIA(0): Ignoring EDIDs
[   429.851] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[   429.851] (**) NVIDIA(0):     mode
[   429.951] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[   429.952] (II) NVIDIA(0): NVIDIA GPU GeForce GT 740M (GK208) at PCI:1:0:0 (GPU-0)
[   429.952] (--) NVIDIA(0): Memory: 2097152 kBytes
[   429.952] (--) NVIDIA(0): VideoBIOS: 80.28.22.00.23
[   429.952] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[   429.952] (--) NVIDIA(0): Valid display device(s) on GeForce GT 740M at PCI:1:0:0
[   429.952] (--) NVIDIA(0):     none
[   429.952] (II) NVIDIA(0): Validated MetaModes:
[   429.952] (II) NVIDIA(0):     "NULL"
[   429.952] (**) NVIDIA(0): Virtual screen size configured to be 1920 x 1080
[   429.952] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[   429.952] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[   429.952] (--) Depth 24 pixmap format is 32 bpp
[   429.952] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[   429.952] (II) NVIDIA:     access.
[   430.016] (II) NVIDIA(0): Setting mode "NULL"
[   430.016] (EE) NVIDIA(0): Failed to initiate mode change.
[   430.016] (EE) NVIDIA(0): Failed to complete mode change
[   430.025] Loading extension NV-GLX
[   430.029] (==) NVIDIA(0): Disabling shared memory pixmaps
[   430.029] (==) NVIDIA(0): Backing store enabled
[   430.029] (==) NVIDIA(0): Silken mouse enabled
[   430.029] (**) NVIDIA(0): DPMS enabled
[   430.029] Loading extension NV-CONTROL
[   430.030] (II) Loading sub module "dri2"
[   430.030] (II) LoadModule: "dri2"
[   430.030] (II) Module "dri2" already built-in
[   430.030] (II) NVIDIA(0): [DRI2] Setup complete
[   430.030] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia..
If i don't set the BusID, the driver won't detect a device:

Code: Select all

...
[   498.089] (II) LoadModule: "nvidia"
[   498.089] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[   498.089] (II) Module nvidia: vendor="NVIDIA Corporation"
[   498.089]    compiled for 4.0.2, module version = 1.0.0
[   498.089]    Module class: X.Org Video Driver
[   498.089] (II) NVIDIA dlloader X Driver  331.38  Wed Jan  8 18:51:00 PST 2014
[   498.089] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   498.089] (++) using VT number 9

[   498.215] (EE) No devices detected.
[   498.215] (==) Matched nvidia as autoconfigured driver 0
[   498.215] (==) Matched nouveau as autoconfigured driver 1
[   498.215] (==) Matched intel as autoconfigured driver 2
[   498.215] (==) Matched modesetting as autoconfigured driver 3
[   498.215] (==) Matched fbdev as autoconfigured driver 4
[   498.215] (==) Matched vesa as autoconfigured driver 5
[   498.215] (==) Assigned the driver to the xf86ConfigLayout
[   498.215] (II) LoadModule: "nvidia"
[   498.215] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[   498.215] (II) Module nvidia: vendor="NVIDIA Corporation"
[   498.215]    compiled for 4.0.2, module version = 1.0.0
[   498.215]    Module class: X.Org Video Driver
[   498.215] (II) UnloadModule: "nvidia"
[   498.215] (II) Unloading nvidia
...
mmax

Re: Nvidia GT740M + Intel

Post by mmax »

Yep ... now it's working. I had to reinstall the intel drivers as well (purged them before) - described in this post.
Now my xorg.conf looks like this:

Code: Select all

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection
Ph0z3

Re: Nvidia GT740M + Intel

Post by Ph0z3 »

glad you got it working...

-- please mark topic as [solved]
mmax

Re: Nvidia GT740M + Intel

Post by mmax »

There is just one more thing. gpu-manager overwrites my custom xorg.conf file and if I deactivate gpu-manager via kernel boot option, my graphics don't work any more. Is there a way to start gpu-manager but disable overwriting the xorg config file?
Ph0z3

Re: Nvidia GT740M + Intel

Post by Ph0z3 »

mmax wrote:Is there a way to start gpu-manager but disable overwriting the xorg config file?
not that I am aware of. Sorry man.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia GT740M + Intel

Post by roblm »

mmax,

If the BIOS has an option to disable Optimus, then the Nvidia GPU can be selected, and that non-editable xorg.conf file won't
automatically be created.

Do you need to use the Nvidia driver? For most people, the nouveau driver should perform adequatly, and that file won't be created.

If your custom xorg.conf file has Monitor sections, then they can be added to a separate file. What can be added depends on whether
the Nvidia proprietary driver or the nouveau driver is enabled.
Can you post the custom file.
mmax

Re: Nvidia GT740M + Intel

Post by mmax »

@roblm: My Bios doesn't offer that option :-(

The strange thing is that the gpu-manager replaces my xorg.conf file but it basically is the same. If I log in the first time, cinnamon shows the message that it has crashed and nvidia is not working properly but if I logout and in again, everything works. Any Idea why?
Ph0z3

Re: Nvidia GT740M + Intel

Post by Ph0z3 »

once it does that, drop back to TTY mode, then enter in terminal run: "sudo nvidia-xconfig" the "sudo reboot"

...once rebooted, "sudo nvidia-settings" ...set everything up and save the xConfiguration file.
mmax

Re: Nvidia GT740M + Intel

Post by mmax »

I dont't even have to switch to TTY .. I just need to logout to mdm and log in again.
It also works if i switch to TTY before logging in, restart mdm and log in afterwoods.
The xorg.conf is ok even when it's overwritten from gpu-manager.

Isn't that a bit strange?
Ph0z3

Re: Nvidia GT740M + Intel

Post by Ph0z3 »

mmax wrote:I dont't even have to switch to TTY .. I just need to logout to mdm and log in again.
It also works if i switch to TTY before logging in, restart mdm and log in afterwoods.
The xorg.conf is ok even when it's overwritten from gpu-manager.

Isn't that a bit strange?
a bit... yeah.

....but everything works... yes?
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Nvidia GT740M + Intel

Post by roblm »

mmax,

Here's some methods you can try to correct the startup problem you're having. Add these two xrandr commands to “/etc/mdm/Init/Default”. Open the file with this command in the Terminal:

Code: Select all

gksudo gedit /etc/mdm/Init/Default
Add these lines at the bottom, just above the last line that says “exit 0”:

Code: Select all

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
Save the file and reboot. If there is a startup problem, then at the GRUB boot menu select Recovery Mode. If no menu shows, then hold down the Shift key while starting. In the menu, select “root - drop to root shell prompt”. When asked for the root password, just type your user password. Then change the file permissions to read and write by typing:

Code: Select all

mount -o remount,rw /
Then open the edited file by typing:

Code: Select all

nano /etc/mdm/Init/Default
Use the Arrow keys to go to the bottom of the file and remove the two lines.

Press Ctrl+X. Type “Y” for Yes. Press Enter. Then type “reboot”. You'll go back to the Recovery Mode menu. Don't click anything, just wait about 7 seconds for the reboot.

If that fails, then try this. Open the xorg.conf file and change this section:

Code: Select all

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
EndSection
To this:

Code: Select all

Section "Device"
    Identifier "intel"
    Driver "intel"
    BusID "PCI:0@0:2:0"
EndSection
Then open the “/etc/mdm/Init/Default” file and add these two lines, as done above:

Code: Select all

xrandr --setprovideroutputsource Intel NVIDIA-0
xrandr --auto
It there is a problem after saving and rebooting, then open the xorg.conf file in Recovery Mode with this command:

Code: Select all

nano /etc/X11/xorg.conf
and change this line:
Driver "intel"

to this:
Driver "modesetting"

Then repeat the other steps above in Recovery Mode.

If that fails, then it may be better to do a reinstallation of Mint.
Locked

Return to “Graphics Cards & Monitors”