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 [2023/12/28 01:24] – Wuffkodi:kodi-nuc [2026/07/29 15:01] (current) – [Boot without connected TV / AVR] Wuff
Line 1: Line 1:
-====== Kodi NUC setup ======+====== Kodi NUC main setup ======
  
-KODI INSTALL\\ +===== BIOS SETTINGS ===== 
 +Enter bios: 
 +<code>systemctl reboot --firmware-setup</code> 
 +Set SGX to Enabled in BIOS to avoid boot message relating to it. (can possibly be set by software https://github.com/intel/sgx-software-enable ) 
 +Set Fan control to custom with fanless at 48C, min 75, 30% at 1C, min 65 for RAM. 
 + 
 +Suggested Custom Fan Control Mode: 
 +Primary Temperature Sensor to Processor, Fan Off Capability - enabled at 48C, Minimum Temperature to 85, Minimum Duty Cycle to 40, Duty Cycle Increment to 6 
 +Secondary Temperature Sensor to Memory, Minimum Temperature to 60, Minimum Duty Cycle to 40, Duty Cycle Increment to 6. 
 + 
 +Set CEC to desired settings 
 + 
 +===== KODI INSTALL ===== 
  
 Base OS install of Ubuntu server LTS 22.04.3 (orig notes from 20.04.1) Base OS install of Ubuntu server LTS 22.04.3 (orig notes from 20.04.1)
Line 16: 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 77: Line 89:
 sudo systemctl disable motd-news.timer sudo systemctl disable motd-news.timer
  
-apt-get remove --purge landscape-common+sudo apt-get remove --purge landscape-common
 sudo chmod -R 0644 /etc/update-motd.d/ sudo chmod -R 0644 /etc/update-motd.d/
 sudo vi /etc/default/motd-news sudo vi /etc/default/motd-news
Line 307: 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 D 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 e 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 329: 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) prereqs; exit 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.1703726675.txt.gz · Last modified: by Wuff