You are not logged in.

#1 2020-03-29 20:22:59

MikeTeavee
Member
Registered: 2020-03-29
Posts: 17

Antec Kuhler 920 driver

Hi, I'm installing Arch to learn about Linux. I'm really planning to learn how to use this operating system thoroughly. I installed it on an older machine from 2011 that uses a Antec Kuhler 920, (this is an all-in-one water cooler.)

The Issue: By default the heatsink fan goes to 3000 RPM and is INCREDIBLY loud. This is a huge problem and I need to find a solution ASAP.

BIOs settings didn't seems to help, I’m pretty sure that, based on using this AIO with Windows it needs to be fixed at the driver level. AUR didn't seem to have any drivers AFAIK, so I found a link to sourceforge with linux drivers. Only issue is that I have no idea what I'm doing.

Link:
https://sourceforge.net/projects/kuhlerdriver/

I got as far as putting in the terminal:  make install

I get:
make: *** No rule to make target 'src/kuhler_920.c', needed by 'kuhlerd'.  Stop.

Been digging online, people say I need a .config file or something. I'm completely lost.

Any step in the right direction will greatly help. Thanks!

Last edited by MikeTeavee (2020-03-29 20:35:03)

Offline

#2 2020-03-29 20:49:03

loqs
Member
Registered: 2014-03-06
Posts: 19,086

Re: Antec Kuhler 920 driver

I can not reproduce the issue you encountered.  What exactly did you do?

bsdtar -xvf ~/Downloads/kuhler_driver-0.61.tar.gz 
x src/kctl.c
x src/kuhler_920.c
x src/kuhler_920_ctl.c
x common/inc/
x common/inc/kuhler_920.h
x Makefile
x INSTALL
x CHANGELOG
x USAGE
x 10-kuhler.rules
x kuhler_thresholds
$ make install
gcc src/kuhler_920.c -o kuhlerd -lusb-1.0 -lpthread -lrt  
src/kuhler_920.c: In function ‘update_thread’:
src/kuhler_920.c:82:3: warning: implicit declaration of function ‘send_status_packet’; did you mean ‘get_status_packet’? [-Wimplicit-function-declaration]
   82 |   send_status_packet(cp_ptr->mode,kd_ptr);
      |   ^~~~~~~~~~~~~~~~~~
      |   get_status_packet
src/kuhler_920.c: In function ‘main’:
src/kuhler_920.c:403:14: warning: implicit declaration of function ‘umask’ [-Wimplicit-function-declaration]
  403 |  old_perms = umask();
      |              ^~~~~
gcc src/kuhler_920_ctl.c -o kuhler_ctl -lusb-1.0 -lpthread -lrt  
cp: cannot create regular file '/var/local/kuhlerd': Permission denied
make: *** [Makefile:28: install] Error 1

Offline

#3 2020-03-29 21:20:55

MikeTeavee
Member
Registered: 2020-03-29
Posts: 17

Re: Antec Kuhler 920 driver

1. downloaded the tarball to /home/nick/ (this was done using the browser)

2. grabbed gzip from AUR.

3. used gzip to decompress the .gz file, now the file is .tar

4. I unpacked the tar file using Tar

5. i think i typed 'tar -xzf kuhler_driver-0.61.tar, this put the contained files in to directory  /home/nick/

6. installed make from AUR

7. put in terminal "make install" ... got the error, I'm guessing I'm not making the file in the right directory? or something? I'm totally clueless

Thanks fot the reply BTW smile

Last edited by MikeTeavee (2020-03-29 21:21:28)

Offline

#4 2020-03-29 21:27:54

loqs
Member
Registered: 2014-03-06
Posts: 19,086

Re: Antec Kuhler 920 driver

