From 3c5475ed9d33ba8a29fcc8f5c4062982350352b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 26 Aug 2021 10:51:22 +0200 Subject: OpenBSD update --- roles/workstation/templates/_openbsd/apm-hibernate | 5 +++++ roles/workstation/templates/_openbsd/apm-resume | 16 ++++++++++++++++ roles/workstation/templates/_openbsd/apm-suspend | 5 +++++ roles/workstation/templates/_openbsd/xorg-intel.conf | 9 +++++++++ 4 files changed, 35 insertions(+) create mode 100755 roles/workstation/templates/_openbsd/apm-hibernate create mode 100755 roles/workstation/templates/_openbsd/apm-resume create mode 100755 roles/workstation/templates/_openbsd/apm-suspend create mode 100644 roles/workstation/templates/_openbsd/xorg-intel.conf (limited to 'roles/workstation/templates/_openbsd') diff --git a/roles/workstation/templates/_openbsd/apm-hibernate b/roles/workstation/templates/_openbsd/apm-hibernate new file mode 100755 index 0000000..ef90fed --- /dev/null +++ b/roles/workstation/templates/_openbsd/apm-hibernate @@ -0,0 +1,5 @@ +#!/bin/sh + +set -x -e + +pkill -USR1 xidle diff --git a/roles/workstation/templates/_openbsd/apm-resume b/roles/workstation/templates/_openbsd/apm-resume new file mode 100755 index 0000000..18397b4 --- /dev/null +++ b/roles/workstation/templates/_openbsd/apm-resume @@ -0,0 +1,16 @@ +#!/bin/sh + +set -x -e + +sleep 3 + +sh /etc/netstart iwn0 + +wg_interfaces=$(find /etc/wireguard -type f | sed 's/\.conf$//g') +for wg_interface in ${wg_interfaces}; do + wg_interface=$(basename "${wg_interface}") + wg-quick down "${wg_interface}" + wg-quick up "${wg_interface}" +done + +rcctl -d restart pcscd diff --git a/roles/workstation/templates/_openbsd/apm-suspend b/roles/workstation/templates/_openbsd/apm-suspend new file mode 100755 index 0000000..ef90fed --- /dev/null +++ b/roles/workstation/templates/_openbsd/apm-suspend @@ -0,0 +1,5 @@ +#!/bin/sh + +set -x -e + +pkill -USR1 xidle diff --git a/roles/workstation/templates/_openbsd/xorg-intel.conf b/roles/workstation/templates/_openbsd/xorg-intel.conf new file mode 100644 index 0000000..5d73c65 --- /dev/null +++ b/roles/workstation/templates/_openbsd/xorg-intel.conf @@ -0,0 +1,9 @@ + +# disable tearscreen for Xenocara on OpenBSD +# managed by Ansible + +Section "Device" + Identifier "drm" + Driver "intel" + Option "TearFree" "true" +EndSection -- cgit v1.2.3