Intel graphics (正體中文)

From ArchWiki
Revision as of 15:42, 7 January 2010 by Yanganto (Talk | contribs) (KMS (核心模式設定))

Jump to: navigation, search

Template:Article summary start Template:Article summary text Template:Article summary heading Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:Article summary end



自從 Intel 支援開源驅動後,Intel的顯卡大致上為接上即啟用。


一般常把"Intel 945G"和"Intel GMA 945"視為相同的顯示晶片。實際上,"intel GMA 945"並不存在。Intel使用"GMA"代表繪圖核心,即GPU。任何不含"GMA"的都是主機板晶片,像"915G","945GM","G45"都屬主機板晶片。


  • Intel GMA 900 (910, 915)
  • Intel GMA 950 (945)

"i810"(主機板晶片,非GPU)是非常舊的晶片,其製造時間比9xx主機板晶片系列還早。相同的,910, 915, 945晶片的名字可能會在前面加個"i"



  • intel (最新且最佳的)
  • intel-legacy (過時的,無法與新的 xorg-server 相容)



須: Xorg

# pacman -S xf86-video-intel

# pacman -S xf86-video-intel-legacy


自從有了HAL之後,便無須任何的配置即可使用。 從Xorg input hotplugging了解更多


# gpasswd -a username video

KMS (核心模式設定)

KMS以藉由 i915 DRM 驅動程式來支援Intel的晶片,同時核心版本2.6.32預設為啟用。

重要!! 在啟動KMS的狀況下,你必須從/boot/grub/menu.lst的核心命令列中移除任何 "vga=" or "video=" 參考值。

Early start

KMS is typically initialized after the kernel is bootstrapped. It is possible however to enable KMS during bootstrap itself, allowing the entire boot process to run at native resolution. There are currently two methods to achieve this:

Simplest method

This method is simple because it enables KMS in the bootloader. Using this method it is easy to disable KMS temporarily if/when necessary.

Edit the boot loader configuration file and append "i915.modeset=1" to your "kernel" line. For example, users of GRUB would add the option to /boot/grub/menu.lst:

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/... i915.modeset=1
initrd /boot/kernel26.img

Now add the intel_agp and i915 modules to the MODULES line in /etc/mkinitcpio.conf:

MODULES="intel_agp i915"

Finally, regenerate the initramfs:

$ sudo mkinitcpio -p kernel26

If you ever want to disable KMS, you can simply you can change the "i915.modeset" option to 0 in grub, without rebuilding anything. For this, turn on the machine and when you see grub's screen, hit a key to disable the timeout. Select the kernel you want to boot (probably the one already selected) and hit "e" for "edit". Now select the line starting with "kernel" and hit again "e" for editing. You can now edit the i915.modeset option and disable KMS by setting it to 0. Press enter and then "b" to boot. Note that this will be temporary, so at next reboot it will be enable again.

Alternative method

This requires rebuilding the initramfs each time you want to disable/enable KMS so can be tricky if for some reason KMS prevents the machine from booting.

First, add the following line to /etc/modprobe.d/modprobe.conf:

options i915 modeset=1

To disable mode-setting with this alternative method (in case something is broken), just comment that line and regenerate the initramfs again.

Secondly, change the MODULES and FILES lines in /etc/mkinitcpio.conf to look like this (Don't actually add the "...", it stands for what was there before):

MODULES="[...] intel_agp i915"
FILES="[...] /etc/modprobe.d/modprobe.conf"

Now regenerate the initramfs:

$ sudo mkinitcpio -p kernel26

See also