tar and gzip are in the core repository and dependencies of the base package so should be present on every arch installation.
make is also in core.  tar and bsdtar can extract gzip compressed archives.  Did you install gcc?  How did you install gzip,  tar and make from AUR?
It also helps to post the commands you used and their outputs rather than a narrative of the steps you performed.
Edit:
Test PKGBUILD should at least build the binaries.  Files are install in standard locations the group kuhler is not created and setgid is not used so root permissions may be required.

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Your Name <youremail@domain.com>
pkgname=kuhler_driver
pkgver=0.61
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="https://sourceforge.net/projects/kuhlerdriver/"
license=('GPL3')
depends=('libusb')
source=("$pkgname-$pkgver.tar.gz::https://sourceforge.net/projects/kuhlerdriver/files/$pkgname-$pkgver.tar.gz/download")
sha256sums=('1983f92ea3ebaae226e95938225ece4d60addc59f32d1373dca147916822c149')

build() {
  make
}

package() {
#        @cp ./kuhlerd /var/local
#        @cp ./kuhler_ctl /var/local     
#        @echo "Creating kuhler group"
#        @groupadd -f kuhler
#        @echo "Changing group ownership of kuhlerd to kuhler group"
#        @chgrp kuhler /var/local/kuhlerd
#        @chgrp kuhler /var/local/kuhler_ctl
#        @echo "Applying SETGID to kuhlerd -- will run as kuhler group"
#        @chmod g+s /var/local/kuhlerd
#        @chmod u+s /var/local/kuhlerd
#        @chmod g+s /var/local/kuhler_ctl
#        @echo "Done! installed to /var/local"
#        @echo "Install Kuhler V4 Custom Fan Profile"
#        cp ./kuhler_thresholds /etc
#        @echo chmod +x /var/local/kuhlerd 
#        @echo chmod +x /var/local/kuhler_ctl
#        @echo chown kuhler /var/local/kuhlerd
#        @echo chown kuhler /var/local/kuhler_ctl
  install -dm 755 "$pkgdir"/{bin,etc}
  install -m 755 kuhlerd kuhler_ctl "$pkgdir"/bin
  install -m 644 kuhler_thresholds "$pkgdir"/etc
}

Last edited by loqs (2020-03-29 22:09:10)

Offline

#5 2020-03-29 22:23:08

MikeTeavee
Member
Registered: 2020-03-29
Posts: 17

Re: Antec Kuhler 920 driver

Agreed, I will try to be more precise next time with what I typed in the command line. smile

1. I don't have gcc, I thought that I could compile C code with makefile alone. I used to compile C++ in the terminal back in the day... I'm not sure what the heck I was thinking. lol

2. To install gzip: sudo pacman -S gzip

3. To install tar: sudo pacman -S tar

4. To install make:  sudo pacman -S make

For gcc, I'm guessing it's just 'pacman -S gcc' ?

If more info is needed let me know

Last edited by MikeTeavee (2020-03-29 22:23:31)

Offline

#6 2020-03-29 22:31:03

loqs
Member
Registered: 2014-03-06
Posts: 19,086

Re: Antec Kuhler 920 driver

MikeTeavee wrote:

2. To install gzip: sudo pacman -S gzip

3. To install tar: sudo pacman -S tar

Just to note pacman installs from repositories not from AUR.  Pacman will reinstall the package if the same version is already installed (there will be a message to this effect).

MikeTeavee wrote:

For gcc, I'm guessing it's just 'pacman -S gcc' ?

Yes.  You will also need libusb.
Edit:
You could also try the PKGBUILD I posted see makepkg.

Last edited by loqs (2020-03-29 22:36:21)

Offline

#7 2020-03-30 20:01:19

MikeTeavee
Member
Registered: 2020-03-29
Posts: 17

Re: Antec Kuhler 920 driver

Thank you for posting the PKGBUILD file, I tried using it, but looks like it didn't pass some validity check...?

Here's what happened in the console...

$ makepkg

