Skip to content

Instantly share code, notes, and snippets.

@lamoboos223
Created September 14, 2023 20:46
Show Gist options
  • Save lamoboos223/ff55a5856fb208e44daae5a1e674ca96 to your computer and use it in GitHub Desktop.
Save lamoboos223/ff55a5856fb208e44daae5a1e674ca96 to your computer and use it in GitHub Desktop.

print kernels for each video device

udevadm info --attribute-walk --name=/dev/video5 | grep "KERNELS"
sudo nano /etc/udev/rules.d/99-custom-camera.rules

add the following rules

KERNELS=="1-1.1.3:1.0", SYMLINK+="video1"
KERNELS=="1-1.3:1.0", SYMLINK+="video3"
KERNELS=="1-1.2:1.0", SYMLINK+="video5"
sudo udevadm control --reload-rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment