Help needed to implement new mouse and keyboard
Created by: jocelynthode
Hey guys,
I recently bought a Logitech Wireless Pro X Superlight and a G915 TKL keyboard. I can configure them just fine through Piper/ratbagd when they are plugged over usb.
However I'd like to get more information in my system tray icon such as the battery level. I found about this project and I saw that when using solaar I only see in the windows "Lightspeed Receiver" but I don't see any recognized keyboard or mouse under it.
After digging a bit in the code I tried adding in descriptors.py
the following declaration:
_D(
'PRO X Wireless',
kind='mouse',
codename='PRO X',
protocol=4.2,
usbid=0xc547,
wpid='4093',
)
However, now when I launched my built copy of Solaar I get the following error warning and then the notification listener crashes:
21:56:41,644 WARNING [ReceiverListener:hidraw2] logitech_receiver.notifications: <Device(1,4093,PRO X Wireless,E7C3DFD4)>: unrecognized Notification(10,1,41,0F,329340)
by analyzing error I found out that there is a missing case for this kind of notification. Specifically the code trie sto use the _process_hidpp10_custom_notification
and not a specially 2.0+ method. the adress 0x0F
has also no case.
Could someone provide me some pointers on where to go from there so that I could try and implement support for these devices?
Cheers