hey there, I have the exact same problem, but I couldn't find a solution yet.
I included the edid file using the script given above:

lsinitramfs /boot/initrd.img-5.11.0-25-generic | grep edid
usr/lib/firmware/edid
usr/lib/firmware/edid/edid.bin


my grub config looks like this:

cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash drm.edid_firmware=edid/edid.bin"
GRUB_CMDLINE_LINUX_DEFAULT="drm.edid_firmware=edid/edid.bin quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=1920x1080-24

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


and dmesg logs the following:

sudo dmesg | grep edid
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.11.0-25-generic 
root=UUID=79d59e63-ceea-4975-abf4-b34964ea06c0 ro rootflags=subvol=@ 
drm.edid_firmware=edid/edid.bin quiet splash vt.handoff=7
[    0.050890] Kernel command line: BOOT_IMAGE=/vmlinuz-5.11.0-25-generic 
root=UUID=79d59e63-ceea-4975-abf4-b34964ea06c0 ro rootflags=subvol=@ 
drm.edid_firmware=edid/edid.bin quiet splash vt.handoff=7


Though, I still have a low monitor resolution at boot time, which becomes 
correct when completely booted.
Have I missed anything here?
I'm using Ubuntu 21.04.

I already tried to get the edid file using the nvidia control  panel and
the read-edid tool, both didn't work.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1814938

Title:
  drm.edid_firmware fails to load firmware where crypsetup-initramfs is
  installed

Status in initramfs-tools package in Ubuntu:
  Confirmed

Bug description:
  My HP LP2475W monitor reports incorrect EDID info resulting in bad
  image quality.

  It can be fixed with a customized edid file, and adding
  drm.edid_firmware kernel boot parameter.

  But in Ubuntu 18.04.1 and Ubuntu 18.10, if crypsetup-initramfs package
  is installed, it fails to load the firmware file.

  Detailed bug report:

  Following this istructions
  (https://blog.tingping.se/2018/12/01/amdgpu-fullrgb.html), I created a
  modified edid.bin file in /lib/firmware/edid/edid.bin and passed
  drm.edid_firmware=edid/edid.bin to the kernel at boot.

  In my daily Ubuntu 18.04.1 dmesg report this error and I could not solve it.
  [    1.173897] platform HDMI-A-1: Direct firmware load for edid/edid.bin 
failed with error -2

  So I tried in a fresh Ubuntu 18.10 and it worked nicely, no error and nice 
crisp display image.
  But when I began to install the software I need for daily use it ceased to 
work and began to show the same message as in my work Ubuntu 18.04.1.

  After some test it seems that the problem occurs after I install cryptsetup:
  ------
  dmesg | grep edid
  [    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.18.0-14-generic 
root=UUID=dfb5fdf3-b93b-4abf-99fd-d5a7ec4e66df ro 
drm.edid_firmware=edid/edid.bin quiet splash vt.handoff=1
  [    0.000000] Kernel command line: 
BOOT_IMAGE=/boot/vmlinuz-4.18.0-14-generic 
root=UUID=dfb5fdf3-b93b-4abf-99fd-d5a7ec4e66df ro 
drm.edid_firmware=edid/edid.bin quiet splash vt.handoff=1
  [    3.792846] [drm] Got external EDID base block and 1 extension from 
"edid/edid.bin" for connector "HDMI-A-1"
  ------

  I purged cryptsetup but the problem persisted, so I removed too 
cryptsetup-initramfs and the the problem disapeared and the edid file is loaded 
again, improving the display quality:
  ------
  dmesg | grep edid
  [    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.18.0-14-generic 
root=UUID=dfb5fdf3-b93b-4abf-99fd-d5a7ec4e66df ro 
drm.edid_firmware=edid/edid.bin quiet splash vt.handoff=1
  [    0.000000] Kernel command line: 
BOOT_IMAGE=/boot/vmlinuz-4.18.0-14-generic 
root=UUID=dfb5fdf3-b93b-4abf-99fd-d5a7ec4e66df ro 
drm.edid_firmware=edid/edid.bin quiet splash vt.handoff=1
  [    3.717878] [drm] Got external EDID base block and 1 extension from 
"edid/edid.bin" for connector "HDMI-A-1"
  -------

  This question in AskUbuntu suggest that there are more people with
  this probem (https://askubuntu.com/questions/1113195/how-to-output-
  full-range-rgb-in-ubuntu-18-04-1)

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: linux-image-4.18.0-14-generic 4.18.0-14.15
  ProcVersionSignature: Ubuntu 4.18.0-14.15-generic 4.18.20
  Uname: Linux 4.18.0-14-generic x86_64
  ApportVersion: 2.20.10-0ubuntu13.2
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  david      2007 F.... pulseaudio
   /dev/snd/pcmC0D1p:   david      2007 F...m pulseaudio
   /dev/snd/controlC1:  david      2007 F.... pulseaudio
  Date: Wed Feb  6 18:37:39 2019
  InstallationDate: Installed on 2019-02-06 (0 days ago)
  InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.3)
  IwConfig:
   lo        no wireless extensions.
   
   enp7s0    no wireless extensions.
  MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=es_ES.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 amdgpudrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-14-generic 
root=UUID=dfb5fdf3-b93b-4abf-99fd-d5a7ec4e66df ro 
drm.edid_firmware=edid/edid.bin quiet splash vt.handoff=1
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-4.18.0-14-generic N/A
   linux-backports-modules-4.18.0-14-generic  N/A
   linux-firmware                             1.175.1
  RfKill:
   0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 07/11/2016
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: U1n
  dmi.board.asset.tag: To be filled by O.E.M.
  dmi.board.name: Z68X-UD3H-B3
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: To be filled by O.E.M.
  dmi.chassis.asset.tag: To Be Filled By O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.chassis.version: To Be Filled By O.E.M.
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrU1n:bd07/11/2016:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnZ68X-UD3H-B3:rvrTobefilledbyO.E.M.:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
  dmi.product.family: To be filled by O.E.M.
  dmi.product.name: To be filled by O.E.M.
  dmi.product.sku: To be filled by O.E.M.
  dmi.product.version: To be filled by O.E.M.
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1814938/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to