Drücke „Enter”, um zum Inhalt zu springen.

Lenovo Yoga Duet 7I – 13ITL6

Marc Wapelhorst

activate_audio.bsh

#!/usr/bin/bash
while read l ; do sudo /usr/bin/hda-verb /dev/snd/hwC0D0 $l ; done <<END
0x20 0x500 0x24
0x20 0x400 0x41
0x20 0x500 0x26
0x20 0x400 0x2
0x20 0x400 0x0
0x20 0x400 0x0
0x20 0x4b0 0x20
0x20 0x500 0x24
0x20 0x400 0x46
0x20 0x500 0x26
0x20 0x400 0xc
0x20 0x400 0x0
0x20 0x400 0x2a
0x20 0x4b0 0x20
0x20 0x500 0x26
0x20 0x400 0x2
0x20 0x400 0x0
0x20 0x400 0x0
0x20 0x4b0 0x20
END

/etc/sudoers

wapel ALL=(ALL) NOPASSWD: ALL

/lib/systemd/system-sleep/resume

#!/bin/sh

case $1/$2 in
pre/*)
echo "Going to $2..."
# Place your pre suspend commands here, or `exit 0`
# if no pre suspend action required
exit 0
;;
post/*)
echo "Waking up from $2..."
# Place your post suspend (resume) commands here, or `exit 0` 
# if no post suspend action required
/home/wapel/activate_audio.bsh
;;
esac
sudo chmod +x /lib/systemd/system-sleep/resume

audio.desktop

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=fixaudio
Exec=/home/wapel/activate_audio.bsh
Terminal=false
StartupNotify=false
Categories=Application;
X-GNOME-Autostart-enabled=true

gdm Login Screen resolution:

sudo cp /home/USERNAME/.config/monitors.xml ~gdm/.config/