人工智能学习笔记(一):ubuntu的分辨率调教
来源:互联网 发布:凡科域名 编辑:程序博客网 时间:2024/05/19 08:37
这个板块是本人专门上路人工智能的笔记稿,当在开发学习的过程中遇到了什么问题,我都会在这里记录,方便你我。
为了学习人工智能,我安装了ubuntu系统,没想到第一个遇到的问题竟然是分辨率没有合适的。我的显示器是dell的,标准分辨率是1920x1080,但是官方提供的分辨率没有合适的,作为一个强迫症,我必须要把这个弄好。下面是我的操作:(以下安装方法转载自http://www.cnblogs.com/jerrybaby/p/7094402.html)
在ubuntu17.04虚拟机上修改自定义大小的桌面屏幕分辨率,使用的命令:cvt,xrandr
0、首先查看下当前已经提供的分辨率设置:xrandr -q
root@xxx:/home/xxx/Desktop# xrandr -q
Screen 0: minimum 1 x 1, current 1504 x 768, maximum 8192 x 8192
Virtual1 connected primary 1504x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
800x600 60.0 + 60.3
2560x1600 60.0
1920x1440 60.0
1856x1392 60.0
1792x1344 60.0
1920x1200 59.9
1600x1200 60.0
1680x1050 60.0
1400x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1360x768 60.0
1280x800 59.8
1152x864 75.0
1280x768 59.9
1024x768 60.0
640x480 59.9
1504x768_60.00 59.9*
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)
红色部分是我标明的,Virtual1 设备名称,后面会用到,maximum 8192 x 8192最大支持分辨率;
1、在终端输入:cvt 1920 1080,显示如下:
root@xxx:/home/xxx/Desktop# cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
红色部分会在--newmode命令中用到,直接复制即可。
2、接下来通过--newmode、--addmode、--output命令即可完成,如下:
root@xxx:/home/xxx/Desktop# xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
root@xxx:/home/xxx/Desktop# xrandr --addmode Virtual1 "1920x1080_60.00"
root@xxx:/home/xxx/Desktop# xrandr --output Virtual1 --mode "1920x1080_60.00"
此时,屏幕分辨率已经改变了。
3.如果想把自定义屏幕分辨率设置为永久有效,在~/.profile文件中追加如下:
vim ~/.profile
cvt 1920 1080
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 "1920x1080_60.00"
xrandr --output Virtual1 --mode "1920x1080_60.00"
:x 保存退出即可。
这里第一次安装ubuntu的同学应该没有vim这个软件,所以也需要我们去安装一下:
ubuntu系统:
普通用户下输入命令:sudo apt-get install vim-gtk
centos系统:
普通用户下输入命令:yum -y install vim*
选择时选择y即可。PS:我在更改设置的时候不小心把里面的任务栏给搞没了,通过恢复才重新正常的,所以大家在使用的时候要保持这个格式:
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n || ture
cvt 1920 1080
xrandr --newmode"1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 "1920x1080_60.00"
xrandr --output Virtual1 --mode"1920x1080_60.00"
即可。亲测有效!
- 人工智能学习笔记(一):ubuntu的分辨率调教
- 人工智能学习笔记(一)
- 人工智能学习笔记(一)
- 人工智能学习笔记(一):简述人工智能的应用领域
- 人工智能学习笔记(一)命题逻辑
- 人工智能笔记(一)
- 人工智能学习笔记-TensorFlow(一)
- 人工智能笔记系列(一)
- ubuntu学习笔记(一)
- UBUNTU学习笔记(一)
- Ubuntu学习笔记(一)
- Ubuntu学习笔记一
- 接地气的“人工智能“学习入门__(一)
- Ubuntu下调教ThinkPad 2014年系列的触摸屏
- 人工智能时代的工作、学习和生活---《人工智能》阅读笔记
- Ubuntu调教手册(软件安装sogou,chrome等)
- 人工智能笔记一
- Ubuntu学习笔记(一)源更新
- Java多线程--并发中集合的使用之ConcurrentSkipListMap
- mybatis逆向工程
- 纯CSS实现文字一行居中,多行左对齐的方法
- TCP/IP 协议
- JMeter性能测试基本过程
- 人工智能学习笔记(一):ubuntu的分辨率调教
- 学习OpenGL-ES: 0
- Vim 使用简单手册
- 存储过程执行模式名、权限
- FCKeditor---html文本编辑器
- 屏幕分屏软件
- python2和python3重定向的区别
- live555 源码分析:ServerMediaSession
- plsql无法进行中文查询