Skip to content

Instantly share code, notes, and snippets.

@brogier
Last active October 17, 2023 15:16
Show Gist options
  • Save brogier/3b2cb68c17949e15b39fc70985855d47 to your computer and use it in GitHub Desktop.
Save brogier/3b2cb68c17949e15b39fc70985855d47 to your computer and use it in GitHub Desktop.
Acer XB270HU EDID fix for Linux

How to fix the default 640x480 resolution for linux for the Acer XB270HU by providing the EDID.

Works here on Linux Mint based on ubuntu.

  1. Put the edid_monitor.bin in /lib/firmware/edid_monitor.bin

sudo nano /etc/initramfs-tools/hooks/edid

#!/bin/sh
PREREQ=""
prereqs()
{
    echo "$PREREQ"
}

case $1 in
prereqs)
    prereqs
    exit 0
    ;;
esac

. /usr/share/initramfs-tools/hook-functions
# Begin real processing below this line
mkdir -p "${DESTDIR}/lib/firmware/edid"
cp -a /lib/firmware/edid_monitor.bin "${DESTDIR}/lib/firmware/edid_monitor.bin"
exit 0

sudo chmod +x /etc/initramfs-tools/hooks/edid sudo update-initramfs -u -v

Next check the connected monitor ID (DP-1, DP-2 etc). for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done

Add the edid to GRUB. Dont forget to change both monitor ID's sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash drm.edid_firmware=DP-2:edid_monitor.bin video=DP-2:e"

sudo update-grub2 && reboot

@andresdiazgu
Copy link

Hi, I'm having this issue in Arch Linux, I have tried to replicate and adapt this solution to an arch based system by taking into consideration what I found here and here . But so far no luck.

Could you please provide more information into the steps to replicate this solution in an arch based system?

@brogier
Copy link
Author

brogier commented Oct 17, 2023

Sorry i have no knowledge of arch :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment