如何用Debian Bumblebee实现双显示器屏幕扩展?
- By : Will
- Category : Debian-Like
1 前言
一个问题,一篇文章,一出故事。
笔者台式机是集成显卡,为了接多台显示器于是加装了一张NVIDIA显卡,为了实现屏幕扩展,笔者尝试使用Bumblebee服务实现。
2 最佳实践
2.1 安装Bumblebee
apt install bumblebee bumblebee-nvidia
2.2 检查Bumblebee服务
systemctl status bumblebeed.service
正常可见如下显示,
● bumblebeed.service - Bumblebee C Daemon Loaded: loaded (/lib/systemd/system/bumblebeed.service; enabled; preset: enabled) Active: active (running) since Fri 2023-09-08 21:24:23 CST; 2min 58s ago Main PID: 643 (bumblebeed) Tasks: 1 (limit: 14177) Memory: 1.3M CPU: 10ms CGroup: /system.slice/bumblebeed.service └─643 /usr/sbin/bumblebeed #...
服务能正常启动的情况下,如果使用如下命令查看显示设备,
lspci | grep VGA
则可见两个VGA设备,
00:02.0 VGA compatible controller: Intel Corporation 4th Generation Core Processor Family Integrated Graphics Controller (rev 06) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1)
另外一种情况,如果服务器显示如下异常信息,
● bumblebeed.service - Bumblebee C Daemon Loaded: loaded (/lib/systemd/system/bumblebeed.service; enabled; preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Fri 2023-09-08 21:12:51 CST; 30s ago Process: 2468 ExecStart=/usr/sbin/bumblebeed (code=exited, status=1/FAILURE) Main PID: 2468 (code=exited, status=1/FAILURE) CPU: 4ms
如果你使用手动方式执行如下命令启动,
/usr/sbin/bumblebeed
则可见如下错误,
[ 407.037529] [ERROR]No integrated video card found, quitting.
此时如果你使用如下命令检查VGA设备,
lspci | grep VGA
则你会发现系统只检查到一个VGA设备,
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1)
注:此时你可能需要检查连接线,并重新启动你的操作系统
2.3 测试Bumblebee服务
optirun glxgears
双显示器此时会正常显示,但可能会见到如下错误提示,
[ 3045.161964] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d" [ 3045.161996] [ERROR]Aborting because fallback start is disabled.
如果遇到以上错误,你可以尝试使用如下命令,
vim /etc/bumblebee/bumblebee.conf
修改如下参数,
Driver=nouveau
然后重新启动服务使用配置生效,
systemctl restart bumblebeed.service
2.4 自动启动双显示器
echo '/usr/bin/optirun glxgears &> /dev/null' >> /etc/gdm3/PreSession/Default
参阅文档
======================
官方资料
—————-
https://github.com/Bumblebee-Project/Bumblebee
系统供应商的配置方法
———————-
https://wiki.archlinux.org/title/bumblebee
非官方资料
—————-
https://superuser.com/questions/1082617/bumblebee-with-hdmi-on-nvidia-make-usable-both-with-without-connected-monitor
https://askubuntu.com/questions/863696/bumblebee-errorcannot-access-secondary-gpu-error-xorg-ee
http://www.taodudu.cc/news/show-5539301.html?action=onClick
https://www.jianshu.com/p/05e0c82e3e62
https://www.mryunwei.com/321873.html
https://forums.debiancn.org/t/topic/1615/2
没有评论