分类: LINUX
2009-02-05 17:34:46
#!/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