nvidia卡驱动程序未检测到: 没有设置&无法使用 HDMI

分享于 

5分钟阅读

ubuntu

  繁體

问题

这是xrandr的结果:


 Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192


LVDS2 connected 1024x768+0+0 (normal left inverted right x axis y axis) 293mm x 164mm


 1366x768 60.0 +


 1360x768 59.8 60.0 


 1024x768 60.0* 


 800x600 60.3 56.2 


 640x480 59.9 


VGA2 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm


 1024x768 60.0* 


 800x600 60.3 56.2 


 848x480 60.0 


 640x480 59.9 


DP1 disconnected (normal left inverted right x axis y axis)



lspci -v (仅关于vga的部分):


01:00.0 VGA compatible controller: NVIDIA Corporation G98M [GeForce G105M] (rev a2) (prog-if 00 [VGA controller])


 Subsystem: Hewlett-Packard Company Device 142e


 Flags: bus master, fast devsel, latency 0, IRQ 16


 Memory at f0000000 (32-bit, non-prefetchable) [size=16M]


 Memory at c0000000 (64-bit, prefetchable) [size=256M]


 Memory at d0000000 (64-bit, prefetchable) [size=32M]


 I/O ports at 4000 [size=128]


 Expansion ROM at f1080000 [disabled] [size=512K]


 Capabilities: <access denied>


 Kernel driver in use: nouveau


 Kernel modules: nvidia, nouveau, nvidiafb



最后xorg.conf (现在移除):


 # nvidia-xconfig: X configuration file generated by nvidia-xconfig


# nvidia-xconfig: version 295.40 (buildmeister@swio-display-x86-rhel47-06.nvidia.com) Thu Apr 5 22:40:54 PDT 2012



Section"ServerLayout"


 Identifier"Layout0"


 Screen 0"Screen0" 0 0


 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/psaux"


 Option"Emulate3Buttons""no"


 Option"ZAxisMapping""4 5"


EndSection



Section"InputDevice"



 # generated from default


 Identifier"Keyboard0"


 Driver"kbd"


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"Device0"


 Driver"nvidia"


 VendorName"NVIDIA Corporation"


EndSection



Section"Screen"


 Identifier"Screen0"


 Device"Device0"


 Monitor"Monitor0"


 DefaultDepth 24


 SubSection"Display"


 Depth 24


 EndSubSection


EndSection



nvidia设置错误:


![nvidia-settings error][2]



lshw -C video:



 *-display 


 description: VGA compatible controller


 product: G98M [GeForce G105M]


 vendor: NVIDIA Corporation


 physical id: 0


 bus info: pci@0000:01:00.0


 version: a2


 width: 64 bits


 clock: 33MHz


 capabilities: pm msi pciexpress vga_controller bus_master cap_list rom


 configuration: driver=nouveau latency=0


 resources: irq:16 memory:f0000000-f0ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:4000(size=128) memory:f1080000-f10fffff


 *-display


 description: Display controller


 product: Mobile 4 Series Chipset Integrated Graphics Controller


 vendor: Intel Corporation


 physical id: 2


 bus info: pci@0000:00:02.0


 version: 07


 width: 64 bits


 clock: 33MHz


 capabilities: msi pm bus_master cap_list rom


 configuration: driver=i915 latency=0


 resources: irq:45 memory:f1400000-f17fffff memory:e0000000-efffffff ioport:50f0(size=8)




答案1

你的问题是,你有2个显卡:GeForce G105M和intel集成显卡,是"Nvidia混合显卡",它是Linux下的噩梦。

唯一的解决方案是,禁用其中一个GPU,然后为另一个GPU安装正确的驱动程序。


SET  Drive  CAR  Detect  Setting  设置