Skip to content

Instantly share code, notes, and snippets.

View HeySora's full-sized avatar

HeySora HeySora

View GitHub Profile
@HeySora
HeySora / arctis_nova_chatmix.sh
Last active October 25, 2024 08:59
SteelSeries Arctis Nova Chatmix feature re-implementation, for macOS and Linux, without using SteelSeries software
#!/bin/bash
hidapitester -q --vidpid 1038:2202 --usagePage 0xFF00 -l 3 -t 30000 --open --read-input-forever | while read -r -a data
do
[ ${data[0]} = 45 ] && osascript -e "set volume output volume $(( (0x${data[1]} + 0x64 - 0x${data[2]}) / 2 ))" &
done
@HeySora
HeySora / SSDT-WWAN.dsl
Last active June 3, 2024 12:38
WWAN SSDT for ThinkPad T490s (Fibocom L850-GL)
// This SSDT is essentially sending "CAP_EXP+10.w=0052" as well as a RST() call
// in order to switch the Fibocom WWAN card to USB mode.
// This is fully working on my ThinkPad T490s (20NX*), but I cannot guarantee
// that this code will work for you as well. Read below for instructions for other brands.
// There might be issues when going out of sleep mode? I vaguely recall
// having rare issues in these cases. Going in sleep mode and going out fixed it.
// There are probably better ways to do something like this...