Intel GPU hang

The dreaded GPU hang error:

[  242.891878] i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
[  242.891888] i915 0000:00:02.0: [drm] x.exe[10957] context reset due to GPU hang
[  242.911578] i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:87f93cf9, in x.exe [10957]

Below is a list of possible workarounds to try.

Environment variables

Older driver



Intel debug

Don’t ask…

export INTEL_DEBUG=reemit


Increase driver timeout

echo 10000 | sudo tee /sys/class/drm/card0/engine/rcs0/preempt_timeout_ms. If this works, add to startup scripts. Source.

Kernel parameters

On Ubuntu, edit /etc/default/grub and then run update-grub and reboot. On other distros, you’ll figure it out :).

  1. GRUB_CMDLINE_LINUX_DEFAULT="i915.enable_psr=0 i915.enable_fbc=1". Source.
  2. GRUB_CMDLINE_LINUX_DEFAULT="drm.debug=0 drm.vblankoffdelay=1 i915.semaphores=0 i915.modeset=1 i915.use_mmio_flip=1 i915.powersave=1 i915.enable_ips=1 i915.disable_power_well=1 i915.enable_hangcheck=1 i915.enable_cmd_parser=1 i915.fastboot=0 i915.enable_ppgtt=1 i915.reset=0 i915.lvds_use_ssc=0 i915.enable_psr=0" Source.
  3. GRUB_CMDLINE_LINUX_DEFAULT="intel_idle.max_cstate=1 i915.enable_dc=0 ahci.mobile_lpm_policy=1". Source.
  4. GRUB_CMDLINE_LINUX_DEFAULT="i915.mitigations=off". Source.
  5. GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on". Source.

Driver parameters

On Ubuntu, put into /usr/share/X11/xorg.conf.d/intel.conf or similar.

Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"
#  Option "TripleBuffer" "false"
#  Option "VSync" "false"
#  Option "PageFlip" "false"
#  Option "DRI" "2"
#  Option "AccelMethod" "UXA"

Try each option separately. Reboot after each change. Source.