Ubuntu16.04更新内核和gcc版本——实现双屏显示和Wifi连接

Ubuntu16.04更新内核和gcc版本——实现双屏显示和Wifi连接

一、更新内核版本

thinkbook 15p安装ubuntu16.04 触摸板+无线网卡不能用问题解决

二、更新gcc版本

./arch/x86/include/asm/bug.h:35:22error: expected identifier or ‘(’ before string constant、 如何升级gcc

操作如下:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-9 g++-9
#原版本 设定20为优先级
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 
#新版本 设定50为优先级,高于20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 50 

三、更改xorg.conf内容

ubuntu Nvidia显卡驱动安装后 屏幕不能外接显示(扩展显示)的问题

cd /etc/X11
sudo gedit xorg.conf

添加如下内容:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "None"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

重启电脑即可!

四、致谢

感谢凡人只做一事uuchecknow脱坑diary三位作者的帮助!
在这里一并感谢!

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

袁博特

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值