The orphaned module cleanup loop was the last statement in the script, so when the glob matched nothing the trailing && list left an exit status of 1. run_logged propagates that, aborting hardware setup on every Tuxedo and Slimbook install. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
19 lines
841 B
Bash
19 lines
841 B
Bash
# Install Tuxedo drivers for keyboard backlighting on Tuxedo laptops and
|
|
# compatible devices like the Slimbook Executive (Clevo/Tuxedo chassis).
|
|
if cat /sys/class/dmi/id/sys_vendor 2>/dev/null | grep -qi "TUXEDO\|Slimbook"; then
|
|
omarchy-pkg-add linux-headers tuxedo-drivers-nocompatcheck-dkms
|
|
|
|
# Blacklist the legacy clevo_xsm_wmi module which conflicts with the tuxedo-drivers
|
|
# clevo_wmi module. When clevo_xsm_wmi loads first, it grabs the Clevo WMI GUIDs,
|
|
# preventing tuxedo-drivers from initializing the keyboard backlight properly.
|
|
mkdir -p /etc/modprobe.d
|
|
echo "blacklist clevo_xsm_wmi" > /etc/modprobe.d/blacklist-clevo-xsm-wmi.conf
|
|
|
|
# Remove any orphaned clevo_xsm_wmi module files not managed by a package
|
|
for f in /lib/modules/*/extra/clevo-xsm-wmi.ko; do
|
|
if [[ -f $f ]]; then
|
|
rm "$f"
|
|
fi
|
|
done
|
|
fi
|