mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Asus Zenbook UX5406AA Display Backlight Fix (#5620)
* Extract ASUS Expertbook B9406 display backlight fix and apply it for Zenbook ux5406aa too * Add migration for Panther Lake Asus display bakclight fix * Check if limine-update exists before executing it in the migration Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
81aaade827
commit
bc62c23351
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# omarchy:summary=Detect ASUS Zenbook UX5406AA series laptops on Intel Panther Lake.
|
||||
|
||||
omarchy-hw-match "ux5406aa" && omarchy-hw-intel-ptl
|
||||
@@ -51,6 +51,7 @@ run_logged $OMARCHY_INSTALL/config/hardware/intel/sof-firmware.sh
|
||||
|
||||
run_logged $OMARCHY_INSTALL/config/hardware/dell/fix-xps-haptic-touchpad.sh
|
||||
|
||||
run_logged $OMARCHY_INSTALL/config/hardware/asus/fix-asus-ptl-display-backlight.sh
|
||||
run_logged $OMARCHY_INSTALL/config/hardware/asus/fix-asus-ptl-b9406-display.sh
|
||||
run_logged $OMARCHY_INSTALL/config/hardware/asus/fix-asus-ptl-b9406-touchpad.sh
|
||||
run_logged $OMARCHY_INSTALL/config/hardware/asus/fix-audio-mixer.sh
|
||||
|
||||
@@ -1,21 +1,15 @@
|
||||
# Display fixes for ASUS ExpertBook B9406 (Panther Lake / Xe3 iGPU).
|
||||
# Display fix for ASUS ExpertBook B9406 (Panther Lake / Xe3 iGPU).
|
||||
#
|
||||
# Panel Replay is Xe3-new, default-on in the xe driver, and has a broken
|
||||
# exit/wake path on this eDP panel: the panel latches the last-presented
|
||||
# frame in self-refresh and never wakes for subsequent atomic commits, so
|
||||
# the screen only updates on a full modeset (e.g. a VT switch). The older
|
||||
# xe.enable_psr=0 knob does not cover Panel Replay.
|
||||
#
|
||||
# The panel's EDID on eDP-1 reads as empty, so xe takes backlight type from
|
||||
# VBT (which says PWM) but the panel actually wants DPCD AUX backlight.
|
||||
# Without xe.enable_dpcd_backlight=1, intel_backlight sysfs writes succeed
|
||||
# but produce no visible change; brightness is effectively binary.
|
||||
|
||||
if omarchy-hw-asus-expertbook-b9406; then
|
||||
sudo mkdir -p /etc/limine-entry-tool.d
|
||||
cat <<EOF | sudo tee /etc/limine-entry-tool.d/asus-expertbook-b9406-display.conf >/dev/null
|
||||
# ASUS ExpertBook B9406 (Panther Lake / Xe3) display workarounds
|
||||
# ASUS ExpertBook B9406 (Panther Lake / Xe3) display workaround
|
||||
KERNEL_CMDLINE[default]+=" xe.enable_panel_replay=0"
|
||||
KERNEL_CMDLINE[default]+=" xe.enable_dpcd_backlight=1"
|
||||
EOF
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# Display backlight fix for ASUS Panther Lake / Xe3 iGPU laptops.
|
||||
# Enabled only for ExpertBook B9406 and Zenbook UX5406AA for now.
|
||||
# Other models need confirmation whether the issue exists there too.
|
||||
#
|
||||
# The panel's EDID on eDP-1 reads as empty, so xe takes backlight type from
|
||||
# VBT (which says PWM) but the panel actually wants DPCD AUX backlight.
|
||||
# Without xe.enable_dpcd_backlight=1, intel_backlight sysfs writes succeed
|
||||
# but produce no visible change; brightness is effectively binary.
|
||||
|
||||
if omarchy-hw-asus-expertbook-b9406 || omarchy-hw-asus-zenbook-ux5406aa; then
|
||||
sudo mkdir -p /etc/limine-entry-tool.d
|
||||
cat <<EOF | sudo tee /etc/limine-entry-tool.d/asus-ptl-display-backlight.conf >/dev/null
|
||||
# ASUS Panther Lake display backlight fix
|
||||
KERNEL_CMDLINE[default]+=" xe.enable_dpcd_backlight=1"
|
||||
EOF
|
||||
fi
|
||||
@@ -0,0 +1,15 @@
|
||||
echo "Fix display backlight on supported ASUS Panther Lake laptops"
|
||||
|
||||
EXPERTBOOK_DROP_IN="/etc/limine-entry-tool.d/asus-expertbook-b9406-display.conf"
|
||||
|
||||
if omarchy-hw-asus-expertbook-b9406 || omarchy-hw-asus-zenbook-ux5406aa; then
|
||||
if [[ -f $EXPERTBOOK_DROP_IN ]]; then
|
||||
sudo sed -i '/xe\.enable_dpcd_backlight/d' "$EXPERTBOOK_DROP_IN"
|
||||
fi
|
||||
|
||||
source "$OMARCHY_PATH/install/config/hardware/asus/fix-asus-ptl-display-backlight.sh"
|
||||
|
||||
if omarchy-cmd-present limine-update; then
|
||||
sudo limine-update
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user