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

Razer Command Dial (on Razer BlackWidow v4 Pro) doesn't work in Driver Mode #2228

Open
2 tasks done
therob89 opened this issue Mar 29, 2024 · 1 comment
Open
2 tasks done
Labels

Comments

@therob89
Copy link

Distribution

OS: Fedora 39
Kernel: 6.7.10-200.fc39.x86_64
OpenRazer: 3.7.0-1.3

Support

Razer Command Dial on Razer BlackWidow4 Pro doesn't work in driver mode.

image

A partial workaround to this problem was the proposed by @z3ntu that works until the next boot:

  1. Identify the BlackWidow v4 Pro Device
image
# Identify the Razer BlackWidow v4 Pro Device
find /sys -name device_mode
hexdump /sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7.3/3-7.3.1/3-7.3.1:1.2/0003:1532:028D.0007/device_mode
  1. Switch to Device Mode
# Identify the Razer BlackWidow v4 Pro Device
find /sys -name device_mode
hexdump /sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7.3/3-7.3.1/3-7.3.1:1.2/0003:1532:028D.0007/device_mode


# Switch the Device in Device Mode to use Razer Command Dial
echo -n -e "\x00\x00" > /sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7.3/3-7.3.1/3-7.3.1:1.2/0003:1532:028D.0007/device_mode
image

Below the LoC where the Driver mode is set:

https://github.com/openrazer/openrazer/blob/master/daemon/openrazer_daemon/hardware/keyboards.py#L31

@therob89 therob89 changed the title Razer Command Dial (on Razer BlackWidow v4 Pro) doesn'work in Driver Mode Razer Command Dial (on Razer BlackWidow v4 Pro) doesn't work in Driver Mode Mar 29, 2024
@z3ntu
Copy link
Member

z3ntu commented Apr 4, 2024

Would be interesting if you could add some logging into https://github.com/openrazer/openrazer/blob/master/driver/razerkbd_driver.c#L3230 and/or https://github.com/openrazer/openrazer/blob/master/driver/razerkbd_driver.c#L3578 to see what kind of data the device sends us. Then we can try and handle this to work as expected also in driver mode. If you need any more specific advice let me know.

See also https://github.com/openrazer/openrazer/blob/master/DEVELOPMENT.md

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

No branches or pull requests

2 participants