I use usbhidaction, a little differently:
- OBSD media server in office, connected to speakers
- Custom microservice on media server, to control volume
- When I am docked at startup (detected in .xsession), configure:
- Set AUDIODEVICE to office media server for sndio
- Use usbhidaction to send volume and mute commands to media
center microservice
This setup works incredibly well - and I would never have considered it
with other OSs. I would have tried to rig a headphone jack and
splitter or something. Current config just uses the network.
Since I have other OBSD media servers around the house, I can easily
change the address and send audio & control to other rooms.
Wondering if my custom config will still be possible with ucc...
On 8/18/21 10:24 AM, Florian Obser wrote:
> My microsoft sculpt has a bunch of media keys. I tried mute and
> increment / decrement. They don't seem to have an effect.
>
> --- dmesg.bootWed Aug 18 19:19:07 2021
> +++ dmesg.boot.uccWed Aug 18 19:19:16 2021
> @@ -1,7 +1,7 @@
> -OpenBSD 7.0-beta (GENERIC.MP) #131: Wed Aug 18 10:18:06 CEST 2021
> +OpenBSD 7.0-beta (GENERIC.MP) #132: Wed Aug 18 13:41:45 CEST 2021
> florian@x1:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8266944512 (7883MB)
> -avail mem = 8000442368 (7629MB)
> +avail mem = 8000446464 (7629MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> @@ -122,21 +122,21 @@
> uhidev1 at uhub0 port 2 configuration 1 interface 1 "Microsoft Microsoft\M-.
> 2.4GHz Transceiver v9.0" rev 2.00/7.97 addr 2
> uhidev1: iclass 3/1, 26 report ids
> uhid0 at uhidev1 reportid 18: input=0, output=0, feature=1
> -uhid1 at uhidev1 reportid 23: input=0, output=0, feature=1
> +ucc0 at uhidev1 reportid 23 hid error 6
> ums0 at uhidev1 reportid 26: 5 buttons, Z and W dir
> wsmouse2 at ums0 mux 0
> uhidev2 at uhub0 port 2 configuration 1 interface 2 "Microsoft Microsoft\M-.
> 2.4GHz Transceiver v9.0" rev 2.00/7.97 addr 2
> uhidev2: iclass 3/0, 39 report ids
> -uhid2 at uhidev2 reportid 3: input=1, output=0, feature=0
> -uhid3 at uhidev2 reportid 7: input=7, output=0, feature=0
> -uhid4 at uhidev2 reportid 32: input=0, output=0, feature=18
> -uhid5 at uhidev2 reportid 33: input=2, output=0, feature=0
> -uhid6 at uhidev2 reportid 34: input=0, output=0, feature=26
> -uhid7 at uhidev2 reportid 35: input=0, output=0, feature=26
> -uhid8 at uhidev2 reportid 36: input=0, output=0, feature=31
> -uhid9 at uhidev2 reportid 37: input=0, output=0, feature=31
> -uhid10 at uhidev2 reportid 38: input=0, output=0, feature=31
> -uhid11 at uhidev2 reportid 39: input=31, output=0, feature=0
> +uhid1 at uhidev2 reportid 3: input=1, output=0, feature=0
> +ucc1 at uhidev2 reportid 7 keys 1, mappings 0
> +uhid2 at uhidev2 reportid 32: input=0, output=0, feature=18
> +uhid3 at uhidev2 reportid 33: input=2, output=0, feature=0
> +uhid4 at uhidev2 reportid 34: input=0, output=0, feature=26
> +uhid5 at uhidev2 reportid 35: input=0, output=0, feature=26
> +uhid6 at uhidev2 reportid 36: input=0, output=0, feature=31
> +uhid7 at uhidev2 reportid 37: input=0, output=0, feature=31
> +uhid8 at uhidev2 reportid 38: input=0, output=0, feature=31
> +ucc2 at uhidev2 reportid 39 keys 1, mappings 0
> umb0 at uhub0 port 4 configuration 1 interface 0 "Sierra Wireless Inc.
> Sierra Wireless EM7345 4G LTE" rev 2.00/17.29 addr 3
> umodem0 at uhub0 port 4 configuration 1 interface 2 "Sierra Wireless Inc.
> Sierra Wireless EM7345 4G LTE" rev 2.00/17.29 addr 3
> umodem0: data interface 3, has no CM over data, has break
> @@ -145,12 +145,12 @@
> uhub2 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub"
> rev 2.00/0.04 addr 2
> uhidev3 at uhub2 port 5 configuration 1 interface 0 "ELAN Touchscreen" rev
> 2.00/0.12 addr 3
> uhidev3: iclass 3/0, 68 report ids
> -uhid12 at uhidev3 reportid 1: input=115, output=0, feature=0
> -uhid13 at uhidev3 reportid 2: input=64, output=0, feature=0
> -uhid14 at uhidev3 reportid 3: input=0, output=31, feature=0
> -uhid15 at uhidev3 reportid 4: input=19, output=0, feature=0
> -uhid16 at uhidev3 reportid 10: input=0, output=0, feature=1
> -uhid17 at uhidev3 reportid 68: input=0, output=0, feature=255
> +uhid9 at uhidev3 reportid 1: input=115, output=0, feature=0
> +uhid10 at uhidev3 reportid 2: input=64, output=0, feature=0
> +uhid11 at uhidev3 reportid 3: input=0, output=31, feature=0
> +uhid12 at uhidev3 reportid 4: input=19, output=0, feature=0
> +uhid13 at uhidev3 reportid 10: input=0, output=0, feature=1
> +uhid14 at uhidev3 reportid 68: input=0, output=0, feature=255
> uvideo0 at uhub2 port 8 configuration 1 interface 0 "Chicony Electronics
> Co.,Ltd. Integrated Camera" rev 2.00/25.09 addr 4
> video0 at uvideo0
> vscsi0 at root
>
>
> dmesg.boot.ucc:
> OpenBSD 7.0-beta (GENERIC.MP) #132: Wed Aug 18 13:41:45 CEST 2021
> florian@x1:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8266944512 (7883MB)
> avail