我有一台 Hp ab555-tx 笔记本电脑,配有 Nvidia G940m 显卡和 Intel HD 显卡。系统默认选择 Intel 显卡,但我想切换到 Nvidia 显卡,但我无法做到。任何有关切换到 Nvidia gpu 的帮助都将非常感激。
一些有用的信息:
运行nvidia-smi
后输出如下图像
运行nvidia-settings
后输出如下图像
更新:删除 linux lite 5.8 并安装 ubuntu 22.04 解决了该问题。
@helloubuntu
sudo prime-select nvidia
返回sudo: prime-select: command not found
。通过安装 nvidia-prime 显示此错误
abhra@abhra-HP-Pavilion-Notebook:~$ sudo apt-get install nvidia-prime Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: fd-find gnome-shell-extension-alt-tab-raise-first-window gnome-shell-extension-always-show-workspaces gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons-ng gnome-shell-extension-pop-shop-details pop-gnome-shell-theme pop-gtk-theme pop-icon-theme pop-shell pop-shell-shortcuts pop-sound-theme pop-theme xwayland Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: gnome-shell-extension-system76-power pop-default-settings pop-session pop-shell-plugin-system76-power system76-power The following NEW packages will be installed: nvidia-prime 0 upgraded, 1 newly installed, 5 to remove and 0 not upgraded. Need to get 0 B/9,960 B of archives. After this operation, 2,915 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 435632 files and directories currently installed.) Removing pop-default-settings (4.0.6~1611854075~20.04~6a2277e) ... Removing 'diversion of /etc/lsb-release to /etc/lsb-release.diverted by pop-default-settings' dpkg-divert: error: rename involves overwriting '/etc/lsb-release' with different file '/etc/lsb-release.diverted', not allowed dpkg: error processing package pop-default-settings (--remove): installed pop-default-settings package pre-removal script subprocess returned error exit status 2 dpkg: too many errors, stopping Errors were encountered while processing: pop-default-settings Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
sudo prime-select nvidia
切换回英特尔
sudo prime-select intel
检查当前选择了哪张卡
prime-select query