yavdr ansible
-
-
seahawk1986 kannst die es bitte nochmal für yavdr aktualisieren? Danke!
Mache ich gleich noch.
-
-
Wie schaltet man das LCD Display unter ansible von VDR auf Kodi um? Früher würde das doch mit einem upstart job erledigt, dass funktioniert jetzt irgenwie nicht mehr.
Viele Grüße
-
Wie schaltet man das LCD Display unter ansible von VDR auf Kodi um?
So wie es im Template für die menuorg.xml gemacht wird: https://github.com/yavdr/yavdr-an…uorg.xml.j2#L50 - also frontend-dbus-send switchto kodi
Wenn du das primäre und das sekundäre Display vertauschen willst, kannst du aus der User-Session des VDR heraus (also z.B. über die ~/.lircrc, die commands.conf des VDR oder menuorg) /var/lib/vdr/bin/switch-displays aufrufen.
Früher würde das doch mit einem upstart job erledigt, dass funktioniert jetzt irgenwie nicht mehr.
Nachdem Upstart schon vor langer Zeit durch Systemd ersetzt wurde, ist das ziemlich klar, warum es nicht mehr funktioniert.
-
Vielen Dank für die rasche Antwort.
Ich möchte nur die Ausgabe des Imon LCD vom VDR auf den lcdproc Server für Kodi umschalten... also früher per "svdrpsend plug imonlcd off" und dann den per /etc/init.d/LCDd start den lcdproc Server starten und wenn Kodi beendet wird halt wieder zurück. Das hat glaube ich nichts mit den displays zu tun oder?
Viele Grüße
-
Das hat glaube ich nichts mit den displays zu tun oder?
Nein, aber die ursprünglichen Fragestellung erwähnt auch nicht, dass es um ein Imon-LCD geht...
Probier mal folgendes:
Als erstes musst du dafür sorgen, dass der User vdr die Unit für LCDd starten darf bzw. bzw. kein Passwort eingeben muss, wenn er den systemctl-Befehl mit sudo aufruft (vgl. https://wiki.ubuntuusers.de/sudo/Konfiguration/#Einstellungen
Codevdr ALL = NOPASSWD: /usr/bin/systemctl start LCDd.service vdr ALL = NOPASSWD: /usr/bin/systemctl stop LCDd.service
Dann erweiterst du die Systemd-Unit für kodi mit einem Snippet (den Ordner dafür musst du anlegen):
Code: /var/lib/vdr/.config/systemd/user/kodi.service.d/lcdproc.conf[Service] ExecStartPre=/usr/bin/svdrpsend plug imonlcd off ExecStartPre=/usr/bin/sudo systemctl start LCDd.service ExecStopPost=/usr/bin/sudo systemctl stop LCDd.service ExecStopPost=/usr/bin/svdrpsend plug imonlcd on
Dann den Rechner neu starten.
-
Hat funktioniert, besten Dank! "Imon" hätte ich natürlich zu LCD Display dazuschreiben sollen
Viele Grüße
-
Hallo in die Runde,
ich scheitere hier gerade an der Installation auf einem NUC8i5BEK unter Ubuntu Focal, denn irgendwie wir mir die 20-intel.conf fehlerhaft generiert.
Folgender Inhalt ist nach dem ersten Lauf mit ansible enthalten:
Code
Display More# # *** ANSIBLE MANAGED FILE *** # template: /root/install/yavdr-ansible/roles/yavdr-xorg/templates/20-intel.conf.j2 # Section "Device" Identifier "Device0" Driver "intel" Option "TearFree" "true" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "DP1" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1920x1080_50" EndSubSection EndSection Section "Monitor" Identifier "DP1" Modeline "1920x1080_50" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +HSync +VSync *current +preferred EndSection Section "Monitor" Identifier "DP2" Option "Ignore" "true" EndSection Section "Monitor" Identifier "HDMI1" Option "Ignore" "true" EndSection
Das Problem ist die Modeline, genauer das Vorhandensein von *current +preferred denn im Anschluss startet X nicht.
In den facts steht folgendes:
"1920x1080_50": "Modeline \"1920x1080_50\" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +HSync +VSync *current +preferred",
Ich denke, hier läuft was im Zusammenspiel vom Template 20-intel.conf.j2 und xrandr_facts.py schief, denn die resultierende 20-intel.conf ist im Ergebnis syntaktisch falsch.
Ansonsten musste ich vor der ersten Installation noch install-yavdr.sh anpassen, hier ist noch das venv im Focal Branch vorhanden.
Cheers,
Ole
-
Kannst du mir bitte mal die Ausgabe von xrandr -d :0 --verbose und die Dateien in /etc/ansible/facts.d zukommen lassen?
-
Letzteres anbei, ersteres wird schwierig, ich habe ja gerade kein lauffähiges X.
Da muss ich mal schauen, wie ich das Playbook nach dem ersten Start des X-Servers unterbreche.
War doch einfacher als gedacht, habe die fehlerhaften Einträge aus der 20-intel.conf geworfen und yavdr-xorg.service starten können:
Code
Display MoreScreen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767 DP1 connected primary 1920x1080+0+0 (0x46) normal (normal left inverted right x axis y axis) 1280mm x 720mm Identifier: 0x43 Timestamp: 3637958 Subpixel: unknown Gamma: 1.0:1.0:1.0 Brightness: 1.0 Clones: CRTC: 0 CRTCs: 0 1 2 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: EDID: 00ffffffffffff0011ee5f0001010101 001c0103808048780adaffa3584aa229 17494b21080031404540614081800101 010101010101023a80d072382d40102c 4580ba882100001e023a801871382d40 582c4500ba882100001e000000fc0044 454e4f4e2d4156520a202020000000fd 00173d0f440f000a2020202020200196 020338f24d1f90140520212213041203 160723090701830100007a030c001400 b8262fc8100141019c06160800180096 a69800a800e2004b011d80d0721c1620 102c2580ba882100009e011d8018711c 1620582c2500ba882100009e011d0072 51d01e206e285500c48e2100001e0000 00000000000000000000000000000070 Content Protection: Undesired supported: Undesired, Desired, Enabled max bpc: 12 range: (6, 12) Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 audio: auto supported: force-dvi, off, auto, on link-status: Good supported: Good, Bad non-desktop: 0 range: (0, 1) 1920x1080_50 (0x46) 148.500MHz +HSync +VSync *current +preferred h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.25KHz v: height 1080 start 1084 end 1089 total 1125 clock 50.00Hz 1920x1080 (0x47) 148.500MHz +HSync +VSync +preferred h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.25KHz v: height 1080 start 1084 end 1089 total 1125 clock 50.00Hz 1920x1080 (0x48) 148.500MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz 1920x1080 (0x49) 148.352MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.43KHz v: height 1080 start 1084 end 1089 total 1125 clock 59.94Hz 1920x1080i (0x4a) 74.250MHz +HSync +VSync Interlace h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.75KHz v: height 1080 start 1084 end 1094 total 1125 clock 60.00Hz 1920x1080i (0x4b) 74.250MHz +HSync +VSync Interlace h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 28.12KHz v: height 1080 start 1084 end 1094 total 1125 clock 50.00Hz 1920x1080 (0x4c) 74.250MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.75KHz v: height 1080 start 1084 end 1089 total 1125 clock 30.00Hz 1920x1080 (0x4d) 74.250MHz +HSync +VSync h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 28.12KHz v: height 1080 start 1084 end 1089 total 1125 clock 25.00Hz 1920x1080 (0x4e) 74.250MHz +HSync +VSync h: width 1920 start 2558 end 2602 total 2750 skew 0 clock 27.00KHz v: height 1080 start 1084 end 1089 total 1125 clock 24.00Hz 1920x1080i (0x4f) 74.176MHz +HSync +VSync Interlace h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.72KHz v: height 1080 start 1084 end 1094 total 1125 clock 59.94Hz 1920x1080 (0x50) 74.176MHz +HSync +VSync h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 33.72KHz v: height 1080 start 1084 end 1089 total 1125 clock 29.97Hz 1920x1080 (0x51) 74.176MHz +HSync +VSync h: width 1920 start 2558 end 2602 total 2750 skew 0 clock 26.97KHz v: height 1080 start 1084 end 1089 total 1125 clock 23.98Hz 1280x1024 (0x52) 108.000MHz +HSync +VSync h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz 1280x720 (0x53) 74.250MHz +HSync +VSync h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.00KHz v: height 720 start 725 end 730 total 750 clock 60.00Hz 1280x720 (0x54) 74.250MHz +HSync +VSync h: width 1280 start 1720 end 1760 total 1980 skew 0 clock 37.50KHz v: height 720 start 725 end 730 total 750 clock 50.00Hz 1280x720 (0x55) 74.176MHz +HSync +VSync h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 44.96KHz v: height 720 start 725 end 730 total 750 clock 59.94Hz 1024x768 (0x56) 65.000MHz -HSync -VSync h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz v: height 768 start 771 end 777 total 806 clock 60.00Hz 800x600 (0x57) 40.000MHz +HSync +VSync h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz v: height 600 start 601 end 605 total 628 clock 60.32Hz 720x576 (0x58) 27.000MHz -HSync -VSync h: width 720 start 732 end 796 total 864 skew 0 clock 31.25KHz v: height 576 start 581 end 586 total 625 clock 50.00Hz 720x480 (0x59) 27.027MHz -HSync -VSync h: width 720 start 736 end 798 total 858 skew 0 clock 31.50KHz v: height 480 start 489 end 495 total 525 clock 60.00Hz 720x480 (0x5a) 27.000MHz -HSync -VSync h: width 720 start 736 end 798 total 858 skew 0 clock 31.47KHz v: height 480 start 489 end 495 total 525 clock 59.94Hz 640x480 (0x5b) 25.200MHz -HSync -VSync h: width 640 start 656 end 752 total 800 skew 0 clock 31.50KHz v: height 480 start 490 end 492 total 525 clock 60.00Hz 640x480 (0x5c) 25.175MHz -HSync -VSync h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz v: height 480 start 490 end 492 total 525 clock 59.94Hz VIRTUAL1 disconnected (normal left inverted right x axis y axis) Identifier: 0x44 Timestamp: 3637958 Subpixel: no subpixels Clones: CRTCs: 3 Transform: 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000 filter: non-desktop: 0 supported: 0, 1
Cheers,
Ole
-
Probier mal bitte, ob es mit dem letzen Commit funktioniert: https://github.com/yavdr/yavdr-an…1d9778801cc0df1
-
Damit funktioniert es, vielen Dank. Wirfst du dann noch den venv-Teil aus den Installationsscripten im Focal-Branch?
Cheers,
Ole
-
Meinst du python3-venv aus https://github.com/yavdr/yavdr-an…-packages.sh#L6 oder habe ich da noch irgendetwas anderes übersehen, was tatsächlich ein venv anlegt?
-
Nein, ich meine "${venv_dir}/bin/ansible-playbook" in https://github.com/yavdr/yavdr-an…vdr-headless.sh und https://github.com/yavdr/yavdr-an…nstall-yavdr.sh.
Im Bionic Branch ist das nicht mehr vorhanden, im Focal Branch allerdings schon noch.
Cheers,
Ole
-
Danke für den Hinweis, ich habe es rausgenommen.
-
Kann man das: https://github.com/ua0lnj/vdr-plugin-mpv bitte mit aufnehmen in beide PPA's?
-
Hallo, da das Spulen unter 18.04 mit softhddevice auch nicht richtig funktioniert möchte ich auf meinem Intel VDR auf softhdcuvid umsteigen. Muss ich das dann mit der entsprechenden Option und libplacebo selbst bauen? Oder gibt es in der Config vom Plugin einen Schalter?
Viele Grüße
-
JoeBar Wenn du das selber bauen willst dann musst du das Makefile anpassen. Also VAAPI=1 setzen. libplacebo wird dann gleich mitgenutzt. Das Plugin bekommt dann den Namen softhdvaapi.
Im Readme sollte das beschrieben sein.
-
Ich hab mal es mal versucht, es wurden ein paar warnings ausgespuckt und letztendlich libvdr-softhdvaapi.so und vdr-softhdvaapi.mo installiert. In conv.avail habe ich eine softhdvaapi.conf erstellt mit dem Inhalt
gleich wie seahawk1986 es in der Anleitung für nvidia-Karten beschrieben hat.
Jetzt spukt er folgende Fehlermeldung aus:
ERROR: /usr/lib/vdr/plugins/libvdr-softhdvaapi.so.2.4.0: undefined symbol: avc
odec_get_hw_frames_parametersDas Compilieren ging erstaunlich schnell...? Wie bekomme ich softhdvaapi zu fliegen?
Viele Grüße
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!