unknownzerx / lguf-brightness

Adjust brightness for LG UltraFine 4K display (cross platform)
61 stars 19 forks source link

What I have done #2

Open unknownzerx opened 7 years ago

unknownzerx commented 7 years ago

The brightness is controlled by a specific USB device integrated with the display. Vendor ID: 034E, Product ID: 9A40.

The latest Boot Camp supports adjusting the brightness of this display (in 'Boot Camp Control Panel'). I captured USB traffic with 'USBPcap' in Windows, analysed with 'Wireshark' and made this program to reproduce those USB traffic.

PS: I found no way to capture USB data in macOS.

velum commented 6 years ago

Woudn't it be possible to use WireShark on macOS to capture the USB traffic?

See this link: https://aud-ios.com/2017/10/22/usb-monitoring-with-wireshark/

velum commented 6 years ago

I tried capturing traffic using wireshark and was hoping to see data coming from the USB when the lighting of the room would change, but nothing. I was able to capture traffic from this forked project https://github.com/csujedihy/LG-Ultrafine-Brightness though when modifying the screen brightness. I don't know why I did not see any traffic coming from the light sensor. If someone else is able to, could you please post the traffic you capture?