You are not logged in.
On my 8y old Acer Travelmate i need acerhk to get wifi working.
Since the latest kernels it won't compile anymore without errors.
Anyone get some idea how to get arround with this?
Output:
make -C /lib/modules/3.8.4-1-ARCH/build SUBDIRS=/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35 modules
make[1]: Entering directory `/usr/src/linux-3.8.4-1-ARCH'
CC [M] /tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.o
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2933:23: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »model_init«
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2958:22: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »acerhk_remove«
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2960:22: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »acerhk_probe«
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:3042:22: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »acerhk_remove«
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:3068:12: Fehler: »acerhk_probe« ist hier nicht deklariert (nicht in einer Funktion)
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:3069:2: Fehler: Implizite Deklaration der Funktion »__devexit_p« [-Werror=implicit-function-declaration]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:3069:25: Fehler: »acerhk_remove« ist hier nicht deklariert (nicht in einer Funktion)
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:136:14: Warnung: »reg2« definiert, aber nicht verwendet [-Wunused-variable]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:386:13: Warnung: »enable_dritek_keyboard« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:392:13: Warnung: »disable_dritek_keyboard« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:764:12: Warnung: »get_cmos_index« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:876:29: Warnung: »find_hk_area« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:1317:20: Warnung: »setup_model_features« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:1980:20: Warnung: »probe_model« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2205:13: Warnung: »init_input« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2303:13: Warnung: »release_input« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2671:12: Warnung: »acerhk_proc_init« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2783:13: Warnung: »acerhk_proc_cleanup« definiert, aber nicht verwendet [-Wunused-function]
/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.c:2925:26: Warnung: »acerhk_misc_dev« definiert, aber nicht verwendet [-Wunused-variable]
cc1: Einige Warnungen werden als Fehler behandelt
make[2]: *** [/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35/acerhk.o] Fehler 1
make[1]: *** [_module_/tmp/yaourt-tmp-andreas/aur-acerhk/src/acerhk-0.5.35] Fehler 2
make[1]: Leaving directory `/usr/src/linux-3.8.4-1-ARCH'
make: *** [acerhk.ko] Fehler 2
==> FEHLER: Ein Fehler geschah in build().
Last edited by lemondreas (2013-03-27 14:42:04)
Offline
Can you use acer-wmi instead? AFAIK it was supposed to replace acerhk on most systems.
Offline
acer-wmi
Unsupported:
This list is very incomplete. The models listed here are the ones known to absolutely not work with this driver - if you have one of these: it is not, cannot and will not be supportedTravelmate:
* 290 series [c,d,n]
I downgraded the kernel to 3.4, now it compiles without errors and works fine.
Still don't know what's the problem.
Last edited by lemondreas (2013-03-26 15:09:46)
Offline
Indeed, I had a similar laptop that worked only with this module, some say it merged with the mainline kernel but I didn't see that. I suggest using an LTS kernel mate.
Proud Arch Linux user since 2007.
Offline
I tried to install linux-lts and after the reboot it couldn't find the partitions anymore. I wasn't in the mood to figure out why, so i switched to the 3.4 Kernel.
Offline
OK, I've looked at this code. You need to remove all references to __devinit, __devexit and __devexit_p from acerhk.c as these have been removed in 3.8. For example:
sed -i 's/__devinit//g; s/__devexit_p//g; s/__devexit//' acerhk.c
Offline
You are my hero of the day, thanks alot.
everything works fine now.
Offline
Hi, i'm interested to install this, are moths that i try.. please, can you show me your modified PKGBUILD??
i don't understand where insert this new row..
Thanks a lot!!!
Offline
sure.
Make sure to have linux-headers installed as the same version lie your kernel.
The source for acerhk-0.5.35.tgz is unavailable so i downloaded it from here http://filesocial.com/3ex2d4 and put it in the same folder as PKBUILD
My PKBUILD looks like this:
# $Id: PKGBUILD 23215 2010-08-08 21:04:28Z cbrannon $
# Maintainer: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: Marco Fister <marco@rda26.net>
pkgname=acerhk
pkgver=0.5.35
pkgrel=26
pkgdesc="Acer hotkey driver"
url="http://www.cakey.de/acerhk/"
arch=('i686') # Unavailable for x86_64
license=('GPL')
depends=('linux>=3.0.0')
makedepends=('linux-headers>=3.0.0')
source=(acerhk-0.5.35.tgz acerhk.rc
2.6.30.patch kernelversion.patch 5100.patch 2.6.36.patch)
install=acerhk.install
_kernver=`uname -r`
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i 's/CFLAGS/EXTRA_CFLAGS/' Makefile
sed -i 's/__devinit//g; s/__devexit_p//g; s/__devexit//' acerhk.c
patch -Np1 -i "${srcdir}/5100.patch" || return 1
patch -Np1 -i "${srcdir}/2.6.30.patch" || return 1
patch -Np0 -i "${srcdir}/2.6.36.patch" || return 1
patch -N -p1 < "$srcdir/kernelversion.patch" || return 1
sed -i 's@linux/config.h@linux/input.h@' "${srcdir}/${pkgname}-${pkgver}/acerhk.c"
# Set KERNELSRC. The makefile tries to autodetect it with uname,
# but that is unreliable.
make CONFIG_FUNCTION_TRACER= KERNELSRC="/lib/modules/${_kernver}/build" acerhk.ko || return 1
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/acerhk.ko" \
"${pkgdir}/lib/modules/${_kernver}/kernel/drivers/block/acerhk.ko" || return 1
install -Dm755 "${srcdir}/acerhk.rc" "${pkgdir}/etc/rc.d/acerhk" || return 1
}
# vim:set ts=2 sw=2 et:
md5sums=('05255919f312cb76af473a760c284433'
'935584b3e4bfbb3af8460558e5b98bb5'
'2a0bc99e5b12e25096441df4d53d7df7'
'fd2ef062ecbc9d670e1b42aa5866d32d'
'8966a93e66200a535179cf9eb689fe4d'
'd257a4e9223ebfde48b9608805df9c99')
By the way:
Is there any possible way to get acerhk work with systemd?
Like activating the wifi-LED along the boot process and manually control ist with "sysctl start/stop acerhk"?
Last edited by lemondreas (2013-03-28 18:15:23)
Offline
Thanks, i did the same for test and is gone, then i place in /etc/modprobe.d/modprobe.conf this string
modprobe acerhk force_series=290 usedritek=1 verbose=1 echo 1 > /proc/driver/acerhk/wirelessled
look your acer here http://rfswitch.sourceforge.net/?page=laptop_matrix and put your correct string there.
All is ok at boot and i can connect to my router.
Can we make something for the package in AUR??
You saved me, my friends!!!
Thanks a lot
Last edited by trazalca (2013-03-29 08:28:05)
Offline
here i am, again
I couldn't compile acerhk anymore.
So i looked for different ideas how to get the wifi working.
And you won't believe it:
The solution is TAPE
...or maybe nail varnish.
i used superglue.
It works perfekt.
Don't have to fear the next kernelupdate
Offline