glassontin
Create a Chrome USB policy:
# Create Chrome policy directory and file
mkdir -p /etc/opt/chrome/policies/managed/
cat > /etc/opt/chrome/policies/managed/policy.json << 'EOF'
{
"UsbDevicesAllowlist": [
{"vid": "1FC9", "pid": "7332"},
{"vid": "1FC9", "pid": "7130"},
{"vid": "1FC9", "pid": "7131"},
{"vid": "1FC9", "pid": "7132"},
{"vid": "1FC9", "pid": "7110"},
{"vid": "1FC9", "pid": "7111"},
{"vid": "1FC9", "pid": "7112"},
{"vid": "1FC9", "pid": "7200"},
{"vid": "1FC9", "pid": "7201"}
]
}
EOF
 
2. Create udev rules:
 
cat > /etc/udev/rules.d/51-qudelix-webusb.rules << 'EOF'
# Qudelix T71 2.0 Linux Support Rules
# WebUSB access - base rule
SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", MODE="0666", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"
# Device-specific rules
# Stereo Mode
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7130", MODE="0666", GROUP="plugdev" # FS 44.1x KHz with MIC
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7131", MODE="0666", GROUP="plugdev" # FS 48 KHz with MIC
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7132", MODE="0666", GROUP="plugdev" # FS ALL
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7332", MODE="0666", GROUP="plugdev" # Current firmware
# 7.1 Surround Mode
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7110", MODE="0666", GROUP="plugdev" # FS 44.1x KHz with MIC
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7111", MODE="0666", GROUP="plugdev" # FS 48 KHz with MIC
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7112", MODE="0666", GROUP="plugdev" # FS ALL
# Gaming Console Support
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7200", MODE="0666", GROUP="plugdev" # PS5
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="7201", MODE="0666", GROUP="plugdev" # Nintendo Switch
# Raw USB device access
SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", ENV{DEVTYPE}=="usb_device", MODE="0666", GROUP="plugdev", TAG+="uaccess"
EOF
 
3. Add user to required groups:
usermod -a -G plugdev,input $USER
 
4. Apply changes:
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo systemctl restart udev
 
5. Log out and log back in to apply group changes.

The above is available in the attached shell script.  Save this as qudelix-linux-setup.sh and run with:
sudo bash qudelix-linux-setup.sh
 
Reply 1 0
glassontin
Alternatively, create a debian package and install:
chmod +x ./build-deb.sh
./build-deb.sh
sudo dpkg -i qudelix-udev.deb
 
The attached build-deb.sh script:
  1. Creates a proper Debian package structure
  2. Includes all required debian/ control files
  3. Uses proper version numbering
  4. Includes copyright and licensing information
  5. Follows Debian Policy Manual guidelines
The package structure is:
qudelix-udev-0.1/ 
├── debian
│   ├── changelog
│   ├── control
│   ├── copyright
│   ├── debhelper-build-stamp
│   ├── files
│   ├── install
│   ├── postinst
│   ├── postrm
│   ├── qudelix-udev
│   │   ├── DEBIAN
│   │   │   ├── control
│   │   │   ├── md5sums
│   │   │   ├── postinst
│   │   │   └── postrm
│   │   ├── lib
│   │   │   └── udev
│   │   │       └── rules.d
│   │   │           └── 51-qudelix-webusb.rules
│   │   └── usr
│   │       └── share
│   │           ├── chrome-browser-policies
│   │           │   └── managed
│   │           │       └── qudelix-policy.json
│   │           ├── doc
│   │           │   └── qudelix-udev
│   │           │       ├── changelog.gz
│   │           │       └── copyright
│   │           └── metainfo
│   │               └── com.qudelix.udev.metainfo.xml
│   ├── qudelix-udev.substvars
│   ├── rules
│   └── source
│       └── format
├── lib
│   └── udev
│       └── rules.d
│           └── 51-qudelix-webusb.rules
└── usr
   └── share
       ├── chrome-browser-policies
       │   └── managed
       │       └── qudelix-policy.json
       └── metainfo
           └── com.qudelix.udev.metainfo.xml

23 directories, 23 files
To use this:
# Install required tools
sudo apt install build-essential devscripts debhelper

# Run the script
./build-deb.sh

# Build the package
cd qudelix-udev-0.1
debuild -us -uc

# Install the package
sudo dpkg -i qudelix-udev_0.1_all.deb
Before submitting to Debian, you'll need to:
  1. Update the maintainer information
  2. Verify the copyright and license information
  3. Create a proper git repository
  4. Submit an ITP bug report
To submit the package to Debian, become a SponsoredMaintainer.
 
Reply 1 0
glassontin
When I installed this on a nice new Intel N100 mini PC, I revisited and I think the udev rules are better as follows:
# Qudelix T71 2.0 Linux Support Rules

# Product IDs for reference:
# 7130: Stereo Mode - FS 44.1x KHz with MIC
# 7131: Stereo Mode - FS 48 KHz with MIC
# 7132: Stereo Mode - FS ALL
# 7332: Current firmware
# 7110: 7.1 Surround - FS 44.1x KHz with MIC
# 7111: 7.1 Surround - FS 48 KHz with MIC
# 7112: 7.1 Surround - FS ALL
# 7200: PS5 Mode
# 7201: Nintendo Switch Mode

# WebUSB access - base rule
SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", ATTR{manufacturer}=="Qudelix,Inc.", MODE="0666", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"

# HID device rules for all device variants
SUBSYSTEM=="hidraw", \
  KERNEL=="hidraw*", \
  ATTRS{idVendor}=="1fc9", \
  MODE="0666", \
  GROUP="plugdev"

# Raw USB device access
SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", ATTR{manufacturer}=="Qudelix,Inc.", ENV{DEVTYPE}=="usb_device", MODE="0666", GROUP="plugdev", TAG+="uaccess"
 


Reply 1 0
glassontin
What might be more beneficial for Qudelix would be:
 
  • Submit the udev rules upstream to systemd-udev for inclusion in the default rules
  • Work with the Linux USB Audio maintainers to ensure any device-specific quirks are properly handled in the existing snd-usb-audio driver
  • Consider contributing to the ALSA project if there are specific audio features that need better support
Reply 1 0
Merkurio
What might be more beneficial for Qudelix would be:
 
  • Submit the udev rules upstream to systemd-udev for inclusion in the default rules
  • Work with the Linux USB Audio maintainers to ensure any device-specific quirks are properly handled in the existing snd-usb-audio driver
  • Consider contributing to the ALSA project if there are specific audio features that need better support
@qudelix As someone who also uses Linux on a daily basis alongside other operating systems, I would REALLY appreciate this—especially the first point.
 
I use NixOS, and integrating additional udev rules is quite cumbersome due to the declarative nature of the distro, so it would be a great gesture on your part to ensure multi-compatibility between systems, which has always been a core element of your philosophy (hence the reason you use the app as a Chromium plugin).
 
Also, in a more common scenario, I’m sure many users of your products who own a Steam Deck would be incredibly thankful as well.
Reply 0 0
glassontin
Also note that the ALSA mixer volume isn't set by the Chrome browser plugin.
On first use in Linux the volume is often too low. Once the secondary volume control is set, its persistent:
```
#!/bin/bash
amixer -c 2 sset PCM,1 120
```

Reply 0 0
Reply