ubuntu 设置上下双屏

ubuntu如何实现双屏显示

ubuntu设置主屏和副屏

参考上面两个博客,找到电脑屏幕和拓展屏幕代号,用xrandr(查看显示屏设置)

yeqiuyi@yeqiuyi-hp:~$ xrandr

运行结果:

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 294mm x 165mm
   1920x1080     60.01*+  59.97    59.96    59.93    40.00  
   1680x1050     59.95    59.88  
   ...
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 344mm x 195mm
   1920x1080     60.00 +  60.00*   50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   ...
   720x400       70.08  

所以我的电脑屏幕是eDP-1,拓展屏幕是DP-2

yeqiuyi@yeqiuyi-hp:~$ xrandr--output eDP-1--top-of DP-2--auto

运行结果:

xrandr: unrecognized option '--top-of'
Try 'xrandr --help' for more information.

看来用top不行!查看xrandr的帮助信息:

yeqiuyi@yeqiuyi-hp:~$ xrandr --help

运行结果:

usage: xrandr [options]
  where options are:
  --display <display> or -d <display>
  --help
  -o <normal,inverted,left,right,0,1,2,3>
            or --orientation <normal,inverted,left,right,0,1,2,3>
  -q        or --query
  -s <size>/<width>x<height> or --size <size>/<width>x<height>
  -r <rate> or --rate <rate> or --refresh <rate>
  -v        or --version
  -x        (reflect in x)
  -y        (reflect in y)
  --screen <screen>
  --verbose
  --current
  --dryrun
  --nograb
  --prop or --properties
  --fb <width>x<height>
  --fbmm <width>x<height>
  --dpi <dpi>/<output>
  --output <output>
      --auto
      --mode <mode>
      --preferred
      --pos <x>x<y>
      --rate <rate> or --refresh <rate>
      --reflect normal,x,y,xy
      --rotate normal,inverted,left,right
      --left-of <output>
      --right-of <output>
      --above <output>
      --below <output>
      --same-as <output>
      --set <property> <value>
      --scale <x>x<y>
      --scale-from <w>x<h>
      --transform <a>,<b>,<c>,<d>,<e>,<f>,<g>,<h>,<i>
      --off
      --crtc <crtc>
      --panning <w>x<h>[+<x>+<y>[/<track:w>x<h>+<x>+<y>[/<border:l>/<t>/<r>/<b>]]]
      --gamma <r>:<g>:<b>
      --brightness <value>
      --primary
  --noprimary
  --newmode <name> <clock MHz>
            <hdisp> <hsync-start> <hsync-end> <htotal>
            <vdisp> <vsync-start> <vsync-end> <vtotal>
            [flags...]
            Valid flags: +HSync -HSync +VSync -VSync
                         +CSync -CSync CSync Interlace DoubleScan
  --rmmode <name>
  --addmode <output> <name>
  --delmode <output> <name>
  --listproviders
  --setprovideroutputsource <prov-xid> <source-xid>
  --setprovideroffloadsink <prov-xid> <sink-xid>
  --listmonitors
  --listactivemonitors
  --setmonitor <name> {auto|<w>/<mmw>x<h>/<mmh>+<x>+<y>} {none|<output>,<output>,...}
  --delmonitor <name>

原来是用below,成了。

yeqiuyi@yeqiuyi-hp:~$ xrandr--output eDP-1--below DP-2--auto
  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Ubuntu 18.04上使用双屏显示时遇到了"failed to connect to nvidia drivers"的错误。这个问题通常是由于驱动或系统版本不兼容导致的。在你提供的引用中,提到了一种解决方法是将Ubuntu系统升级至18.04以上,并更新内核版本至5.4以上。 为了解决这个问题,你可以按照以下步骤进行操作: 1. 首先,将你的Ubuntu系统升级至18.04。可以通过升级软件和移除无用软件来完成这一步骤。 2. 接下来,安装NVIDIA驱动。可以使用命令"ubuntu-drivers devices"来查看显卡型号,并使用命令"sudo ubuntu-drivers autoinstall"来安装推荐的驱动。 3. 最后,重新尝试运行命令"sudo nvidia-smi"来检查驱动是否连接成功。 通过这些步骤,你应该能够解决Ubuntu 18.04双屏显示的问题。希望对你有帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Ubuntu18.04 N卡 双屏显示](https://blog.csdn.net/qq_45871272/article/details/108393759)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [ubuntu实现双屏显示之系统升级到18.04,内核升级至5.4版本](https://blog.csdn.net/qq_36105011/article/details/123075110)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值