Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

  1. #1
    Join Date
    Oct 2008
    Beans
    2

    Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    Hey guys,
    I know this subject is being discussed a million times. Since I have been googling about it for half a week and found loads of posts. But since most of the posts are relatively old (2005-2007) I have a few questions.

    First my goal. Increase the fan speed of my iMac 2006 (early) cause the Video Card is crashing.

    Now according to my "research" i have found that there are several ways to do this.
    One is using the applesmc module and configure the minimum fan speed to a higher value (same as smcFanControl app in MAC OSX).
    However the folder where the file should exist for the minimum fan speed doesn't exist. No folder named applesmc or applesmc.XXX exist in /sys/devices/platform/

    Also tried adding a line to /etc/sysctl.conf
    devices.platform.applesmc.fan0_minimum_speed=5000

    I also checked in the modules and applesmc seems to be loaded automatically.

    Also tried to load applesmc module manually and I got some error which I don't remember.

    Now the lm-sensors part.
    After downloading all the related packages and doing a sensors-detect it detects only the Intel Core Duo temperature sensor.
    So using sensors after reboot i can only see the temperatures.

    The following info is from my unreliable memory
    sensors-detect also detects something like "Trying SMC family - Yes. Unknown 0x00".

    and dmesg outputs something like:
    applesmc: wait status failed: c != 19

    Also read some stuff about compiling a mac specific kernel but those posts were kind of old. I assume that Hardy generic can handle this right?

    How can I achieve my goal? (installing MacOSX or Windows XP is not the answer I'm looking for )

    Please help me. I wasted too much time on this...

  2. #2
    Join Date
    Mar 2008
    Location
    Paris
    Beans
    72
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    Quote Originally Posted by kamimark View Post
    However the folder where the file should exist for the minimum fan speed doesn't exist. No folder named applesmc or applesmc.XXX exist in /sys/devices/platform/
    Hi,

    If the folder applesmc doesn't show up in /sys/devices/plateform, try shutting down the computer completely, and then boot again.
    If you boot into OSX and then reboot into linux, OSX messes with applesmc.
    If you never had this folder, then I don't know.
    But once you have /sys/devices/plateform/applesmc.768/fan1_min it's very easy to put in this file the fan speed you want.

    But since the kernel update 2.6.24-21, I don't find this file anymore, but my fan is @ 4000 rpm (the speed I chose).


    Quote Originally Posted by kamimark View Post
    Also tried adding a line to /etc/sysctl.conf
    devices.platform.applesmc.fan0_minimum_speed=5000
    Never heard about that.


    Quote Originally Posted by kamimark View Post
    Now the lm-sensors part.
    After downloading all the related packages and doing a sensors-detect it detects only the Intel Core Duo temperature sensor.
    So using sensors after reboot i can only see the temperatures.
    For lm-sensors, go on the website and download the latest perl script. then run it, it should detect more things.
    and read this also https://bugs.launchpad.net/ubuntu/+s...ux/+bug/235119

    Quote Originally Posted by kamimark View Post
    and dmesg outputs something like:
    applesmc: wait status failed: c != 19
    I have these messages too. Don't know how to stop them.



    I hope I helped you

    Regards,

    ~ktr
    Flood.fr, the neverending troll (french forum).

  3. #3
    Join Date
    May 2008
    Beans
    745

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    Quote Originally Posted by kamimark View Post
    No folder named applesmc or applesmc.XXX exist in /sys/devices/platform/
    This means applesmc is not loaded, or something went wrong. Check
    Code:
    lsmod | grep applesmc
    If it is not there, do
    Code:
    sudo modprobe applesmc
    No need to reboot the machine. If it fails, please report the error. Everything else you wrote depends on this error.

    Regarding the sensor quality, you should get the updated applesmc from this thread: http://ubuntuforums.org/showthread.p...light=applesmc

    Make sure you are running the 2.6.24-19 kernel when testing (2.6.24-21 no supported yet).

  4. #4
    Join Date
    Oct 2008
    Beans
    2

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    sensors-detect gives this as before

    Trying family `SMSC'... Yes
    Found unknown chip with ID 0x0b00
    If the folder applesmc doesn't show up in /sys/devices/plateform, try shutting down the computer completely, and then boot again.
    If you boot into OSX and then reboot into linux, OSX messes with applesmc.
    Did it still same.
    I dont have OSX anymore


    Went to updated the thing
    now it seemed a bit better
    since
    Code:
    sudo modprobe applesmc
    doesn't give an error
    Code:
    lsmod | grep applesmc
    shows it inside

    /sys/devices/platform/applesmc.768/ appeared.

    changed the value and it worked.

    But what's the deal with the lm-sensors?
    I can't use it at all?

  5. #5
    Join Date
    May 2008
    Beans
    745

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    Quote Originally Posted by kamimark View Post
    But what's the deal with the lm-sensors?
    I can't use it at all?
    I can't make much out of that error, which is supposed to set things up. However, did you try to run skip that and just run
    Code:
    sensors

  6. #6
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    Quote Originally Posted by kamimark View Post
    First my goal. Increase the fan speed of my iMac 2006 (early) cause the Video Card is crashing.

    Now according to my "research" i have found that there are several ways to do this.
    One is using the applesmc module and configure the minimum fan speed to a higher value (same as smcFanControl app in MAC OSX).
    However the folder where the file should exist for the minimum fan speed doesn't exist. No folder named applesmc or applesmc.XXX exist in /sys/devices/platform/

    Also tried adding a line to /etc/sysctl.conf
    devices.platform.applesmc.fan0_minimum_speed=5000

    I also checked in the modules and applesmc seems to be loaded automatically.

    Also tried to load applesmc module manually and I got some error which I don't remember.
    1. Please see the "Before you post" link in my signature to properly identify your iMac.
    2. The applesmc module is really only for Macbooks.


    Quote Originally Posted by kamimark View Post
    Now the lm-sensors part.
    After downloading all the related packages and doing a sensors-detect it detects only the Intel Core Duo temperature sensor.
    So using sensors after reboot i can only see the temperatures.
    That's all that works on my iMac too.

    You can still compile a custom kernel. That really hasn't changed. You can do that for any computer. You really don't need to though.
    Last edited by cyberdork33; October 17th, 2008 at 12:14 AM.

  7. #7
    Join Date
    May 2008
    Beans
    745

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    There is a config for iMac in applesmc too, now. However, there are presumably several models unsupported so far. I you like, you could try running the scan-smc.sh script from this post:

    http://ubuntuforums.org/showthread.p...pplesmc&page=2

    and report the output here.

  8. #8
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    Quote Originally Posted by kosumi68 View Post
    There is a config for iMac in applesmc too, now. However, there are presumably several models unsupported so far. I you like, you could try running the scan-smc.sh script from this post:

    http://ubuntuforums.org/showthread.p...pplesmc&page=2

    and report the output here.
    I will try that too. It has been awhile since I tried.

    EDIT: Actually, it seems to work fairly well now for me...

    Code:
    cyberdork33@Grover-Ubuntu:/sys/devices/platform/applesmc.768$ ls
    driver       fan2_max     hwmon                     temp1_input
    fan1_input   fan2_min     key_at_index              temp2_input
    fan1_label   fan2_output  key_at_index_data         temp3_input
    fan1_manual  fan2_safe    key_at_index_data_length  temp4_input
    fan1_max     fan3_input   key_at_index_name         temp5_input
    fan1_min     fan3_label   key_at_index_type         temp6_input
    fan1_output  fan3_manual  key_count                 temp7_input
    fan1_safe    fan3_max     modalias                  temp8_input
    fan2_input   fan3_min     name                      temp9_input
    fan2_label   fan3_output  power                     uevent
    fan2_manual  fan3_safe    subsystem
    Get a few errors from sensors though

    Code:
    cyberdork33@Grover-Ubuntu:/sys/devices/platform/applesmc.768$ sensors
    applesmc-isa-0300
    Adapter: ISA adapter
    ODD :        801 RPM  (min =  800 RPM)
    HDD :       1402 RPM  (min = 1400 RPM)
    CPU :        863 RPM  (min =  800 RPM)
    temp1:       +43.0°C                                    
    temp2:       +33.0°C                                    
    ERROR: Can't get value of subfeature temp3_input: I/O error
    temp3:        +0.0°C                                    
    temp4:       +52.0°C                                    
    ERROR: Can't get value of subfeature temp5_input: I/O error
    temp5:        +0.0°C                                    
    temp6:       +45.5°C                                    
    temp7:       +51.0°C                                    
    temp8:       +41.5°C                                    
    ERROR: Can't get value of subfeature temp9_input: I/O error
    temp9:        +0.0°C
    Attached Files Attached Files
    Last edited by cyberdork33; October 17th, 2008 at 03:57 AM.

  9. #9
    Join Date
    May 2008
    Beans
    745

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    I managed to miss the attachment, but reading through it I see your model is not covered. Could you please provide the
    Code:
    sudo dmidecode | grep 'Product Name:'
    and I'll add it for testing. One should not have to live with missing sensors anymore

  10. #10
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: Ubuntu Hardy 8.04 LTS Desktop + AppleSMC + lm-sensors

    Quote Originally Posted by kosumi68 View Post
    I managed to miss the attachment, but reading through it I see your model is not covered. Could you please provide the
    Code:
    sudo dmidecode | grep 'Product Name:'
    and I'll add it for testing. One should not have to live with missing sensors anymore
    The version # is in my signature

    If you need more info than that, I will have to get it later since I am currently out of town and don't have access.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •