# Google Stadia Controller udev rules for flashing bluetooth firmware

**URL:** https://discourse.nixos.org/t/google-stadia-controller-udev-rules-for-flashing-bluetooth-firmware/64439
**Category:** Help
**Created:** [May 18, 2025, 6:42pm UTC](https://discourse.nixos.org/t/google-stadia-controller-udev-rules-for-flashing-bluetooth-firmware/64439 "2025-05-18T18:42:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BoredSquirrel](https://discourse.nixos.org/user_avatar/discourse.nixos.org/boredsquirrel/32/31935_2.png) [@BoredSquirrel](https://discourse.nixos.org/u/BoredSquirrel)
#### Post date: [May 18, 2025, 6:42pm UTC](https://discourse.nixos.org/t/google-stadia-controller-udev-rules-for-flashing-bluetooth-firmware/64439/1 "2025-05-18T18:42:05Z")

</div>

> **[Connect your Stadia Controller to a device - Stadia Help](https://support.google.com/stadia/answer/13067284#zippy=%2Cim-on-a-linux-based-computer-and-cant-update-my-stadia-controller-help)**
>
> To use your Stadia Controller with other services, its firmware needs to be updated to disable Stadia's proprietary Wi-Fi connectivity and enable Bluetooth® Low Energy (BLE). You can then use it like

When using a Stadia controller, they can be flashed through a Chromium-based Browser to be a bluetooth controller. As the browser does not run as root, udev rules are needed for the flashing process.

Google has official rules for the controllers

```bash
cat <<EOF
# SDP protocol
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", MODE="0666"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", MODE="0666"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", MODE="0666"
# Flashloader
KERNEL=="hidraw*", ATTRS{idVendor}=="15a2", MODE="0666"
# Controller
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9400", MODE="0660", TAG+="uaccess"
EOF
} | sudo tee /etc/udev/rules.d/70-stadiacontroller-flash.rules

```

I suppose I would add them like this, or create a new NixOS option

```nix
services.udev.extraRules = ''
### Google Stadia Controllers
KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", MODE="0666"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", MODE="0666"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", MODE="0666"
# Flashloader
KERNEL=="hidraw*", ATTRS{idVendor}=="15a2", MODE="0666"
# Controller
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9400", MODE="0660", TAG+="uaccess"
'';

```
