intel is the open source graphics driver for Intel GMA on-board graphics cards and Intel Arc dedicated graphics cards, starting with the Intel 810.
To choose the right driver, first detect the graphics card. lspci can be used for this task
lspci | grep -i VGA
This should show something like this:
lspci | grep -i VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
The lspci output for the graphics controller may refer to CPU generations, whereas the Feature support table below refers to GPU generations. E.g., “3rd Gen” in the example lspci output above corresponds to “Gen7” in the table below.
|Gen 1||810, 815||No||No||No||No||No||unsupported|
|Gen 2||i830M, 845G, 855GM, 865G||1.3||No||No||No||No||intel i915[table 1]|
|Gen 3||915G/GM, 945G/GM, G31, G/Q33, Q35, Atom D4xx/D5xx/N4xx/N5xx||1.4||No||No||No||No||intel i915[table 1]|
|Gen 4||965G/GM/Q, G35, G41, G/Q43, G/GM/Q45||2.1||2.0||No||G/GM45: MPEG2 only||No||intel|
|Gen 5||Nehalem (Ironlake)||2.1||2.0||No||Yes||No||intel|
|Gen 6||Sandy Bridge||3.3||3.0||No||Yes||No||intel|
|Gen 7||Ivy Bridge, Valley View[table 2]||4.2||3.0||1.1[table 3]||Yes||Partial||intel|
|Gen 7.5||Haswell||4.6||3.2||1.1[table 3]||Yes||Partial||intel|
|Gen 8||Broadwell, Cherryview[table 4]||4.6||3.2||1.1[table 5]||Yes||Yes||intel|
|Gen 9||Skylake, Broxton[table 6]||4.6||3.2||1.1[table 5]||Yes||Yes||intel|
|Gen 9.5||Kaby Lake, Coffee Lake||4.6||3.2||2.1[table 5]||Yes||Yes||intel|
|Gen 11||Ice Lake||4.6||3.2||3.0[table 5]||Yes||Yes||intel|
|Gen 12||Tiger Lake||4.6||3.2||3.0[table 5]||Yes||Yes||intel|
|DG2||Alchemist||4.6||3.2||3.0[table 5]||Yes||Yes||intel[table 7]|
- Mesa 22.0 and higher have dropped support for i915 classic driver
- Valley View is the name of the graphics core associated with the Silvermont microarchitecture (Bay Trail platform, among others)
- Used to be supported by dev-libs/intel-neo, which superseded dev-libs/beignet (Upstream info) as of Q1/2020. Both packages are no longer maintained, thus currently unavailable. dev-libs/intel-neo was superseded by dev-libs/intel-compute-runtime.
- Cherryview is the name of the graphics core associated with the Airmont microarchitecture (Braswell, Cherry Trail platforms, among others)
- Supported by dev-libs/intel-compute-runtime
- Broxton is the name of the graphics core associated with the Goldmont microarchitecture (Apollo Lake platform, among others)
- Requires at least kernel version 6.0.0 and Mesa 22.2
A full list of Intel CPU graphic capabilities is here.
emerge --ask sys-kernel/linux-firmware
Otherwise errors such as the following might appear in dmesg:
kernel: i915 0000:00:02.0: Direct firmware load for i915/skl_dmc_ver1_27.bin failed with error -2 kernel: i915 0000:00:02.0: Failed to load DMC firmware [https://01.org/linuxgraphics/intel-linux-graphics-firmwares], disabling runtime power management.
Display Microcontroller firmware provides support for advanced graphics low-power idle states.
To build the DMC firmware into the kernel binary (in this case,
Device Drivers ---> Generic Driver Options ---> -*- Userspace firmware loading support [*] Include in-kernel firmware blobs in kernel binary (i915/skl_dmc_ver1_27.bin) External firmware blobs to build into the kernel binary (/lib/firmware) Firmware blobs root directory
Device Drivers ---> Generic Driver Options ---> Firmware loader ---> -*- Firmware loading facility (i915/skl_dmc_ver1_27.bin) Build named firmware blobs into the kernel binary (/lib/firmware) Firmware blobs root directory
Including the firmware in-kernel may cause suspend-to-ram to fail, if this is a concern don't include the blob built into the kernel, instead, add the firmware blob into the initramfs.
Graphics µController firmware offloads functions from the host driver. HEVC/H.265 µController firmware improves hardware acceleration of media decoding.
For Gen11+ GPUs, GuC/HuC firmware loads by default since Linux 5.4 (see commit).
For Gen9 and Gen9.5 GPUs, GuC/HuC firmware won't load by default. It is possible to enable loading of the firmware using kernel parameter
i915.enable_guc_loading=1 (before kernel 4.16) or
i915.enable_guc=3 (since kernel 4.16).
HuC firmware (and GuC as a dependent) is needed for AVC/HEVC/VP9 low power encoding bitrate control, including CBR, VBR, etc.. Enabling GuC/HuC firmware loading causes issues in some systems. Disable it if the system experiences freezing (for example, after resuming from hibernation).
To identify the firmware file name, either by checking
kernel: [ 1.294069] [drm] GuC: Failed to fetch firmware i915/kbl_guc_ver9_33.bin (error -2) kernel: [ 1.294079] [drm] HuC: Failed to fetch firmware i915/kbl_huc_ver01_07_1398.bin (error -2)
Or by grepping the
MODULE_FIRMWARE in the kernel source tree:
grep -rB1 'MODULE_FIRMWARE.*SKL' /usr/src/linux/drivers/gpu/drm/i915
/usr/src/linux/drivers/gpu/drm/i915/intel_guc_fw.c-#define I915_SKL_GUC_UCODE GUC_FW_PATH(skl, SKL_FW_MAJOR, SKL_FW_MINOR) /usr/src/linux/drivers/gpu/drm/i915/intel_guc_fw.c:MODULE_FIRMWARE(I915_SKL_GUC_UCODE); -- /usr/src/linux/drivers/gpu/drm/i915/intel_csr.c-#define I915_CSR_SKL "i915/skl_dmc_ver1_27.bin" /usr/src/linux/drivers/gpu/drm/i915/intel_csr.c:MODULE_FIRMWARE(I915_CSR_SKL); -- /usr/src/linux/drivers/gpu/drm/i915/intel_huc_fw.c- SKL_HUC_FW_MINOR, SKL_BLD_NUM) /usr/src/linux/drivers/gpu/drm/i915/intel_huc_fw.c:MODULE_FIRMWARE(I915_SKL_HUC_UCODE);
Then configure to build the firmware file into the kernel as above.
Activate the following kernel options:
Processor type and features ---> [*] MTRR (Memory Type Range Register) support Device Drivers ---> Graphics support ---> <*> /dev/agpgart (AGP Support) ---> <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> <*> Intel 8xx/9xx/G3x/G4x/HD Graphics [*] Enable modesetting on intel by default [*] Enable legacy fbdev support for the modesetting intel driver
The legacy fbdev support is required since kernel 3.14.14 at least for i915 (
For hybrid Intel/AMD systems, follow also the steps of radeon (open source) or fglrx (closed binary) drivers.
Since kernel version 4.4 the driver has moved and the legacy fbdev support is now
Device Drivers ---> Graphics support ---> <*> /dev/agpgart (AGP Support) ---> --- /dev/agpgart (AGP Support) -*- Intel 440LX/BX/GX, I8xx and E7x05 chipset support <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> --- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) [*] Enable legacy fbdev support for your modesetting driver <*> Intel 8xx/9xx/G3x/G4x/HD Graphics [ ] Enable alpha quality support for new Intel hardware by default () Force probe driver for selected new Intel hardware [*] Enable capturing GPU state following a hang [*] Compress GPU error state [*] Always enable userptr support [ ] Enable Intel GVT-g graphics virtualization host support
Kernel version 4.19 or later is recommended for Coffee Lake because it will work without enabling alpha support. Kernel 4.14 requires loading module i915 with alpha_support=1 or enabling
CONFIG_DRM_I915_ALPHA_SUPPORTin kernel config.
Portage uses the VIDEO_CARDS variable, which expands into the USE_EXPAND variable, for supporting various graphics cards. Assuming the x11-base/xorg-drivers package has already been installed, setting the VIDEO_CARDS variable in /etc/portage/make.conf will pull in the correct video driver:
Beginning with x11-base/xorg-drivers-21.1, the x11-base/xorg-drivers package changes USE flag settings. This will omit selection of the deprecating x11-drivers/xf86-video-intel driver by default in favor of the more maintained, generic modesetting DDX driver built into x11-base/xorg-server. Older systems with the USE=video_cards_i915 USE flag set will continue to have the Intel DDX driver installed.
After editing make.conf, update the system so the changes take effect by passing the
--changed-use --deep options to emerge:
emerge --ask --changed-use --deep @world
Those wishing to not accept the Intel graphic driver defaults in the main repository can read on into the sub-sections below.
Before proceeding with the Intel DDX driver, note that this driver has been slowly deprecating for several years. Other major Linux distributions have switched to the modesetting DDX driver (detailed in the section below). Intel has not updated it for quite some time, thus burdening Gentoo's X11 package maintainers.
The Intel DDX driver is faster than the generic modesetting driver as it is able to more closely interact with hardware acceleration of chips using SNA and DRI3.
Check the USE flags of x11-drivers/xf86-video-intel:
USE flags for x11-drivers/xf86-video-intel X.Org driver for Intel cards
||Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces|
||Enable direct rendering: used for accelerated 3D and some 2D, like DMA|
||Enable SandyBridge's New Acceleration (useful on all chipsets, not just SandyBridge)|
||Build the intel-virtual-output tool|
||Enable virtual/udev integration (device discovery, power and storage device support, etc)|
||Enable UMA Acceleration Architecture|
||Enables X-Video Motion Compensation support|
emerge --ask x11-drivers/xf86-video-intel
To force Xorg server to use the Intel DDX driver with SNA for hardware acceleration, the following file can be created in /etc/X11/xorg.conf.d/:
Section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "sna" Option "DRI" "crocus" EndSection
The value for the DRI option should be
crocus for Gen 4 through Gen 7.5 and
iris for Gen 8 and higher. This line should be omitted for Gen 2 and Gen 3.
As mentioned above, the modesetting DDX driver is now the default driver on newer Intel graphics chipsets for Gentoo. This driver uses GLAMOR to accelerate 2D graphical over Mesa (the open source OpenGL implementation). As of
x11-base/xorg-drivers-1.19 this has become the default for Gentoo.
If it's necessary to force Xorg to load the modesetting driver the following config snippet can be used:
Section "Device" Identifier "Intel Graphics" Driver "modesetting" Option "AccelMethod" "glamor" Option "DRI" "3" EndSection
If both 20-intel.conf and 20-modesetting.conf files are defined in /etc/X11/xorg.conf.d/, the X server will attempt to load the files in alpha-numeric order.
Create the following file:
Section "Device" Identifier "Intel Graphics" Driver "intel" Option "TearFree" "true" EndSection
Other options against screen tearing:
- Use compiz, or any compositor, for Xorg.
- Use Sway instead of Xorg (implementation of Wayland protocol, that is tear free by design).
Enable early KMS
To enable Kernel Mode Setting (KMS) as soon as possible, modesetting either needs to be built into the kernel, or be loaded with initramfs if it is built as a module. Distribution Kernels have the Modesetting DDX built as a module. So, in order to get early KMS, those who use it have to create a .conf file in /etc/dracut.conf.d and do the following:
add_drivers+="... i915 ..."
Users of gentoo-kernel can also use savedconfig to change modesetting from module to built-in.
emerge -a media-libs/libva-intel-driver
emerge -a media-libs/libva-intel-media-driver
For more details study the dedicated VAAPI article.
As of November 15th, 2016 Vulkan is supported in the main ebuild repository for Intel Core processors using the mesa driver.
This will build a working Vulkan driver, but it will not provide a libvulkan.so.1, but a drivers-specific libvulkan_intel.so. The package media-libs/vulkan-loader provides libvulkan.so.1.
If libvulkan_intel.so is missing: https://forums.gentoo.org/viewtopic-p-8643078.html#8643078
x11-apps/igt-gpu-tools provides utilities for debugging.
For example, GPU min/max/current frequency can be displayed by:
The intel_gpu_top utility displays the current GPU state in a top-like fashion:
intel-gpu-top: Intel Ivybridge (Gen7) @ /dev/dri/card0 437/ 441 MHz; 57% RC6; 0.70/12.20 W; 45 irqs/s IMC reads: 2 MiB/s IMC writes: 618 MiB/s ENGINES BUSY MI_SEMA MI_WAIT Render/3D 8.99% |██ | 0% 0% Blitter 0.00% | | 0% 0% Video 0.00% | | 0% 0%
Video BUSY on 0% means that hardware decoding/encoding is not used.
All provided utilities can be discovered by listing the files with equery:
equery f x11-apps/igt-gpu-tools | grep bin
The i915 kernel driver reduces flickering caused by modesetting operations during boot time. It does so by avoiding unnecessary modesetting operations . Fastboot is enabled by default on Skylake, Valleyview, Cherry Trail, and newer CPUs.
For CPUs older than Skylake, fastboot can be enabled by passing the
i915.fastboot=1 parameter to the i915 kernel driver during boot. This can either be set using the built-in kernel command-line or via a bootloader's kernel options. GRUB users can see the /etc/default/grub file.
acl USE flag is enabled globally and
elogind is being used (default for desktop profiles) permissions to video cards will be handled automatically. It is possible to check the permissions using getfacl:
getfacl /dev/dri/card0 | grep larry
A broader solution is to add the user(s) needing access the video card to the video group:
gpasswd -a larry video
Note that users will be able to run X without permission to the DRI subsystem, but acceleration will be disabled.
Choose one of the following configurations.
Classic (Intel DDX) driver x11-drivers/xf86-video-intel:
- The X server is not aware of i915 or i965 they will need to be addressed as Driver
Section "Device" Identifier "intel" Driver "intel" EndSection
Gen 4+ driver (Mesa's modesetting):
Experiences of this configuration can be found in the Discussion of this page. Add any difficulties there so this section can be improved.
- As of xorg-server-1.17, the modesetting driver was moved into x11-base/xorg-server. This driver has more features than the classic driver, such as the ability to support acceleration via GLAMOR.
- This configuration is the default for
VIDEO_CARDS="intel i965"beginning with x11-base/xorg-drivers-1.19. If the classic (Intel CCX) driver is desired, then x11-drivers/xf86-video-intel must be installed manually:
emerge --ask x11-drivers/xf86-video-intel
- xorg-server is easily configured to prefer
modesettingover the older
Section "Device" Identifier "modesetting" Driver "modesetting" EndSection
The X server is designed to work out-of-the-box, with no need to manually edit X.Org's configuration files. It should detect and configure devices such as displays, keyboards, and mice.
In any case, the main configuration file of the X server is the xorg.conf.
- Gentoo bugtracker: known bugs
- Freedesktop.org bugtracker: known bugs
- Freedesktop.org bugtracker: known bugs
- How to file a bug report
- The modesetting DDX might cause video out of sync artefacts (when scrolling, or on videos) (see ). If the system experiences such artefacts, try the DDX driver.
Panel Self Refresh (PSR), a power saving feature used by Intel iGPUs, causes flickering in some instances. A temporary solution is to disable this feature using the kernel parameter
HTML5/VAAPI GPU hangs
If the GPU hangs up when watching VAAPI-accelerated video (e.g. on YouTube) try enabling IOMMU:
Device Drivers ---> [*] IOMMU Hardware Support ---> [*] Support for Intel IOMMU using DMA Remapping Devices [*] Enable Intel DMA Remapping Devices by default
Related upstream bug report.
A workaround is to set
TerminateServer=true in all sections of the file /usr/share/config/kdm/kdmrc, which starts with
KDE's plasma eating CPU
If /usr/bin/plasmashell is always consuming several percent of CPU, perhaps this is related to a vsync problem. QT Quick Animation seems to loop too fast when the driver does not manage vsync (Reference).
A way to enable vsync with SNA is to enable the
TearFree option in xorg.conf:
Section "Device" Identifier "Device0" Driver "intel" Option "AccelMethod" "SNA" Option "TearFree" "true" EndSection
See also this Linux Mint tutorial.
- According to this Debian wiki, CONFIG_FRAMEBUFFER_CONSOLE must be set to y (aka built-in to the kernel). Otherwise, it is possible to always have a black screen unless
nomodesetis passed to the kernel, thus disabling kernel mode setting (KMS).
acpi_osi="Linux"can be passed to the kernel command line to try to solve this issue. This is usually done through the bootloader.
- Kernel with version 4.2 or newer is needed with some 8th generation chipsets.
Brightness does not change with keyboard shortcuts
First, make sure vendor compatibility is on in the kernel configuration: Toshiba for Toshiba, etc.
If it is, or when the brightness buttons are working, the issue is that the kernel can not detect where the brightness control is.
Luckily, this is easy enough to modify, as long as the kernel version is >= 3.13.x and < 4.2.
Add the following argument to the kernel command-line:
On kernels >= 4.2, the video.use_native_backlight option is no longer available. One of the following should be used instead (experiment to see which works on the system):
Do the key bindings map to actions viewable in xev? Can the screen brightness be adjusted using xbacklight? You can always do a work around via a keyboard remapping. For LXDE it can be done via:
<keybind key="XF86MonBrightnessUp"> <action name="Execute"> <command>xbacklight +5</command> </action> </keybind> <keybind key="XF86MonBrightnessDown"> <action name="Execute"> <command>xbacklight -5</command> </action> </keybind>
With the Modesetting DDX, the x11-apps/xbacklight package will not work. Use sys-power/acpilight for a compatible interface.
White or missing textures in games
This is most likely caused by missing S3TC support. Possible solutions:
force_s3tc_enableenvironment variable to
- Install media-libs/libtxc_dxtn. On amd64, it might be a good idea to enable 32-bit build of this library since many games might be shipping 32-bit executables:
emerge --ask media-libs/libtxc_dxtn
- Xorg/Guide — explains what Xorg is, how to install it, and the various configuration options.
- Hprofile — an application that can be used to manage multiple profiles be it hardware or software.
- https://www.x.org/wiki/IntelGraphicsDriver/ - Intel at the X.Org wiki.
- https://keyj.emphy.de/files/linuxgraphics_en.pdf - Linux Graphics Demystified.
- Firmware, Intel. Retrieved on October 27, 2018
- Gentoo Forums, "Black screen on boot after kernel upgrade - grub2"
- Gentoo Forums, "Black screen on kernel 3.14.14"
- [Intel-gfx] [RFC] fastboot, freedesktop.org. Retrieved on February 9, 2019
- Gentoo Forums, "N3700 8086:22b1 i915 black screen, works in kernel 4.2.6"
- RedHat Bug 1272633: "video.use_native_backlight=1 doesn't work" (comment 5)
- Freedesktop Bug 96572: "xbacklight doesn't work with modesetting on intel"