主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

各种窗口管理器和美化相关
回复
好想有人带我飞
帖子: 7
注册时间: 2015-07-15 22:21
系统: kubuntu14.04

主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#1

帖子 好想有人带我飞 » 2015-07-15 22:29

显卡型号是Geforce GTX 960,主机型号是戴尔optiplex 990,系统是kubuntu14.04,没装独显的时候本来可以ctrl+alt+f1切换到文字界面,装了显卡后可以有图形界面,但是一按ctrl+alt+f1就黑屏,f2,f3,f4都试过都不行,但是一按ctrl+alt+f7可以回到图形界面。我也是醉了
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#2

帖子 poloshiao » 2015-07-16 8:34

把下面指令 複製 貼進終端機 執行
1. uname -r
2. sudo lspci -knn
3. sudo lshw -numeric -class video
4. sudo ubuntu-drivers devices
把結果直接 選取/複製 貼上來
好想有人带我飞
帖子: 7
注册时间: 2015-07-15 22:21
系统: kubuntu14.04

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#3

帖子 好想有人带我飞 » 2015-07-16 9:57

lin@lin-OptiPlex-990:~$ uname -r
3.16.0-30-generic
lin@lin-OptiPlex-990:~$ sudo lspci -knn
[sudo] password for lin:
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0100] (rev 09)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: snb_uncore
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port [8086:0101] (rev 09)
Kernel driver in use: pcieport
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: mei_me
00:16.3 Serial controller [0700]: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller [8086:1c3d] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: serial
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 [8086:1c14] (rev b4)
Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: ehci-pci
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev a4)
00:1f.0 ISA bridge [0601]: Intel Corporation Q67 Express Chipset Family LPC Controller [8086:1c4e] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: lpc_ich
00:1f.2 RAID bus controller [0104]: Intel Corporation 82801 SATA Controller [RAID mode] [8086:2822] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
Subsystem: Dell Device [1028:047e]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1401] (rev a1)
Subsystem: Device [1b4c:1138]
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
Subsystem: Device [1b4c:1138]
Kernel driver in use: snd_hda_intel
lin@lin-OptiPlex-990:~$ sudo lshw -numeric -class video
*-display UNCLAIMED
description: VGA compatible controller
product: NVIDIA Corporation [10DE:1401]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller cap_list
configuration: latency=0
resources: memory:e3000000-e3ffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:3000(size=128) memory:e4000000-e407ffff
lin@lin-OptiPlex-990:~$ sudo ubuntu-drivers devices
好想有人带我飞
帖子: 7
注册时间: 2015-07-15 22:21
系统: kubuntu14.04

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#4

帖子 好想有人带我飞 » 2015-07-16 10:34

lin@lin-OptiPlex-990:~$ uname -r
3.16.0-30-generic
lin@lin-OptiPlex-990:~$ sudo lspci -knn
[sudo] password for lin:
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0100] (rev 09)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: snb_uncore
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port [8086:0101] (rev 09)
Kernel driver in use: pcieport
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: mei_me
00:16.3 Serial controller [0700]: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller [8086:1c3d] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: serial
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 [8086:1c14] (rev b4)
Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: ehci-pci
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev a4)
00:1f.0 ISA bridge [0601]: Intel Corporation Q67 Express Chipset Family LPC Controller [8086:1c4e] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: lpc_ich
00:1f.2 RAID bus controller [0104]: Intel Corporation 82801 SATA Controller [RAID mode] [8086:2822] (rev 04)
Subsystem: Dell Device [1028:047e]
Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
Subsystem: Dell Device [1028:047e]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1401] (rev a1)
Subsystem: Device [1b4c:1138]
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fba] (rev a1)
Subsystem: Device [1b4c:1138]
Kernel driver in use: snd_hda_intel
lin@lin-OptiPlex-990:~$ sudo lshw -numeric -class video
*-display UNCLAIMED
description: VGA compatible controller
product: NVIDIA Corporation [10DE:1401]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller cap_list
configuration: latency=0
resources: memory:e3000000-e3ffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:3000(size=128) memory:e4000000-e407ffff
lin@lin-OptiPlex-990:~$ sudo ubuntu-drivers devices
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#5

帖子 poloshiao » 2015-07-16 11:40

没装独显的时候本来可以ctrl+alt+f1切换到文字界面,装了显卡后可以有图形界面
sudo lspci -knn
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1401] (rev a1)
1. 單顯卡 沒有偵測到 內建顯卡 ?
1-1. 請查閱 使用說明書 主板是否支援雙顯卡
sudo lshw -numeric -class video
*-display UNCLAIMED
product: NVIDIA Corporation [10DE:1401]
configuration: latency=0
2. 偵測到的顯卡
[10DE:1401]
http://pciids.sourceforge.net/v2.2/pci.ids
10de NVIDIA Corporation
1401 GM206 [GeForce GTX 960]

3. 在 開源驅動 nouveau 支援名單內
http://nouveau.freedesktop.org/wiki/CodeNames/
NV110 family (Maxwell)
NV126 (GM206) GeForce GTX (960)
3-1. 安裝 Ubuntu 時 預裝 開源驅動 nouveau

4. 閉源驅動 nvidia
自 346.35 開始支援 GeForce GTX 960
http://www.nvidia.com/Download/driverRe ... 1252/en-us
Version: 346.35
4-1. 安裝方法 參見
https://help.ubuntu.com/community/Binar ... wto/Nvidia
https://help.ubuntu.com/community/NvidiaManual
sudo lshw -numeric -class video
configuration: latency=0
5. 看不出 目前作用中的驅動
没装独显的时候本来可以ctrl+alt+f1切换到文字界面,装了显卡后可以有图形界面,但是一按ctrl+alt+f1就黑屏,
6. 裝了独显以後 有另外安裝閉源驅動嗎

7. 看看 能否登入 Recovery Mode
https://wiki.ubuntu.com/RecoveryMode
7-1. 如果可以 看看能否登入 tty1 ~ tty6
好想有人带我飞
帖子: 7
注册时间: 2015-07-15 22:21
系统: kubuntu14.04

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#6

帖子 好想有人带我飞 » 2015-07-16 19:17

前辈,你好,谢谢你的提醒。自从装了系统之后,我就没装过显卡驱动,之前想装nvidia 352.21驱动,但是也装失败了,装cuda也装不上。也就是说现在电脑里的驱动就是装系统时自带的nouveau
好想有人带我飞
帖子: 7
注册时间: 2015-07-15 22:21
系统: kubuntu14.04

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#7

帖子 好想有人带我飞 » 2015-07-16 19:30

我现在想在bios里切换成集显,但是没找到这个选项,这个系列的机子好像不支持切换显卡
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#8

帖子 poloshiao » 2015-07-16 21:19

我现在想在bios里切换成集显,但是没找到这个选项
1. 把獨顯 拔除 重新開機
sudo lshw -numeric -class video
把結果複製/貼上來看看
NV126 (GM206) GeForce GTX (960)
2. GeForce GTX 960 不支援 Optimus (雙顯卡) 功能
2-1. http://www.geforce.com/hardware/noteboo ... m/features
GeForce GTX 960M
Features
NVIDIA Optimus Technology
2-2. http://www.geforce.com/hardware/desktop ... 0/features
GeForce GTX 960
Features
沒有
NVIDIA Optimus Technology
好想有人带我飞
帖子: 7
注册时间: 2015-07-15 22:21
系统: kubuntu14.04

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#9

帖子 好想有人带我飞 » 2015-07-17 18:01

很感谢前辈的指点,不过我主要问题还是在于切换到tty就黑屏的问题上,刚刚已经找到解决的方案了,现在贴在这里让大家共享一下:
nvidia的显卡:
修改/etc/initramfs-tools/modules
加入
fbcon
vesafb
nvidiafb三行
再修改/etc/modprobe.d/blacklist-framebuffer文件
把nvidiafb,vesafb,vga16fb三行注释掉
运行sudo update-initramfs -u重启电脑就好

—————————————————————————
我的没vga16fb这一行,就无视掉了。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 主机是戴尔optiplex 990,系统kubuntu14.04,装了显卡之后切换到字符界面就黑屏,怎么破?

#10

帖子 poloshiao » 2015-07-17 21:23

nvidia的显卡:
修改/etc/initramfs-tools/modules
加入
fbcon
vesafb
nvidiafb三行
再修改/etc/modprobe.d/blacklist-framebuffer文件
把nvidiafb,vesafb,vga16fb三行注释掉
运行sudo update-initramfs -u重启电脑就好
這是比較早期的方法
grub 2 參數 另外有較新的選項
有興趣 再研究
回复