bchretien / AlienFxLite

:alien: A keyboard color management tool for Alienware laptops (written in Java with a C++ native library).
BSD 3-Clause "New" or "Revised" License
71 stars 14 forks source link

Doesn't work on Alienware 17 R3, couldn't open USB device #18

Open michaldybczak opened 7 years ago

michaldybczak commented 7 years ago

System Manjaro, package installed from AUR.

First: after install, alienfx is not searchable in launcher menu (lack of desktop file?). Second: I tried to launch it from terminal and I got:

Device found: 187c:0528
libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/003: No access
libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes.
could not open USB device

I'm not an expert but it seems like a solvable problem. Will poke around permissions and let you know if it helped.

michaldybczak commented 7 years ago

Unfortunately messing with /dev/bus/usb/001/003 permissions doesn't do anything. I have no sufficient knowledge to know what libusb does and how usb devices work on system and where are configs responsible for that :(

bchretien commented 7 years ago

There is no desktop file indeed, but it should be in your PATH (isn't your launcher checking it?). Second, USB access requires special permissions. Try to add your user to the usbusers group, or try to launch it with sudo (temporary solution).

michaldybczak commented 7 years ago

What do you mean "should be in your path"? What path? There is also no usbusers group, only usbmux.

When I tried to launch it today with sudo I got in terminal:

Device found: 187c:0528

and this:

https://puu.sh/vEo7I/469426ee85.png

So it seems it's more likely I need to add myself to a group but which one? usbmux didn't help.

bchretien commented 7 years ago

I mean your PATH environment variable that contains directories where to look for executables, so alienfx-lite should be easily found by launchers that rely on it (e.g. rofi).

If the usbusers group does not exist, you can create it and add your user to it.

michaldybczak commented 7 years ago

Sorry, but I have no idea about path variables that system looks for executables. I'm not an IT guy. I do know where I can find desktop files thou. The package should come with it out of the box instead of forcing me to create a desktop file myself in order to be able to launch it without a terminal. As far I know, all DEs can handle a desktop file. It seems that arch based system can't recognise your package (I don't see it in Plasma, neither on Gnome) so a universal way of finding it though desktop file should be implemented.

I created usbusers group, added myself and... nothing, the same issue.

Have you tried it on Arch? I know that the package is in AUR but has anyone tested it? Alienware computers are rather rare and I found out that many users stick with ubuntu and on Arch things work differently. For instance, I wanted to add alienware plymouth and I couldn't because it was designed for ubuntu. Luckily the person who created it was able quickly to create arch version. Maybe the same happens here? I don't know.

I suspect that testing it for arch is more difficult since you can't use a virtual machine for it :(.

michaldybczak commented 7 years ago

Since nothing has changed I delete the app and assume it just doesn't work :( 👎