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

Can not execute any command without sudo privileges #340

Open
CommanderData1701 opened this issue Apr 6, 2024 · 2 comments
Open

Can not execute any command without sudo privileges #340

CommanderData1701 opened this issue Apr 6, 2024 · 2 comments

Comments

@CommanderData1701
Copy link

Description

Hello, I tried fetching my Headset's battery status (Corsair HS 70 pro) in order to display that information in my instance of xmobar. I am running arch with kernel version 6.8.2.
If I try running headsetcontrol -b or with any other option (without sudo) I get the output:

Found Corsair Headset Device!

Error: [battery] Could not open device. Error: Failed to open a device with path '/dev/hidraw0': Permission denied

The vendor id and product id are listed int the .rules file at /usr/local/lib/udev/rules.d/70-headsets.rules, and I did try reloading these rules with the command given in the readme and rebooting. What might be the issue here?

Headset Name

Corsair HS 70 Pro

On which OS does the problem happen?

Linux

Device information

Detailed Device Information
Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xc Usageid: 0x1

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0x1

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0x64

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0x65

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0x66

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0xc8

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0xc9

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0xca

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0xd9

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0xcb

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0xd3

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xffc5 Usageid: 0xcc

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0x1

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0xa

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0x22

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0xa

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0x22

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0xa

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0x22

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0xa

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0x22

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0xa

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0xc

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0x1 Usageid: 0x3a

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0xff00 Usageid: 0xc

Device Found
 VendorID: 0x1b1c
ProductID: 0x0a4f
 path: /dev/hidraw0
 serial_number: 
 Manufacturer: Corsair
 Product:      CORSAIR HS70 Pro Wireless Gaming Headset
 Interface:    3
 Usage-Page: 0x1 Usageid: 0x3a

Device Found
 VendorID: 0x093a
ProductID: 0x2521
 path: /dev/hidraw3
 serial_number: 
 Manufacturer: (null)
 Product:      USB OPTICAL MOUSE
 Interface:    0
 Usage-Page: 0x1 Usageid: 0x2

Device Found
 VendorID: 0x093a
ProductID: 0x2521
 path: /dev/hidraw3
 serial_number: 
 Manufacturer: (null)
 Product:      USB OPTICAL MOUSE
 Interface:    0
 Usage-Page: 0x1 Usageid: 0x1

Device Found
 VendorID: 0x258a
ProductID: 0x003a
 path: /dev/hidraw1
 serial_number: 
 Manufacturer: SINO WEALTH
 Product:      Gaming KB 
 Interface:    0
 Usage-Page: 0x1 Usageid: 0x6

Device Found
 VendorID: 0x258a
ProductID: 0x003a
 path: /dev/hidraw2
 serial_number: 
 Manufacturer: SINO WEALTH
 Product:      Gaming KB 
 Interface:    1
 Usage-Page: 0x1 Usageid: 0x80

Device Found
 VendorID: 0x258a
ProductID: 0x003a
 path: /dev/hidraw2
 serial_number: 
 Manufacturer: SINO WEALTH
 Product:      Gaming KB 
 Interface:    1
 Usage-Page: 0xc Usageid: 0x1

Device Found
 VendorID: 0x258a
ProductID: 0x003a
 path: /dev/hidraw2
 serial_number: 
 Manufacturer: SINO WEALTH
 Product:      Gaming KB 
 Interface:    1
 Usage-Page: 0xff00 Usageid: 0x1

Device Found
 VendorID: 0x258a
ProductID: 0x003a
 path: /dev/hidraw2
 serial_number: 
 Manufacturer: SINO WEALTH
 Product:      Gaming KB 
 Interface:    1
 Usage-Page: 0x1 Usageid: 0x6


@Sapd
Copy link
Owner

Sapd commented Apr 12, 2024

Maybe you could try to move them to one of the following folders: https://wiki.archlinux.org/title/udev#About_udev_rules

@CommanderData1701
Copy link
Author

CommanderData1701 commented Apr 12, 2024

I did try that, with no success unfortunately. I am really confused, because it used to work in the past... I think before I used the version from the AUR, and not building from source. The issue here is that things are really hard to reproduce, since Arch installs mostly are not the same. I don't know if this is worth looking into for you, unless more people have the same issue. Can you maybe point me to the crucial parts in the repo that I can have a look into, to maybe try to find a fix for me?

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

No branches or pull requests

2 participants