Skip to content
Proyectos

antoinecellerier/speaker-tuning-to-easyeffects

Ver en GitHub

Acerca de

Convert OEM Dolby Atmos speaker tuning data to EasyEffects presets or PipeWire filter-chains for Linux

Otros proyectos

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+2
in 7 days
Recopilando historial
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Dolby 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

  1. 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-easyeffects
    
  2. Install Python 3 with NumPy and SciPy. Install has the command for your distribution.

  3. Follow With EasyEffects, or Without EasyEffects to run the tuning as a PipeWire filter instead. Which should I use? compares them.

With EasyEffects

  1. Install EasyEffects 8.x. Prefer your distribution's easyeffects package 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.easyeffects
    

    No flatpak command, or no flathub remote? See flathub.org/setup.

  2. With a Windows partition mounted, run:

    python3 dolby_to_easyeffects.py --autoload
    

    With 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
    

    --autoload sets EasyEffects to apply the Dolby correction on your internal speaker automatically. See Autoload for details.

  3. 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.

Selecting a generated Dolby preset in EasyEffects

Without EasyEffects

  1. This route also needs the LSP and Calf LV2 plugins, and optionally lv2info to check them before the run writes anything: install them first.

  2. The run restarts PipeWire, so sound cuts out for a moment. With a Windows partition mounted, run:

    python3 dolby_to_pipewire.py
    

    With 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.exe
    

    The 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 says No 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:
    sudo apt install python3-numpy python3-scipy python3-rich python3-rich-argparse
    
    On older releases that don't package python3-rich-argparse, it's safe to leave it out.
  • Fedora/RHEL/Rocky/Alma:
    sudo dnf install python3-numpy python3-scipy python3-rich python3-rich-argparse
    
    On RHEL, Rocky and Alma, python3-rich and python3-rich-argparse come from EPEL, so leave out whichever dnf can't find.
  • openSUSE:
    sudo zypper install python3-numpy python3-scipy python3-rich python3-rich-argparse
    
    Leap 16.0 has no SciPy package, so use the virtual environment below there.
  • Arch/Manjaro/EndeavourOS:
    sudo pacman -S python-numpy python-scipy python-rich python-rich-argparse
    
  • Alpine:
    sudo apk add py3-numpy py3-scipy py3-rich
    
    Alpine has no rich-argparse package, so --help stays 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 XX with the two-digit version of the Python you run (the scripts print the matching command for you):
    sudo pkg install py3XX-numpy py3XX-scipy py3XX-rich py3XX-rich-argparse
    
    EasyEffects is in FreeBSD's latest package branch and not in the default quarterly one.

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.

The troubleshooting guide covers more symptoms.

Documentation

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:

  1. Convolver: FIR speaker correction
  2. Bass Enhancer: SoundWire only
  3. Equalizer: speaker PEQ
  4. Dialog Enhancer: bypassed by default
  5. Autogain: bypassed by default on HDA
  6. Multiband Compressor
  7. Regulator: per-band limiter
  8. Limiter: brickwall safety net

A Sonitude tuning builds a shorter preset: its EQ in the convolver, then the limiter.

A generated preset loaded in EasyEffects, convolver through limiter

For the full detail, see the docs index.

References

Explorar proyectos relacionados

Cargando…