Initial changes to support intel gpu autoconfiguration

still a lot to do...
This commit is contained in:
Alexander Grothe 2018-06-06 07:51:07 +02:00
parent 4cbb78ca34
commit 3138c16a60

View File

@ -1747,7 +1747,6 @@ preferred_refreshrates:
- 60 - 60
#+END_SRC #+END_SRC
*** tasks *** tasks
**** main.yml **** main.yml
#+BEGIN_SRC yaml :tangle roles/yavdr-xorg/tasks/main.yml :mkdirp yes :padline no #+BEGIN_SRC yaml :tangle roles/yavdr-xorg/tasks/main.yml :mkdirp yes :padline no
--- ---
@ -2030,6 +2029,22 @@ preferred_refreshrates:
- nvidia_detected - nvidia_detected
#+END_SRC #+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 *** templates
**** xorg **** xorg
***** x-verbose@.service ***** x-verbose@.service
@ -2408,6 +2423,23 @@ EnvironmentFile=-/etc/default/locale
Environment=XDG_RUNTIME_DIR=/run/user/{{ vdr.uid }}/ Environment=XDG_RUNTIME_DIR=/run/user/{{ vdr.uid }}/
EnvironmentFile=-/var/lib/vdr/.session-env EnvironmentFile=-/var/lib/vdr/.session-env
#+END_SRC #+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 ** yavdr-desktop
*** Tasks *** Tasks
@ -4591,6 +4623,11 @@ fi
#+BEGIN_SRC yaml :tangle roles/grub-config/handlers/main.yml :mkdirp yes :padline no #+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 - name: Update GRUB
command: update-grub command: update-grub
failed_when: ('error' in grub_register_update.stderr) failed_when: ('error' in grub_register_update.stderr)