LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 13774|回复: 23

怎样在fedora3下把分辩率调到1280x800?(已解决^_^)

[复制链接]
发表于 2005-4-25 00:14:07 | 显示全部楼层 |阅读模式
我的笔记本的最佳分辩率是1280x800,但在fedora3下只能用1024*768,我选的显示器是LCD Panel 1280x800,但没有1280x800的分辩率可选。
    我用gtf得到的结果是
[jiushen@leon ~]$ gtf 1280 800 60
  # 1280x800 @ 60.00 Hz (GTF) hsync: 49.68 kHz; pclk: 83.46 MHz
  Modeline "1280x800_60.00"  83.46  1280 1344 1480 1680  800 801 804 828  -HSync +Vsync
---------------------------------------------------
还有855resolution我看到半天也试了半天不知道到底怎么用。
---------------------------------------------------
我的/etc/X11/xorg.conf如下:
[root@leon ~]# cat /etc/X11/xorg.conf
# Xorg configuration created by system-config-display

Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Synaptics" "AlwaysCore"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "synaptics"
        Load  "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#       Option  "Xleds"         "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#       Option  "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#       Option  "XkbModel"      "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#       Option  "XkbModel"      "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#       Option  "XkbLayout"     "de"
# or:
#       Option  "XkbLayout"     "de"
#       Option  "XkbVariant"    "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#       Option  "XkbOptions"    "ctrl:swapcaps"
# Or if you just want both to be control, use:
#       Option  "XkbOptions"    "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"
        Identifier  "Synaptics"
        Driver      "synaptics"
        Option      "Device" "/dev/input/mice"
        Option      "rotocol" "auto-dev"
        Option      "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "LCD Panel 1280x800"
        HorizSync    31.5 - 90.0
        VertRefresh  60.0 - 60.0
        Option      "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
        VendorName  "Videocard vendor"
        BoardName   "Intel 852"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024" "1280x960" "1024x768" "800x600" "640x480"

        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection
----------------------------------------
有搞定的大侠帮个忙,多谢!!!
发表于 2005-4-25 00:43:36 | 显示全部楼层
试一试把Modes "1280x1024" "1280x960" "1024x768" "800x600" "640x480"项中的“1280x960”改成“1280x800,或直接添加!
回复 支持 反对

使用道具 举报

发表于 2005-4-25 09:07:40 | 显示全部楼层
首先确认你的显示芯片是不是intel的,855resolution只能对intel芯片有效。
然后,把你算出来的modeline加到X配置文件里去。
下载855resolution,编译、安装,然后运行 855resolution -l 看看显示结果,例如:

  1. Mode 30 : 640x480, 8 bits/pixel
  2. Mode 32 : 800x600, 8 bits/pixel
  3. Mode 34 : 1024x768, 8 bits/pixel
  4. Mode 38 : 1280x1024, 8 bits/pixel
  5. Mode 3a : 1600x1200, 8 bits/pixel
  6. Mode 3c : 1280x800, 8 bits/pixel
  7. Mode 41 : 640x480, 16 bits/pixel
  8. Mode 43 : 800x600, 16 bits/pixel
  9. Mode 45 : 1024x768, 16 bits/pixel
  10. Mode 49 : 1280x1024, 16 bits/pixel
  11. Mode 4b : 1600x1200, 16 bits/pixel
  12. Mode 4d : 1280x800, 16 bits/pixel
  13. Mode 50 : 640x480, 32 bits/pixel
  14. Mode 52 : 800x600, 32 bits/pixel
  15. Mode 54 : 1024x768, 32 bits/pixel
  16. Mode 58 : 1280x1024, 32 bits/pixel
  17. Mode 5a : 1600x1200, 32 bits/pixel
  18. Mode 5c : 1920x1440, 32 bits/pixel
  19. Mode 7c : 1280x801, 8 bits/pixel
  20. Mode 7d : 1280x801, 16 bits/pixel
  21. Mode 7e : 1280x801, 32 bits/pixel
复制代码

选择一个你永远用不到的显示模式,例如5c,作为修改对象。
startx之前先运行 855resolution 5c 1280 800
再用 855resolution -l 命令看结果,假如显示成:

  1. Mode 30 : 640x480, 8 bits/pixel
  2. Mode 32 : 800x600, 8 bits/pixel
  3. Mode 34 : 1024x768, 8 bits/pixel
  4. Mode 38 : 1280x1024, 8 bits/pixel
  5. Mode 3a : 1600x1200, 8 bits/pixel
  6. Mode 3c : 1280x800, 8 bits/pixel
  7. Mode 41 : 640x480, 16 bits/pixel
  8. Mode 43 : 800x600, 16 bits/pixel
  9. Mode 45 : 1024x768, 16 bits/pixel
  10. Mode 49 : 1280x1024, 16 bits/pixel
  11. Mode 4b : 1600x1200, 16 bits/pixel
  12. Mode 4d : 1280x800, 16 bits/pixel
  13. Mode 50 : 640x480, 32 bits/pixel
  14. Mode 52 : 800x600, 32 bits/pixel
  15. Mode 54 : 1024x768, 32 bits/pixel
  16. Mode 58 : 1280x1024, 32 bits/pixel
  17. Mode 5a : 1600x1200, 32 bits/pixel
  18. Mode 5c : 1280x800, 32 bits/pixel
  19. Mode 7c : 1280x801, 8 bits/pixel
  20. Mode 7d : 1280x801, 16 bits/pixel
  21. Mode 7e : 1280x801, 32 bits/pixel
