todbot / hidapitester

Simple command-line program to test HIDAPI
GNU General Public License v3.0
263 stars 31 forks source link

i can't open the keyboard device on macOS Sonoma #26

Closed pppaapp closed 1 year ago

pppaapp commented 1 year ago

This is the information on the keyboard

# hidapitester --list-detail

046D/B367: Logitech - MX MCHNCL M
  vendorId:      0x046D
  productId:     0xB367
  usagePage:     0x0001
  usage:         0x0006

046D/B367: Logitech - MX MCHNCL M
  vendorId:      0x046D
  productId:     0xB367
  usagePage:     0x000C
  usage:         0x0001

046D/B367: Logitech - MX MCHNCL M
  vendorId:      0x046D
  productId:     0xB367
  usagePage:     0xFF43
  usage:         0x0202

but the error appears that the device cannot be opened

# hidapitester --vidpid 046D:B367 --usage 0x0202 --usagePage 0xFF43 --timeout 2000 --open --read-input-forever --length 11 --read-feature 1

Opening device, vid/pid:0x046D/0xB367, usagePage/usage: FF43/202
Error: could not open device
Error on read: no device opened.
Error on read: no device opened.

it works fine on Windows

kzaoaai commented 8 months ago

I think this should be reopened. Same issue only on macos for my MX Keys S on bluetooth. The bluetooth connection switch works on windows and on macos if I use the dongle instead of bluetooth.

./hidapitester` --vidpid 046D --list-detail
046D/B378: Logitech - MX KEYS S
  vendorId:      0x046D
  productId:     0xB378
  usagePage:     0x0001
  usage:         0x0006

046D/B378: Logitech - MX KEYS S
  vendorId:      0x046D
  productId:     0xB378
  usagePage:     0x000C
  usage:         0x0001

046D/B378: Logitech - MX KEYS S
  vendorId:      0x046D
  productId:     0xB378
  usagePage:     0xFF43
  usage:         0x0202

sudo ./hidapitester --vidpid 046D:B378 --usage 0x0202 --usagePage 0xFF43 --open --length 20 --send-output 0x11,0x00,0x0A,0x19,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
Opening device, vid/pid:0x046D/0xB378, usagePage/usage: FF43/202
Error: could not open device
Error on send: no device opened.