Install the launch keyboard configurator.

This commit is contained in:
Tom Alexander 2023-09-10 18:25:36 -04:00
parent babf3bb971
commit a54c966ad0
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 28 additions and 12 deletions

View File

@ -1,13 +1,23 @@
# - name: Install packages
# package:
# name:
# - system76-firmware
# state: present
- name: Build aur packages
register: buildaur
become_user: "{{ build_user.name }}"
command: "aurutils-sync --no-view {{ item }}"
args:
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
loop:
- system76-keyboard-configurator
# - name: Enable services
# systemd:
# enabled: yes
# name: "{{ item }}"
# daemon_reload: yes
# loop:
# - system76-firmware-daemon.service
- name: Update cache
when: buildaur.changed
pacman:
name: []
state: present
update_cache: true
- name: Install packages
package:
name:
- dfu-programmer # For flashing keyboard https://support.system76.com/articles/launch_2-firmware-update/
- avrdude # For flashing keyboard https://support.system76.com/articles/launch_2-firmware-update/
- system76-keyboard-configurator
state: present

View File

@ -1,3 +1,9 @@
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1038", ATTR{idProduct}=="1832", TEST=="power/autosuspend" ATTR{power/autosuspend}="-1"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="308f", ATTR{idProduct}=="0011", TEST=="power/autosuspend" ATTR{power/autosuspend}="-1"
# Launch keyboard
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="3384", ATTR{idProduct}=="0006", TEST=="power/autosuspend" ATTR{power/autosuspend}="-1"
# DFU Programmer on launch keyboard
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="2ff9", TEST=="power/autosuspend" ATTR{power/autosuspend}="-1"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="2ff9", TAG+="uaccess"