Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1167955
  • 博文数量: 341
  • 博客积分: 12744
  • 博客等级: 上将
  • 技术积分: 4040
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-12 09:34
文章分类
文章存档

2014年(1)

2013年(10)

2012年(17)

2011年(63)

2010年(102)

2009年(107)

2008年(41)

分类: LINUX

2009-02-05 17:34:46

其实很简单,参照arch的处理方法(lenny内核中默认uvesafb是模块)
其他发行版可以一样处理(前提是需要内核编译进uvesafb)

首先安装v86d:
apt-get install v86d

然后下载两样东西:
wget
wget

解压后打入补丁:
tar xvf 915resolution-0.5.3.tar.gz
cd 915resolution-0.5.3
patch -Np1 -i ../915resolution-0.5.3-965GM.patch

编译
LDFLAGS="-s -static" make
cp dump_bios /usr/sbin/
cp 915resolution /usr/sbin/

然后到/etc/init.d/下写两个启动脚本:

vim /etc/init.d/915resolution

写入(这个是抄的arch的脚本):
#!/bin/bash

case "$1" in
  start)
stat_busy "Patching the VBIOS"
/usr/sbin/915resolution $MODE $RESOLUTION >/dev/null
if [ $? -gt 0 ]; then
stat_fail
else
stat_done
fi
;;
stop)
/bin/true
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac

运行下面一行:
chmod +x /etc/init.d/915resolution


还有一个文件:
vim /etc/init.d/uvesafb

写入:
915resolution 5c 1280 800 32
modprobe uvesafb mode=1280x800-32@60

运行下面一行:
chmod +x /etc/init.d/uvesafb

sysv-rc-conf(没有装就apt-get install sysv-rc-conf装一下)
选上915solution uvesafb的 2 3 4 5项
(当然你要自己做链接也可以)

最后
vim /boot/grub/menu.lst
删除debian启动时的vga选项

重启试试?一些OK





阅读(820) | 评论(0) | 转发(0) |
0

上一篇:(zz)Linux术语全称

下一篇:grub引导freebsd

给主人留下些什么吧!~~