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

Feature Request: Razer Basilisk Ultimate Wireless - Cannot configure Sensitivity Clutch #509

Open
earldbjr opened this issue Mar 14, 2024 · 1 comment
Labels
device specific Only affects specific hardware feedback Opinion and thoughts to be taken on-board openrazer Related to the OpenRazer backend (driver or daemon)

Comments

@earldbjr
Copy link

I doubt this is a bug, more of a request, but no configuration option exists for the paddle on the left side of the mouse, which razer dubs the Sensitivity Clutch.

Intended function: While clutch is held down, DPI is set to a different preset value.
Current function: The pressing of the clutch is detected in evtest and xev, but no mechanism seems to exist in poly to make use of it.

xev output (one press, followed by one release):

/dev/input/event26:     Razer Razer Basilisk Ultimate Dongle

ButtonPress event, serial 40, synthetic NO, window 0xca00001,
    root 0x560, subw 0x0, time 83604312, (173,2), root:(3724,875),
    state 0x10, button 12, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0xca00001,
    root 0x560, subw 0x0, time 83604545, (173,2), root:(3724,875),
    state 0x10, button 12, same_screen YES

evtest output (one press, followed by one release):

Event: time 1710360975.709528, -------------- SYN_REPORT ------------
Event: time 1710360976.658487, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90008
Event: time 1710360976.658487, type 1 (EV_KEY), code 279 (BTN_TASK), value 1
Event: time 1710360976.658487, -------------- SYN_REPORT ------------
Event: time 1710360976.750516, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90008
Event: time 1710360976.750516, type 1 (EV_KEY), code 279 (BTN_TASK), value 0

I'm not personally up to the task of programming this myself, but if anyone needs more info about the mouse or a test subject I'm happy to help.

@lah7 lah7 added openrazer Related to the OpenRazer backend (driver or daemon) device specific Only affects specific hardware feedback Opinion and thoughts to be taken on-board labels Mar 15, 2024
@lah7
Copy link
Member

lah7 commented Mar 15, 2024

Polychromatic uses options from what is available from OpenRazer. This app intends to stay focused on lighting management, and OpenRazer's scope is more device-specific enabling functionality. So, since it's just another mouse button, it would be more of a button remapping thing. input-remapper exists for that, but doesn't support scripts/code from what I know.

A script can be easily put together to toggle DPI using OpenRazer's Python library:

#!/usr/bin/python3
import openrazer.client
import os
import sys

devman = openrazer.client.DeviceManager()
mouse = None
for device in devman.devices:
    if device.type == "mouse":
        mouse = device

if not mouse:
    print("Mouse not detected")
    sys.exit(1)

current_dpi = mouse.dpi[0]

if current_dpi <= 800:
    mouse.dpi = (1600,1600)

elif current_dpi <= 1600:
    mouse.dpi = (3200,3200)

elif current_dpi >= 3200:
    mouse.dpi = (800,800)

os.system(f"notify-send 'DPI Changed' 'Now set to {mouse.dpi[0]}'")

I haven't tested this, but each time the script is run, it'll switch DPI to the next value (800 → 1600 → 3200), then wrap round again. Plus it'll show a notification (if notify-send is installed)

Just needs a way to trigger that script - try installing/setting up xbindkeys. Let me know if you need more details on how to do this.

Hopefully this solution works for you. The whole remapping buttons is like reinventing the wheel, a burden to support (e.g. X11 vs Wayland), and doesn't align with long-term ambitions for this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device specific Only affects specific hardware feedback Opinion and thoughts to be taken on-board openrazer Related to the OpenRazer backend (driver or daemon)
Projects
None yet
Development

No branches or pull requests

2 participants