[Solved]Changing screen resolution

本文转载于  http://forums.gentoo.org/viewtopic-t-916156.html

 

 

作者留言
skaveria
n00b
n00b


注册时间: 2011-11-23
帖子: 10
帖子发表于: Sun Mar 11, 2012 8:18 pm    发表主题: [Solved]Changing screen resolution引用并回复

I installed gentoo and after a lot of trial and error i got X and awesomeWM working. Im using a laptop with intel graphics and I would like to know how to change the screen resolution. Ive tried following a guide on the wiki and it asks to use a tool called xrandr to identify my monitor name and device name, and im not sure how to do that. Any help would be appreciated thanks

最后进行编辑的是 skaveria on Mon Mar 12, 2012 3:54 pm, 总计第 1 次编辑
返回页首
阅览会员资料 发送站内信件
GENERiCfr
n00b
n00b


注册时间: 2012-02-13
帖子: 9
帖子发表于: Sun Mar 11, 2012 8:55 pm    发表主题: 引用并回复

Look at the "help" and "man" pages;
代码:
xrandr --help
man xandr


now type:
代码:
xrandr -q


You should get some output. Mine was:
代码:

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0 
   1152x864       75.0 
   1024x768       75.1     70.1     60.0 
   832x624        74.6 
   800x600        72.2     75.0     60.3     56.2 
   640x480        72.8     75.0     66.7     60.0 
   720x400        70.1 
S-video disconnected (normal left inverted right x axis y axis)


and for example I want to change resolution to 1024x768@70Hz:

代码:
xrandr --output DVI-0 --mode 1024x768--rate 70


That's all.
返回页首
阅览会员资料 发送站内信件
skaveria
n00b
n00b


注册时间: 2011-11-23
帖子: 10
帖子发表于: Sun Mar 11, 2012 9:02 pm    发表主题: 引用并回复

xrandr -q
代码:
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1368 x 768
default connected 1024x768+0+0 0mm x 0mm
   1024x768        0.0*
   1368x768_60.00   59.9


i set the 1368 one up from a guide i read but when i try setting it as the output with
代码:
xrandr --output default --mode "1368x768_60.00"

OR
代码:
xrandr --output default --mode 1368x768_60.00 --rate 60

I get
代码:
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed[c
返回页首
阅览会员资料 发送站内信件
GENERiCfr
n00b
n00b


注册时间: 2012-02-13
帖子: 9
帖子发表于: Mon Mar 12, 2012 2:56 pm    发表主题: 引用并回复

delete the 1368x768_60.00, and perform everything again.

1.
代码:
gtf 1368 768 60
You should get some output. Mine was:
代码:
 # 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
  Modeline "1368x768_60.00"  85.86  1368 1440 1584 1800  768 769 772 795  -HSync +Vsync

2. Define new mode. My example:
代码:
xrandr --newmode "1368x768_60.00"  85.86  1368 1440 1584 1800  768 769 772 795  -HSync +Vsync
Of course, you'll got different numbers there.
3. Add new mode:
代码:
xrandr --addmode default 1368x768_60.00

4. And the last step:
代码:
xrandr --output default --mode 1368x768_60.00
返回页首
阅览会员资料 发送站内信件
skaveria
n00b
n00b


注册时间: 2011-11-23
帖子: 10
帖子发表于: Mon Mar 12, 2012 3:53 pm    发表主题: 引用并回复

I figured it out. the reason i couldnt get my native resolution was because i was using vesa. I recompiled with intel support and now things are working great.
返回页首
阅览会员资料 发送站内信件
carlosalvatore
n00b
n00b


注册时间: 2011-11-22
帖子: 2
帖子发表于: Sun Jun 10, 2012 8:12 pm    发表主题: 引用并回复

Hi, I bought a PCIe Video Card ASUS HD 5450 (ATI Radeon HD 5xxx) and I'm trying to change resolution to 1600x1200 but xrandr gives me the error message:
代码:
xrandr: Configure crtc 0 failed


I used this commands:
代码:
cvt 1600 1200 75
# 1600x1200 74.98 Hz (CVT 1.92M3) hsync: 94.09 kHz; pclk: 204.75 MHz
Modeline "1600x1200_75.00"  204.75  1600 1720 1888 2176  1200 1203 1207 1255 -hsync +vsync

代码:
xrandr --newmode 1600x1200 204.75  1600 1720 1888 2176  1200 1203 1207 1255 -hsync +vsync
xrandr --addmode CRT1 1600x1200
xrandr --output CRT1 --mode 1600x1200 --rate 75


I'm using fglrx.

my Xorg.conf.
引用:
http://pastebin.com/j06HW6K1

my /var/log/Xorg.0.log
引用:
http://pastebin.com/7ApDnsDu


I have also tried with other refresh rates. My Monitor supports the resolution, it was working before I bought the PCIe card, back then I used the built in card (Radeon HD 3300).

Thank you.
_________________
Cowabunga!

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值