ThinkPad X1 Extreme隐士 Ubuntu 18.04装机双显卡配置解决方法

0. 双显卡配置

1. ThinkPad X1 Extreme 双显卡配置
集成显卡:Intel Corporation UHD Graphics 630 (Mobile)

独立显卡:NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile]

2. 问题描述

ThinkPad X1 BIOS提供两种display选项:Hybrid和Discrete。安装Ubuntu 18.04时需将其设置为Discrete。Ubuntu其他版本没试过,或许也存在该问题。然而安装完成后默认的显卡为NVIDIA独显。打开terminal输入

    $lspci | grep VGA

显示只有一个NVIDIA显卡

    01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)

说明Intel集成显卡并未被加载。该显卡配置方式虽然并不影响正正常使用和开发。但出于硬件资源充分利用的考量,尤其是在模型训练时,让独显及承担display又承担computing的任务,而集显全程睡大觉显然不合理。 因此,如下的GPU分配更为合理:

    Intel UHD Graphics 630 --- Display

    NVIDIA GeForce GTX 1050 Ti --- Computing

关于这个坑Baidu Google了一大圈,提问的多回复的少,而且回复多只言片语碎片化,索性自己的填吧。如下方法在自己机器上亲测可用,如有细节问题可以自微调一下。

3. 解决方案

a) Change the graphics profile to Intel using the prime-select tool:

    $sudo prime-select intel

If prime-select is not installed, run follow code first.

    $sudo apt install nvidia-prime

    $sudo systemctl disable nvidia-fallback.service

b) X server must have a .conf file somewhere telling it to try out the Intel graphics driver when it’s attempting to set up the display. Put the following in /usr/share/X11/xorg.conf.d/20-intel.conf:

    Section "Device"
	        Identifier "Intel Integrated Driver"
	        Driver "intel"
    EndSection

c) Block default discrete GPU while booting by adding

    nouveau.blacklist=1

in /etc/default/grub in the line GRUB_CMD_LINUX_DEFAULT. Or you can run the following code for convenience:

    $sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="nouveau.blacklist=1 /g' /etc/default/grub

d) Renew the GRUB config list for booting:

    $sudo update-grub

e) Install bbswitch-dkms

    $sudo apt install bbswitch-dkms)

,and add bbswitch to /etc/modules as below:

    bbswitch load_state=0

f) Blacklist default NVIDIA by appending following into/etc/modprobe.d/blacklist.conf

    blacklist nouveau

g) Restart laptop, re-config the display in BIOS while booting, by switching the Display from “Discrete” to “Hybrid”.

h) The Display Graphics of the laptop should be the Intel UHD now. You could check by:

    $lspci | grep VGA

,the result is supposed to be two as below:

    00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
    01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)

, or you can also see from the Details of Settings of the system as below:
在这里插入图片描述

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 10
    评论
对于安装Ubuntu 18.04的操作,可以参考以下步骤: 1. 首先,确认你的机器是否自带Linux Ubuntu 20.04系统。如果是的话,你可以跳过安装系统的步骤。如果没有预装系统,你需要前往Ubuntu官网(www.ubuntu.com)下载镜像文件。 2. 下载完镜像文件后,你可以选择将其刻录到光盘(ISO)或制作成引导U盘。这些都是用于安装系统的引导文件。 3. 将光盘或U盘插入计算机,并重启计算机。在引导流程中选择从光盘或U盘启动。 4. 在安装页面中,选择"Install Ubuntu"进行安装。 5. 在"Installation type"选项中,如果是初次安装,选择"Erase disk and install Ubuntu",表示擦除硬盘内容并安装Ubuntu系统。 6. 接下来,按照安装向导的指示进行操作,包括选择时区、键盘布局等。 7. 完成安装后,重新启动计算机,你将进入Ubuntu 18.04系统。 请注意,以上步骤是基于Ubuntu 18.04的安装过程。如果你需要安装其他版本的Ubuntu,可能会有些许差异。 #### 引用[.reference_title] - *1* *2* [ubuntu20.04装机教程](https://blog.csdn.net/LeeKing310/article/details/126845683)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [安装Ubuntu18.04虚拟机](https://blog.csdn.net/WangZijun_1996/article/details/80163507)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值