todbot / blink1

Official software for blink(1) USB RGB LED by ThingM
https://blink1.thingm.com/
Other
953 stars 237 forks source link

Blink(1) doesn't work on archlinux #137

Open ghost opened 10 years ago

ghost commented 10 years ago

I inserted my blink(1) on archlinux and when i run the blink1-tool --list it shows me : no blink(1) devices found error When i lsmod i see the hid_thingm module loaded and also i added the 51-blink1.rules to /etc/udev/rules.d/ Any idea how I can get it to work. I have 4 blink(1)'s and am desperately trying to get it to work on archlinux. Thanks.

todbot commented 10 years ago

Did you also do sudo udevadm control --reload-rules to reload the rules?

If so and it didn't work, it could be Arch Linux has a different udev setup. I'll look around about Arch and udev but if you know good sites to search on, you might want to look around too.

Also you can run blink1-tool as root or with sudo, that will at least let you start playing.

ghost commented 10 years ago

I did try the above suggested options sorry I forgot to mention it and it still doesn't work I have a thread opened on the archlinux community aswell since I didn't get a solution there thought of reaching out here. https://bbs.archlinux.org/viewtopic.php?pid=1432043#p1432043 -- Just for reference.

todbot commented 10 years ago

Does arch have lsusb? That should give you something like this:

demo% lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 05a9:2640 OmniVision Technologies, Inc. OV2640 Webcam
Bus 005 Device 002: ID 27b8:01ed

In the above, the last entry (27b8:01ed) is the vendor id / product id for blink(1).

ghost commented 10 years ago

Yes it does show up: Bus 004 Device 002: ID 8087:8000 Intel Corp. Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 8087:8008 Intel Corp. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 04f2:b40d Chicony Electronics Co., Ltd Bus 001 Device 003: ID 0a5c:21fb Broadcom Corp. Bus 001 Device 002: ID 0951:1607 Kingston Technology DataTraveler 100 Bus 001 Device 005: ID 138a:0050 Validity Sensors, Inc. Swipe Fingerprint Sensor Bus 001 Device 008: ID 27b8:01ed
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

todbot commented 10 years ago

Did you compile blink1-tool yourself or use a precompiled version? I've found that pre-compiled versions of USB-based programs don't always work because of libusb issues. blink1-tool should always work with sudo or as root user. The udev stuff is only if you want it to work as a non-root user.

ghost commented 10 years ago

i used the pre-compiled blink-tool from the official site. And also used the sudo command to run the blink tool still it keeps showing no blink(1) devices error

todbot commented 10 years ago

In that case, definitely try compiling it. Archlinux probably has different libusb library than Ubuntu. To recompile, checkout this repository (or download a zip of it) and then cd blink1/commandline && make blink1-tool

ghost commented 10 years ago

getting this error now : /usr/bin/ld: cannot find -lusb-1.0 /usr/bin/ld: cannot find -lrt collect2: error: ld returned 1 exit status

todbot commented 10 years ago

You'll need to install those libraries then, the "rt" and "usb-1.0" libraries. I don't have experience with Arch, sorry.