复制代码

注意5c部分,已经变成1280x800,说明855resolution设置成功。

把 855resolution 5c 1280 800 添加到/etc/rc.d/rc.local里面,让它在每次重启时自动运行。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-25 10:25:25 | 显示全部楼层
2楼和方法我试过了,不过还是在system settings->display里还是找不到1280x800的选项
楼上的方法我也用过了,但还是没有用。855resolution覆盖掉一个模式后有时按Ctrl+Alt+Backspace后就显示到800*600,一开始还出现过显示1024*768没有拉伸的情况(多余的地方是黑的),有时就启动不了X,只能重启计算机。
在fedora3下面X的配置是xorg.conf吗?好像和以前redhat的不同,没有填modeline的地方。modeline应该填在哪里呢?
我的显卡是intel 852的。
现在我的解析度一直还是1024*768拉伸的情况。这从截全屏图的解析度可以看出来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-25 10:57:27 | 显示全部楼层
这是我执行855resolution的过程,重启X后有时黑屏有时还是1024x768。
---------------------------------------------------------------
[root@leon jiushen]# /usr/sbin/855resolution -l
855resolution version 0.3, by Alain Poirier

Chipset: 855GM
VBIOS type: 2
VBIOS Version: 3276

Mode 30 : 640x480, 8 bits/pixel
Mode 32 : 800x600, 8 bits/pixel
Mode 34 : 1024x768, 8 bits/pixel
Mode 38 : 1280x1024, 8 bits/pixel
Mode 3a : 1600x1200, 8 bits/pixel
Mode 3c : 1920x1440, 8 bits/pixel
Mode 41 : 640x480, 16 bits/pixel
Mode 43 : 800x600, 16 bits/pixel
Mode 45 : 1024x768, 16 bits/pixel
Mode 49 : 1280x1024, 16 bits/pixel
Mode 4b : 1600x1200, 16 bits/pixel
Mode 4d : 1920x1440, 16 bits/pixel
Mode 50 : 640x480, 32 bits/pixel
Mode 52 : 800x600, 32 bits/pixel
Mode 54 : 1024x768, 32 bits/pixel
Mode 58 : 1280x1024, 32 bits/pixel
Mode 5a : 1600x1200, 32 bits/pixel
Mode 5c : 1920x1440, 32 bits/pixel
Mode 60 : 512x771, 8 bits/pixel
Mode 61 : 512x771, 16 bits/pixel
Mode 62 : 512x771, 32 bits/pixel
Mode 63 : 512x1027, 8 bits/pixel
Mode 64 : 512x1027, 16 bits/pixel
Mode 65 : 512x1027, 32 bits/pixel
Mode 66 : 376x772, 8 bits/pixel
Mode 67 : 376x772, 16 bits/pixel
Mode 68 : 376x772, 32 bits/pixel
Mode 69 : 376x1028, 8 bits/pixel
Mode 6a : 376x1028, 16 bits/pixel
Mode 6b : 376x1028, 32 bits/pixel
[root@leon jiushen]# /usr/sbin/855resolution 5c 1280 800
855resolution version 0.3, by Alain Poirier

Chipset: 855GM
VBIOS type: 2
VBIOS Version: 3276

** Patch mode 5c to resolution 1280x800 complete
[root@leon jiushen]# /usr/sbin/855resolution -l
855resolution version 0.3, by Alain Poirier

Chipset: 855GM
VBIOS type: 2
VBIOS Version: 3276