==> Making package: kuhler_driver 0.61-1 (Mon Mar 30 15:58:49 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found kuhler_driver-0.61.tar.gz
==> Validating source files with sha256sums...
    kuhler_driver-0.61.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

Last edited by MikeTeavee (2020-03-30 20:01:42)

Offline

#8 2020-03-30 20:08:19

loqs
Member
Registered: 2014-03-06
Posts: 19,086

Re: Antec Kuhler 920 driver

Did the download go wrong?

file kuhler_driver-0.61.tar.gz 
kuhler_driver-0.61.tar.gz: gzip compressed data, last modified: Mon Aug 19 23:40:46 2013, from Unix, original size modulo 2^32 71680

Edit:

makepkg --verifysource 
==> Making package: kuhler_driver 0.61-1 (Mon 30 Mar 2020 20:05:20 UTC)
==> Retrieving sources...
  -> Downloading kuhler_driver-0.61.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   425  100   425    0     0    212      0  0:00:02  0:00:01  0:00:01   212
100   339  100   339    0     0    119      0  0:00:02  0:00:02 --:--:--   119
100 13300  100 13300    0     0   3776      0  0:00:03  0:00:03 --:--:-- 20274
==> Validating source files with sha256sums...
    kuhler_driver-0.61.tar.gz ... Passed

Last edited by loqs (2020-03-30 20:08:52)

Offline

#9 2020-03-30 20:26:53

MikeTeavee
Member
Registered: 2020-03-29
Posts: 17

Re: Antec Kuhler 920 driver

Yup could be that the download went wrong, (or I did something to the file when I was trying to unpack it; not knowing what I was doing.)

Re-downloaded the file, and it worked this time.

There where a couple warnings, but this is what I got...

$ makepkg
==> Making package: kuhler_driver 0.61-1 (Mon Mar 30 16:21:59 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found kuhler_driver-0.61.tar.gz
==> Validating source files with sha256sums...
    kuhler_driver-0.61.tar.gz ... Passed
==> Extracting sources...
  -> Extracting kuhler_driver-0.61.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting build()...
gcc src/kuhler_920.c -o kuhlerd -lusb-1.0 -lpthread -lrt  
src/kuhler_920.c: In function 'update_thread':
src/kuhler_920.c:82:3: warning: implicit declaration of function 'send_status_packet'; did you mean 'get_status_packet'? [-Wimplicit-function-declaration]
   82 |   send_status_packet(cp_ptr->mode,kd_ptr);
      |   ^~~~~~~~~~~~~~~~~~
      |   get_status_packet
src/kuhler_920.c: In function 'main':
src/kuhler_920.c:403:14: warning: implicit declaration of function 'umask' [-Wimplicit-function-declaration]
  403 |  old_perms = umask();
      |              ^~~~~
gcc src/kuhler_920_ctl.c -o kuhler_ctl -lusb-1.0 -lpthread -lrt  
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "kuhler_driver"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: kuhler_driver 0.61-1 (Mon Mar 30 16:22:00 2020)

Edit:

typed ./kuhler_ctl
I get:

Kuhler_ctl : Failed to get Kuhlerd SHM Segment ID -1 -1 

typed ./kuhlerd
I get:

Entering Daemon Mode and Exiting 
Kuhlerd : Could not find/open device

Last edited by MikeTeavee (2020-03-30 20:49:41)

Offline

#10 2020-03-30 20:53:49

loqs
Member
Registered: 2014-03-06
Posts: 19,086

Re: Antec Kuhler 920 driver

kuhlerd may need to be run as root.

Offline

#11 2020-03-30 20:57:25

MikeTeavee
Member
Registered: 2020-03-29
Posts: 17

Re: Antec Kuhler 920 driver

Used sudo ....Works! I'm now configuring my watercooler and the custom led as we speak.

@loqs Thank you!!!!!!! You are awesome!!!

Edit:
Do I need to mark this thread as resolved somehow?

Last edited by MikeTeavee (2020-03-30 21:36:45)

Offline

Board footer

Powered by FluxBB