You are not logged in.

#1 2015-04-04 11:47:32

tomislavski
Member
Registered: 2010-02-09
Posts: 87

HP Compaq 615 | no pwm-capable sensor modules | fans at max speed

Hi,

I have installed archlinux on an old HP Compaq 615 laptop, everything is working fine, but I have problems with the fan speed. After installing lm_sensors, configuring the sensors with sensors_detect resulted in this:

Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `k10temp' (autoloaded):
  * Chip `AMD Family 11h thermal sensors' (confidence: 9)

Driver `to-be-written':
  * Bus `SMBus PIIX4 adapter at 0b00'
    Busdriver `i2c_piix4', I2C address 0x4c
    Chip `SMSC EMC1402' (confidence: 6)

Driver `adm1021':
  * Bus `SMBus PIIX4 adapter at 0b00'
    Busdriver `i2c_piix4', I2C address 0x4e
    Chip `Maxim MAX1617' (confidence: 3)

Note: there is no driver for SMSC EMC1402 yet.
Check http://www.lm-sensors.org/wiki/Devices for updates.

Running pwmconfig leads to the error:

/usr/bin/pwmconfig: There are no pwm-capable sensor modules installed

If I execute sensors, I get this:

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +51.4°C  (high = +70.0°C)
                       (crit = +100.0°C, hyst = +95.0°C)

max1617-i2c-5-4e
Adapter: SMBus PIIX4 adapter at 0b00
temp1:         +0.0°C  (low  =  +0.0°C, high =  +0.0°C)
temp2:        +51.0°C  (low  = +45.0°C, high = +60.0°C)

The fans are blowing at max speed, and the sensors are not providing information on fanspeed. I have found multiple threads on this topic, and tried the following:

  • Turning OFF/ON the option "Fan always on while on AC power" .

  • Passing the parameter "acpi_enforce_resources=lax" to the kernel via GRUB.

That didn't help. If I list the modules and search for k10

lsmod | grep k10
k10temp                12588  0 
hwmon                  12930  3 k10temp,adm1021,radeon

It seems that k10temp is loaded and used to show the sensor temperatures.  On the fancontrol page of the ArchWiki, there were tips on increasing fan_div, but the problem was for me to find the chipset name.

The reported chipset `adm-1021` is not available in `/etc/sensors3.conf`, only `adm-1025`. Also, what's up with

