Alexander Grothe
9e58e0b4e4
Fix deprecation warnings for Ansible 2.8
2019-05-23 17:10:19 +02:00
Alexander Grothe
9648bae2bd
Fix variable name
...
so it won't clash with the existing nvidia_detected variable (which is
based on PCI(e) devices.
2019-05-23 16:36:42 +02:00
Alexander Grothe
6cf02c5304
Improve check for nvidia driver
...
so it works also on remote machines
2019-05-23 16:27:05 +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
9a35ed4a67
Don't create 20-intel.conf if nvidia_detected
2019-04-08 22:20:34 +02: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
579f3e0cd3
Remove intel snippet before running xorg-verbose
2019-01-07 22:04:41 +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
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
65dc2b4fd7
Allow overriding preferred refresh rate, resolution and connection
...
for xrandr_facts module. You can set own preferences e.g. in a
host_vars/localhost.yml using the variables preferred_refreshrates,
preferred_resolutions and preferred_outputs (see
roles/yavdr-xorg/default/main.yml for default values).
2018-05-10 22:04:45 +02:00
Alexander Grothe
96d2cc9a08
Use yavdr-xorg to control xlogin@vdr.service and x@vt7.service
2018-04-24 09:56:29 +02:00
Alexander Grothe
4d393d924f
Write data from xorg-detect as local facts for futher usage
2018-01-19 07:51:38 +01:00
Alexander Grothe
9c17b948af
fix dictionary creation
2018-01-16 15:08:20 +01:00
Alexander Grothe
06ee0d83a8
Another syntax correction
2018-01-16 15:02:13 +01:00
Alexander Grothe
08c2154220
Fix indentation, reorder tasks
2018-01-16 15:01:27 +01:00
Alexander Grothe
b08f5d842a
Fix indentation
2018-01-16 14:58:22 +01:00
Alexander Grothe
b8b86e8a1d
Write local facts for results of xorg-detect
2018-01-16 14:56:51 +01:00
Alexander Grothe
7de6a0e193
add xrandr variable
2018-01-16 12:28:18 +01:00
Alexander Grothe
3e24e74cff
Write xorg variable to a file
2018-01-16 12:08:18 +01:00
Alexander Grothe
7f8f5b8290
Change from tag to variable first_run
2018-01-07 18:45:01 +01:00
Alexander Grothe
e1b17e00aa
Fix handler name
2018-01-07 17:58:33 +01:00
Alexander Grothe
b1ebc54438
Start xlogin@vdr after xorg.detect using a handler
2018-01-07 17:55:18 +01:00
Alexander Grothe
c36056561f
Add block for repeated start of xorg-verbose@vt7.service
2018-01-07 17:40:29 +01:00
Alexander Grothe
ffc4707fdc
Fix indentation
2018-01-07 14:53:19 +01:00
Alexander Grothe
886fff4f09
First try to improve automatic xorg configuration
...
in order to prevent wrong screen connection names
2018-01-07 12:56:46 +01:00
Alexander Grothe
a84b9b1742
Increase timeout after stopping xlogin@vdr
2017-12-19 15:27:36 +01:00
Alexander Grothe
440032137b
remove colon from name variables, fix org syntax error
2017-11-22 08:17:16 +01:00
Alexander Grothe
75cd1eb560
improve syntax, add new variables for detected gpus
2017-11-21 11:31:02 +01:00
Alexander Grothe
1a10952345
Fix quoting for hardware detection conditions
2017-08-31 15:57:18 +02:00
Alexander Grothe
1b96a3ab7f
Update
2017-07-30 23:53:19 +02:00
Alexander Grothe
e9cc0fec54
use vdr.user variable for xlogin session start
2017-07-30 23:28:13 +02:00
Alexander Grothe
2167d28123
rearrange order of xorg tasks
2017-07-30 23:19:35 +02:00
Alexander Grothe
02ccd7de10
start reorganizing main.yml in roles
2017-07-30 14:29:38 +02:00
Alexander Grothe
6c3cc84c60
Rearrange tasks in yavdr-xorg
2017-07-16 11:05:54 +02:00