Several small fixes in various files

- xrandr_facts.py: allow detecting Virtual[1..n] devices in VirtualBox 6.0
This commit is contained in:
Alexander Grothe 2019-01-04 14:17:13 +01:00
parent 89c7254d43
commit 2559779de3
6 changed files with 13 additions and 11 deletions

View File

@ -1687,7 +1687,7 @@ ati_remote rc-medion-x10-digitainer /lib/udev/rc_keymaps/rc-medion-x10-digi
# * * dibusb # found in dibusb-common.c # * * dibusb # found in dibusb-common.c
# * * digitv # found in digitv.c # * * digitv # found in digitv.c
# * * megasky # found in m920x.c # * * megasky # found in m920x.c
# * * tvwalkerir-kbd-i2c rc-hauppauge /lib/udev/rc_keymaps/rc-hauppaugetwin # found in m920x.c # * * tvwalkerir-kbd-i2c # found in m920x.c
# * * pinnacle310e # found in m920x.c # * * pinnacle310e # found in m920x.c
# * * haupp # found in nova-t-usb2.c # * * haupp # found in nova-t-usb2.c
# * * opera1 # found in opera1.c # * * opera1 # found in opera1.c
@ -2459,8 +2459,8 @@ preferred_refreshrates:
- name: update xorg and xrandr variable with values from local facts if needed - name: update xorg and xrandr variable with values from local facts if needed
set_fact: set_fact:
xorg: '{{ ansible_local.xorg }}' xorg: '{{ ansible_local.xorg.xorg }}'
xrandr: '{{ ansible_local.xrandr }}' xrandr: '{{ ansible_local.xrandr.xrandr }}'
when: when:
- xrandr is undefined - xrandr is undefined
- xorg is undefined - xorg is undefined
@ -5242,7 +5242,7 @@ The tool ubuntu-drivers is used to install the matching driver version for nvidi
:PROPERTIES: :PROPERTIES:
:ID: f03f3758-9188-4e98-a26a-bbddf14d8194 :ID: f03f3758-9188-4e98-a26a-bbddf14d8194
:END: :END:
This role installs the guest additions for virtualbox guests on Ubuntu 16.04 This role installs the guest additions for virtualbox guests on Ubuntu 18.04
#+BEGIN_SRC yaml :tangle roles/autoinstall-virtualbox-guest/tasks/main.yml :padline no #+BEGIN_SRC yaml :tangle roles/autoinstall-virtualbox-guest/tasks/main.yml :padline no
--- ---

View File

@ -12,7 +12,7 @@ Please note that this is still work in progress and several features of yaVDR 0.
- 32 Bit Installations are untested, but should work - 32 Bit Installations are untested, but should work
- You need an IGP/GPU with support for VDPAU or VAAPI if you want to use software output plugins for VDR like softhddevice or vaapidevice - You need an IGP/GPU with support for VDPAU or VAAPI if you want to use software output plugins for VDR like softhddevice or vaapidevice
- xineliboutput/vdr-sxfe works with software rendering, too - xineliboutput/vdr-sxfe works with software rendering, too
- Can be used in a VirtualBox VM - Can be used in a VirtualBox VM (VirtualBox 5.22 works better than Version 6.0.0)
## Usage: ## Usage:

View File

@ -25,7 +25,7 @@ options:
- the DISPLAY variable to use when calling xrandr - the DISPLAY variable to use when calling xrandr
preferred_outputs: preferred_outputs:
required: False required: False
default: ["HDMI", "DP", "DVI", "VGA", "TV"] default: ["HDMI", "DP", "DVI", "VGA", "TV", "Virtual"]
description: description:
- ranking of the preferred display connectors - ranking of the preferred display connectors
preferred_refreshrates: preferred_refreshrates:
@ -59,7 +59,7 @@ EXAMPLES = '''
ARG_SPECS = { ARG_SPECS = {
'display': dict(default=":0", type='str', required=False), 'display': dict(default=":0", type='str', required=False),
'preferred_outputs': dict( 'preferred_outputs': dict(
default=["HDMI", "DP", "DVI", "VGA", "TV"], type='list', required=False), default=["HDMI", "DP", "DVI", "VGA", "TV", "Virtual"], type='list', required=False),
'preferred_refreshrates': dict( 'preferred_refreshrates': dict(
default=[50, 60, 75, 30, 25], type='list', required=False), default=[50, 60, 75, 30, 25], type='list', required=False),
'preferred_resolutions': dict( 'preferred_resolutions': dict(
@ -71,7 +71,7 @@ ARG_SPECS = {
SCREEN_REGEX = re.compile("^(?P<screen>Screen\s\d+:)(?:.*)") SCREEN_REGEX = re.compile("^(?P<screen>Screen\s\d+:)(?:.*)")
CONNECTOR_REGEX = re.compile( CONNECTOR_REGEX = re.compile(
"^(?P<connector>.*-\d+)\s(?P<connection_state>connected|disconnected)\s(?P<primary>primary)?") "^(?P<connector>.*-?\d+)\s(?P<connection_state>connected|disconnected)\s(?P<primary>primary)?")
MODE_REGEX = re.compile("^\s+(?P<resolution>\d{3,}x\d{3,}).*") MODE_REGEX = re.compile("^\s+(?P<resolution>\d{3,}x\d{3,}).*")
Mode = namedtuple('Mode', ['connection', 'resolution', 'refreshrate']) Mode = namedtuple('Mode', ['connection', 'resolution', 'refreshrate'])

View File

@ -173,7 +173,7 @@ ati_remote rc-medion-x10-digitainer /lib/udev/rc_keymaps/rc-medion-x10-digi
# * * dibusb # found in dibusb-common.c # * * dibusb # found in dibusb-common.c
# * * digitv # found in digitv.c # * * digitv # found in digitv.c
# * * megasky # found in m920x.c # * * megasky # found in m920x.c
# * * tvwalkerir-kbd-i2c rc-hauppauge /lib/udev/rc_keymaps/rc-hauppaugetwin # found in m920x.c # * * tvwalkerir-kbd-i2c # found in m920x.c
# * * pinnacle310e # found in m920x.c # * * pinnacle310e # found in m920x.c
# * * haupp # found in nova-t-usb2.c # * * haupp # found in nova-t-usb2.c
# * * opera1 # found in opera1.c # * * opera1 # found in opera1.c

View File

@ -131,8 +131,8 @@
- name: update xorg and xrandr variable with values from local facts if needed - name: update xorg and xrandr variable with values from local facts if needed
set_fact: set_fact:
xorg: '{{ ansible_local.xorg }}' xorg: '{{ ansible_local.xorg.xorg }}'
xrandr: '{{ ansible_local.xrandr }}' xrandr: '{{ ansible_local.xrandr.xrandr }}'
when: when:
- xrandr is undefined - xrandr is undefined
- xorg is undefined - xorg is undefined

View File

@ -1,3 +1,5 @@
{{ ansible_managed | comment }}
Section "Device" Section "Device"
Identifier "nvidia" Identifier "nvidia"
Driver "nvidia" Driver "nvidia"