QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2216|回复: 7

Getting higher refresh rates u

[复制链接]
发表于 2003-11-4 13:07:11 | 显示全部楼层 |阅读模式
kuye可以使一下

patch

原贴在:

http://forums.gentoo.org/viewtopic.php?t=71570&postdays=0&postorder=asc&start=0&sid=2f2c351a10d2784db5cdec56f40c1ea4

For quite some time I have seen people posting questions about getting higher-than-standard refresh rates on their vesafb consoles. The usual answer was: 'this is impossible'. While I was installing Gentoo during the last few days, I started to get really angry with my 1024x756@60Hz. It was at this time that I realized 'impossible' isn't exactly the right word here. I came up with a solution - a kernel patch that allows you to change the refresh rate of any VESA graphic mode.

Here is what you will need to get your console up and running at a high refresh rate:
a VBE 3.0 compliant graphic card (most modern cards seem to be VBE 3.0 compatible - my GeForce 2 MX 400 is, and other nVidia cards are too, AFAIK)

Linux Kernel v2.4.x source tree located at /usr/src/linux

some data about your monitor - its maximal vertical/horizontal refresh rate and its bandwidth (pixel clock)

a few minutes to setup everything

and of course the patch itself..

And here is what to do:
Download the patch.

Unpack it somewhere and make sure you have a look at the README file.
Code:
tar -zxvf patch-2.4.x-vesafb-rrc.tar.gz


Copy the actual patchfile to /usr/src/linux.
Code:
cp patch-2.4.x-vesafb-rrc.bz2 /usr/src/linux


Patch your kernel tree.
Code:
cd /usr/src/linux
bzip2 -dc patch-2.4.x-vesafb-rrc.bz2 | patch -p1


Run a script to set the CRTC data (this an equivalent of XFree86 Modelines).
Code:
chmod u+x /usr/src/linux/scripts/vesa_modeline_gen.pl
/usr/src/linux/scripts/vesa_modeline_gen.pl


Enter the data you are asked for (maximum vertical and horizontal refresh rate and monitor/graphic card max bandwidth). You should be able to find these values in your monitor and graphic card documentation or in the Internet [remember: Google is your best friend! ]. If you do everything properly, you will be informed that the generated data has been written to /usr/src/linux/arch/i386/boot/vesafb_modes.h


Recompile your kernel now. If you have everything else configured, you will only need to make bzImage. When the recompilation is finished, move the kernel image to your /boot partition.
Code:
make bzImage
mount /boot
mv /boot/bzImage /boot/bzImage.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot


Find a new mode number. You can use the following table:
Code:
| 320x200 640x480 800x600 1024x768 1280x1024
----+-----------------------------------------------
256 | N/A 0x501 0x503 0x505 0x507
32k | 0x50D 0x510 0x513 0x516 0x519
64k | 0x50E 0x511 0x514 0x517 0x51A
16M | 0x50F 0x512 0x515 0x518 0x51B

Modify your /boot/grub/grub.conf by putting your chosen mode number as the vga= kernel parameter. Here is an example:
Code:
title=Gentoo Linux 1.4
root=(hd0,0)
kernel=(hd0,0)/boot/bzImage root=/dev/hda3 vga=0x518


Note: You can still use all these modes with their standard refresh rates - just change the leading '5' to '3' in the mode number.


Unmount /boot, reboot and enjoy your framebuffer console at a high refresh rate. Mine is running perfectly in 1024x756 @ 85Hz


Note that so far I haven't had the opportunity to test it on boxes other than my own. Your feedback will be welcomed. Have fun!
发表于 2003-11-4 15:07:30 | 显示全部楼层
eeee....for 2.4 的内核。。。

有没有 for 2.6 的?

有空试一下吧。。。
回复

使用道具 举报

 楼主| 发表于 2003-11-4 15:29:07 | 显示全部楼层
那个大牛说他试过2.6-test2,可以。

我这里是gentoo patched 的 test8,黑屏,但刷新率确实是上去了
回复

使用道具 举报

 楼主| 发表于 2003-11-17 15:58:09 | 显示全部楼层
我搞成功了,2.6-test9 :1024x768@87hz 再加上bootsplash 好爽
回复

使用道具 举报

发表于 2003-11-17 18:40:19 | 显示全部楼层
那如果有空的话,请你写一篇自己的心得吧~!

公司里用 trident Blade3D 显卡,只支持到 VESA 1.2 。。。
靠,我旁边的一台用 TNT2 Pro,支持 VESA 3.0 的。。。

…………………………
咳。。。参加工作后天天忙,没时间再照顾 gentoo 了,看样子是时候隐退了。。。
回复

使用道具 举报

发表于 2003-11-18 13:04:10 | 显示全部楼层
如果是ati radeon用户,用这个办法

http://forums.gentoo.org/viewtopic.php?t=71570&postdays=0&postorder=asc&start=100
回复

使用道具 举报

发表于 2004-2-22 14:35:35 | 显示全部楼层
我用的是 Geforce4 MX440 (64M),由于是我自己编译的2.4.25内核,所以我的内核源代码不在/usr/src/linux下.
按照README中安装以后,发现 arch/i386/boot/vesafb_modes.h 中只有一行 "#dummy file"
而无VIDEO_VESAFB_CRTC_DATA
我发现必须修改scripts/vesa_modeline_gen.pl文件,将开头的path变量改为你所安装源代码的目录才行!!
回复

使用道具 举报

发表于 2004-2-23 00:15:58 | 显示全部楼层
[quote:6611dd4136="Kuye"]那如果有空的话,请你写一篇自己的心得吧~!

公司里用 trident Blade3D 显卡,只支持到 VESA 1.2 。。。
靠,我旁边的一台用 TNT2 Pro,支持 VESA 3.0 的。。。

…………………………
咳。。。参加工作后天天忙,没时间再照顾 gentoo 了,看样子是时候隐退了。。。[/quote]

不要吧~大家都是刚开始就在一起玩儿的gentoo~
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-4 03:05 , Processed in 0.168372 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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