Acerhdf on kernel 2.6.30.2

Discussion in 'Linux' started by c-m, Jul 24, 2009.

  1. c-m

    c-m

    Joined:
    Jan 28, 2009
    Messages:
    72
    Likes Received:
    0
    I am running Ubuntu NBR 9.04 with kernel 2.6.30.2

    I have installed acerhdf as usual but it doesn't seem to be working.

    Code:
    carl@carl-laptop:~$ dmesg|grep acerhdf
    [   10.590163] acerhdf: Acer Aspire One Fan driver, v.0.5.16
    [   10.590179] acerhdf: Fan control off, to enable do:
    [   10.590185] acerhdf: echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
    carl@carl-laptop:~$ 
    
    Code:
    carl@carl-laptop:~$ sudo echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
    bash: /sys/class/thermal/thermal_zone0/mode: Permission denied
    
    Any ideas on how to fix this? It was working ok with the default kernel but i needed the later version for better Intel graphics drivers.
     
    c-m, Jul 24, 2009
    #1
  2. c-m

    praesepe

    Joined:
    Dec 15, 2008
    Messages:
    20
    Likes Received:
    0
    It seems a common problem with ubuntu, I tried it some time ago with kernel 2.6.30 and had the same issue. The only way set acerhdf into kernel mode was to run the program being root first, "sudo" was not working, so "sudo su" and run the prorgram. But be careful since I noticed that sometimes acerhdf fails to read either fan/temp states and doesn't turn fan on again, which can be very dangerous for your CPU... mine was over 70 ÂșC when I noticed the problem.

    Greetings
     
    praesepe, Jul 25, 2009
    #2
  3. c-m

    c-m

    Joined:
    Jan 28, 2009
    Messages:
    72
    Likes Received:
    0
    That doesn't work:

    Code:
    carl@carl-laptop:~$ sudo su modprobe acerhdf
    Unknown id: modprobe
    carl@carl-laptop:~$ 
    
     
    c-m, Jul 25, 2009
    #3
  4. c-m

    DutchDK

    Joined:
    Jun 2, 2009
    Messages:
    338
    Likes Received:
    0
    Location:
    Copenhagen
    Try sudo su and press enter - then do the modprobe. The way you did it, you tried to switch to user modprobe, which doesn't exist. su = switch user.
     
    DutchDK, Jul 25, 2009
    #4
  5. c-m

    c-m

    Joined:
    Jan 28, 2009
    Messages:
    72
    Likes Received:
    0
    I still get the same about fan control being turned off:
    Code:
    carl@carl-laptop:~$ sudo su
    [sudo] password for carl: 
    root@carl-laptop:/home/carl# modprobe acerhdf
    root@carl-laptop:/home/carl# dmesg|grep acerhdf
    [   10.456684] acerhdf: Acer Aspire One Fan driver, v.0.5.16
    [   10.456697] acerhdf: Fan control off, to enable do:
    [   10.456702] acerhdf: echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
    root@carl-laptop:/home/carl# 
    
     
    c-m, Jul 26, 2009
    #5
  6. c-m

    DutchDK

    Joined:
    Jun 2, 2009
    Messages:
    338
    Likes Received:
    0
    Location:
    Copenhagen
    Then do what the errormessage says. Remember to prepend sudo to the echo command, unless you have switched to root allready.
     
    DutchDK, Jul 26, 2009
    #6
  7. c-m

    c-m

    Joined:
    Jan 28, 2009
    Messages:
    72
    Likes Received:
    0
    ok switching to root (superuser) and typing
    Code:
    echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
    cured the problem, but how do i get this working automatically?
     
    c-m, Jul 27, 2009
    #7
  8. c-m

    praesepe

    Joined:
    Dec 15, 2008
    Messages:
    20
    Likes Received:
    0
    beware with temp/fan states, as I wrote in my previous post, acerhdf can be buggy sometimes and does not read those values properly so if the fan isn't turned on when needed you can overheat your processor. I'd suggest you to run "dmesg | grep -i acerhdf" to check that there are no "unable to read fan state" errors....
     
    praesepe, Jul 27, 2009
    #8
  9. c-m

    c-m

    Joined:
    Jan 28, 2009
    Messages:
    72
    Likes Received:
    0
    how do i set what temperature the fan comes on at?
     
    c-m, Aug 4, 2009
    #9
  10. c-m

    praesepe

    Joined:
    Dec 15, 2008
    Messages:
    20
    Likes Received:
    0
    If I'm not wrong, default values for acerhdf are fanon=67 and fanoff=62. You can change those values by two ways:

    1) by creating/modifying the config file in /etc/modprobe.conf and setting the values that you want, i.e.

    Code:
    options acerhdf interval=5 fanon=60 fanoff=55
    
    2) by passing the settings when loading the module, i.e.

    Code:
    modprobe acerhdf interval=5 fanon=60 fanoff=55
    
    P.S.: All temps in Celsius
     
    praesepe, Aug 6, 2009
    #10
  11. c-m

    c-m

    Joined:
    Jan 28, 2009
    Messages:
    72
    Likes Received:
    0
    My fan seemed to come on at 60c.

    Manually starting the module and passing the temps works.


    /etc/modprobe.conf is obsolete and for 2.4. kernels.

    I still need a way to get acerhdf to work automatically. If i add it to /etc/modules the service loads but fan control is turned off and i manually have to start it.
     
    c-m, Aug 6, 2009
    #11
  12. c-m

    piie

    Joined:
    Apr 14, 2009
    Messages:
    2
    Likes Received:
    0
    create the file "/etc/modprobe.d/acerhdf.conf" with following content:

    Code:
    options acerhdf kernelmode=1 fanon=65 fanoff=60
    the option kernelmode=1 will automatically enable fan control of acerhdf after modprobing acerhdf
     
    piie, Sep 7, 2009
    #12
  13. c-m

    piie

    Joined:
    Apr 14, 2009
    Messages:
    2
    Likes Received:
    0
    This error has been fixed in recent versions of acerhdf.
     
    piie, Sep 7, 2009
    #13
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.