0798652388 info@ictsupport.ch
Select Page

SOUND – Lenovo Legion 9 16IRX9

ICT Support

September 6, 2025

No sound on internal speakers – Ubuntu 24.04.3 LTS

Create a script /usr/local/bin/tas2781-fix with the following contents:
 #!/bin/sh

if [ "$(id -u)" -ne 0 ]; then
  printf "You must run this script as root.\n"
  exit 1
fi

POWER_SAVE_PATH="/sys/module/snd_hda_intel/parameters/power_save"
POWER_CONTROL_PATH="/sys/bus/i2c/drivers/tas2781-hda/i2c-TIAS2781:00/power/control"

check_paths() {
  [ -e "$POWER_SAVE_PATH" ] && [ -e "$POWER_CONTROL_PATH" ]
}

while ! check_paths; do
  sleep 1
done

# Disable snd_hda_intel power saving
printf "0" > "$POWER_SAVE_PATH"

# Disable runtime suspend/resume for tas2781
printf "on" > "$POWER_CONTROL_PATH"

Make script executable:
chmod +x /usr/local/bin/tas2781-fix
Now make a systemd unit /etc/systemd/system/tas2781-fix.service:
[Unit]
Description=Run the tas2781-fix script after the relevant sysfs paths become available

[Service]
Type=oneshot
ExecStart=/usr/local/bin/tas2781-fix
RemainAfterExit=true
TimeoutSec=60

[Install]
WantedBy=multi-user.target
Enable the unit and restart by executing
systemctl daemon-reload
systemctl enable tas2781-fix.service

Reboot.

System

Vielleicht auch interessant …

Konten und Accounts

GOOGLE KONTO Ein Google-Konto ist ein Benutzerkonto, das zur Authentifizierung bei verschiedenen Onlinediensten vom...

read more

0 Comments