Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The given device is not a supported Logitech keyboard: Operation not permitted Product : 4943 #19

Open
lattice0 opened this issue Mar 26, 2021 · 6 comments

Comments

@lattice0
Copy link

My keyboard IS the K380 but I got this:

sudo k380_conf -d /dev/hidraw0 -f on
The given device is not a supported Logitech keyboard: Operation not permitted
Product : 4943
@lattice0
Copy link
Author

However running sudo ./fn_on.sh worked

@shadeven
Copy link

Your comment helped! Thanks, mate.

@qbr-dude-redfab
Copy link

qbr-dude-redfab commented Jan 16, 2025

For those, who sudo ./fn_on.sh not working.

Program is looking for device with 046D:B342 (it's ids, search specified in fn_on.sh and k380_conf.c files), but your keyboard probably has another ids. So:

  1. Run cat /sys/class/hidraw/hidraw*/device/uevent (took from here);
  2. Find divice (by HID_NAME or something else);
  3. Check its HID_ID. Find something close to wanted in program;
  4. Open k380_conf.c. Change HID_VENDOR_ID_LOGITECH or HID_DEVICE_ID_K380 (which are different).
  5. Run sudo make install. If you run Instruction.6, that's all. You also can change it in fn_on.sh to run as wrote above.

@jrotheneder
Copy link

jrotheneder commented Feb 3, 2025

I have a K380s. The output of cat /sys/class/hidraw/hidraw*/device/ueventcontains

DRIVER=hid-vivaldi
HID_ID=0005:0000046D:0000B377
HID_NAME=Pebble K380s
HID_PHYS=d8:f2:ca:5d:cd:38
HID_UNIQ=d8:15:80:39:b5:7e
MODALIAS=hid:b0005g0105v0000046Dp0000B377

Changing #define HID_DEVICE_ID_K380 (__s16)0xb377 to #define HID_DEVICE_ID_K380 ((__u32)0xffffb377) in k380_conf.c and 046D:B342 to 046D:B377 allows to install and run successfully, but unfortunately there is no effect on the operation of the fn key. Did I miss something?

@qbr-dude-redfab
Copy link

@jrotheneder, idk why you changed to 0xFFFFB377 (previously you had correct value, 0xFFFFB377 != 0xB377).
Did you run fn_on.sh (or did in manually via Instruction.6)? It's hard to say what's wrong, maybe try to run sudo make reload and reboot sys. Before connect you will have default behavior, but after it should change.

After all, if nothing is still working, looks like you should manually debug code =(. Probably you already got some errors, but just missed them.

@jrotheneder
Copy link

@qbr-dude-redfab I had changed it due to the following error message I got before: The given device is not a supported Logitech keyboard: Operation not permitted Product : ffffb377. (Yesterday, the same error appeared with #define HID_DEVICE_ID_K380 (__s16)0xb377 - today this works curiously enough, but makes no difference; maybe I misremember)

There are no further errrors when running fn_on.sh or following Instruction 6. I am getting the expected "Sending ON:" output, but no change in keyboard behaviour. I'm not really sure where to keep digging in the code, but its not that crucial - mainly leaving this here in case someone else with a K380s comes along. Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants