Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

ax1200i dongle support #2

Open
ghost opened this issue Oct 12, 2015 · 4 comments
Open

ax1200i dongle support #2

ghost opened this issue Oct 12, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 12, 2015

Hey was just working on this a little, not much experience hacking linux drivers for HID devices so maybe I'm just missing a kernel driver or something? anyway if you can help would appreciate it, I assume the damn thing is the same stupid smbus adapter as everything else.. whatever exceptions I'm fine workign through it because the powersupply is just going to burn up if I don't try ..

       // Open the device using the VID, PID,                                                                                                                                                 
        // and optionally the Serial number.                                                                                                                                                   
        // open Corsair H80i, H100i, or H110i cooler                                                                                                                                           
        //                                                                                                                                                                                     
        // corsair ax1200i corsairlink                                                                                                                                                         
        // idVendor           0x1b1c Corsair                                                                                                                                                   
        // idProduct          0x1c00                                                                                                                                                           
        //                                                                                                                                                                                     

        handle = hid_open(0x1b1c, 0x1c00, NULL);                                                                                                                                               
        if (!handle)                                                                                                                                                                           
        {                                                                                                                                                                                      
            fprintf(stderr, "Error: Unable to open Corsair H80i, H100i or H110i CPU Cooler\n");                                                                                                
            return 0;                                                                                                                                                                          
        }

netcrave@nihil ~/OpenCorsairLink $ strace ./OpenCorsairLinkCli
execve("./OpenCorsairLinkCli", ["./OpenCorsairLinkCli"], [/* 52 vars */]) = 0
brk(0)                                  = 0x36fc93162f0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0d4000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=180563, ...}) = 0
mmap(NULL, 180563, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3b56c0a7000
close(3)                                = 0
open("/usr/lib64/libhidapi-hidraw.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\30\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18088, ...}) = 0
mmap(NULL, 2113584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56bcae000
mprotect(0x3b56bcb2000, 2093056, PROT_NONE) = 0
mmap(0x3b56beb1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x3b56beb1000
close(3)                                = 0
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`q\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=133024, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0a6000
mmap(NULL, 2212400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56ba91000
mprotect(0x3b56baa8000, 2097152, PROT_NONE) = 0
mmap(0x3b56bca8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x3b56bca8000
mmap(0x3b56bcaa000, 12848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3b56bcaa000
close(3)                                = 0
open("/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\271\5\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1150072, ...}) = 0
mmap(NULL, 3330592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56b763000
mprotect(0x3b56b872000, 2093056, PROT_NONE) = 0
mmap(0x3b56ba71000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10e000) = 0x3b56ba71000
mmap(0x3b56ba7c000, 82464, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3b56ba7c000
close(3)                                = 0
open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220U\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1058680, ...}) = 0
mmap(NULL, 3154024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56b460000
mprotect(0x3b56b562000, 2093056, PROT_NONE) = 0
mmap(0x3b56b761000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x101000) = 0x3b56b761000
close(3)                                = 0
open("/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300*\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=92096, ...}) = 0
mmap(NULL, 2188000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56b249000
mprotect(0x3b56b25f000, 2093056, PROT_NONE) = 0
mmap(0x3b56b45e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x3b56b45e000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0 \2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1737936, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0a5000
mmap(NULL, 3845784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56ae9e000
mprotect(0x3b56b03f000, 2097152, PROT_NONE) = 0
mmap(0x3b56b23f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a1000) = 0x3b56b23f000
mmap(0x3b56b245000, 16024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3b56b245000
close(3)                                = 0
open("/usr/lib64/libudev.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=88024, ...}) = 0
mmap(NULL, 92304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56c08e000
mprotect(0x3b56c0a2000, 4096, PROT_NONE) = 0
mmap(0x3b56c0a3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x3b56c0a3000
close(3)                                = 0
open("/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`#\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=30952, ...}) = 0
mmap(NULL, 2128408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56ac96000
mprotect(0x3b56ac9d000, 2093056, PROT_NONE) = 0
mmap(0x3b56ae9c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x3b56ae9c000
close(3)                                = 0
open("/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\32\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=22584, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c08d000
mmap(NULL, 2118000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56aa90000
mprotect(0x3b56aa95000, 2093056, PROT_NONE) = 0
mmap(0x3b56ac94000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x3b56ac94000
close(3)                                = 0
open("/lib64/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\24\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=22232, ...}) = 0
mmap(NULL, 2117656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3b56a88a000
mprotect(0x3b56a88f000, 2093056, PROT_NONE) = 0
mmap(0x3b56aa8e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x3b56aa8e000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c08c000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c08b000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c089000
arch_prctl(ARCH_SET_FS, 0x3b56c089740)  = 0
mprotect(0x3b56b23f000, 16384, PROT_READ) = 0
mprotect(0x3b56aa8e000, 4096, PROT_READ) = 0
mprotect(0x3b56ac94000, 4096, PROT_READ) = 0
mprotect(0x3b56bca8000, 4096, PROT_READ) = 0
mprotect(0x3b56ae9c000, 4096, PROT_READ) = 0
mprotect(0x3b56c0a3000, 4096, PROT_READ) = 0
mprotect(0x3b56b45e000, 4096, PROT_READ) = 0
mprotect(0x3b56b761000, 4096, PROT_READ) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c088000
mprotect(0x3b56ba71000, 40960, PROT_READ) = 0
mprotect(0x3b56beb1000, 4096, PROT_READ) = 0
mprotect(0x36fc9315000, 4096, PROT_READ) = 0
mprotect(0x3b56c0d5000, 4096, PROT_READ) = 0
munmap(0x3b56c0a7000, 180563)           = 0
set_tid_address(0x3b56c089a10)          = 8266
set_robust_list(0x3b56c089a20, 24)      = 0
rt_sigaction(SIGRTMIN, {0x3b56ba97ba0, [], SA_RESTORER|SA_SIGINFO, 0x3b56baa2080}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x3b56ba97c40, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x3b56baa2080}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8720000, rlim_max=RLIM64_INFINITY}) = 0
futex(0x3b56ba8e68c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x3b56ba8e698, FUTEX_WAKE_PRIVATE, 2147483647) = 0
brk(0)                                  = 0x36fc93162f0
brk(0x36fc93372f0)                      = 0x36fc93372f0
brk(0x36fc9338000)                      = 0x36fc9338000
uname({sys="Linux", node="nihil", ...}) = 0
uname({sys="Linux", node="nihil", ...}) = 0
open("/etc/udev/udev.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=49, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0d3000
read(3, "# see udev.conf(5) for details\n\n"..., 4096) = 49
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x3b56c0d3000, 4096)             = 0
brk(0x36fc9337000)                      = 0x36fc9337000
stat("/sys/subsystem", 0x3fd104ce320)   = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/sys/bus", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 34 entries */, 32768)    = 960
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/class", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 74 entries */, 32768)    = 2264
openat(AT_FDCWD, "/sys/class/hidraw", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 7 entries */, 32768)     = 208
readlink("/sys/class/hidraw/hidraw0", "../../devices/pci0000:00/0000:00"..., 1024) = 97
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/hidraw/hidraw0/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/class/hidraw/hidraw1", "../../devices/pci0000:00/0000:00"..., 1024) = 97
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/hidraw/hidraw1/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/class/hidraw/hidraw2", "../../devices/pci0000:00/0000:00"..., 1024) = 107
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/hidraw/hidraw2/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/class/hidraw/hidraw3", "../../devices/pci0000:00/0000:00"..., 1024) = 100
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/hidraw/hidraw3/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/class/hidraw/hidraw4", "../../devices/pci0000:00/0000:00"..., 1024) = 100
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/hidraw/hidraw4/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
getdents(4, /* 0 entries */, 32768)     = 0
close(4)                                = 0
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/hidraw/hidraw0", 0x3fd104cd6c0, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/hidraw/hidraw0/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/hidraw/hidraw0/uevent", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0d3000
read(3, "MAJOR=251\nMINOR=0\nDEVNAME=hidraw"..., 4096) = 34
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x3b56c0d3000, 4096)             = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/hidraw", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/hidraw/uevent", 0x3fd104cd680) = -1 ENOENT (No such file or directory)
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/subsystem", "../../../../../../../../bus/hid", 1024) = 31
lstat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:2013.0001/uevent", O_RDONLY|O_CLOEXEC) = 3
read(3, "DRIVER=hid-generic\nHID_ID=0003:0"..., 4096) = 159
close(3)                                = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/hidraw/hidraw1", 0x3fd104cd6c0, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/hidraw/hidraw1/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/hidraw/hidraw1/uevent", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0d3000
read(3, "MAJOR=251\nMINOR=1\nDEVNAME=hidraw"..., 4096) = 34
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x3b56c0d3000, 4096)             = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/hidraw", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/hidraw/uevent", 0x3fd104cd680) = -1 ENOENT (No such file or directory)
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/subsystem", "../../../../../../../../bus/hid", 1024) = 31
lstat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:2013.0002/uevent", O_RDONLY|O_CLOEXEC) = 3
read(3, "DRIVER=hid-generic\nHID_ID=0003:0"..., 4096) = 159
close(3)                                = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/hidraw/hidraw2", 0x3fd104cd6c0, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/hidraw/hidraw2/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/hidraw/hidraw2/uevent", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0d3000
read(3, "MAJOR=251\nMINOR=2\nDEVNAME=hidraw"..., 4096) = 34
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x3b56c0d3000, 4096)             = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/hidraw", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/hidraw/uevent", 0x3fd104cd680) = -1 ENOENT (No such file or directory)
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/subsystem", "../../../../../../../../../bus/h"..., 1024) = 34
lstat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:047D:2048.0003/uevent", O_RDONLY|O_CLOEXEC) = 3
read(3, "DRIVER=hid-generic\nHID_ID=0003:0"..., 4096) = 183
close(3)                                = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/hidraw/hidraw3", 0x3fd104cd6c0, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/hidraw/hidraw3/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/hidraw/hidraw3/uevent", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0d3000
read(3, "MAJOR=251\nMINOR=3\nDEVNAME=hidraw"..., 4096) = 34
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x3b56c0d3000, 4096)             = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/hidraw", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/hidraw/uevent", 0x3fd104cd680) = -1 ENOENT (No such file or directory)
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/subsystem", "../../../../../../../../bus/hid", 1024) = 31
lstat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.0/0003:0557:2419.0004/uevent", O_RDONLY|O_CLOEXEC) = 3
read(3, "DRIVER=hid-generic\nHID_ID=0003:0"..., 4096) = 162
close(3)                                = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/hidraw/hidraw4", 0x3fd104cd6c0, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/hidraw/hidraw4/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/hidraw/hidraw4/uevent", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0d3000
read(3, "MAJOR=251\nMINOR=4\nDEVNAME=hidraw"..., 4096) = 34
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x3b56c0d3000, 4096)             = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/hidraw", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/hidraw/uevent", 0x3fd104cd680) = -1 ENOENT (No such file or directory)
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005", 0x3fd104cd230, 1024) = -1 EINVAL (Invalid argument)
stat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
readlink("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/subsystem", "../../../../../../../../bus/hid", 1024) = 31
lstat("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
open("/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14.1/1-14.1:1.1/0003:0557:2419.0005/uevent", O_RDONLY|O_CLOEXEC) = 3
read(3, "DRIVER=hid-generic\nHID_ID=0003:0"..., 4096) = 162
close(3)                                = 0
write(2, "Error: Unable to open Corsair H8"..., 62Error: Unable to open Corsair H80i, H100i or H110i CPU Cooler
) = 62
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 15), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3b56c0d3000
write(1, "Cannot initialize link.\n", 24Cannot initialize link.
) = 24
exit_group(1)                           = ?
+++ exited with 1 +++
netcrave@nihil ~/OpenCorsairLink $ 
@ghost
Copy link
Author

ghost commented Oct 12, 2015

CONFIG_HIDRAW=y

looks like I have supprot for it just need to figure out how to enable HIDRAW for that device I guess? not sure

@ghost
Copy link
Author

ghost commented Oct 12, 2015

https://www.pjrc.com/teensy/rawhid.html hmm found this ill take a look a little later

@ghost
Copy link
Author

ghost commented Oct 12, 2015

linux-sunxi/linux-sunxi@d45a238 also found this

@ghost
Copy link
Author

ghost commented Oct 15, 2015

https://github.com/ka87/cpsumon turns out this is what i need, ill try to get some ebuilds cut for both of these later on, good choice using qmake :)

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

No branches or pull requests

0 participants