Commit Graph

351 Commits

Author SHA1 Message Date
Alexander Grothe
85de5f119e prevent failure if ubuntu-drivers autoinstall did not create a file 2019-05-11 19:07:04 +02:00
Alexander Grothe
3ebd5df3cb Cleanup 2019-05-09 11:40:51 +02:00
Alexander Grothe
a3331d82e4 Add and use own rmmod module instead of rmmod command.
This is a workaround for the modprobe module which fails to unload
modules using modprobe -r MODULE.

Using a dedicated module instead of a plain (shell) command allows to
fail only on important errors.
2019-05-09 11:14:15 +02:00
Alexander Grothe
7459c79595 Cleanup unneeded variable first_run 2019-05-06 18:27:12 +02:00
Alexander Grothe
ce24cedf53 Replace nouveau driver with nvidia driver on first run
According to https://nouveau.freedesktop.org/wiki/KernelModeSetting/
it ist possible to unload the noveau and kms drivers an replace them
with the nvidia driver.

Warning: This causes the console output to freeze until
the next reboot (which shouldn't matter much because we want to output
via Xorg).

The yavdr-xorg role performs the equivalent of those command if
the module nouveau is loaded:

echo 0 > /sys/class/vtconsole/vtcon1/bind
rmmod nouveau
rmmod ttm
rmmod drm_kms_helper
rmmod drm
modprobe nvidia
systemctl start nvidia-persistenced

TODO: is the variable first_run still needed?
2019-05-06 18:23:27 +02:00
Alexander Grothe
9acae05e63 Rearrange order of entries 2019-04-21 13:41:40 +02:00
Alexander Grothe
f16e0cdb70 Include check for hyper-v vms 2019-04-21 13:37:53 +02:00
Alexander Grothe
e2326c5083 Don't install intel drivers and libs if a nvidia card has been detected 2019-04-08 22:36:38 +02:00
Alexander Grothe
9a35ed4a67 Don't create 20-intel.conf if nvidia_detected 2019-04-08 22:20:34 +02:00
Alexander Grothe
f4788484a9 Don't set vaapi Option for softhddevice if a nvidia card has been detected 2019-04-08 22:01:42 +02:00
Alexander Grothe
9d61e71246 Update Manual.org
TODO: make keymacros.conf created by a template
2019-04-08 22:00:34 +02:00
Alexander Grothe
8f22f9bf80 Preconfigure allowed_hosts.conf style files for plugins
set the variable vdr_allowed_hosts (must be a list of IPs/IP ranges) to preconfigure all host-
or ip-range based access options.

At the moment this applies to:
 - svdrphosts.conf
 - xineliboutput's allowed_hosts.conf (and the plugin's ARGSDIR configuration file)
 - vnsiserver's allowed_hosts.conf
 - streamdev-server's streamdevhosts.conf

It is possible to override host settings for individual services by
setting up extra lists for the following variables:
 - vdr_svdrphosts
 - xineliboutput_allowed_hosts
 - vnsiserver_allowed_hosts
 - streamdev_server_allowed_hosts
2019-03-26 14:07:17 +01:00
Alexander Grothe
d306eb118e Update Manual.html 2019-03-26 10:34:31 +01:00
Alexander Grothe
251a9b978d Improve guest addon installation for VirtualBox Guests 2019-03-26 09:17:59 +01:00
Alexander Grothe
c88f919380 remove double listed package 2019-03-25 21:13:23 +01:00
Alexander Grothe
1542c64c5a Add template for /etc/default/vdr 2019-03-25 19:39:49 +01:00
Alexander Grothe
f9a61eece0 Fix path for svdrphosts.conf template expansion 2019-03-24 12:31:04 +01:00
Alexander Grothe
62473292fc Add template for svdrphosts.conf
you can define additional hosts or subnets (default is to allow access
from localhost) in svdrphosts.conf by
creating a list variable vdr_svdrphosts - e.g. in host_vars/localhost
or in group_vars/all:

vdr_svdrphosts:
   - 192.168.0.0/24

also cleanup some of the structure in Manual.org and update Manual.html
2019-03-24 12:11:52 +01:00
Alexander Grothe
8dbbfcc0c7 Add task to download channels.conf for vdr'
You can set vdr_channels_conf_url to a http(s) or ftp URL - this file
will be copied to /var/lib/vdr/channels.conf if vdr_channels_conf is
not defined and the channels.conf does not exist yet.

Also fixes a typo in task names
2019-03-18 17:12:18 +01:00
Alexander Grothe
811686490f Add task to copy a channels.conf if it doesn't exist yet
to use this task assing a path pointing to the wanted channels.conf to
the vdr_channels_conf variable, e.g. in host_vars/localhost.yml:

