coreboot:debian-configuration


This seems to be a bug with the Intel GMA X4500. Using UXA instead of SNA appears to fix this problem in X sessions, provided you use the Intel DDX driver. So far there does not seem to be a solution for Wayland sessions or for X's modesetting DDX.

First, make an xorg.conf.d directory:

sudo mkdir -p /etc/X11/xorg.conf.d/

Then, add a 20-intel.conf file to that directory, containing these lines:

/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod" "uxa"
   Option      "SwapbuffersWait" "true"
EndSection

Log out and log back in and the problems should be gone.

Background: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860365



By default, Debian uses late KMS init, which doesn't seem to work properly on GM45 laptops (G41 desktops are unaffected). In order to fix this, use early KMS init by adding the drm and i915 modules to the initramfs.

Edit /etc/initramfs-tools/modules and add:

/etc/initramfs-tools/modules
drm
i915

Edit /etc/modprobe.d/i915.conf and add:

/etc/modprobe.d/i915.conf
options i915 fastboot=1

Then run:

sudo update-initramfs -u

and reboot.



The LED blinking option is disabled by default with the ath9k driver. It can easily be enabled by creating an /etc/modprobe.d/ath9k.conf file and adding this line to it:

/etc/modprobe.d/ath9k.conf
options ath9k blink=1

Then reload the ath9k module:

sudo rmmod ath9k
sudo modprobe ath9k


This can usually be forced by running the xrandr command. Bind this to a hotkey of choice.

In a Wayland session, however, this won't work. Instead, add this to /etc/rc.local:

/etc/rc.local
sudo chmod 666 /sys/class/drm/card0-HDMI-A-2/status

Then make /etc/rc.local executable, and run it for this session:

sudo chmod +x /etc/rc.local
sudo sh /etc/rc.local

Create a file called /usr/local/bin/screen-hotplug and add this to it:

/usr/local/bin/screen-hotplug
#!/bin/sh
echo 'detect' > /sys/class/drm/card0-HDMI-A-2/status

Make it executable:

sudo chmod +x /usr/local/bin/screen-hotplug

And bind the /usr/local/bin/screen-hotplug to a hotkey of choice.



Create a file called /etc/NetworkManager/dispatcher.d/99wlan and add this to it:

/etc/NetworkManager/dispatcher.d/99wlan
#!/bin/sh -e
 
if [ "$1" = "enp0s25" ]; then
  case "$2" in
    up)
      nmcli radio wifi off
    ;;
    down)
      nmcli radio wifi on
    ;;
  esac
fi

Then make it executable by running:

sudo chmod +x /etc/NetworkManager/dispatcher.d/99wlan

Of course, this will also turn WiFi back on when ethernet is disconnected.


  • coreboot/debian-configuration.txt
  • Last modified: 2017/08/31 09:00
  • by Kevin Keijzer