Closed Graval504 closed 2 years ago
Check the permissions on your hidraw devices:
$ ls -l /dev/hidraw*
You can change the permissions as a short solution:
$ sudo chmod 666 /dev/hidraw*
If it helps you can install udev rules - https://github.com/kyokenn/rogdrv#installation
tried it but not effective..
ls: cannot access '/dev/hidraw*': No such file or directory
[graval504@graval504-14u530gh50k ~]$ sudo ls -l /dev/hidraw*
[sudo] password for graval504:
ls: cannot access '/dev/hidraw*': No such file or directory
[graval504@graval504-14u530gh50k ~]$ sudo chmod 666 /dev/hidraw*
chmod: cannot access '/dev/hidraw*': No such file or directory
[graval504@graval504-14u530gh50k rogdrv]$ sudo udevadm trigger
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/site-packages/rogdrv-0.3.0-py3.9.egg/rog/__main__.py", line 65, in run
e = self._device.next_event()
AttributeError: 'NoneType' object has no attribute 'next_event'
Traceback (most recent call last):
File "/usr/bin/rogdrv", line 33, in <module>
sys.exit(load_entry_point('rogdrv==0.3.0', 'console_scripts', 'rogdrv')())
File "/usr/lib/python3.9/site-packages/rogdrv-0.3.0-py3.9.egg/rog/__main__.py", line 393, in rogdrv
gtk3_main(app.device)
File "/usr/lib/python3.9/site-packages/rogdrv-0.3.0-py3.9.egg/rog/ui/__init__.py", line 49, in gtk3_main
if not device.profiles:
AttributeError: 'NoneType' object has no attribute 'profiles'
chmod: cannot access '/dev/hidraw*': No such file or directory
This is wierd. You are missing hidraw device files.
Can you show output of dmesg
after you plugged in your mouse?
oh, that just before was on chrome remote desktop and result was different on notebook. i tried on notebook
[graval504@graval504-14u530gh50k ~]$ sudo ls -l /dev/hidraw
hidraw0 hidraw1 hidraw2 hidraw3
[graval504@graval504-14u530gh50k ~]$ sudo ls -l /dev/hidraw*
[sudo] password for graval504:
crw-rw----+ 1 root root 239, 0 12월 3일 21:24 /dev/hidraw0
crw-rw----+ 1 root root 239, 1 12월 3일 21:24 /dev/hidraw1
crw-rw----+ 1 root root 239, 2 12월 3일 21:24 /dev/hidraw2
crw-rw----+ 1 root root 239, 3 12월 3일 21:24 /dev/hidraw3
[graval504@graval504-14u530gh50k ~]$ rogdrv
^C
[graval504@graval504-14u530gh50k ~]$ cd ./rogdrv/
[graval504@graval504-14u530gh50k rogdrv]$ sudo ./install_udev
udev rules are saved into "/etc/udev/rules.d/50-rogdrv.rules"
run to apply them:
$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
[graval504@graval504-14u530gh50k rogdrv]$ sudo udevadm control --reload-rules
[graval504@graval504-14u530gh50k rogdrv]$ sudo udevadm trigger
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv
^C
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv
rogdrv rogdrv-config
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv-config dpi
DPI Preset 1 (red): 1600
DPI Preset 2 (purple): 400
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv-config dpi
build/ install_udev rog/ rogdrv.egg-info/
dist/ LICENSE rogdrv screenshot.png
.git/ MANIFEST.in rogdrv-config setup.py
.gitignore README.md rogdrv.desktop
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv-config dpi set 1200
usage: rogdrv-config dpi [-h] [-d DPI] [-p PRESET]
rogdrv-config dpi: error: unrecognized arguments: set 1200
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv-config dpi -d 1200 -p 1
DPI Preset 1 (red): 1200
DPI Preset 2 (purple): 400
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv-config dpi -d 1200 -p 2
DPI Preset 1 (red): 1200
DPI Preset 2 (purple): 1200
[graval504@graval504-14u530gh50k rogdrv]$ rogdrv
it was properly worked and rogdrv was added on my task bar. thank you so much for your help.
I recently installled majaro linux on my notebook with using my new mouse, ROG Strix Carry with mouse reciever.( so i am not an expert on manjaro linux, both with ubuntu) to use rogdrv, i installed python,python-evdev,python-hid,cython-hidapi with yay. (actually cython-hidapi is installed after the last command of this text) i tried to find gir-appindicator3 on yay, but i couldn't find them.(only found something different appindicator and just python-hid.) actually i can't remember about the appindicator i installed :(
on this situation, i ran rogdrv on terminal, and got
(actually i losted log about running rogdrv sry) and tried LIBUSB_DEBUG=9 sudo -E lsusb -v -d 0b05:0x18B4
with confusion, i installed packages newly or again,
and ran again rogdrv,
errorcode changed like that.
after i installed cython-hidapi and ran rogdrv again, but get the same message. i don't know about how to solve this situation. i think it can be very complicated because i ran many command, installed or removed or changed packages, etc on terminal over two days;