当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Linux X-Window显卡配置通用解决方法

Unix/Linux
linux查看内存的大小
在linux下写的代码,用的是utf-8,结果拿到XP下运行的时候,所有的中文都成乱码
linux su和sudo命令的区别
linux cron 下的定时执行工具使用技巧
linux 查找进程及终止进程操作的相关命令
redhat linux 安装 gcc编译器
Linux Mplayer播放各种格式的电影
一起回顾一下linux常用命令
Linux 网站项目发布要做哪些配置
linux SSH配合SecureCRT的密匙完美使用方法
GD 编译出错解决方法
Facebook Open Platform编译FAQ
Linux 系统硬盘 优化
linux 挂载详解
linux crontab定时命令
Linux 系统中确保访问三级域名畅通的方法
Linux 特权帐号VS普通帐号
确保Linux系统安全的前提条件 漏洞防护
Linux 监视系统资源使用率
Red Hat Linux上使用BIND建立DNS服务器

Unix/Linux 中的 Linux X-Window显卡配置通用解决方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 25 ::
收藏到网摘: n/a

 
作 者: 阿宁 (2001-05-10 10:03:09)
  许多新显卡一时得不到 XFree86的支持,配置 XWindow一直是个难题。但 Linux 2.2.x的 frame buffer设备可通过 VESA VBE 2.0标准利用显卡的 Super VGA特性,然后配合 XFree86的 frame buffer Server(XF86_FBDev) 就可让你的 XWindow用高分辨率和高/真彩。现在市面上绝大部分新出的显卡都支持VESA 2.0标准。在你的显卡得不到支持之前,这不失为一个好的解决方法。 

  具体实现涉及四方面: 
  1.一个支持 VESA frame buffer的内核; 
  2.建立 frame buffer设备; 
  3.配置 lilo 的启动选项,使内核启动时能切换到指定的显示模式; 
  4.XFree86的 frame buffer Server(XF86_FBDev),以及在 XF86Config中为其配置一个Screen。 

  所需文件: 
  Linux 2.2.x kernel source (2.2.x内核原代码,如果要自行编译内核); 
  XFree86 Framebuffer Server: XF86_FBDev (Turbo Linux中文版,RedHat6.0 CD,ftp.xfree86.org 等地方都能找到); 
  gcc 等编译工具。 

  编译一个支持 VESA frame buffer的内核 

  如果有现成的支持 VESA frame buffer的内核可跳过这一步。如 Madrake 6.0中就带有支持 frame buffer的内核。 

  配置内核编译选项 

  在/usr/src/linux中键入make xconfig(XWindow下),或make menuconfig(命令行下)。 

  与 frame buffer device有关的选项有(其余编译选项请参考其它资料): 

  Code maturity level opetions
  y Prompt for development and/or incomplete codes/drivers
  Console drivers
  y Video mode selection support
  ...
  y Support for frame buffer devices
  ...
  y VESA VGA graphics console
  ...
  y Advance low level driver options
  ... 
  y 8 bpp packed pixels support 
  y 16 bpp packed pixels support
  y 24 bpp packed pixels support 

  编译安装内核: 

  以 root身份登录,键入以下命令: 

  # cd /usr/src/linux
  # make bzImage
  # make modules
  # make modules_install 

  把编译好的内核拷到 /boot目录,文件名可自定,如  

  # cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.5-fb 

  建立 frame buffer设备 

  frame buffer设备的 major为 29,minor 为 0(fb0),32(fb1). . . 224(fb7)。 

  创建fb设备 

  # mknod /dev/fb0 c 29 0 
  .... 

  配置 lilo 的启动选项 

  添加lilo启动配置 

  下面是典型的lilo.conf文件(位于/etc目录) 

  boot = /dev/hda2
  timeout = 500
  prompt
  read-only
  image = /boot/vmlinuz-2.2.x
  label = linux
  root = /dev/hda2
  other = /dev/hda1
  label = dos 

  添加一新配置需添加 image,label,root及配合VESA frame buffer的 vga等四项: 

  boot = /dev/hda2
  timeout = 500
  prompt
  read-only
  image = /boot/vmlinuz-2.2.x
  label = linux
  root = /dev/hda2
  image = /boot/vmlinuz-2.2.5-fb (新编译