Last active 1733121019

stuff I modified in Fedora 41 for Asus Zenbook 14

adien's Avatar adien revised this gist 1733121019. Go to revision

1 file changed, 6 insertions, 4 deletions

_notes.md

@@ -2,13 +2,15 @@
2 2
3 3 ### Fix Audio Issues
4 4
5 - The default audio configuration has issues with headphone mic, to solve that:
6 - - use `hdajackretask` to override pin `0x19` as microphone
7 - - create `/etc/modprobe.d/blacklist-local.conf` to blacklist `snd-soc-dmic` kernel module to remove non-existing Digital Mic
5 + The default audio configuration has two issues related to headset mic:
6 + - wrong headset mic pin configuration for Realtek ALC294
7 + - to fix: use `hdajackretask` to manually override pin `0x19` as `microphone`
8 + - auto detection of non-existing Digital Mic messing up audio device selection
9 + - to fix: create `/etc/modprobe.d/blacklist-local.conf` and blacklist `snd-soc-dmic` module.
8 10
9 11 With the modified configuration above, there are only two modes depending on whether an audio jack is plugged
10 12 - onboard speaker + onboard mic
11 - - headset speaker + headset mic
13 + - headset speaker + headset mic
12 14
13 15 ### Tweaks
14 16

adien's Avatar adien revised this gist 1733120529. Go to revision

No changes

adien's Avatar adien revised this gist 1733120464. Go to revision

No changes

adien's Avatar adien revised this gist 1733120431. Go to revision

1 file changed, 12 insertions, 2 deletions

_notes.md

@@ -1,10 +1,20 @@
1 1 ## Fedora 41 on ASUS Zenbook 14 UM3406HA
2 2
3 + ### Fix Audio Issues
4 +
5 + The default audio configuration has issues with headphone mic, to solve that:
6 + - use `hdajackretask` to override pin `0x19` as microphone
7 + - create `/etc/modprobe.d/blacklist-local.conf` to blacklist `snd-soc-dmic` kernel module to remove non-existing Digital Mic
8 +
9 + With the modified configuration above, there are only two modes depending on whether an audio jack is plugged
10 + - onboard speaker + onboard mic
11 + - headset speaker + headset mic
12 +
3 13 ### Tweaks
4 14
5 15 - created systemd service for setting up charge limit to 80%
6 - - had to use `hdajackretask` to override pin 0x19 as microphone
7 - - had to use `blacklist snd-soc-dmic` in `/etc/modprobe.d/blacklist-local.conf` to remove non-existing Digital Mic
16 + - this would prolong the battery lifespan if the laptop is plugged to AC power most of the time.
17 + - installed [easyeffect](https://github.com/wwmm/easyeffects) and create a microphone preset `microphone.json` to achieve very clean mic input.
8 18
9 19 ---
10 20 ```

adien's Avatar adien revised this gist 1732092224. Go to revision

1 file changed, 1 insertion

_notes.md

@@ -6,6 +6,7 @@
6 6 - had to use `hdajackretask` to override pin 0x19 as microphone
7 7 - had to use `blacklist snd-soc-dmic` in `/etc/modprobe.d/blacklist-local.conf` to remove non-existing Digital Mic
8 8
9 + ---
9 10 ```
10 11 .',;::::;,'. adien@se-270
11 12 .';:cccccccccccc:;,. ------------

adien's Avatar adien revised this gist 1732092170. Go to revision

2 files changed, 33 insertions, 27 deletions

_notes.md

@@ -1,5 +1,37 @@
1 1 ## Fedora 41 on ASUS Zenbook 14 UM3406HA
2 2
3 + ### Tweaks
4 +
3 5 - created systemd service for setting up charge limit to 80%
4 6 - had to use `hdajackretask` to override pin 0x19 as microphone
5 - - had to use `blacklist snd-soc-dmic` in /etc/modprobe.d/blacklist-local.conf to remove non-existing Digital Mic
7 + - had to use `blacklist snd-soc-dmic` in `/etc/modprobe.d/blacklist-local.conf` to remove non-existing Digital Mic
8 +
9 + ```
10 + .',;::::;,'. adien@se-270
11 + .';:cccccccccccc:;,. ------------
12 + .;cccccccccccccccccccccc;. OS: Fedora Linux 41 (Workstation Edition) x86_64
13 + .:cccccccccccccccccccccccccc:. Host: ASUS Zenbook 14 UM3406HA_UM3406HA (1.0)
14 + .;ccccccccccccc;.:dddl:.;ccccccc;. Kernel: Linux 6.11.8-300.fc41.x86_64
15 + .:ccccccccccccc;OWMKOOXMWd;ccccccc:. Uptime: 3 hours, 34 mins
16 + .:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Packages: 1992 (rpm), 13 (flatpak)
17 + ,cccccccccccccc;MMM.;cc;;WW:;cccccccc, Shell: bash 5.2.32
18 + :cccccccccccccc;MMM.;cccccccccccccccc: Display (GSM5AB8): 1920x1080 @ 60 Hz in 22" [External]
19 + :ccccccc;oxOOOo;MMM000k.;cccccccccccc: DE: GNOME 47.1
20 + cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; WM: Mutter (Wayland)
21 + ccccc;XMO';cccc;MMM.;cccccccccccccccc' WM Theme: Adwaita
22 + ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Theme: Adwaita [GTK2/3/4]
23 + ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Icons: Adwaita [GTK2/3/4]
24 + cccccc;dNMWXXXWM0:;cccccccccccccc:, Font: Cantarell (11pt) [GTK2/3/4]
25 + cccccccc;.:odl:.;cccccccccccccc:,. Cursor: Adwaita (24px)
26 + ccccccccccccccccccccccccccccc:'. Terminal: kitty 0.37.0
27 + :ccccccccccccccccccccccc:;,.. Terminal Font: NotoSansMono-Regular (11pt)
28 + ':cccccccccccccccc::;,. CPU: AMD Ryzen 7 8840HS w/ Radeon 780M Graphics (16) @ 5.13 GHz
29 + GPU: AMD Phoenix3 [Integrated]
30 + Memory: 5.73 GiB / 14.91 GiB (38%)
31 + Swap: 0 B / 8.00 GiB (0%)
32 + Disk (/): 9.00 GiB / 475.34 GiB (2%) - btrfs
33 + Local IP (enp101s0f3u1u1): 10.250.9.130/16
34 + Battery (ASUS Battery): 79% [AC Connected]
35 + Locale: en_US.UTF-8
36 +
37 + ```

_system-info (file deleted)

@@ -1,26 +0,0 @@
1 - .',;::::;,'. adien@se-270
2 - .';:cccccccccccc:;,. ------------
3 - .;cccccccccccccccccccccc;. OS: Fedora Linux 41 (Workstation Edition) x86_64
4 - .:cccccccccccccccccccccccccc:. Host: ASUS Zenbook 14 UM3406HA_UM3406HA (1.0)
5 - .;ccccccccccccc;.:dddl:.;ccccccc;. Kernel: Linux 6.11.8-300.fc41.x86_64
6 - .:ccccccccccccc;OWMKOOXMWd;ccccccc:. Uptime: 3 hours, 34 mins
7 - .:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Packages: 1992 (rpm), 13 (flatpak)
8 - ,cccccccccccccc;MMM.;cc;;WW:;cccccccc, Shell: bash 5.2.32
9 - :cccccccccccccc;MMM.;cccccccccccccccc: Display (GSM5AB8): 1920x1080 @ 60 Hz in 22" [External]
10 - :ccccccc;oxOOOo;MMM000k.;cccccccccccc: DE: GNOME 47.1
11 - cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; WM: Mutter (Wayland)
12 - ccccc;XMO';cccc;MMM.;cccccccccccccccc' WM Theme: Adwaita
13 - ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Theme: Adwaita [GTK2/3/4]
14 - ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Icons: Adwaita [GTK2/3/4]
15 - cccccc;dNMWXXXWM0:;cccccccccccccc:, Font: Cantarell (11pt) [GTK2/3/4]
16 - cccccccc;.:odl:.;cccccccccccccc:,. Cursor: Adwaita (24px)
17 - ccccccccccccccccccccccccccccc:'. Terminal: kitty 0.37.0
18 - :ccccccccccccccccccccccc:;,.. Terminal Font: NotoSansMono-Regular (11pt)
19 - ':cccccccccccccccc::;,. CPU: AMD Ryzen 7 8840HS w/ Radeon 780M Graphics (16) @ 5.13 GHz
20 - GPU: AMD Phoenix3 [Integrated]
21 - Memory: 5.73 GiB / 14.91 GiB (38%)
22 - Swap: 0 B / 8.00 GiB (0%)
23 - Disk (/): 9.00 GiB / 475.34 GiB (2%) - btrfs
24 - Local IP (enp101s0f3u1u1): 10.250.9.130/16
25 - Battery (ASUS Battery): 79% [AC Connected]
26 - Locale: en_US.UTF-8

adien's Avatar adien revised this gist 1732092043. Go to revision

1 file changed, 1 insertion, 1 deletion

_notes.txt renamed to _notes.md

@@ -1,4 +1,4 @@
1 - Fedora 41 on Zenbook 14
1 + ## Fedora 41 on ASUS Zenbook 14 UM3406HA
2 2
3 3 - created systemd service for setting up charge limit to 80%
4 4 - had to use `hdajackretask` to override pin 0x19 as microphone

adien's Avatar adien revised this gist 1732091968. Go to revision

1 file changed, 0 insertions, 0 deletions

notes.txt renamed to _notes.txt

File renamed without changes

adien's Avatar adien revised this gist 1732091666. Go to revision

1 file changed, 0 insertions, 0 deletions

system-info renamed to _system-info

File renamed without changes

adien's Avatar adien revised this gist 1732091609. Go to revision

5 files changed, 150 insertions

battery-charge-limit.service(file created)

@@ -0,0 +1,15 @@
1 + # /etc/systemd/system/battery-charge-limit.service
2 + [Unit]
3 + Description=Set the battery charge threshold
4 + After=multi-user.target
5 + StartLimitBurst=10
6 +
7 + [Service]
8 + Type=oneshot
9 + ExecStartPre=/usr/bin/test -f /sys/class/power_supply/BAT0/charge_control_end_threshold
10 + ExecStart=/bin/bash -c 'echo 80 > /sys/class/power_supply/BAT0/charge_control_end_threshold'
11 + RestartSec=15s
12 + Restart=on-failure
13 +
14 + [Install]
15 + WantedBy=multi-user.target

blacklist-local.conf(file created)

@@ -0,0 +1,2 @@
1 + #/etc/modprobe.d/blacklist-local.conf
2 + blacklist snd-soc-dmic

microphone.json(file created)

@@ -0,0 +1,102 @@
1 + {
2 + "input": {
3 + "autogain#0": {
4 + "bypass": false,
5 + "input-gain": 0.0,
6 + "maximum-history": 15,
7 + "output-gain": 0.0,
8 + "reference": "Geometric Mean (MSI)",
9 + "silence-threshold": -70.0,
10 + "target": -23.0
11 + },
12 + "blocklist": [],
13 + "gate#0": {
14 + "attack": 40.0,
15 + "bypass": false,
16 + "curve-threshold": -57.0,
17 + "curve-zone": -6.0,
18 + "dry": -14.0,
19 + "hpf-frequency": 100.0,
20 + "hpf-mode": "24 dB/oct",
21 + "hysteresis": false,
22 + "hysteresis-threshold": -12.0,
23 + "hysteresis-zone": -6.0,
24 + "input-gain": 0.0,
25 + "lpf-frequency": 1000.0,
26 + "lpf-mode": "24 dB/oct",
27 + "makeup": 0.0,
28 + "output-gain": 0.0,
29 + "reduction": -72.0,
30 + "release": 800.0,
31 + "sidechain": {
32 + "input": "Internal",
33 + "lookahead": 8.0,
34 + "mode": "RMS",
35 + "preamp": 0.0,
36 + "reactivity": 10.0,
37 + "source": "Middle",
38 + "stereo-split-source": "Left/Right"
39 + },
40 + "stereo-split": false,
41 + "wet": -16.0
42 + },
43 + "limiter#0": {
44 + "alr": true,
45 + "alr-attack": 5.0,
46 + "alr-knee": 0.0,
47 + "alr-release": 50.0,
48 + "attack": 5.0,
49 + "bypass": false,
50 + "dithering": "24bit",
51 + "external-sidechain": false,
52 + "gain-boost": false,
53 + "input-gain": 0.0,
54 + "lookahead": 5.0,
55 + "mode": "Exp Tail",
56 + "output-gain": 0.0,
57 + "oversampling": "Full x2(2L)",
58 + "release": 5.0,
59 + "sidechain-preamp": 0.0,
60 + "stereo-link": 100.0,
61 + "threshold": 0.0
62 + },
63 + "plugins_order": [
64 + "rnnoise#0",
65 + "gate#0",
66 + "autogain#0",
67 + "limiter#0",
68 + "stereo_tools#0"
69 + ],
70 + "rnnoise#0": {
71 + "bypass": false,
72 + "enable-vad": true,
73 + "input-gain": 0.0,
74 + "model-path": "",
75 + "output-gain": 0.0,
76 + "release": 20.0,
77 + "vad-thres": 50.0,
78 + "wet": 0.0
79 + },
80 + "stereo_tools#0": {
81 + "balance-in": 0.0,
82 + "balance-out": 0.0,
83 + "bypass": false,
84 + "delay": -3.469446951953614e-18,
85 + "input-gain": 0.0,
86 + "middle-level": 0.0,
87 + "middle-panorama": 0.0,
88 + "mode": "LR > LL (Mono Left Channel)",
89 + "mutel": false,
90 + "muter": false,
91 + "output-gain": 0.0,
92 + "phasel": false,
93 + "phaser": false,
94 + "sc-level": 1.0,
95 + "side-balance": 0.0,
96 + "side-level": 0.0,
97 + "softclip": false,
98 + "stereo-base": 0.0,
99 + "stereo-phase": 0.0
100 + }
101 + }
102 + }

notes.txt(file created)

@@ -0,0 +1,5 @@
1 + Fedora 41 on Zenbook 14
2 +
3 + - created systemd service for setting up charge limit to 80%
4 + - had to use `hdajackretask` to override pin 0x19 as microphone
5 + - had to use `blacklist snd-soc-dmic` in /etc/modprobe.d/blacklist-local.conf to remove non-existing Digital Mic

system-info(file created)

@@ -0,0 +1,26 @@
1 + .',;::::;,'. adien@se-270
2 + .';:cccccccccccc:;,. ------------
3 + .;cccccccccccccccccccccc;. OS: Fedora Linux 41 (Workstation Edition) x86_64
4 + .:cccccccccccccccccccccccccc:. Host: ASUS Zenbook 14 UM3406HA_UM3406HA (1.0)
5 + .;ccccccccccccc;.:dddl:.;ccccccc;. Kernel: Linux 6.11.8-300.fc41.x86_64
6 + .:ccccccccccccc;OWMKOOXMWd;ccccccc:. Uptime: 3 hours, 34 mins
7 + .:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Packages: 1992 (rpm), 13 (flatpak)
8 + ,cccccccccccccc;MMM.;cc;;WW:;cccccccc, Shell: bash 5.2.32
9 + :cccccccccccccc;MMM.;cccccccccccccccc: Display (GSM5AB8): 1920x1080 @ 60 Hz in 22" [External]
10 + :ccccccc;oxOOOo;MMM000k.;cccccccccccc: DE: GNOME 47.1
11 + cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; WM: Mutter (Wayland)
12 + ccccc;XMO';cccc;MMM.;cccccccccccccccc' WM Theme: Adwaita
13 + ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Theme: Adwaita [GTK2/3/4]
14 + ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Icons: Adwaita [GTK2/3/4]
15 + cccccc;dNMWXXXWM0:;cccccccccccccc:, Font: Cantarell (11pt) [GTK2/3/4]
16 + cccccccc;.:odl:.;cccccccccccccc:,. Cursor: Adwaita (24px)
17 + ccccccccccccccccccccccccccccc:'. Terminal: kitty 0.37.0
18 + :ccccccccccccccccccccccc:;,.. Terminal Font: NotoSansMono-Regular (11pt)
19 + ':cccccccccccccccc::;,. CPU: AMD Ryzen 7 8840HS w/ Radeon 780M Graphics (16) @ 5.13 GHz
20 + GPU: AMD Phoenix3 [Integrated]
21 + Memory: 5.73 GiB / 14.91 GiB (38%)
22 + Swap: 0 B / 8.00 GiB (0%)
23 + Disk (/): 9.00 GiB / 475.34 GiB (2%) - btrfs
24 + Local IP (enp101s0f3u1u1): 10.250.9.130/16
25 + Battery (ASUS Battery): 79% [AC Connected]
26 + Locale: en_US.UTF-8
Newer Older