-
Notifications
You must be signed in to change notification settings - Fork 13
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
ASUS ROG Spatha #1
Comments
Looks like you missing python3-setuptools package. Also make sure that you have python3-pip installed too. |
Thanks so much, I will install those and check again. My next update might be a few weeks. My laptop stopped charging so I took it in yesterday under warranty. Need to wait for it to return before I can test again. On the plus side the mouse arrived today. I was trying to get the software installed on my system while I waited for the mouse to arrive. I'm stuck using it on the company's Windows machine now but looking forward to getting this working on Ubuntu. Thanks so much for taking the time to reply to me and for developing this in the first place. You are a legend, and your work is much appreciated :) I will let you know how it goes once I get the laptop back. |
Good day, I have installed all the prerequisets as mentioned but it still fails with that setup.py error. Is there not supposed to be a setup.py in your folder that is missing ? If there is any info that you want from me please let me know and I will be happy to screenshot or run anything and post you the results if you have the time to assist me. I would really appreciate the help. Regards |
Make sure that you have installed the required ubuntu packages with: Then you can install the driver with: Or with some other alternative method: |
Install just ran perfectly, thank you so much! Now I just need to figure out how to use it. running install Installed /usr/local/lib/python3.6/dist-packages/rogdrv-0.0.4-py3.6.egg |
Looks good. You can start the driver with: If it works, then you can enable autostart. So it will start automatically after logging in into desktop environment. |
Do I just open a terminal and type rogdrv ? I dont need to go to the install dir open terminal from there and then type rogdrv ? Sorry to be such a pain |
If I run it from terminal I get this: :~$ rogdrv Traceback (most recent call last): |
The driver can't find the mouse. Do you have the mouse connected? What mouse model you have? Do you installed the device ".rules" files? - https://github.com/kyokenn/rogdrv#installation |
The device is installed I have model:L701(mouse). I did run the .rules but let me try running it again |
cd to the install dir then ran the commands: cn@CunningSquirrel: Still seems to be something wrong: cn@CunningSquirrel:~$ rogdrv Traceback (most recent call last): cn@CunningSquirrel:~$ rogdrv-config profile 1 Let me try restarting my Laptop |
Restarted and still no luck. I'm feeling pretty useless right about now. I'm running Zorin OS 15 which is based on Ubuntu 18.04.2. That shouldn't make a difference though. Going to check in etc/udev/rules.d to see if I can see anything |
It definitely copied the rules like you said: cn@CunningSquirrel:/etc/udev/rules.d$ ls I see the file is there "50-rogdrv.rules" |
L701? So it's a ROG Spatha. It's not supported. I can try to add it's ID to the driver. So some features may work, if it's compatible with Pugio. |
Thank you SO MUCH ! I would really appreciate it. I already ran that command and was about to post it for you :) :~$ lsusb |
Thank you SO MUCH ! |
I have added Spatha USB ID to the driver. You can update it with The button rebinding may not work, because Spatha has more buttons than Pugio. |
I will test and let you know, thank you :) |
I have reinstalled and it no longer says "Device not found" but it still doesn't seem to want to work. Thank you for your assistance though with all this testing. cn@CunningSquirrel:~$ rogdrv cn@CunningSquirrel:~$ rogdrv-config profile 1 |
It can't open the device. This could be a permissions problem.
or you can just reboot a PC. If nothing works, you can try to run rogdrv-config with sudo: |
Unfortunately that did not work. I ran the commands you suggested and even restarted the laptop, still nothing: cn@CunningSquirrel:~$ sudo rogdrv cn@CunningSquirrel:~$ sudo rogdrv-config profile 1 |
I will be formatting my laptop to format my NVMe drive with Samsung Magic this weekend and then I will do a fresh install and see if anything changes. Thank you for taking the time to try and assist. |
@kyokenn I can get it working on Manjaro, but only with sudo. Can I change this condition, like setting a python config somewhere to allow running it without sudo? |
You need to install the udev .rules files. Those files are used by the system to chmod your /dev/hidraw* files. You can check the current files permissions with: ls -alh /dev/hidraw* |
@kyokenn yes, I've installed the custom udev rules. The output of
crw------- 1 root root 239, 1 Agu 17 15:59 /dev/hidraw1
crw-rw-rw- 1 root root 239, 0 Agu 17 17:34 /dev/hidraw0
crw------- 1 root root 239, 1 Agu 17 15:59 /dev/hidraw1
crw-rw-rw- 1 root root 239, 2 Agu 17 17:34 /dev/hidraw2
crw-rw-rw- 1 root root 239, 3 Agu 17 17:34 /dev/hidraw3 Running some $ rogdrv-config color logo 50 0 200
Traceback (most recent call last):
File "/usr/bin/rogdrv-config", line 11, in <module>
load_entry_point('rogdrv==0.0.4', 'console_scripts', 'rogdrv-config')()
File "/usr/lib/python3.7/site-packages/rogdrv-0.0.4-py3.7.egg/rogdrv/__main__.py", line 107, in rogdrv_config
device = DeviceManager.get_device()
File "/usr/lib/python3.7/site-packages/rogdrv-0.0.4-py3.7.egg/rogdrv/device.py", line 386, in get_device
return device_class()
File "/usr/lib/python3.7/site-packages/rogdrv-0.0.4-py3.7.egg/rogdrv/device.py", line 78, in __init__
self._kbd = hidapi.Device(kbd_info)
File "/usr/lib/python3.7/site-packages/hidapi.py", line 159, in __init__
raise IOError("Could not open connection to device.")
OSError: Could not open connection to device.
$ sudo rogdrv-config color logo 50 0 200
1 (logo): [brightness:4] (50, 0, 200)
2 (wheel): [brightness:0] (0, 0, 0)
3 (bottom): [brightness:0] (0, 0, 0) |
Looks like your mouse consists of those device files: hidraw0 hidraw2 hidraw3 |
Hey, old issue, hi. I´ve been messing with my Spartha, and I´ve managed to get it loaded. (Apparently, both Controller and Keyboard interfaces on the wireless are 0? I dunno.) But I´m having trouble getting profiles to load, the error being this.
|
This is a problem: Can you try the mouse in wired mode? |
Right, so. I think the issue is that the subdevices I´m getting are mouse and keyboard, but not control, as that´s where the debugger says the error happened. [2020-04-22 11:50:30,490] [DEBUG] opening control subdevice |
I don't known which subdevice should be used as control or keyboard, so I'm just guessing the subdevice's index. There are no autodetection. You can try to set different indexes by yourself with something like:
The index number starts with 0. Most mices uses second (index 1) subdevice for keyboard and third (index 2) for control, but I have changed it for Strix Carry - https://github.com/kyokenn/rogdrv/blob/master/rogdrv/device.py#L646 You can try some combinations for Spatha. There is also separate Device class for Spatha in wireless mode. |
I am on the latest Linux Mint, which I believe is Ubuntu 18? Some choice data from Xorg log.
|
Also did print lsub -v
|
It can't reads the descriptors:
Make sure that you're running lsusb with sudo: |
Report Descriptors still comes up as unavailable, even with sudo. |
Right, so. Tried usbhid-dump, and I get this error.
Buuuut with sudo, it does.
|
And another info dump.
|
A usbhid dump on Spartha wired.
|
So in wireless mode it have 1 subdevice, in wired mode - 2 subdevices: mouse and keyboard. |
Yeah. There hasn´t been a new firmware for the mouse in... Over a year? |
Oh, hang on. There´s one from January. I´m going to jump on to VM and see if my ROG utility can detect my mouse firmware. |
Right, that was a ride. Has to get my laptop to run the firmware updater because there´s no linux variant, then I forgot my login stuff. Anyways, the receiver and mouse are now running the latest firmware, 1.40 and 1,80, respectively. But there doesn´t appear to be any difference. This one is the receiver.
And the lsusb
And the wired mode.
|
Yeah. Still not good. I think you have to debug the mouse by yourself, because I don't have this type of mouse. So you will need to start a USB debugger and play around with filters to exclude unwanted interfaces with packets like mouse movement events or clicks. |
I can get the data needed, no problem, I just have no idea how to put it into code. But if it´s just replacing the values and numbers in this code, I shooouuld be able to? We´ll see. I´ll keep you updated. |
Hello Is there a way to bluff the VID and PID to reprogram it |
Did you broken your mouse? |
Yes my mouse is broken, connected but with a bad vid and pid |
Hi I have managed to install the program but now once i try run rogdrv it outputs this: |
You need to install python3-hid package:
I also added this on into requirements section of the readme. |
Seemed to have gotten rid of the hid problem however now this comes up |
Can you try running:
Just to make sure that driver can detect the mouse. |
Wow didn't think you'd reply so quickly thank you Here's the section I think you want to see: I'm using a rog spatha in wireless mode so looks like it successfully found it and my keyboard |
I also need output (mouse-related part) of I'm looking for output like this one - #1 (comment) |
This is what I am assuming you wanted as there was a lot more output |
So the hid-generic kernel driver still fails:
This device was not detected by hid-generic:
But it's required for changing mouse settings. So you got only 2 HID devices:
|
So what would you suggest to do to fix this? Apologies I am very new to linux |
As you can see many people tried to get this mouse working on Linux, but no one succeed. So you have to use ASUS Armoury on Windows to change the mouse settings. The settings are saved into the mouse, so this should be fine. |
Do you know of any programs for windows that I could use to change my mouse button functions more specifically as all of the options on ASUS Armoury are very limited. |
Trying to install this as I would love to use the mouse in Ubuntu. But it seems that a module is missing from your github. Whenever I try install using "sudo python3 setup.py install" I get:
Traceback (most recent call last):
File "setup.py", line 3, in
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Am I doing something wrong of is the "setuptools" missing? Your help would be Greatly appreciated.
The text was updated successfully, but these errors were encountered: