Skip to main content

SoundBlaster X G6 GUI

This project provides a Graphical User Interface (GUI) built with wxPython to control the SoundBlaster X G6 device from Linux. It uses the hidapi library and libusb to communicate with the device.

SoundBlaster X G6 GUI

Features

  • Playback Control: Toggle between Speakers and Headphones, set Direct Mode, and configure playback filters.
  • Audio Settings: Adjust volume and mute status for playback and various mixer inputs (Line-In, External Mic, SPDIF-In).
  • SBX Effects: Enable and configure Surround, Crystalizer, Bass, Smart Volume, and Dialog Plus effects.
  • Recording Settings: Manage microphone boost, voice clarity features (Noise Reduction, AEC, Smart Volume), and Mic EQ.
  • Lighting Control: Customize the RGB lighting or disable it entirely.
  • Decoder Settings: Switch between Normal, Full, and Night decoder modes.

Important Disclaimer

I developed this GUI to the best of my belief, and I use it myself to control my G6, and it works fine for me. I read pretty often that you are able to damage or brick a USB device if you send faulty data to it.

That's why I want to point out, that you USE THIS GUI AT YOUR OWN RISK! I am not responsible for any damage to your system or your device!

Firmware version

This software is tested with a G6 having the Firmware version: 2.1.250903.1324.

Make sure that you have the same version, since I do not know whether the USB specification may differ between the versions. You are able to update your Firmware with SoundBlaster Command in Windows by using a QEMU/KVM VM and the USB Redirection feature.

System requirements

Linux: Create udev-rule

In /etc/udev/rules.d/ create a rule file as root (e.q. with name 50-soundblaster-x-g6.rules) having the following content:

SUBSYSTEM=="usb", ATTRS{idVendor}=="041e", ATTRS{idProduct}=="3256", TAG+="uaccess"
# Add udev rule:
sudo cat > /etc/udev/rules.d/50-soundblaster-x-g6.rules << EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="041e", ATTRS{idProduct}=="3256", TAG+="uaccess"
EOF

This allows you (and the application) to access the USB device directly and is mandatory for the application to be
able to send data to the device.

Apply the udev rules by issuing:

# Reload udev rules:
sudo udevadm trigger

Configure /etc/asound.conf

Configure /etc/asound.conf to let ALSA reliably detect the G6 device on reload:

# Force ALSA to always use the Sound BlasterX G6 by its card name (not index)
# The name "G6" is fixed by the driver and never changes even if the kernel
# reassigns card numbers because of other USB devices.

pcm.!default {
    type hw
    card G6
}

ctl.!default {
    type hw
    card G6
}

Install libusb1

The following libusb packages are required:

libusb-1.0-0-dev/jammy-updates,now 2:1.0.25-1ubuntu2 amd64 [installed]
libusb-1.0-0/jammy-updates,now 2:1.0.25-1ubuntu2 amd64 [installed]
sudo apt-get -y install libusb-1.0-0-dev libusb-1.0-0 

Installation

To install the GUI tool using pipx, run:

pipx install soundblaster-x-g6-gui

The soundblaster-x-g6-gui package is installed in ~/.local/share/pipx/venvs/soundblaster-x-g6-gui/.

The command soundblaster-x-g6-gui should now be available in your shell, otherwise you may have to add the directory ~/.local/share/pipx/venvs/soundblaster-x-g6-gui/bin/ to your $PATH variable.

Note that you still need to create the udev rule and create a sudoers entry as described above!

Conclusion

The installation is complete, and you can start the GUI by running:

soundblaster-x-g6-gui

Manual installation (from source)

This section describes how to use the program from source. It contains the following steps:

  • clone the repository
  • install Python 3.12
  • install wxPython
  • create a venv and download dependencies using pip

Clone repository:

Select a directory of your choice and clone the repository into it:

(cd $HOME; git clone git@github.com:nils-skowasch/soundblaster-x-g6-gui.git)

This should create the directory ~/soundblaster-x-g6-gui, containing all files.

Install Python 3.12:

Install Python3.12. The application has been tested with Python3.12 (LinuxMint 22.1).

sudo apt-get install Python3.12

Install wxPython

Homepage | API-Reference

# install wxPython dependencies
sudo apt install libgtk-3-dev libpython3.12-dev
# install wxPython via pip
source ~/development/workspaces/soundblaster-x-g6-gui/venv/bin/activate
## On work laptop, execute:
~/development/workspaces/soundblaster-x-g6-gui/venv/bin/python ~/development/pycharm-2024.3.5/plugins/python-ce/helpers/packaging_tool.py install wxPython
## On home laptop, execute:
~/development/git/soundblaster-x-g6-gui/venv/bin/python ~/development/jetbrains/pycharm-community-2024.1.2/plugins/python-ce/helpers/packaging_tool.py install wxPython

Create a virtual environment and download dependencies

Create a virtual environment and download the dependencies using pip:

# create virtual environment 'venv'
cd ~/soundblaster-x-g6-gui/
python -m venv venv

# install virtualenv package (if required) and activate 'venv'
pip install virtualenv
virtualenv venv
source venv/bin/activate

# install dependencies into 'venv'
pip install -r requirements.txt

Conclusion

The installation is complete, and you can start the GUI by running:

venv/bin/python src/g6_gui.py

GUI usage

usage: soundblaster-x-g6-gui [-h] [--dry-run] [--debug] [--no-persist] [--version]

SoundBlaster X G6 GUI

options:
  -h, --help  show this help message and exit

General options:
  --dry-run   Used to verify the available hex_line files, without making any
              calls against the G6 device.
  --debug     Print communication data with the G6 device to the console.
  --no-persist  Disables reading and writing of the current G6 state in file
              '~/.soundblaster-x-g6/g6.json'.
  --version   show program's version number and exit

Development

Before continuing this section, see the section System requirements and install the required system dependencies.

Building the application

To build the application, run the following commands:

# builds the application into the dist/ directory
python -m build

# verifies the build
python -m twine check dist/*

Deploying the application

Create a .pypirc file in your home directory with the following content:

[testpypi]
  username = __token__
  password = <api-token>

Deploy the application on testpypi.org:

python -m twine upload --repository testpypi dist/* 

Download the application from testpypi.org and test it:

pipx install --pip-args="--index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple" soundblaster-x-g6-gui

Metadata

Release files for soundblaster-x-g6-gui 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for soundblaster-x-g6-gui 1.1.0
File Size Uploaded Provenance Actions
soundblaster_x_g6_gui-1.1.0.tar.gz 3.0 MB Without provenance Details for soundblaster_x_g6_gui-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for soundblaster-x-g6-gui 1.1.0
File Interpreter ABI Platform Actions
soundblaster_x_g6_gui-1.1.0-py3-none-any.whl Python 3 none any Details for soundblaster_x_g6_gui-1.1.0-py3-none-any.whl

Total release size: 6.1 MB

Release files / soundblaster_x_g6_gui-1.1.0.tar.gz

Download URL soundblaster_x_g6_gui-1.1.0.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
52da9bf13bbbfbda53177b4e6719fbdea2a87a9e96a6f86ad2d7414c6273539c
BLAKE2b-256 checksum
How to use checksums
e6c7bb8b1031b33b7158eda308e3341f0ea847ba26d9d4b553456337c75c6983
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / soundblaster_x_g6_gui-1.1.0-py3-none-any.whl

Download URL soundblaster_x_g6_gui-1.1.0-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f4cd0620876ac739470695d7c75bd07a5b4a8cb98f8128290d82c61c65f21b4e
BLAKE2b-256 checksum
How to use checksums
249c3de2a2191803945eb3e4799413a3fe26d720fc682ebbebc0a8a64e90f7ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for soundblaster-x-g6-gui 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page