Choose style:

Author Topic: acerhdf only half working- Acer ZG5 AOA150 with P5 os (SOLVED)  (Read 1917 times)

0 Members and 1 Guest are viewing this topic.

Offline noakeswalker

  • nOOb
  • *
  • Posts: 7
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Hi folks, hope this is the right place to post this query.

I have an Acer Aspire One ZG5 AOA150 with Peppermint 5 installed - this works well, except for the acerhdf module which is built-in now with Peppermint 5.
I have followed  acerhdf set-up instructions exactly as per PCNetSpec's Peppermint 5 installation tutorial. 

What is happening is that the fan turn-on point (60C) always seems to work, but the turn-off point (55C)
never does, except possibly sometimes during bootup. So fan is essentially 'always on'.

If I do  'sudo modprobe -r acerhdf' and 'sudo modprobe acerhdf' again, the fan will sometimes then turn off
 after a delay if temperature is low enough.

Acerhdf module seems always to be enabled in /sys/class/thermal/thermal_zone0/mode.

Linux kernel is 3.13.0-55 i686 32 bit.   Bios is v0.3310.   Acerhdf version reports as v.0.5.26  (from dmesg)

Is this a problem with acerhdf module I have, should I have a go at installing a later version of this, and if I did this,
(I would need help here) would it survive  kernel updates later ?

Any help would be appreciated- I've reached the end of my limited knowledge !

Dave



« Last Edit: July 10, 2015, 03:55:52 am by noakeswalker »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26103
  • Karma: 2843
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: acerhdf only half working- AOA150 with P5 os
« Reply #1 on: July 03, 2015, 05:31:08 am »
Can you post the output from:
Code: [Select]
cat /etc/modprobe.d/acerhdf.conf
and
Code: [Select]
lsmod | grep acerhdf
« Last Edit: July 03, 2015, 05:37:43 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline noakeswalker

  • nOOb
  • *
  • Posts: 7
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: acerhdf only half working- AOA150 with P5 os
« Reply #2 on: July 03, 2015, 05:59:09 am »
Hi PCNetSpec,

Thanks for a reply, here are the outputs-

cat /etc/modprobe.d/acerhdf.conf
options acerhdf fanoff=55000 fanon=60000 interval=5 kernelmode=1

lsmod | grep acerhdf
acerhdf                14178  0


I have tried changing the fanoff value downwards to see what happens, but still not turning fan off.

Thanks,
Dave

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26103
  • Karma: 2843
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: acerhdf only half working- AOA150 with P5 os
« Reply #3 on: July 03, 2015, 06:03:11 am »
OK,I just checked and you're right .. it does the same on my Peppermint 6 box (and probably did in Peppermint 5 too)

So here's the fix....

Let's compile the patched version I used to instruct people to use in my tutorial for Peppermint 4 .. which I've just tested as still working in Peppermint 6 (so should be OK for Peppermint 5)

