Skip to content

Instantly share code, notes, and snippets.

@mercora
Created September 2, 2020 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mercora/4ab23675ab69162934ce75b52bd1d290 to your computer and use it in GitHub Desktop.
Save mercora/4ab23675ab69162934ce75b52bd1d290 to your computer and use it in GitHub Desktop.
ACTION=="add", SUBSYSTEM=="usb",DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb1/1-6",RUN+="/usr/bin/ddcutil --model=U32J59x setvcp 60 6"
ACTION=="remove", SUBSYSTEM=="usb",DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb1/1-6",RUN+="/usr/bin/ddcutil --model=U32J59x setvcp 60 15"
ACTION=="bind|remove", SUBSYSTEM=="usb",DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.[2-4]",RUN+="/usr/local/bin/usb-libvirt-hotplug.sh Windows"
ACTION=="bind|remove", SUBSYSTEM=="usb",DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb1/1-2",RUN+="/usr/local/bin/usb-libvirt-hotplug.sh Windows"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment