help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: switch off cpu fan on lenovo g50-30


From: znavko
Subject: Re: switch off cpu fan on lenovo g50-30
Date: Thu, 04 Jul 2019 10:14:11 +0000

Hello, Efraim Flashner! I want your support cause my question is not figuring 
out from the web.
For typing my config for 'thinkfan' need to write thinkfan.conf, and there, I 
think, it is necessary to define temperature control kernel module. 
After running `sensors-detect` (from 'lmsensors' package) this config file 
appeared:

# cat /etc/sysconfig/lm_sensors
# Generated by sensors-detect on Thu Jul  4 12:53:51 2019
# This file is sourced by /etc/init.d/lm_sensors and defines the modules to
# be loaded/unloaded.
#
# The format of this file is a shell script that simply defines variables:
# HWMON_MODULES for hardware monitoring driver modules, and optionally
# BUS_MODULES for any required bus driver module (for example for I2C or SPI).

HWMON_MODULES="coretemp"


As I understood 'coretemp' is that module I can use in thinkfan.conf.  I see 
`sensors` is using coretemp-isa-0000


# sensors
soc_dts0-virtual-0
Adapter: Virtual device
temp1:        +42.0°C  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +60.0°C  (crit = +90.0°C)

soc_dts1-virtual-0
Adapter: Virtual device
temp1:        +42.0°C  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +46.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +46.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:       +52.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:       +52.0°C  (high = +105.0°C, crit = +105.0°C)


Ok. But I need to use 'coretemp' file from /proc as in example here [1]. But I 
do not know where is it:

# find /proc -name 'corete*'
# 


Please, can you help me?


[1] https://www.mankier.com/5/thinkfan.conf



July 4, 2019 7:29 AM, "Efraim Flashner" <address@hidden> wrote:

> On Thu, Jul 04, 2019 at 06:42:40AM +0000, address@hidden wrote:
> 
>> Hello! Sometimes I need my laptop Lenovo G50-30 is silent, need to switch 
>> off CPU fan.
>> Basically this laptop had no cpu fan but only passive cooling system. I had 
>> inserted cpu fan by my
>> hands and there were fan power joint on the motherboard. This is nice. I 
>> hope Guix Linux-Libre has
>> necessary fan control driver for my laptop.
>> 
>> There is package 'thinkfan' in Guix repository. Would you advice me how to 
>> config it and is it
>> possible to switch off fan?
>> 
>> # thinkfan
>> 
>> ERROR: /etc/thinkfan.conf: No such file or directory
> 
> efraim@macbook41 ~/workspace/guix$
> /./gnu/store/c8pmmbpx3q881baivkrcmi01lrj4si4j-thinkfan-1.0.2/sbin/thinkfan 
> --help
> ERROR: Invalid command line: Unknown option: --
> Usage: thinkfan [-hnqzD [-b BIAS] [-c CONFIG] [-s SECONDS] [-p [SECONDS]]]
> -h This help message
> -s Maximum cycle time in seconds (Integer. Default: 5)
> -b Floating point number (-10 to 30) to control rising temperature
> exaggeration (see README). Default: 5.0
> -c Load different configuration file (default: /etc/thinkfan.conf)
> -q Be more quiet. Can be specified up to three times so that only errors
> are logged.
> -v Enable verbose logging (e.g. log temperatures continuously).
> -p Use the pulsing-fan workaround (for worn out fans). Takes an optional
> floating-point argument (0 ~ 10s) as depulsing duration. Default 0.5s.
> -d Don't read S.M.A.R.T. temperature from sleeping disks
> -D DANGEROUS mode: Disable all sanity checks. May result in undefined
> behaviour!
> 
> Unless you want to write a system service for it, I'd figure out where
> there's a thinkfan.conf file (we don't seem to have it installed with
> the package) and run 'sudo -E thinkfan -c /path/to/thinkfan.conf'
> 
> --
> Efraim Flashner <address@hidden> אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted



reply via email to

[Prev in Thread] Current Thread [Next in Thread]