From 3138c16a60646984c949f06cd186feaf78e841c9 Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Wed, 6 Jun 2018 07:51:07 +0200 Subject: [PATCH] Initial changes to support intel gpu autoconfiguration still a lot to do... --- Manual.org | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/Manual.org b/Manual.org index d41afd6..5c6004b 100644 --- a/Manual.org +++ b/Manual.org @@ -1747,7 +1747,6 @@ preferred_refreshrates: - 60 #+END_SRC *** tasks - **** main.yml #+BEGIN_SRC yaml :tangle roles/yavdr-xorg/tasks/main.yml :mkdirp yes :padline no --- @@ -2030,6 +2029,22 @@ preferred_refreshrates: - nvidia_detected #+END_SRC +**** intel.yml +#+BEGIN_SRC yaml :tangle roles/yavdr-xorg/tasks/intel.yml :mkdirp yes :padline no +- name: "create initramfs hook to copy EDID files" + copy: + src: files/include-edid-data.sh + dest: '/etc/initramfs-tools/hooks/include-edid-data' + mode: 0755 + force: yes + +# TODO: +# EDID-Dateien nach /lib/firmware/edid/ schreiben +# GRUB_CMDLINE_LINUX anpassen +# initramfs updaten +# grub updaten + notify: ['Update Initramfs', 'Update GRUB'] +#+END_SRC *** templates **** xorg ***** x-verbose@.service @@ -2408,6 +2423,23 @@ EnvironmentFile=-/etc/default/locale Environment=XDG_RUNTIME_DIR=/run/user/{{ vdr.uid }}/ EnvironmentFile=-/var/lib/vdr/.session-env #+END_SRC +*** files +**** initramfs EDID hook +#+BEGIN_SRC shell :tangle roles/yavdr-xorg/files/cp-edid-data.sh +#!/bin/sh +case $1 in +prereqs) + echo "udev" + exit 0 + ;; +esac +. /usr/share/initramfs-tools/hook-functions + +mkdir -p "${DESTDIR}/lib/firmware/edid" +find "/lib/firmware/edid/" -name "edid*.bin" -type f -exec cp {} "${DESTDIR}/lib/firmware/edid/" + +manual_add_modules i915 radeon +exit 0 +#+END_SRC ** yavdr-desktop *** Tasks @@ -4591,6 +4623,11 @@ fi #+BEGIN_SRC yaml :tangle roles/grub-config/handlers/main.yml :mkdirp yes :padline no --- +- name: Update Initramfs + command: "update-initramfs -u" + failed_when: ('error' in initramfs_register_update.stderr) + register: initramfs_register_update + - name: Update GRUB command: update-grub failed_when: ('error' in grub_register_update.stderr)