User Tools

Site Tools


kodi:kodi-nuc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kodi:kodi-nuc [2024/05/05 23:06] Wuffkodi:kodi-nuc [2026/07/29 15:01] (current) – [Boot without connected TV / AVR] Wuff
Line 28: Line 28:
 <code> <code>
 sudo apt-get update sudo apt-get update
-sudo apt-get install software-properties-common xorg xserver-xorg-legacy alsa-utils mesa-utils git-core librtmp1 libmad0 lm-sensors libmpeg2-4 avahi-daemon libnfs13 libva2 vainfo i965-va-driver linux-firmware dbus-x11 openbox pastebinit xserver-xorg-video-intel alsa+sudo apt-get install software-properties-common xorg xserver-xorg-legacy alsa-utils mesa-utils git-core librtmp1 libmad0 lm-sensors libmpeg2-4 avahi-daemon libnfs13 libva2 vainfo i965-va-driver-shaders linux-firmware dbus-x11 openbox pastebinit xserver-xorg-video-intel alsa
 sudo apt-get dist-upgrade sudo apt-get dist-upgrade
 </code> </code>
Line 319: Line 319:
 NOTE: Kernel 4.4+ is required or audio EDID information won't be copied. Verify with <code>uname -a</code> NOTE: Kernel 4.4+ is required or audio EDID information won't be copied. Verify with <code>uname -a</code>
  
-First find the connected port (HDMI/Displayport):+First find the connected port (HDMI/DP). All available ports are in the drm folder, check the status of each port until you find the correct 'connected' one:
 <code> <code>
 ls -la /sys/class/drm ls -la /sys/class/drm
-cat /sys/class/drm/card0-DP-1/status +cat /sys/class/drm/card0-HDMI-A-1/status 
 connected connected
 </code> </code>
  
-edit /etc/default/grub and adjust the GRUB_CMDLINE_LINUX_DEFAULT with your port details and desired display resolution and refresh rate. Add directly after the refresh rate for Digital output! Note the port info here does not start with "card0-"+edit /etc/default/grub and adjust the GRUB_CMDLINE_LINUX_DEFAULT with your port details and desired display resolution and refresh rate. Add directly after the refresh rate for Digital output! Note the port info here does not start with "card0-"
 <code> <code>
-GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-1:1920x1080@50D drm_kms_helper.edid_firmware=HDMI-A-1:edid/edid.bin"+GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-1:3840x2160@30e drm.edid_firmware=HDMI-A-1:edid/edid.bin"
 </code> </code>
  
 Make sure the system was booted connected to the AVR/TV and everything is working. Then proceed to copy the EDID: Make sure the system was booted connected to the AVR/TV and everything is working. Then proceed to copy the EDID:
 <code> <code>
-sudo mkdir -p /lib/firmware/edid +sudo mkdir -p /usr/lib/firmware/edid 
-sudo cp /sys/class/drm/card0-HDMI-A-1/edid /lib/firmware/edid/edid.bin+sudo cp /sys/class/drm/card0-HDMI-A-1/edid /usr/lib/firmware/edid/edid.bin
 </code> </code>
  
Line 341: Line 341:
 <code bash /etc/initramfs-tools/hooks/include-edid-data> <code bash /etc/initramfs-tools/hooks/include-edid-data>
 #!/bin/sh #!/bin/sh
- 
 PREREQ="udev" PREREQ="udev"
-prereqs() +prereqs() { echo "$PREREQ"}
-{ +
-   echo "$PREREQ" +
-}+
  
 case $1 in case $1 in
-prereqs) +    prereqs) prereqsexit 0 ;;
-   prereqs +
-   exit 0 +
-   ;;+
 esac esac
  
 . /usr/share/initramfs-tools/hook-functions . /usr/share/initramfs-tools/hook-functions
-# Begin real processing below this line 
  
-if [ ! -e "${DESTDIR}/lib/firmware/edid" ]; then +# Ensure directory exists inside initramfs root 
-    mkdir -p "${DESTDIR}/lib/firmware/edid"+if [ ! -e "${DESTDIR}/usr/lib/firmware/edid" ]; then 
 +    mkdir -p "${DESTDIR}/usr/lib/firmware/edid"
 fi fi
  
-if [ -r "/lib/firmware/edid/edid.bin" ]; then +# Copy the file to the correct standard location 
-   cp "/lib/firmware/edid/edid.bin" "${DESTDIR}/lib/firmware/edid/"+if [ -r "/usr/lib/firmware/edid/edid.bin" ]; then 
 +   cp "/usr/lib/firmware/edid/edid.bin" "${DESTDIR}/usr/lib/firmware/edid/"
 fi fi
  
-manual_add_modules i915 radeon+# Ensure graphics drivers load early enough to see the EDID 
 +manual_add_modules i915 radeon amdgpu
 exit 0 exit 0
 +
 </code> </code>
  
kodi/kodi-nuc.1714946781.txt.gz · Last modified: by Wuff