Navigation

    蓝鲸ROS机器人论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

    Ubuntu VNC 如何调整分辨率

    技术交流
    1
    1
    4388
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • weijiz
      weijiz last edited by weijiz

      VNC是一个跨平台的远程桌面软件。在Linux环境下是非常不错的选择。但是在连接的时候分辨率默认会比较小,怎么进行设置呢。网上大部分是说用-geometry WxH 进行设置,但是这个对于使用Unity桌面环境的Ubuntu来说并不好用。下面介绍一个利用xrandr的方法。

      xrandr --fb 1920x1080
      

      先试试这个是不是好使的。后面1920x1080是分辨率。请根据自己的分辨率进行调整。

      远程连接过去之后在终端输入

      xrandr -s WIDTHxHEIGHT
      

      其中WIDTH是你的分辨率宽度,HEIGHT是你的分辨率高度
      比如你是1920x1080的分辨率,直接输入

      xrandr -s 1920x1080
      

      就可以了。如果这时候提示了 the resolution is not available in 'Display Settings'
      那么就要先依次输入下面的指令添加对应的分辨率设置

      gtf 1920 1080 60
      xrandr --newmode "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync
      xrandr --addmode VGA1 "1920x1080_60.00"
      xrandr --output VGA1 --mode "1920x1080_60.00"
      

      然后再输入

      xrandr -s 1920x1080
      

      不过上面是1920x1080分辨率的设置,其他分辨率的参数要对应进行调整。

      Update

      不知道为什么再次使用这个方法的时候就不好使了

      xrandr --fb 1920x1080
      

      这个指令是好使的

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2015-2023 BlueWhale community