Driver `to-be-written':

result of `sensors-detect`? Is there any way to stop the fans from blowing at full speed for HP Compaq 615?

Offline

#2 2015-04-04 13:40:42

tomislavski
Member
Registered: 2010-02-09
Posts: 87

Re: HP Compaq 615 | no pwm-capable sensor modules | fans at max speed

Looking at /usr/bin/pwmconfig:

for device in $DEVICES
do
	# Find available fan control outputs
	MATCH=$device/'pwm[1-9]'

shows that there should be 'pwm[:digit:]' file in the device subdirectory. For the AMD CPU, k10temp device driver is used for the temperature sensor (If I understood it right), so, since DEVICES=hwmon[:digit:],

 cat /sys/class/hwmon/hwmon0/name 
k10temp

tells me that for `k10temp`

ls /sys/class/hwmon/hwmon0/device/
broken_parity_status  consistent_dma_mask_bits  dma_mask_bits    enable  local_cpulist  msi_bus    remove    subsystem         uevent
class                 d3cold_allowed            driver           hwmon   local_cpus     numa_node  rescan    subsystem_device  vendor
config                device                    driver_override  irq     modalias       power      resource  subsystem_vendor

there is no configuration file in the device sub-directory that is named `pwm[:digit:]`. Does this mean that k10temp driver cannot be used as a pwm-capable sensor? Can I use an alternative? On the Official lm_sensor devices page, it's stated that the module is supported, but:

(2009-12-06) Embedded sensors are known to be unreliable on the DR-BA, DR-B2, DR-B3, RB-C2 and HY-D0 revisions of the family 10h CPU, which will never be supported. Driver contributed by Clemens Ladisch, reviewed by Jean Delvare.

Is there any way to control the fan speed other than pwmconfig?

Offline

#3 2015-04-04 17:27:38

grandmouse
Member
From: germany, bonn
Registered: 2005-05-14
Posts: 90

Re: HP Compaq 615 | no pwm-capable sensor modules | fans at max speed

Reload the thermal module or preload in /etc/default/grub

GRUB_PRELOAD_MODULES="part_gpt part_msdos thermal"

This works for my HP 550.

Offline

#4 2015-04-04 17:36:48

tomislavski
Member
Registered: 2010-02-09
Posts: 87

Re: HP Compaq 615 | no pwm-capable sensor modules | fans at max speed

I just tried turning ACPI off, by passing `acpi=off` kernel parameter in the /etc/defaults/grub:

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="acpi=off"

The fans were dead afterwards, but as the warning on the Acpi Modules Wiki Site states

2. "Easy" Put acpi=off in the kernel line in your bootloader's configuration file, but that will kill all ACPI functionality like battery charging and power saving.

killing all ACPI functionality for HP Compaq has left me without the synaptics touchpad and the keyboard. I found on the Ubuntu Community Wiki - Boot Options that `noacpi` shuold be equivalent to `acpi=off`. That sounded weird, so I checked The Kernel Documentation:

acpi=        [HW,ACPI,X86]
            Advanced Configuration and Power Interface
            Format: { force | off | strict | noirq | rsdt }
            force -- enable ACPI if default was off
            off -- disable ACPI if default was on
            noirq -- do not use ACPI for IRQ routing
            strict -- Be less tolerant of platforms that are not
                strictly ACPI specification compliant.
            rsdt -- prefer RSDT over (default) XSDT
            copy_dsdt -- copy DSDT to memory

            See also Documentation/power/runtime_pm.txt, pci=noacpi

...

noacpi        [X86] Do not use ACPI for IRQ routing
                or for PCI scanning.

...

Seeing that the options are in fact different, I tried the `noacpi` thinking that "disabling the use of ACPI for IRQ routing or for PCI scanning" ( big_smile I have no clue what that means ) might just do the trick. So back to `/etc/default/grub`

GRUB_CMDLINE_LINUX_DEFAULT="noacpi"

I updated the grub.cfg with

grub-mkconfig  -o /boot/grub/grub.cfg

and removed:  acpid, Cpu Frequency Scaling, and I cleaned up `mkinitcpio.conf` of everything :

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES=""

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

rebuilt the kernel with `mkinitcpio -p linux` and rebooted. It seems to be working. What I don't know is why. Anyway, I wanted to post this in case someone comes across the same problem with HP Compaq <615> k10temp driver.  I still get the error

/usr/bin/pwmconfig: There are no pwm-capable sensor modules installed

so I can only guess that for this specific laptop, there is an IRQ problem, and using `noacpi` solves it. This is the 6th time I've rebooted without hearing the fans at max, when I use the machine, the fan speed is adjusted for the tempereature, even without pwmconfig/fancontrol. My guess is that BIOS is doing it, if someone knows more about this stuff, I would like to hear abuot it. I'll use the machine for the next few days, if the fans behave properly, I'll mark the thread solved.

Offline

#5 2017-10-03 01:45:23

moewb
Member
Registered: 2013-05-24
Posts: 26

Re: HP Compaq 615 | no pwm-capable sensor modules | fans at max speed

Hi!

I'm facing the (I believe) almost the same issue:

  • fans blowing at high speed most of the time (not constantly and usually very quiet when the screen is locked)

  • no fan speed information etc provided by the sensors command

  • "There are no pwm-capable sensor modules installed" message when running pwmconfig

  • passing the parameter "acpi_enforce_resources=lax" to the kernel via GRUB didn't change anything

  • GRUB_PRELOAD_MODULES="part_gpt part_msdos thermal" didn't help either

However, in my case, GRUB_CMDLINE_LINUX_DEFAULT="noacpi" didn't change anything sad

Some more information about my environment:

  • The driver detected by sensors_detect is "coretemp" and I load it through a file in the /etc/modules-load.d directory (I confirmed it is loaded when the machine starts)

  • Here is the output of my sensors-detect when selecting all the default options

    Now follows a summary of the probes I have just done.
    Just press ENTER to continue: 
    
    Driver `coretemp':
      * Chip `Intel digital thermal sensor' (confidence: 9)
    
    Do you want to overwrite /etc/conf.d/lm_sensors? (YES/no): 
    Unloading i2c-dev... OK
    Unloading cpuid... OK
  • Here is the output of the sensors command:

    coretemp-isa-0000
    Adapter: ISA adapter
    Package id 0:  +53.0°C  (high = +100.0°C, crit = +100.0°C)
    Core 0:        +53.0°C  (high = +100.0°C, crit = +100.0°C)
    Core 1:        +50.0°C  (high = +100.0°C, crit = +100.0°C)
    
    acpitz-virtual-0
    Adapter: Virtual device
    temp1:        +51.0°C  (crit = +97.0°C)

@tomislavski, did you run into any issue after the noacpi trick??

Offline

#6 2017-10-03 02:30:48

moewb
Member
Registered: 2013-05-24
Posts: 26

Re: HP Compaq 615 | no pwm-capable sensor modules | fans at max speed

Hmm, I think I'm out of luck. My laptop is one of the latest Sony VAIO laptops that got manufactured (before they totally stopped making computers). I found this website, which is apparently a great reference when it comes to power manager in Linux running on Sony VAIO machines. It says:

Vaiofand is a Linux system daemon to tame the noisy fans of Sony Vaio laptops. These fans are controlled directly by the BIOS and thus do not allow for standard software management. Moreover, Vaio fans are usually spinning at considerably higher rates than necessary and so generate excessive noise. Vaiofand monitors the system temperature and maintains the fan speed at user-defined rate by constantly overruling the settings made by the BIOS. Vaiofand can also make further adjustments to the fan speed when the temperature reaches user-defined thresholds.

and further down

Sony has recently made some major changes to their laptops' BIOS and ACPI. It appears that none of the currently manufactured model lines do support any kind of fan management.

Also, this part is interesting

An ultimate test how to check whether vaiofand will work for you is to run
echo 255|sudo tee /sys/devices/platform/sony-laptop/fanspeed
If that makes the fan spin considerably faster (at least for a while), you are good to go. Otherwise, vaiofand will never work with your laptop.

When I run cat /sys/devices/platform/sony-laptop/fanspeed, I get a number that changes each time, which is totally normal. But I can't write into that file; when I try to do so, I get a I/O errors.

I honestly lost all hope with the above ^^

Offline

Board footer

Powered by FluxBB