Open a terminal and run the following commands in sequence
(BE AWARE - this first command is for Peppermint 5 ONLY, and would be different for Peppermint 6 .. DO NOT run this first command if you're running Peppermint 6):
Code: [Select]
sudo apt-get install linux-headers-generic build-essential
then
Code: [Select]
mkdir -v ~/acerhdf
then
Code: [Select]
cd ~/acerhdf
then
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/acerhdf_kmod-0.5.30b-linux-3.8.tar.gz
then
Code: [Select]
tar -xvf acerhdf_kmod-0.5.30b-linux-3.8.tar.gz
then
Code: [Select]
cd ~/acerhdf/acerhdf_kmod
than
Code: [Select]
make
then
Code: [Select]
sudo make install
then
Code: [Select]
echo "options acerhdf interval=5 fanon=60000 fanoff=55000 kernelmode=1" | sudo tee /etc/modprobe.d/acerhdf.conf
then:
Code: [Select]
sudo modprobe -r acerhdf
then
Code: [Select]
sudo modprobe acerhdf
then keep monitoring the temps with
Code: [Select]
cat /sys/class/thermal/thermal_zone0/temp

the temperature will be returned  in this format -
60000 = 60C
55000 = 55C
46000 = 46C
etc.

It would be a good idea to keep an eye on the temperature for a short while, just to check the fan does come on when the temperature reaches 60C, and goes of shortly after reaching 55C .. be aware, running the command to check the temperature takes a single reading, so you will have to run it again to get another reading.



Can you confirm if this works for you too, and if so I'll modify the tutorial .. TIA :)
« Last Edit: July 03, 2015, 06:09:18 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline noakeswalker

  • nOOb
  • *
  • Posts: 7
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: acerhdf only half working- AOA150 with P5 os
« Reply #4 on: July 03, 2015, 06:43:00 am »
Yup, that looks like a good patch !
I will keep an eye on what the temp. does, but I've just thrashed it with some video, etc, and it does seem to
switch the fan at 60C and 55C reliably so far. Hurrah ! Will mark as solved after a bit more testing.

I will read up on exactly how linux kernel modules work now- this newer version of acerhdf we've 'installed'-
has that overwritten the version that is built-in to the kernel package, or is it more complicated- and will it
survive, say, a kernel update ?

Sorry I didn't spot this patch in your P4 tutorial- however, I'd still have had to check here that it was good for
P5 also without breaking anything.

Many thanks for your help,
Dave

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26103
  • Karma: 2843
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: acerhdf only half working- AOA150 with P5 os
« Reply #5 on: July 03, 2015, 10:23:36 am »
No it hasn't overwritten the version built into the kernel .. it gets added to the kernel /updates folder so (after a depmod -a)  takes load priority.

The downside to this is that as you assumed it'll need to be reinstalled every time you get a kernel update.

but I can easily do a dkms version if you'd like that will automagically recompile every time you get a kernel update, and insert itself into the initrd image ?
« Last Edit: July 03, 2015, 10:33:18 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline noakeswalker

  • nOOb
  • *
  • Posts: 7
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: acerhdf only half working- AOA150 with P5 os
« Reply #6 on: July 03, 2015, 11:20:06 am »
I like the sound of an auto-compiling version of acerhdf-  I've just had to read up about dkms, this is all new ground for me!
To auto-insert into the initrd image or not I have no idea- which ever you recommend.

I'll need your instructions on how to do all of this though :-\

Temperature/fan control on my AOA150 still fine after some hours of use btw.

Dave


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26103
  • Karma: 2843
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: acerhdf only half working- AOA150 with P5 os
« Reply #7 on: July 03, 2015, 07:52:09 pm »
OK, I've done the dkms.conf and tested the install via dkms, but before I post instructions I'd like to wait and see what happens at the next kernel update.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline noakeswalker

  • nOOb
  • *
  • Posts: 7
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: acerhdf only half working- AOA150 with P5 os
« Reply #8 on: July 04, 2015, 04:11:57 am »
Ok- that's to test the dkms auto-compile works properly I guess ?
There's no substitute for proper testing !

If I have fan trouble after an update, I'll know what has happened !

Shall I mark this subject as 'solved', and should I change the title to something that describes the problem
better, or leave it as it is - ?
Many thanks for your help with this, I've gleaned quite a few other tips from this forum along the way too.

Dave
« Last Edit: July 04, 2015, 04:24:41 am by noakeswalker »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26103
  • Karma: 2843
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: acerhdf only half working- AOA150 with P5 os
« Reply #9 on: July 04, 2015, 08:54:16 am »
Quote
There's no substitute for proper testing !

Yeah that .. I don't like giving out instructions until I've properly tested them.

Leave the topic open .. as soon as we get a kernel update I'll post back here.

You can mark the topic to give you a notification if you wish
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26103
  • Karma: 2843
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: acerhdf only half working- AOA150 with P5 os
« Reply #10 on: July 09, 2015, 08:05:53 pm »
Instructions for downloading/installing my DKMS version of acerhdf that will automagically recompile and reassert itself  after each kernel update.

To INSTALL

Open a terminal and run these commands in sequence:
Code: [Select]
sudo apt-get install build-essential dkms
then:
Code: [Select]
mkdir ~/acerhdf-dkms
then:
Code: [Select]
cd ~/acerhdf-dkms
then:
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/acerhdf-dkms_0.5.30b.tar.gz
then:
Code: [Select]
tar xvf acerhdf-dkms_0.5.30b.tar.gz
then:
Code: [Select]
cd ~/acerhdf-dkms/acerhdf-dkms_0.5.30b
then:
Code: [Select]
sudo dkms add ./acerhdf
then:
Code: [Select]
sudo dkms install acerhdf/0.5.30b
then:
Code: [Select]
echo "options acerhdf interval=5 fanon=60000 fanoff=55000 kernelmode=1" | sudo tee /etc/modprobe.d/acerhdf.conf
then:
Code: [Select]
sudo modprobe -r acerhdf
then:
Code: [Select]
sudo modprobe acerhdf



To UNINSTALL

Open a terminal and run these commands in sequence:
Code: [Select]
sudo dkms uninstall acerhdf/0.5.30b
then:
Code: [Select]
sudo dkms remove acerhdf/0.5.30b --all
then:
Code: [Select]
sudo rm -v /etc/modprobe.d/acerhdf.conf
then:
Code: [Select]
sudo modprobe -r acerhdf
then:
Code: [Select]
sudo modprobe acerhdf



NOTES

Running
Code: [Select]
dmesg | grep acerhdf
then looking for the last line with a version, should show that you're running version 0.5.30b (new dkms version) or version 0.5.26 (original kernel version)

FYI -
You may also see a kernel warning:
module verification failed: signature and/or  required key missing - tainting kernel
this is nothing to worry about .. it just means the module has been modified but not signed by the original developer.



Repeatedly running:
Code: [Select]
cat /sys/class/thermal/thermal_zone0/temp
should show thee fan coming on at 60000 (60C) and going off shortly after dropping to 55000 (55C)
« Last Edit: July 09, 2015, 08:12:45 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline noakeswalker

  • nOOb
  • *
  • Posts: 7
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Re: acerhdf only half working- Acer ZG5 AOA150 with P5 os (SOLVED)
« Reply #11 on: July 10, 2015, 04:04:59 am »
I've installed your DKMS version of acerhdf, then the linux '57' kernel update that was pending,
and all looks good- acerhdf version is still 30b.

I've set the acerhdf.conf temperatures lower now at 50C and 55C- as I found the whole machine
was rather warm after a while, when used on my lap  :(

Thanks very much for your help with this Mark, an excellent solution/instructions  :)

Dave

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26103
  • Karma: 2843
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: acerhdf only half working- Acer ZG5 AOA150 with P5 os (SOLVED)
« Reply #12 on: July 10, 2015, 12:12:11 pm »
You're most welcome :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec