Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nVidia GeForce 640M card not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jaor
n00b
n00b


Joined: 03 Feb 2015
Posts: 2

PostPosted: Mon Feb 16, 2015 6:06 pm    Post subject: nVidia GeForce 640M card not working Reply with quote

Hi there,
I've been searching for the answer, tried to apply lot of them, but it's not working still.
I have migrated from Fedora recently, so I'm new to Gentoo.

The problem is:
I've got nVidia GeForce 640M and an integrated intel video card.
The intel card is working without a problem, the nvidia's not.
By "the nvidia's not" I mean that startx ends in black screen with blinking cursor in upper left corner or in error's listed below in Xorg.log;

Kernel is 3.17.7;
I updated nvidia drivers today to 346.35; built with USE="gtk3 acpi"

I've removed nouveau modules from kernel, unmerged the driver package (as I merged it in the begining), removed framebuffer kernel modules.

I installed bumblebee.

I don't even know if when I was on Fedora I was using intel or nvidia card, so it's hard to tell if it was working...

Here are my settings/infos:

Code:

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 640M] (rev ff)


Code:

lspci -v -s 01:00
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 640M] (rev ff) (prog-if ff)
        !!! Unknown header type 7f
        Kernel modules: nvidia


What's strange, sometimes it shows all the details, sometimes it shows just this. Neither of this works.


My Xorg log when trying to start with nvidia device looks like this:

Code:

[   139.442]
X.Org X Server 1.15.2
Release Date: 2014-06-27
[   139.446] X Protocol Version 11, Revision 0
[   139.448] Build Operating System: Linux 3.17.7-gentoo x86_64 Gentoo
[   139.449] Current Operating System: Linux asylum 3.17.7-gentoo #7 SMP Mon Feb 16 18:15:25 CET 2015 x86_64
[   139.449] Kernel command line: BOOT_IMAGE=/vmlinuz-3.17.7-gentoo root=UUID=4beea259-f9ed-4263-a2fc-424e9825e797 ro dolvm docrypt crypt_root=/dev/sda4
[   139.453] Build Date: 30 January 2015  03:47:21PM
[   139.454] 
[   139.456] Current version of pixman: 0.32.4
[   139.459]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   139.459] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   139.465] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Feb 16 18:19:03 2015
[   139.467] (==) Using config file: "/etc/X11/xorg.conf"
[   139.469] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   139.469] (==) ServerLayout "Layout0"
[   139.469] (**) |-->Screen "Screen0" (0)
[   139.469] (**) |   |-->Monitor "Monitor0"
[   139.469] (**) |   |-->Device "nvidia"
[   139.469] (**) |-->Input Device "Keyboard0"
[   139.469] (**) |-->Input Device "Mouse0"
[   139.469] (==) Automatically adding devices
[   139.469] (==) Automatically enabling devices
[   139.469] (==) Automatically adding GPU devices
[   139.469] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   139.469]    Entry deleted from font path.
[   139.469] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   139.469]    Entry deleted from font path.
[   139.469] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   139.469]    Entry deleted from font path.
[   139.469] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   139.469]    Entry deleted from font path.
[   139.469]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   139.469] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   139.469]    Entry deleted from font path.
[   139.469]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   139.469] (==) FontPath set to:
        /usr/share/fonts/misc/
[   139.469] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   139.469] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   139.469] (WW) Disabling Keyboard0
[   139.469] (WW) Disabling Mouse0
[   139.469] (II) Loader magic: 0x80ec80
[   139.469] (II) Module ABI versions:
[   139.469]    X.Org ANSI C Emulation: 0.4
[   139.469]    X.Org Video Driver: 15.0
[   139.470]    X.Org XInput driver : 20.0
[   139.470]    X.Org Server Extension : 8.0
[   139.470] (II) xfree86: Adding drm device (/dev/dri/card1)
[   139.472] (--) PCI:*(0:0:2:0) 8086:0116:1025:067d rev 9, Mem @ 0xcb000000/4194304, 0xb0000000/268435456, I/O @ 0x00004000/64
[   139.473] Initializing built-in extension Generic Event Extension
[   139.475] Initializing built-in extension SHAPE
[   139.477] Initializing built-in extension MIT-SHM
[   139.478] Initializing built-in extension XInputExtension
[   139.480] Initializing built-in extension XTEST
[   139.481] Initializing built-in extension BIG-REQUESTS
[   139.483] Initializing built-in extension SYNC
[   139.485] Initializing built-in extension XKEYBOARD
[   139.486] Initializing built-in extension XC-MISC
[   139.488] Initializing built-in extension XINERAMA
[   139.489] Initializing built-in extension XFIXES
[   139.491] Initializing built-in extension RENDER
[   139.492] Initializing built-in extension RANDR
[   139.494] Initializing built-in extension COMPOSITE
[   139.495] Initializing built-in extension DAMAGE
[   139.496] Initializing built-in extension MIT-SCREEN-SAVER
[   139.498] Initializing built-in extension DOUBLE-BUFFER
[   139.499] Initializing built-in extension RECORD
[   139.501] Initializing built-in extension DPMS
[   139.502] Initializing built-in extension Present
[   139.503] Initializing built-in extension DRI3
[   139.505] Initializing built-in extension X-Resource
[   139.506] Initializing built-in extension XVideo
[   139.507] Initializing built-in extension XVideo-MotionCompensation
[   139.508] Initializing built-in extension XFree86-VidModeExtension
[   139.509] Initializing built-in extension XFree86-DGA
[   139.510] Initializing built-in extension XFree86-DRI
[   139.511] Initializing built-in extension DRI2
[   139.511] (II) LoadModule: "glx"
[   139.512] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   139.523] (II) Module glx: vendor="NVIDIA Corporation"
[   139.523]    compiled for 4.0.2, module version = 1.0.0
[   139.523]    Module class: X.Org Server Extension
[   139.523] (II) NVIDIA GLX Module  346.35  Sat Jan 10 20:53:39 PST 2015
[   139.524] Loading extension GLX
[   139.524] (II) LoadModule: "nvidia"
[   139.524] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   139.525] (II) Module nvidia: vendor="NVIDIA Corporation"
[   139.525]    compiled for 4.0.2, module version = 1.0.0
[   139.525]    Module class: X.Org Video Driver
[   139.525] (II) NVIDIA dlloader X Driver  346.35  Sat Jan 10 20:32:18 PST 2015
[   139.525] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   139.525] (--) using VT number 7

[   139.530] (EE) No devices detected.
[   139.531] (EE)
Fatal server error:
[   139.531] (EE) no screens found(EE)
[   139.531] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   139.531] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   139.531] (EE)



dmesg important messages are:

Code:

[    0.485045] ACPI: Enabled 5 GPEs in block 00 to 3F
[    0.485267] ACPI : EC: GPE = 0x1b, I/O: command/status = 0x66, data = 0x62
[    0.485438] vgaarb: setting as boot device: PCI:0000:00:02.0
[    0.485503] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[    0.485578] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
[    0.485647] vgaarb: loaded
[    0.485707] vgaarb: bridge control possible 0000:01:00.0
[    0.485772] vgaarb: no bridge control possible 0000:00:02.0
...
[   34.877471] [drm] Initialized drm 1.1.0 20060810
[   34.927400] nvidia: module license 'NVIDIA' taints kernel.
[   34.927403] Disabling lock debugging due to kernel taint
[   34.941655] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[   35.054550] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[   35.054590] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[   35.054667] snd_hda_intel 0000:00:1b.0: irq 27 for MSI/MSI-X
...
[   35.055314] ACPI: acpi_idle registered with cpuidle
[   35.055982] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 0
[   35.055993] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  346.35  Sat Jan 10 21:27:15 PST 2015
[   35.059487] wmi: Mapper loaded
[   35.073826] [drm] Memory usable by graphics device = 2048M
[   35.073830] [drm] Replacing VGA console driver
[   35.075647] Console: switching to colour dummy device 80x25
...
[   35.253882] [drm] GMBUS [i915 gmbus vga] timed out, falling back to bit banging on pin 2
[   35.285714] nvidia 0000:01:00.0: irq 29 for MSI/MSI-X
[   35.290012] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[   35.290057] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[   35.290085] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[   35.290112] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[   35.290139] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[   35.290165] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[   35.290241] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[   35.290268] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[   35.295103] fbcon: inteldrmfb (fb0) is primary device
...
[   35.944269] Console: switching to colour frame buffer device 170x48
[   35.950132] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[   35.950136] i915 0000:00:02.0: registered panic notifier
[   38.103313] [drm] Initialized i915 1.6.0 20140725 for 0000:00:02.0 on minor 1
[   38.413194] ACPI Warning: SystemIO range 0x0000000000004040-0x000000000000405f conflicts with OpRegion 0x0000000000004040-0x000000000000404f (\_SB_.PCI0.SBUS.SMBI) (20140724/utaddress-258)
[   38.413208] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   41.782182] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)



In kernel I've got:

Code:

> Device Drivers > Graphics support
                                                                           <*> /dev/agpgart (AGP Support)  --->                                                                                                             
                                                                           -*- VGA Arbitration                                                                                                                              
                                                                           (16)  Maximum number of GPUs                                                                                                                     
                                                                           [ ] Laptop Hybrid Graphics - GPU switching support                                                                                               
                                                                               Direct Rendering Manager  --->                                                                                                               
                                                                               Frame buffer Devices  --->                                                                                                                   
                                                                           -*- Backlight & LCD device support  --->                                                                                                         
                                                                               Console display driver support  --->                                                                                                         
                                                                           [ ] Bootup logo  ---- 


Code:

 > Device Drivers > Graphics support > Direct Rendering Manager
                                                                           <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->                                                                        
                                                                               I2C encoder or helper chips  --->                                                                                                            
                                                                           < > PTN3460 DP/LVDS bridge                                                                                                                       
                                                                           <M> 3dfx Banshee/Voodoo3+                                                                                                                        
                                                                           <M> ATI Rage 128                                                                                                                                 
                                                                           <M> ATI Radeon                                                                                                                                   
                                                                           [ ]   Enable userspace modesetting on radeon (DEPRECATED)                                                                                        
                                                                           < > Nouveau (NVIDIA) cards                                                                                                                       
                                                                           <M> Intel I810                                                                                                                                   
                                                                           <M> Intel 8xx/9xx/G3x/G4x/HD Graphics                                                                                                            
                                                                           [*]   Enable modesetting on intel by default                                                                                                     
                                                                           [*]   Enable legacy fbdev support for the modesetting intel driver                                                                               
                                                                           [ ]   Enable preliminary support for prerelease Intel hardware by default                                                                        
                                                                           <M> Matrox g200/g400                                                                                                                             
                                                                           <M> SiS video cards                                                                                                                              
                                                                           <M> Via unichrome video cards                                                                                                                    
                                                                           <M> Savage video cards                                                                                                                           
                                                                           < > DRM driver for VMware Virtual GPU                                                                                                            
                                                                           < > Intel GMA5/600 KMS Framebuffer                                                                                                               
                                                                           < > DisplayLink                                                                                                                                  
                                                                           < > AST server chips                                                                                                                             
                                                                           < > Kernel modesetting driver for MGA G200 server engines                                                                                        
                                                                           < > Cirrus driver for QEMU emulated device                                                                                                       
                                                                           < > QXL virtual GPU                                                                                                                              
                                                                           < > DRM Support for bochs dispi vga interface (qemu stdvga)         



My working xorg.conf:

Code:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 343.36  (buildmeister@swio-display-x86-rhel47-09)  Mon Dec  1 16:47:14 PST 2014


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    #Inactive       "intel"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "pl"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "intel"
    Driver         "intel"
    VendorName     "Intel Corporation"
    BusID          "PCI:0:2:0"
EndSection

Section "Screen"

#    Monitor         "Monitor0"
    Identifier     "Screen0"
    Device         "intel"
#    Device         "nvidia"
    Monitor        "Monitor0"
    DefaultDepth    24
    #Option         "AllowEmptyInitialConfiguration"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

#    Monitor         "Monitor0"
    Identifier     "Screen1"
    Device         "intel"
    Monitor        "Monitor0"
EndSection


Back to top
View user's profile Send private message
tclover
Guru
Guru


Joined: 10 Apr 2011
Posts: 516

PostPosted: Mon Feb 16, 2015 6:34 pm    Post subject: Intel & nVidia Optimus witchable Graphics Reply with quote

I did not read much of the above post because... it's a bit too long.
If I got it... you want to use the discret GPU with the propritary nVidia blob. Fine! Some (people) would promptly advise you to remove any drm related modules in favor of that end. No good, you can achieve the same result with building everything (drm, ttm, intel & nouveau + uVESAfb) as modules and be able to switch GPU as you wish without the double kernel setup.

First, start by reading this overview Hprofile#VGA.
And then, consult this for actual step by step over there fglrx/mesa switchable setup fails, need help.
Finaly, some useful in are available in the wiki or nouveau wiki about Optimus.
_________________
home/:mkinitramfs-ll/:supervision/:e-gtk-theme/:overlay/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum