antoinecellerier/speaker-tuning-to-easyeffects
Sobre
Convert OEM Dolby Atmos speaker tuning data to EasyEffects presets or PipeWire filter-chains for Linux
Outros projetosCrescimento medido de estrelas
- em 24 h
- +2
- em 7 dias
- Coletando histórico
- em 15 dias
- Coletando histórico
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalDolby Atmos Speaker Tuning to EasyEffects Presets for Linux
Bring your laptop's Windows speaker tuning to Linux. This script converts the Dolby Atmos, Surface or Sonitude speaker tuning shipped inside Windows audio drivers into EasyEffects 8.x output presets. Your speakers get the same speaker correction, EQ, and dynamics processing as on Windows, at zero added latency.
Confirmed on over 60 laptops from ASUS, Framework, HP, Lenovo, Microsoft and Motorola: see Supported devices. Tested yours? Report it, whether it works or not.
Don't want to run EasyEffects? The same tuning also runs as a self-contained PipeWire filter-chain, with no GUI and no extra daemon. See PipeWire filter-chain.
Contents: Quick start · Install · Something not right? · Documentation · Staying up to date · Supported devices · How it works
Quick start
Download the code. Take the Source code (zip) from the latest release, unzip it, and open a terminal in the unzipped folder.
If you use git, clone the repository instead:
git clone https://github.com/antoinecellerier/speaker-tuning-to-easyeffects.git cd speaker-tuning-to-easyeffectsInstall Python 3 with NumPy and SciPy. Install has the command for your distribution.
Follow With EasyEffects, or Without EasyEffects to run the tuning as a PipeWire filter instead. Which should I use? compares them.
With EasyEffects
Install EasyEffects 8.x. Prefer your distribution's
easyeffectspackage when it ships version 8, since it then updates with the rest of your system. Version 7 presets aren't compatible, so if it ships an older version, use the Flatpak instead:flatpak install flathub com.github.wwmm.easyeffectsNo
flatpakcommand, or noflathubremote? See flathub.org/setup.With a Windows partition mounted, run:
python3 dolby_to_easyeffects.py --autoloadWith no Windows, download your laptop's audio driver from its maker's support site, then pass that file:
python3 dolby_to_easyeffects.py ~/Downloads/your-audio-driver.exe --autoload--autoloadsets EasyEffects to apply the Dolby correction on your internal speaker automatically. See Autoload for details.Open EasyEffects: Dolby-Balanced, or Sonitude-Music, should be selected under Presets, as below. If not, as with the Flatpak, pick it there. To keep the correction after a reboot, turn on Enable service mode and Autostart on login under Preferences → Background Service.

Without EasyEffects
This route also needs the LSP and Calf LV2 plugins, and optionally
lv2infoto check them before the run writes anything: install them first.The run restarts PipeWire, so sound cuts out for a moment. With a Windows partition mounted, run:
python3 dolby_to_pipewire.pyWith no Windows, download your laptop's audio driver from its maker's support site, then pass that file:
python3 dolby_to_pipewire.py ~/Downloads/your-audio-driver.exeThe filter then applies each time PipeWire starts, with nothing more to enable. The run names any plugin it needs that's missing, and prints how to remove what it installed. Check it later with
python3 dolby_to_pipewire.py --doctor. A report with nothing to fix saysNo blocking problems detected.
If the script can't find your tuning
Getting your tuning file says where else to find it.
To skip the automatic search, point either script at a Windows directory or a tuning XML yourself:
python3 dolby_to_easyeffects.py --windows /mnt/windows/Windows --autoload
python3 dolby_to_easyeffects.py path/to/DEV_0287_SUBSYS_*.xml --autoload
python3 dolby_to_pipewire.py --windows /mnt/windows/Windows
python3 dolby_to_pipewire.py path/to/DEV_0287_SUBSYS_*.xml
Safe to try
The scripts need no root: they refuse to run under sudo. By default they keep
what they write under your home directory, apart from temporary files they
delete. To remove what they installed, run the same script with
--uninstall. It lists what it will remove and asks first. See
Undo for EasyEffects, or
PipeWire filter-chain for the
filter.
Install
The script needs Python 3, NumPy, and SciPy.
PipeWire's pw-dump is also required by the script's --autoload. The PipeWire
scripts need it whenever they auto-detect your speaker sink, which is every run
without --target-sink. It ships in the same package as the daemon on Debian,
Ubuntu and Arch. Fedora, openSUSE and Alpine split the command-line tools into
their own package. If it's missing, the scripts name its package for your
distribution.
Rich and
rich-argparse are optional. With
them, the script renders its output and --help with semantic colors. Without
them, everything works in plain monochrome.
argcomplete is optional too, for
shell tab-completion.
Install commands for your distro:
- Debian/Ubuntu/Mint/Pop!_OS:
On older releases that don't packagesudo apt install python3-numpy python3-scipy python3-rich python3-rich-argparsepython3-rich-argparse, it's safe to leave it out. - Fedora/RHEL/Rocky/Alma:
On RHEL, Rocky and Alma,sudo dnf install python3-numpy python3-scipy python3-rich python3-rich-argparsepython3-richandpython3-rich-argparsecome from EPEL, so leave out whichever dnf can't find. - openSUSE:
Leap 16.0 has no SciPy package, so use the virtual environment below there.sudo zypper install python3-numpy python3-scipy python3-rich python3-rich-argparse - Arch/Manjaro/EndeavourOS:
sudo pacman -S python-numpy python-scipy python-rich python-rich-argparse - Alpine:
Alpine has no rich-argparse package, sosudo apk add py3-numpy py3-scipy py3-rich--helpstays plain there. - Gentoo:
sudo emerge dev-python/numpy dev-python/scipy dev-python/rich dev-python/rich-argparse - NixOS:
nix-shell -p "python3.withPackages (ps: with ps; [ numpy scipy rich rich-argparse ])" - FreeBSD: replace
XXwith the two-digit version of the Python you run (the scripts print the matching command for you):
EasyEffects is in FreeBSD'ssudo pkg install py3XX-numpy py3XX-scipy py3XX-rich py3XX-rich-argparselatestpackage branch and not in the defaultquarterlyone.
If your distro isn't listed or you'd rather not touch system packages, a Python virtual environment works too:
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
To install the scripts as commands, run pipx install . from the project root.
Each command drops the .py, as in dolby_to_easyeffects --doctor.
Something not right?
Start with --doctor: run python3 dolby_to_easyeffects.py --doctor, or
python3 dolby_to_pipewire.py --doctor if you use the PipeWire filter-chain.
Each reports what it finds and what to do about it.
- No audible difference. With EasyEffects, check its setup before suspecting the preset. On the PipeWire filter-chain, check the filter.
- Right, but quieter than Windows.
Try the loudness options,
such as
--enable autogain. - Loud parts crushed, pumping or harsh highs. Rebuild the preset without the filter responsible.
- "No matching DAX3 tuning XML found". Get your tuning file another way.
- The effect stops after you close EasyEffects or reboot. Enable its Background Service.
- The PipeWire filter is gone after a reboot.
dolby_to_pipewire.py --doctorsays whether the filter loaded: check the PipeWire filter. - The Dolby tuning plays on HDMI, Bluetooth or a headset.
--doctorsays what to change. Stop it playing there. - The PipeWire filter plays on wired headphones.
dolby_to_pipewire.py --doctorsays what to change. Headphones on the speakers' sink. - Re-ran the script but hear no change. The run can't reload a Flatpak EasyEffects, so pick the preset again in its Presets menu. Only releases whose changelog entry is tagged [AUDIBLE] change the sound: Staying up to date.
The troubleshooting guide covers more symptoms.
Documentation
- Getting your tuning file — when you have no Windows partition, or the script can't find your tuning
- EasyEffects presets — every
dolby_to_easyeffects.pyoption, autoload, and how to undo a run - PipeWire filter-chain — the same tuning without
EasyEffects, through
dolby_to_pipewire.py - Disabling and enabling filters — to remove an artifact, or try an optional stage
- Troubleshooting — no difference, too quiet, and other symptoms
- Shell tab-completion — flag and value completion for all three scripts
The docs index also lists the technical reference, the research log and how to run the tests.
Staying up to date
CHANGELOG.md tracks notable changes. To be notified when a new version ships, click Watch → Custom → Releases at the top of the GitHub page.
Entries tagged [AUDIBLE] change the sound of the generated preset. When
you see one, get the
latest release
or git pull, and re-run the script you used, dolby_to_easyeffects.py or
dolby_to_pipewire.py, with the same flags as before, to regenerate your
preset. The run loads it into a running EasyEffects when it can, and says what
to pick otherwise. Other entries are tooling, packaging, docs, or new-device
support that doesn't alter existing devices' output, so there's nothing to
regenerate.
Supported devices
The converter works on the internal speakers of laptops, handhelds and other devices whose Windows driver ships a Dolby DAX3 tuning, or, experimentally, a Sonitude or older Dolby DAX2 one. Confirmed on:
| Device | Reported by |
|---|---|
| ASUS TUF Gaming A15 (FA507NV) | #34 |
| ASUS TUF Gaming A16 (FA607PV) | #137 — reporter recommends --volmax-slot output-gain |
| ASUS Vivobook Pro 15 (M6500QC) | #163 |
| ASUS Vivobook Pro 15 (N6506MJ) | #158 |
| ASUS Zenbook 14 (UM3406HA) | #134 — reporter recommends --enable autogain |
| ASUS Zenbook 14 (UX3405CA, UX3405MA) | #19, #24 |
| ASUS Zenbook 14 OLED (UM3402YAR) | #168 |
| ASUS Zenbook 15 (UM3504DA) | #161 |
| ASUS Zenbook Pro 16X OLED (UX7602BZ) | #117 |
| Framework Laptop 13 Pro (Intel Core Ultra Series 3) | #73 |
| HP EliteBook 845 G9 | #165 — experimental, from its Sonitude tuning |
| HP ZBook 15 G6 | #140 — experimental, from its Sonitude tuning; reporter finds Movie matching Windows, and Music and Voice close with less bass |
| Lenovo IdeaPad 3 15ALC6 (82KU) | #103 — reporter recommends --enable autogain --enable level-restore |
| Lenovo IdeaPad Pro 5 14AHP9 (83D3) | #18 |
| Lenovo IdeaPad Pro 5 14APH8 (83AM) | #33 — reporter confirms working on kernel 7.0, broken on 6.12 |
| Lenovo IdeaPad Pro 5 14IMH9 (83D2) | #36 — reporter recommends --enable autogain |
| Lenovo IdeaPad Slim 3 16ARP10 (83K8) | #124 |
| Lenovo IdeaPad Slim 5 14ARP10 (83HT) | #111 |
| Lenovo Legion Y540-15IRH (81SX) | #70 |
| Lenovo Legion Y7000 2020 (82AV) | #93 |
| Lenovo ThinkBook 16p G5 IRX (21N5) | #76 |
| Lenovo XiaoXinPro-13ARE 2020 (82DM) | #91 |
| Lenovo Yoga 7 2-in-1 16AKP10 | #1 |
| Lenovo Yoga 7 16IAH7 (82UF) | #53 — woofers need kernel 7.2, or the hda_model= line the tool prints |
| Lenovo Yoga Pro 7 14APH8 (82Y8) | #30 |
| Lenovo Yoga Pro 7 14ARP8 (83AU) | #152 |
| Lenovo Yoga Pro 7 14ASP9 (83HN) | #51 |
| Lenovo Yoga Pro 7 14IMH9 (83E2) | #83 |
| Lenovo Yoga Pro 9i 14IRP8 (83BU) | #17 |
| Lenovo Yoga Slim 7 14ARE05 (82A2) | #44 — reporter finds it on par with Windows with --volmax-slot output-gain, which brings back bass the default placement loses |
| Lenovo Yoga Slim 7 14ILL10 (83JX) | #59 |
| Lenovo Yoga Slim 7 14IMH9 (83CV) | #155 |
| Lenovo Yoga Slim 7 Pro 14ACH5 (82MS, reported as Yoga 14sACH 2021) | #84 |
| Microsoft Surface Laptop 3 | #148, #150 — experimental, from its Dolby DAX2 tuning; reporter recommends --enable level-restore --disable volmax |
| Microsoft Surface Laptop 4 | #118 |
| Microsoft Surface Laptop 5 | #128 |
| Microsoft Surface Pro 9 | #113 |
| Motorola Moto Book 60 14IRH10R (83J7) | #121 — its tuning XML comes from the Lenovo IdeaPad Slim 5 14ARP10 (83HT) driver package |
| ThinkPad E14 Gen 2 AMD (20T6) | #25, #138 — reporter recommends --enable level-restore |
| ThinkPad E16 Gen 2 (21MA) | #144 |
| ThinkPad L14 Gen 6 AMD (21S8) | #61 |
| ThinkPad P14s Gen 7 AMD (21X0) | #171 |
| ThinkPad P53 (20QQ) | #131 |
| ThinkPad T14 Gen 1 (20S1) | #86 |
| ThinkPad T14 Gen 1 AMD (20UD, 20UE) | #45 |
| ThinkPad T14 Gen 2 AMD (20XL) | #80 |
| ThinkPad T14 Gen 2 Intel (20W1) | #55 |
| ThinkPad T14 Gen 3 (21AJ) | #157 |
| ThinkPad T14 Gen 5 (21MD) | #172 |
| ThinkPad T14 Gen 7 AMD (21WV, 21WW) | #48 |
| ThinkPad T14 Gen 7 Intel (21WN) | #42 |
| ThinkPad T14s Gen 2 AMD (20XG) | #57 |
| ThinkPad T14s Gen 3 (21BS) | #88 |
| ThinkPad T14s Gen 6 AMD | #3 |
| ThinkPad T490s (20NX) | #133 |
| ThinkPad X1 Carbon 7th (20R1) | #181 |
| ThinkPad X1 Carbon Gen 9 (20XW) | #63 |
| ThinkPad X1 Carbon Gen 10 (21CC) | #99, #139 |
| ThinkPad X1 Carbon Gen 11 (21HN) | #95 |
| ThinkPad X1 Carbon Gen 13 | #7 |
| ThinkPad X1 Yoga Gen 6 (20Y0) | #78 |
| ThinkPad X1 Yoga Gen 7 (21CD) | author |
| ThinkPad X13 Gen 2 Intel (20WK) | #105 |
| ThinkPad X13 Gen 3 (21BQ) | #127 |
| ThinkPad X13 Gen 6 Intel (21RK) | #23 |
| ThinkPad X13 Yoga Gen 1 (20SX) | #107 |
| ThinkPad X13 Yoga Gen 2 (20W9) | #101 |
| ThinkPad X13 Yoga Gen 4 (21F3) | #97 |
| ThinkPad Z13 Gen 1 (21D2) | #115 |
If you test it on other hardware, please open a device report whether it works or not.
How it works
The script parses the DAX3 XML's two processing stages. It emits a minimum-phase FIR impulse response plus a chain of EasyEffects plugins, at zero added latency. Every parameter traces back to an XML field.
flowchart LR
XML["DAX3 tuning XML<br/>(Windows driver)"] --> P["dolby_to_easyeffects.py<br/>parse CP + VLLDP"]
P --> FIR[".irs FIR<br/>impulse response"]
P --> PRM["plugin params<br/>EQ · MBC · regulator · limiter"]
FIR --> EE["EasyEffects preset"]
PRM --> EE
EE --> SPK(["device speakers"])
The preset is up to eight plugins, in this order:
- Convolver: FIR speaker correction
- Bass Enhancer: SoundWire only
- Equalizer: speaker PEQ
- Dialog Enhancer: bypassed by default
- Autogain: bypassed by default on HDA
- Multiband Compressor
- Regulator: per-band limiter
- Limiter: brickwall safety net
A Sonitude tuning builds a shorter preset: its EQ in the convolver, then the limiter.

For the full detail, see the docs index.
References
- wwmm/easyeffects — preset format reference
- shuhaowu/linux-thinkpad-speaker-improvements — alternative approach using captured impulse responses via WASAPI loopback
- taprobane99/Lenovo-Yoga-Slim-7x-Dolby-Linux-Audio — downstream port of this script's output to a PipeWire filter-chain config with 4-speaker upmix on Snapdragon X. See docs/alternative-pipelines.md Option 3.
- sklynic/easyeffects-tuf-gaming-a15 — manual DAX3 EQ extraction for ASUS laptops
- mister2d/thinkpad-linux-audio — extended Dolby pipeline for ThinkPads, built on top of this tooling. See #2.
Explore projetos relacionados
Carregando…