From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: switch off cpu fan on lenovo g50-30 Date: Thu, 04 Jul 2019 10:14:11 +0000 Message-ID: <7858a17d3aed76bd833f23b77583e387@disroot.org> References: <20190704072017.GD1085@macbook41> <7f567eec2c285aaf735ac4bc30f0fb39@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43095) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiykr-0000zy-1f for help-guix@gnu.org; Thu, 04 Jul 2019 06:14:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiykp-0008JN-JT for help-guix@gnu.org; Thu, 04 Jul 2019 06:14:16 -0400 Received: from [178.21.23.139] (port=34826 helo=knopi.disroot.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hiyko-0008IJ-VS for help-guix@gnu.org; Thu, 04 Jul 2019 06:14:15 -0400 In-Reply-To: <20190704072017.GD1085@macbook41> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Efraim Flashner Cc: help-guix Hello, Efraim Flashner! I want your support cause my question is not figu= ring out from the web.=0AFor typing my config for 'thinkfan' need to writ= e thinkfan.conf, and there, I think, it is necessary to define temperatur= e control kernel module. =0AAfter running `sensors-detect` (from 'lmsenso= rs' package) this config file appeared:=0A=0A# cat /etc/sysconfig/lm_sens= ors=0A# Generated by sensors-detect on Thu Jul 4 12:53:51 2019=0A# This = file is sourced by /etc/init.d/lm_sensors and defines the modules to=0A# = be loaded/unloaded.=0A#=0A# The format of this file is a shell script tha= t simply defines variables:=0A# HWMON_MODULES for hardware monitoring dri= ver modules, and optionally=0A# BUS_MODULES for any required bus driver m= odule (for example for I2C or SPI).=0A=0AHWMON_MODULES=3D"coretemp"=0A=0A= =0AAs I understood 'coretemp' is that module I can use in thinkfan.conf. = I see `sensors` is using coretemp-isa-0000=0A=0A=0A# sensors=0Asoc_dts0-= virtual-0=0AAdapter: Virtual device=0Atemp1: +42.0=C2=B0C =0A=0Aa= cpitz-acpi-0=0AAdapter: ACPI interface=0Atemp1: +60.0=C2=B0C (cri= t =3D +90.0=C2=B0C)=0A=0Asoc_dts1-virtual-0=0AAdapter: Virtual device=0At= emp1: +42.0=C2=B0C =0A=0Acoretemp-isa-0000=0AAdapter: ISA adapter= =0ACore 0: +46.0=C2=B0C (high =3D +105.0=C2=B0C, crit =3D +105.0= =C2=B0C)=0ACore 1: +46.0=C2=B0C (high =3D +105.0=C2=B0C, crit =3D = +105.0=C2=B0C)=0ACore 2: +52.0=C2=B0C (high =3D +105.0=C2=B0C, cri= t =3D +105.0=C2=B0C)=0ACore 3: +52.0=C2=B0C (high =3D +105.0=C2=B0= C, crit =3D +105.0=C2=B0C)=0A=0A=0AOk. But I need to use 'coretemp' file = from /proc as in example here [1]. But I do not know where is it:=0A=0A# = find /proc -name 'corete*'=0A# =0A=0A=0APlease, can you help me?=0A=0A=0A= [1] https://www.mankier.com/5/thinkfan.conf=0A=0A=0A=0AJuly 4, 2019 7:29 = AM, "Efraim Flashner" wrote:=0A=0A> On Thu, Jul 0= 4, 2019 at 06:42:40AM +0000, znavko@disroot.org wrote:=0A> =0A>> Hello! S= ometimes I need my laptop Lenovo G50-30 is silent, need to switch off CPU= fan.=0A>> Basically this laptop had no cpu fan but only passive cooling = system. I had inserted cpu fan by my=0A>> hands and there were fan power = joint on the motherboard. This is nice. I hope Guix Linux-Libre has=0A>> = necessary fan control driver for my laptop.=0A>> =0A>> There is package '= thinkfan' in Guix repository. Would you advice me how to config it and is= it=0A>> possible to switch off fan?=0A>> =0A>> # thinkfan=0A>> =0A>> ERR= OR: /etc/thinkfan.conf: No such file or directory=0A> =0A> efraim@macbook= 41 ~/workspace/guix$=0A> /./gnu/store/c8pmmbpx3q881baivkrcmi01lrj4si4j-th= inkfan-1.0.2/sbin/thinkfan --help=0A> ERROR: Invalid command line: Unknow= n option: --=0A> Usage: thinkfan [-hnqzD [-b BIAS] [-c CONFIG] [-s SECOND= S] [-p [SECONDS]]]=0A> -h This help message=0A> -s Maximum cycle time in = seconds (Integer. Default: 5)=0A> -b Floating point number (-10 to 30) to= control rising temperature=0A> exaggeration (see README). Default: 5.0= =0A> -c Load different configuration file (default: /etc/thinkfan.conf)= =0A> -q Be more quiet. Can be specified up to three times so that only er= rors=0A> are logged.=0A> -v Enable verbose logging (e.g. log temperatures= continuously).=0A> -p Use the pulsing-fan workaround (for worn out fans)= . Takes an optional=0A> floating-point argument (0 ~ 10s) as depulsing du= ration. Default 0.5s.=0A> -d Don't read S.M.A.R.T. temperature from sleep= ing disks=0A> -D DANGEROUS mode: Disable all sanity checks. May result in= undefined=0A> behaviour!=0A> =0A> Unless you want to write a system serv= ice for it, I'd figure out where=0A> there's a thinkfan.conf file (we don= 't seem to have it installed with=0A> the package) and run 'sudo -E think= fan -c /path/to/thinkfan.conf'=0A> =0A> --=0A> Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D =D7=A4=D7=9C=D7=A9=D7=A0=D7= =A8=0A> GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351=0A>= Confidentiality cannot be guaranteed on emails sent or received unencryp= ted