Some pinebook love
This commit is contained in:
parent
16bb2362ad
commit
34f8692dc2
|
@ -93,20 +93,30 @@
|
||||||
become: yes
|
become: yes
|
||||||
when: arch_based
|
when: arch_based
|
||||||
|
|
||||||
|
- name: Enable pacman ParallelDownloads
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/pacman.conf
|
||||||
|
regexp: '^#?ParallelDownloads'
|
||||||
|
line: 'ParallelDownloads = 5'
|
||||||
|
insertafter: '^\[options\]$'
|
||||||
|
become: yes
|
||||||
|
when: arch_based
|
||||||
|
|
||||||
- name: Enable pacman colors
|
- name: Enable pacman colors
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/pacman.conf
|
path: /etc/pacman.conf
|
||||||
regexp: "^#?Color"
|
regexp: '^#?Color'
|
||||||
line: "Color"
|
line: 'Color'
|
||||||
|
insertafter: '^\[options\]$'
|
||||||
become: yes
|
become: yes
|
||||||
when: arch_based
|
when: arch_based
|
||||||
|
|
||||||
- name: Enable pacman pac-man
|
- name: Enable pacman pac-man
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/pacman.conf
|
path: /etc/pacman.conf
|
||||||
regexp: "^#?ILoveCandy"
|
regexp: '^#?ILoveCandy'
|
||||||
line: "ILoveCandy"
|
line: 'ILoveCandy'
|
||||||
insertafter: "^#?Color"
|
insertafter: '^#?Color'
|
||||||
become: yes
|
become: yes
|
||||||
when: arch_based
|
when: arch_based
|
||||||
|
|
||||||
|
|
|
@ -34,3 +34,8 @@
|
||||||
debug:
|
debug:
|
||||||
msg: "The Wi-Fi configuration was changed, but not applied to let this playbook finish. A reboot is required."
|
msg: "The Wi-Fi configuration was changed, but not applied to let this playbook finish. A reboot is required."
|
||||||
listen: wifi setup changed
|
listen: wifi setup changed
|
||||||
|
|
||||||
|
- name: Warn about changed Panfrost config
|
||||||
|
debug:
|
||||||
|
msg: "The Panfrost display driver configuration was changed, but needs a reboot to be applied."
|
||||||
|
listen: panfrost config changed
|
||||||
|
|
|
@ -38,6 +38,33 @@
|
||||||
become: yes
|
become: yes
|
||||||
when: arch_based and False # I'm trying to remember why I usually delete this thing
|
when: arch_based and False # I'm trying to remember why I usually delete this thing
|
||||||
|
|
||||||
|
# Verbose logging during boot
|
||||||
|
|
||||||
|
- name: Check if using Uboot
|
||||||
|
stat:
|
||||||
|
path: /boot/extlinux/extlinux.conf
|
||||||
|
register: extlinux
|
||||||
|
# This (and the following) was made with the Pinebook in mind,
|
||||||
|
# not sure about compatibility
|
||||||
|
|
||||||
|
- name: Remove non-tty1 console (Uboot)
|
||||||
|
replace:
|
||||||
|
path: /boot/extlinux/extlinux.conf
|
||||||
|
regexp: '^APPEND(.*) console=(?!tty1)\S+(.*)$'
|
||||||
|
replace: 'APPEND\1\2'
|
||||||
|
become: yes
|
||||||
|
when: extlinux.stat.exists
|
||||||
|
# Only one console= will be removed because regular expression are either hard
|
||||||
|
# or somewhat limited. It's just what I need anyway
|
||||||
|
|
||||||
|
- name: Remove bootsplash.bootfile (Uboot)
|
||||||
|
replace:
|
||||||
|
path: /boot/extlinux/extlinux.conf
|
||||||
|
regexp: '^APPEND(.*) bootsplash.bootfile=\S+(.*)$'
|
||||||
|
replace: 'APPEND\1\2'
|
||||||
|
become: yes
|
||||||
|
when: extlinux.stat.exists
|
||||||
|
|
||||||
# Xorg configuration
|
# Xorg configuration
|
||||||
|
|
||||||
- name: Check if there is nvidia-xrun is installed
|
- name: Check if there is nvidia-xrun is installed
|
||||||
|
@ -115,6 +142,24 @@
|
||||||
notify: etc changed
|
notify: etc changed
|
||||||
loop: "{{ xorg_common_config_dirs }}"
|
loop: "{{ xorg_common_config_dirs }}"
|
||||||
|
|
||||||
|
- name: List modules we're using
|
||||||
|
slurp:
|
||||||
|
src: /proc/modules
|
||||||
|
register: modules
|
||||||
|
when: display_server
|
||||||
|
# Not sure the module will be loaded in early setup stages though
|
||||||
|
|
||||||
|
- name: Make panfrost use OpenGL 3.3
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/environment
|
||||||
|
line: 'PAN_MESA_DEBUG="gl3"'
|
||||||
|
regexp: '^#? ?PAN_MESA_DEBUG='
|
||||||
|
become: yes
|
||||||
|
when: display_server and using_panfrost
|
||||||
|
vars:
|
||||||
|
using_panfrost: "{{ 'panfrost' in (modules.content | b64decode) }}"
|
||||||
|
notify: panfrost config changed
|
||||||
|
|
||||||
# Numlock on boot
|
# Numlock on boot
|
||||||
|
|
||||||
- name: set numlock on boot
|
- name: set numlock on boot
|
||||||
|
|
Loading…
Reference in a new issue