Last active 1733121019

stuff I modified in Fedora 41 for Asus Zenbook 14

Revision b27f4e2bfa57e24f9782b1d0377d38c16e42f679

_notes.md Raw

Fedora 41 on ASUS Zenbook 14 UM3406HA

  • created systemd service for setting up charge limit to 80%
  • had to use hdajackretask to override pin 0x19 as microphone
  • had to use blacklist snd-soc-dmic in /etc/modprobe.d/blacklist-local.conf to remove non-existing Digital Mic
_system-info Raw
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
11cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; WM: Mutter (Wayland)
12ccccc;XMO';cccc;MMM.;cccccccccccccccc' WM Theme: Adwaita
13ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Theme: Adwaita [GTK2/3/4]
14ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Icons: Adwaita [GTK2/3/4]
15cccccc;dNMWXXXWM0:;cccccccccccccc:, Font: Cantarell (11pt) [GTK2/3/4]
16cccccccc;.:odl:.;cccccccccccccc:,. Cursor: Adwaita (24px)
17ccccccccccccccccccccccccccccc:'. 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
27
battery-charge-limit.service Raw
1# /etc/systemd/system/battery-charge-limit.service
2[Unit]
3Description=Set the battery charge threshold
4After=multi-user.target
5StartLimitBurst=10
6
7[Service]
8Type=oneshot
9ExecStartPre=/usr/bin/test -f /sys/class/power_supply/BAT0/charge_control_end_threshold
10ExecStart=/bin/bash -c 'echo 80 > /sys/class/power_supply/BAT0/charge_control_end_threshold'
11RestartSec=15s
12Restart=on-failure
13
14[Install]
15WantedBy=multi-user.target
blacklist-local.conf Raw
1#/etc/modprobe.d/blacklist-local.conf
2blacklist snd-soc-dmic
microphone.json Raw
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}