From 0c7a667c2141033d6dac956f6b45e507a32370e2 Mon Sep 17 00:00:00 2001
From: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
Date: Tue, 23 Aug 2022 14:16:49 -0300
Subject: [PATCH] Disable systemd-backlight@leds:asus::kbd_backlight.service

This service is failing on the UP Squared 6000 board, causing the sanity
check LAVA test to constantly fail.

This seems to be an issue on the asus-nb-wmi driver not being able to
drive the brightness properly on this device.

As the kbd-backlight is not really a requirement, let's disable this
service temporarily on Apertis.

https://gitlab.apertis.org/infrastructure/apertis-issues/-/issues/163

Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
---
 ospack-fixedfunction.yaml | 8 ++++++++
 ospack-hmi.yaml           | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/ospack-fixedfunction.yaml b/ospack-fixedfunction.yaml
index f9d7e39e..ae78a705 100644
--- a/ospack-fixedfunction.yaml
+++ b/ospack-fixedfunction.yaml
@@ -213,6 +213,14 @@ actions:
     description: "Disable fstrim.service by default"
     command: systemctl disable fstrim.service
 
+  ## Disable systemd-backlight service on leds:asus::kbd_backlight as this is
+  ## failing on the UP Squared 6000 board.
+  ## https://gitlab.apertis.org/infrastructure/apertis-issues/-/issues/163
+  - action: run
+    chroot: true
+    description: "Mask systemd-backlight@leds:asus::kbd_backlight.service by default"
+    command: systemctl mask systemd-backlight@leds:asus::kbd_backlight.service
+
   - action: run
     chroot: true
     description: "Enable iptables services by default"
diff --git a/ospack-hmi.yaml b/ospack-hmi.yaml
index 0854bc60..dc1dc477 100644
--- a/ospack-hmi.yaml
+++ b/ospack-hmi.yaml
@@ -285,6 +285,14 @@ actions:
     description: "Disable fstrim.service by default"
     command: systemctl disable fstrim.service
 
+  ## Disable systemd-backlight service on leds:asus::kbd_backlight as this is
+  ## failing on the UP Squared 6000 board.
+  ## https://gitlab.apertis.org/infrastructure/apertis-issues/-/issues/163
+  - action: run
+    chroot: true
+    description: "Mask systemd-backlight@leds:asus::kbd_backlight.service by default"
+    command: systemctl mask systemd-backlight@leds:asus::kbd_backlight.service
+
   - action: run
     chroot: true
     description: "Enable iptables services by default"
-- 
GitLab