Mode 30 : 640x480, 8 bits/pixel
Mode 32 : 800x600, 8 bits/pixel
Mode 34 : 1024x768, 8 bits/pixel
Mode 38 : 1280x1024, 8 bits/pixel
Mode 3a : 1600x1200, 8 bits/pixel
Mode 3c : 1280x800, 8 bits/pixel
Mode 41 : 640x480, 16 bits/pixel
Mode 43 : 800x600, 16 bits/pixel
Mode 45 : 1024x768, 16 bits/pixel
Mode 49 : 1280x1024, 16 bits/pixel
Mode 4b : 1600x1200, 16 bits/pixel
Mode 4d : 1280x800, 16 bits/pixel
Mode 50 : 640x480, 32 bits/pixel
Mode 52 : 800x600, 32 bits/pixel
Mode 54 : 1024x768, 32 bits/pixel
Mode 58 : 1280x1024, 32 bits/pixel
Mode 5a : 1600x1200, 32 bits/pixel
Mode 5c : 1280x800, 32 bits/pixel
Mode 60 : 512x771, 8 bits/pixel
Mode 61 : 512x771, 16 bits/pixel
Mode 62 : 512x771, 32 bits/pixel
Mode 63 : 512x1027, 8 bits/pixel
Mode 64 : 512x1027, 16 bits/pixel
Mode 65 : 512x1027, 32 bits/pixel
Mode 66 : 376x772, 8 bits/pixel
Mode 67 : 376x772, 16 bits/pixel
Mode 68 : 376x772, 32 bits/pixel
Mode 69 : 376x1028, 8 bits/pixel
Mode 6a : 376x1028, 16 bits/pixel
Mode 6b : 376x1028, 32 bits/pixel
----------------------------------------------------------
我现在就少了添加modeline, 不知道添加在哪里。
回复 支持 反对

使用道具 举报

发表于 2005-4-25 11:27:33 | 显示全部楼层

  1. Section "Monitor"
  2.         Identifier   "Monitor0"
  3.         VendorName   "Monitor Vendor"
  4.         ModelName    "LCD Panel 1280x800"
  5.         HorizSync    31.5 - 90.0
  6.         VertRefresh  60.0 - 60.0
  7.         Option      "dpms"
  8. [color=red]        Modeline "1280x800_60.00"  83.46  1280 1344 1480 1680  800 801 804 828
  9.         -HSync +Vsync[/color]
  10. EndSection
复制代码


  1. Section "Screen"
  2.         Identifier "Screen0"
  3.         Device     "Videocard0"
  4.         Monitor    "Monitor0"
  5.         DefaultDepth     24
  6.         SubSection "Display"
  7.                 Viewport   0 0
  8.                 Depth     16
  9.                 Modes    "800x600" "640x480"
  10.         EndSubSection
  11. [color=red]        SubSection "Display"
  12.                 Depth           24
  13.                 Modes           "1280x800"
  14.         EndSubSection[/color]
  15. EndSection
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-4-25 11:51:59 | 显示全部楼层
既然是宽屏的,就要在显示器上选择宽的LCD
。然后就选择相近的,或修改X配置
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-25 14:30:42 | 显示全部楼层
搞定了!!!现在在fedora下面用1280x800的解析度真是。。。wahahahahah....一个字--爽呆了
首先要多谢windrose大大^_^!
现在我的xorg.conf的配置如下:
Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "LCD Panel 1280x800"
        HorizSync    31.5 - 90.0
        VertRefresh  60.0 - 60.0
        Modeline "1280x800_60.00"  83.46  1280 1344 1480 1680  800 801 804 828  -HSync +Vsync
        Option      "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
        VendorName  "Videocard vendor"
        BoardName   "Intel 852"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "1280x800" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x800" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
红色为我添加的部分。保存后重启就搞定了,好像没用到855resolution。
-------------------------------------
另外我还参照了redhat官方网上的一个帖子的回复,和windrose大大讲得一样。
如下:
For the modeline, in a terminal type:
gtf 1280 800 60
This should result in something like:
Modeline "1280x800_60.00" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
Paste the output of this command (as a single line) into your /etc/X11/xorg.conf file under the "Monitor" section. You should also rename the modeline from "1280x800_60.00" to "1280x800".
Next, you'll need to add "1280x800" to each of the subsections under the "Screen" section.
-----------------------------------------------
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-26 11:01:32 | 显示全部楼层
再问个调整控制台分辨率的问题
看到一个帖子
quote"对于喜欢在控制台下读写代码的朋友来说,linux默认的分辨率可能会显得太低,一个屏幕显示不了几行代码,如果把分辨率调高点,看起来会爽点。
grub:
编辑/boot/grub/grub.conf文件,在kernel /boot/vmlinuzxxxxx xxxxxxxxxxxx这行后面加上vga=0x31?也就是
kernel /boot/vmlinuzxxxxx xxxxxxxxxxxx vga=0x31?
lilo:
好像添加一行vga=0x31?就行了(很久没用lilo了,有点记不起来啦)
其中0x31?是设定具体分辨率值,可参考一下列表,不要乱设
1280x1024是0x31a
1024x768是0x317
800x600是0x314
640x480是0x311
"
---------------------------------------------------------
我想调grub.conf,1280x800应该是0x多少?如何得到这些值呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-26 14:16:58 | 显示全部楼层
找来找去得到这个结论
------------------------------------------
As far as i know , no. Maybe if you tried do some of the fb hacks to get a higher refresh rate, you might be able, but from my research fb only does the standard 4:3 ratios, not the 16:9 or 16:10. Trust me, I wish it could. My monitor runs at 1280x768 natively, and I have searched and found nothing.
-------------------------------------------
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表