vdr_channels_conf: /path/to/own_config/channels.conf
2019-03-18 16:13:03 +01:00
Alexander Grothe
be33234084 Add some explanations to epgd role 2019-03-12 09:36:42 +01:00
Alexander Grothe
01d95ae89b Set encoding for epgd database to utf8 2019-03-11 18:50:22 +01:00
Alexander Grothe
c706146eac Update Manual.org and Manual.html 2019-03-10 20:41:01 +01:00
Alexander Grothe
71e772cdca Add role for epgd
This is an initial draft. Many thanks to
minixjr (https://www.vdr-portal.de/forum/index.php?thread/131575-yavdr-ansible/&postID=1313526#post1313526).

TODOs:
 - seperate role(s) for vdr-plugin-epg2vdr and scraper2vdr
 - configure epg2vdr and scraper2vdr
 - allow to use a seperate MySQL/MariaDB server instead of a local one
2019-03-10 20:40:01 +01:00
Alexander Grothe
fa25896096 Run dpkg-reconfigure for libdvd-pkg package using a library module 2019-03-09 17:44:35 +01:00
Alexander Grothe
76ace23b5e Improve Compatibility with Python3
replace .iteritems() with .items | list in jinja2 Templates
2019-02-24 18:42:46 +01:00
Alexander Grothe
b816a03d69 Fix syntax error in state value 2019-02-22 15:45:00 +01:00
Alexander Grothe
71c2079f53 Fix video output driver for softhddevice when an intel igp is used.
it's va-api instead of va-pi - thanks to beinhart (vdr-portal.de) for noticing.
2019-02-22 13:36:09 +01:00
Alexander Grothe
08ed05594e Allow Dual Screen Configurations for intel IGPs
improve xrandr_facts.py to match drm and xrandr outputs

TODO: use drm.edid_firmware kernel boot parameter to load EDID files
  on startup
2019-02-22 00:12:02 +01:00
Alexander Grothe
c0dc185952 Adapt set-kodi-display to KODI 18 final 2019-02-04 22:18:48 +01:00
Alexander Grothe
65e2ac1e5f Disable screen blanking by default via xorg configuration snippet
Further changes:
- add ppa:yavdr/experimental-kodi for KODI 18
- add set-kodi-display script to allow switching DISPLAY in dual
screen configuration (inkompatible with KODI 17)
2019-02-04 17:57:34 +01:00
Alexander Grothe
c2962eed4c Add vdrpbd and vdr-addon-lifeguard-ng as default packages
and update rules for dvb ff devices
2019-01-19 12:23:39 +01:00
Alexander Grothe
579f3e0cd3 Remove intel snippet before running xorg-verbose 2019-01-07 22:04:41 +01:00
Alexander Grothe
9180f8d74e Fix quoting and indentation in 20-intel.conf.j2 2019-01-07 21:56:48 +01:00
Alexander Grothe
d4cbb054bd add drm to variables from facts if undefined 2019-01-07 21:44:04 +01:00
Alexander Grothe
8b885221ae Add xorg.conf.d snippet for intel graphics
TODO: load edid early within initramfs
2019-01-07 21:38:30 +01:00
Alexander Grothe
58859dd8d7 Add support for drm subsystem to xrandr_facts.py 2019-01-07 10:33:27 +01:00
Alexander Grothe
387daa0134 Reorganize menuorg template 2019-01-07 09:25:47 +01:00
Alexander Grothe
6f91f95d49 Add proper ansible_managed comment to file 2019-01-07 09:25:08 +01:00
Alexander Grothe
128e1683c1 Add template for menuorg.xml (to test translation filter) 2019-01-05 11:43:59 +01:00
Alexander Grothe
f5d5d78a57 Add role for vdr-plugin-menuorg 2019-01-05 11:42:07 +01:00
Alexander Grothe
711afd35d0 Add some hotkeys for yavdr-frontend actions to rc.xml.j2 template 2019-01-04 14:19:00 +01:00
Alexander Grothe
2559779de3 Several small fixes in various files
- xrandr_facts.py: allow detecting Virtual[1..n] devices in VirtualBox 6.0
2019-01-04 14:17:13 +01:00
Alexander Grothe
89c7254d43 Further cleanup or rc_maps.cfg.j2 2019-01-02 21:27:55 +01:00
Alexander Grothe
6522156b07 Reorganize rc_map.cfg.j2 template
ir-keytable uses the first match for a driver keytable combination (thanks to gotscha
https://www.vdr-portal.de/forum/index.php?thread/131575-yavdr-ansible/&postID=1310666#post1310666
for pointing this out).
2019-01-02 21:17:21 +01:00
Alexander Grothe
1622bbd6e6 Run ir-keytable only if installed 2019-01-02 17:22:33 +01:00
Alexander Grothe
7dd080e9e7 Add hook to reload rc-core keytables on resume 2019-01-02 17:16:11 +01:00
Alexander Grothe
f253d7c864 Add comments to templates for serial-ir 2019-01-02 12:08:37 +01:00
Alexander Grothe
81aeade96c Fix paths for templates 2019-01-02 10:22:52 +01:00
Alexander Grothe
b45785bb6d Fix typos in playbook files 2019-01-02 10:13:18 +01:00