Skip to content

Instantly share code, notes, and snippets.

@vitoo
Last active June 10, 2024 13:06
Show Gist options
  • Save vitoo/590bacdd6aaa238a6c6adefff77b8dcd to your computer and use it in GitHub Desktop.
Save vitoo/590bacdd6aaa238a6c6adefff77b8dcd to your computer and use it in GitHub Desktop.
Debug UVC (USB video device class) on linux
sudo nano /etc/systemd/system/uvcvideo-trace.service

Add the following content to the service file:

[Unit]
Description=Set uvcvideo trace parameter
After=systemd-modules-load.service

[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo 0xffff > /sys/module/uvcvideo/parameters/trace'

[Install]
WantedBy=multi-user.target

Then do :

sudo systemctl daemon-reload
sudo systemctl enable uvcvideo-trace.service
sudo systemctl start uvcvideo-trace.service

You can now reboot and check the syslog :

cat /var/log/syslog | grep uvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment