Closed ghost closed 8 months ago
Can you send lsusb -d 1532: -v
when it's connected like that when it doesn't work?
Bus 001 Device 006: ID 1532:00af Razer USA, Ltd Razer Cobra Pro
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1532 Razer USA, Ltd
idProduct 0x00af
bcdDevice 1.00
iManufacturer 0
iProduct 2 Razer Cobra Pro
iSerial 3 000000000000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x006d
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 94
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 61
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 159
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 327
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Could you please test this branch? https://github.com/openrazer/openrazer/commits/cobra-wired/
See https://github.com/openrazer/openrazer/wiki/Building-a-package, and feel free to ask if you have any questions.
Sorry, this seems too complicated for me to figure out.
By the way, I use Linux Mint
You just need to run the commands listed on the wiki page and replace TARGET_BRANCH
with cobra-wired
. If you can't test it, unfortunately I cannot merge the changes.
trying to test this and when i install i am getting this:
Note, selecting 'openrazer-daemon' instead of './dist/openrazer-daemon_3.7.0-0_all.deb' Note, selecting 'openrazer-doc' instead of './dist/openrazer-doc_3.7.0-0_all.deb' Note, selecting 'openrazer-driver-dkms' instead of './dist/openrazer-driver-dkms_3.7.0-0_all.deb' Note, selecting 'openrazer-meta' instead of './dist/openrazer-meta_3.7.0-0_all.deb' Note, selecting 'python3-openrazer' instead of './dist/python3-openrazer_3.7.0-0_all.deb' how can i make sure apt (ubuntu) uses the *.debs in ./dist?
Try sudo dpkg -i ./dist/*.deb
then
still getting
Did you reboot after installing the new packages?
Actually I missed something in the changes, please do the steps again (including git clone, you can delete the old directory you git clone
'd) and then reboot. Hopefully the device shows up then.
I get this error when doing this commnad:
sudo apt install debhelper dh-python linux-headers-generic python3-setuptools lsb-release dkms # build dependencies ./scripts/build_debs.sh
build.log:
sudo apt install build-essential
and then try the build_debs.sh
step again
Ran your command and then these commands with no errors and then rebooted:
cd openrazer sudo apt install debhelper dh-python linux-headers-generic python3-setuptools lsb-release dkms # build dependencies ./scripts/build_debs.sh sudo apt install ./dist/*.deb
Now in Polychromatic:
Is it possible my system is using the incorrect version of openrazer:
Okay will try in a bit (this is my other account that's like my CI account on my other PC )
Yep looks to work now 👍
So I removed all openrazer and polychromatic packages and folders and run through the wiki commands to install the cobra-wired version and also polychromatic. After a reboot it now seems to work. Awesome!
So clicking around in polychromatic/RazerGenie shows that everything works as expected? Any unexpected issues?
Mouse colors work fine. Lights turn off in screen saver. But don't come back on when waking from screen saver. I have to got to polychromatic to turn on colors again.
I don't have a screensaver / suspend but everything seemed to work from Lock Screen for me
@garykruger Weird, this happens every time? Anything from razermouse in dmesg then?
Consistently no rgb after waking from screen saver. Here is my dmesg:
Hm there's not, weird. What effect do you set before locking the screen, also what desktop environment are you using? Can you send a screenshot of polychromatic/RazerGenie after unlocking the screen when it's black (re-open the app and select the device so brightness/effect settings for the device are visible)? I'm curious what it's thinking the current effect is.
I set mouse preferences as static green at 50% brightness. I am using linux mint 21.2 with cinnamon desktop. Here is polychromatic screenshot:
Screenshot is after screensaver when mouse has no RGB before any changes are made.
If you manually change brightness again, does the device light up again?
I can definitely see in the daemon log that it's supposed to set the brightness to 0 when locking the screen, and then restoring the brightness once you unlock
2024-01-06 11:42:49 | razer.screensaver | DEBUG | Received screensaver active signal
2024-01-06 11:42:49 | razer.device0 | INFO | Suspending RazerCobraProWired
2024-01-06 11:42:49 | razer.device0 | DEBUG | DBus call set_brightness
2024-01-06 11:42:49 | razer.device0 | DEBUG | DBus call set_logo_brightness
2024-01-06 11:42:49 | razer.device0 | DEBUG | DBus call set_scroll_brightness
2024-01-06 11:42:51 | razer.screensaver | DEBUG | Received screensaver inactive signal
2024-01-06 11:42:51 | razer.device0 | INFO | Resuming RazerCobraProWired
2024-01-06 11:42:51 | razer.device0 | DEBUG | DBus call set_brightness
2024-01-06 11:42:51 | razer.device0 | DEBUG | DBus call set_logo_brightness
2024-01-06 11:42:51 | razer.device0 | DEBUG | DBus call set_scroll_brightness
So what I usually do after waking from screen saver is set the color from the polychromatic applet icon on the panel by the system clock and that works. BUT If I open the polychromatic app and try to set the brightness or color it does NOT work. It is ONLY when I select static, wave, etc. the the RGB lights come on.
For anyone else following, please read https://github.com/openrazer/openrazer/pull/2190#issuecomment-1975129080
Using Razer Cobra Pro mouse via 2.4gz wireless works fine and is working well with Polychromatic. However I prefer to use my mouse with usb via direct usb connection which has an ?Unrecognised: 1532:00AF as reported by Polychromatic. Any help would be appreciated.