#已解决 这是硬件问题,我的主板坏了。现在修好了。
#问题
我不知道如何在我的笔记本电脑上安装 Nvidia 驱动程序。 (我只使用了 4-5 天的 Linux 用户,但我想我已经足够努力了。)
paraduxos@ASUSDOGE:/$ neofetch
_,met$$$$$gg. paraduxos@ASUSDOGE
,g$$$$$$$$$$$$$$$P. ------------------
,g$$P" """Y$$.". OS: Debian GNU/Linux 10 (buster) x86_64
,$$P' `$$$. Host: ROG Strix G531GT_G531GT 1.0
',$$P ,ggs. `$$b: Kernel: 4.19.0-8-amd64
`d$$' ,$P"' . $$$ Uptime: 1 hour, 42 mins
$$P d$' , $$P Packages: 2256 (dpkg)
$$: $$. - ,d$$' Shell: bash 5.0.3
$$; Y$b._ _,d$P' Resolution: 1920x1080
Y$$. `.`"Y$$$$P"' DE: Xfce
`$$b "-.__ WM: Xfwm4
`Y$$ WM Theme: Default
`Y$$. Theme: Xfce [GTK2], Adwaita [GTK3]
`$$b. Icons: Tango [GTK2], Adwaita [GTK3]
`Y$$b. Terminal: xfce4-terminal
`"Y$b._ Terminal Font: Monospace 12
`""" CPU: Intel i7-9750H (12) @ 4.500GHz
GPU: Intel UHD Graphics 630
Memory: 1434MiB / 7828MiB
我使用的笔记本电脑:ASUS ROG STRIX G 531GT(GPU:NVIDIA GeForce GTX 1650,板载 Intel)
paraduxos@ASUSDOGE:/$ lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller (rev 10)
00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port (rev f0)
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 Non-Volatile memory controller: Intel Corporation Device f1a8 (rev 03)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
第一的, 我的笔记本电脑找不到 NVIDIA GPU
paraduxos@ASUSDOGE:/$ nvidia-detect
No NVIDIA GPU detected.
- 我也尝试使用lspci(如上所示),lshw(也使用
sudo
),没有找到NVIDIA。
在我做了一些研究之后(又名 google.com)
- 将 lspci 与 grep 结合使用某物-> 仍然没有找到
- 安装 Nvidia 驱动程序 -> 仍然找不到(并且有一些问题)
- 有人说大黄蜂需要(linuxquestions.org)
- 有人说这是BIOS问题(论坛.developer.nvidia.com): 我尝试进入 BIOS 设置 (F2),也没有 NVIDIA(我可以捕获,如果需要请告诉我。)
我不知道如何配置 BIOS,所以我选择了 nvidia-driver 和 bumblebee。
从 Debian wiki 中,我发现了 3 个可能与我的问题相关的 wiki:
https://wiki.debian.org/NvidiaGraphicsDrivers:
通常可以使用 lspci 命令来识别已安装显卡的 NVIDIA 图形处理单元 (GPU) 系列/代号。
注意:如果此 lspci 命令返回多行输出,则您拥有 Optimus(混合)图形芯片组,并且此页面上的说明不适用于您。请查看 NVIDIA Optimus 页面。
好吧,我得到了 0 输出。但我决定选择 Optimus 并停止这个 wiki。 (我想我是对的,也许?)
(实际上我稍后会回来讨论这一点,然后安装Version 440.59 (via buster-backports)
并重新启动后,什么也没有发生。)
在配置部分我没有尝试过,因为它指出
但是,下面描述的配置不适用于 Nvidia Optimus 系统;
于是我来到了第二个wiki
https://wiki.debian.org/NvidiaGraphicsDrivers/Optimus
$ lspci | grep 3D (No output)
这个wiki说有2种方法。
第一:禁用动态图形 - xrandr 和显示管理器脚本
- 此方法需要来自 lspci 的 BusID。所以我不能采用这种方法。
第二:动态图形与大黄蜂
paraduxos@ASUSDOGE:/$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.3.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.3.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
没有混合GPU??我不太明白输出,所以我继续安装 Bumblebee。
https://wiki.debian.org/Bumblebee
由于我使用的是 Debian 10 (Buster),我关注了 wiki 但发现了问题。
paraduxos@ASUSDOGE:/$ sudo apt install bumblebee-nvidia primus libgl1-nvidia-tesla-glx
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgl1-nvidia-tesla-glx
我尝试用谷歌搜索,但似乎没有人回答我的问题。所以我尝试了
paraduxos@ASUSDOGE:/$ sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install bumblebee-nvidia primus libgl1-nvidia-glx primus-libs:i386 libgl1-nvidia-glx:i386
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
primus-libs:i386 is already the newest version (0~20150328-7).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libgl1-nvidia-glx : Depends: libnvidia-glcore (= 418.74-1) but it is not going to be installed
Recommends: nvidia-driver-libs-nonglvnd (= 418.74-1) but it is not going to be installed
Recommends: nvidia-kernel-dkms (= 418.74-1) but it is not going to be installed or
nvidia-kernel-418.74
E: Unable to correct problems, you have held broken packages.
我不知道下一步该做什么。请帮忙。
更新:
- 由于
sudo apt install bumblebee-nvidia primus libgl1-nvidia-tesla-glx
返回E: Unable to locate package libgl1-nvidia-tesla-glx
所以我删除它并运行sudo apt install bumblebee-nvidia primus
- 我做同样的
sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install bumblebee-nvidia primus libgl1-nvidia-glx primus-libs:i386
改变sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install bumblebee-nvidia primus primus-libs:i386
我运行 bumblebee 后,它返回
paraduxos@ASUSDOGE:~$ optirun glxgears -info
[ 1097.543100] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 1097.543133] [ERROR]Could not connect to bumblebee daemon - is it running?
这是我重新安装 Debian 10 后的第二次尝试
(实时安装非免费 (XFCE)Debian 非自由)
这是我的sources.list
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free
# buster-backports
# deb http://deb.debian.org/debian buster-backports main contrib non-free
# deb-src http://deb.debian.org/debian buster-backports main contrib non-free
我尝试切换向后移植部分的注释(并运行sudo apt update
),但仍然得到相同的结果。
我没有对我的 Xorg、.xinit 或任何东西做任何事情。
(我也读过相关问题,但我想我最好在这里问。)
答案1
搜索nVidia,似乎435.21版本是最低需要的。那些不是debian 提供了 nvidia-driver 版本包,但在撰写本文时,buster-backports 让您有机会使用 440.59。您应该在您的存储库中添加向后移植,并且从那里强制 nvidia 驱动程序。
问候。
-编辑-没有读完所有内容!
您尝试了向后移植,但还apt update
不够。你必须发出信号APT 你想要向后移植的版本这个包的。
apt -t buster-backports install nvidia-driver
答案2
经过1周的多次重新安装后,我决定放弃。我卸载这些驱动程序,去自定义笔记本电脑的其他部分更改配置、编辑 grub、电源管理。
令人惊讶的是,不知从何而来。我跑neofetch
paraduxos@ASUSDOGE:~$ neofetch
_,met$$$$$gg. paraduxos@ASUSDOGE
,g$$$$$$$$$$$$$$$P. ------------------
,g$$P" """Y$$.". OS: Debian GNU/Linux 10 (buster) x86_64
,$$P' `$$$. Host: ROG Strix G531GT_G531GT 1.0
',$$P ,ggs. `$$b: Kernel: 4.19.0-8-amd64
`d$$' ,$P"' . $$$ Uptime: 5 mins
$$P d$' , $$P Packages: 2404 (dpkg)
$$: $$. - ,d$$' Shell: bash 5.0.3
$$; Y$b._ _,d$P' Resolution: 1920x1080
Y$$. `.`"Y$$$$P"' WM: i3
`$$b "-.__ Theme: Adwaita [GTK3]
`Y$$ Icons: Adwaita [GTK3]
`Y$$. Terminal: xfce4-terminal
`$$b. Terminal Font: DejaVuSansMono Nerd Font Mono 12
`Y$$b. CPU: Intel i7-9750H (12) @ 4.500GHz
`"Y$b._ GPU: NVIDIA NVIDIA Corporation Device 1f91
`""" GPU: Intel UHD Graphics 630
Memory: 983MiB / 7828MiB
paraduxos@ASUSDOGE:~$ nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1f91] (rev a1)
Checking card: NVIDIA Corporation Device 1f91 (rev a1)
Your card is supported by the default drivers.
It is recommended to install the
nvidia-driver
package.
我不确定会发生什么。但当时和现在的不同之处在于:
sudoedit /etc/default/grub
# This line
GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=Linux quiet splash"
# quit and run
sudo update-grub
# then reboot
- 我改用 Polybar 而不是 i3-bar
- 我安装了 Thermald、tlp tlp-rdw、powertop(卸载)
- 有些配置我不确定是哪一个。
我认为这是因为GRUB
但我不想证明这一点。 (哈哈)对于那些发现这个的人,你可以尝试添加acpi_osi=Linux
到你的GRUB
答案3
基于什么对我有用上面user4089的回答对于 GTX 1650sdebian buster
或超级是
添加到`/etc/apt/sources.list/
# Backports repository
deb http://deb.debian.org/debian buster-backports main contrib non-free # available after buster release
然后
sudo apt-get -t buster-backports install firmware-misc-nonfree
重新启动并工作!
答案4
我切换到 Windows 10 还是检测不到。所以我把我的笔记本电脑转到华硕商店。
结果发现是硬件问题。我的主板坏了。
现在是工作了。