ventto / pearlfan Goto Github PK
View Code? Open in Web Editor NEWGNU/Linux kernel driver and libusb app for a Pearl's USB LED fan
License: GNU General Public License v3.0
GNU/Linux kernel driver and libusb app for a Pearl's USB LED fan
License: GNU General Public License v3.0
Have installed dependencies, libusb...-dev, and libnetpbm...-dev and did build, ran make. Both the pearlfan and pearltest compile. When run pearlfan or pearltest as user, with sudo or as root get:
Device can not be opened or found.
You may need permission.
In logs note:
[ 1797.644044] usb 7-1: new low-speed USB device number 4 using uhci_hcd
[ 1797.816820] usb 7-1: New USB device found, idVendor=0c45, idProduct=7160
[ 1797.816828] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1797.816832] usb 7-1: Product: XY LED FAN
[ 1797.816837] usb 7-1: Manufacturer: XY-SUN
[ 1797.833926] input: XY-SUN XY LED FAN as /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:0C45:7160.000C/input/input21
[ 1797.834241] hid-generic 0003:0C45:7160.000C: input,hidraw7: USB HID v1.00 Device [XY-SUN XY LED FAN ] on usb-0000:00:1d.1-1/input0
So device is found when plugged in.
Please help
Writing multiple sentenses throw an interactive mode.
Does this work on Chinese fans like the ones you can by from Aliexpress.
Or this one for example https://www.amazon.in/Captcha-Programmable-Message-Fan-Drawing/dp/B0772SYZ15/
Or this is a PerFan vendor specific drive.
Thanks!
is it this one? https://aliexpress.com/item/Mini-Gadget-USB-LED-light-Fan-Flexible-Programmable-LED-Cooling-Fan-DIY-Programming-Any-Characters-Messages/32706568703.html which is sold everywhere on aliexpress much cheaper than pearl?
message of 26 characters max.
Only ASCII [32 ; 127].
Anyway to make this work on a Mac?
I put the fan in the mac it doesn't see it as a usb device
Use getopt for options.
A simple init & close cause 2 not-freed blocks (libusb #231)
==3893== 4,096 bytes in 1 blocks are still reachable in loss record 1 of 2
==3893== at 0x4C29BBE: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3893== by 0x405B0EF: ??? (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x405F300: ??? (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x4E4518C: ??? (in /usr/lib/libusb-1.0.so.0.1.0)
==3893== by 0x4E42D50: ??? (in /usr/lib/libusb-1.0.so.0.1.0)
==3893== by 0x4E3B18C: libusb_init (in /usr/lib/libusb-1.0.so.0.1.0)
==3893== by 0x40136A: main (main.c:60)
==3893==
==3893== 4,096 bytes in 1 blocks are still reachable in loss record 2 of 2
==3893== at 0x4C29BBE: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3893== by 0x405B0EF: ??? (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x405AA2B: ??? (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x406333B: ??? (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x40614A2: ??? (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x405EE9F: ??? (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x4064206: ??? (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x405C08B: udev_enumerate_scan_devices (in /usr/lib/libudev.so.1.6.5)
==3893== by 0x4E45194: ??? (in /usr/lib/libusb-1.0.so.0.1.0)
==3893== by 0x4E42D50: ??? (in /usr/lib/libusb-1.0.so.0.1.0)
==3893== by 0x4E3B18C: libusb_init (in /usr/lib/libusb-1.0.so.0.1.0)
==3893== by 0x40136A: main (main.c:60)
Example:
$ pwd
<path2>
$ dreamyfan <path1>/myconfig.cfg
FAILED
Arborescence:
<path1>
├─ myconfig.cfg
├─ images/
| |─ image1.pbm
| |─ image2.pbm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.