Skip to content

Instantly share code, notes, and snippets.

View lunatic-gh's full-sized avatar

Luna lunatic-gh

View GitHub Profile
@r15ch13
r15ch13 / iommu.sh
Last active July 23, 2024 00:52
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
@gtirloni
gtirloni / wireplumber.md
Last active May 25, 2024 07:40
How to disable audio devices with Pipewire

Find your devices

$ pactl list short

Create the Wireplumber rule to disable the device

$ mkdir -p $HOME/.config/wireplumber/main.lua.d