unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: znavko@disroot.org
To: Efraim Flashner <efraim@flashner.co.il>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: switch off cpu fan on lenovo g50-30
Date: Thu, 04 Jul 2019 10:14:11 +0000	[thread overview]
Message-ID: <7858a17d3aed76bd833f23b77583e387@disroot.org> (raw)
In-Reply-To: <20190704072017.GD1085@macbook41>

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" <efraim@flashner.co.il> wrote:

> On Thu, Jul 04, 2019 at 06:42:40AM +0000, znavko@disroot.org 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 <efraim@flashner.co.il> אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted

  parent reply	other threads:[~2019-07-04 10:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-04  6:42 switch off cpu fan on lenovo g50-30 znavko
2019-07-04  6:56 ` pelzflorian (Florian Pelz)
2019-07-04  7:20 ` Efraim Flashner
2019-07-04 10:14 ` znavko [this message]
2019-07-04 17:24   ` Efraim Flashner
2019-07-04 19:40   ` znavko
2019-07-04 20:13   ` znavko
2019-07-04 20:28     ` pelzflorian (Florian Pelz)
2019-07-04 20:50     ` znavko
2019-07-05  4:03       ` pelzflorian (Florian Pelz)
2019-07-04 11:13 ` znavko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7858a17d3aed76bd833f23b77583e387@disroot.org \
    --to=znavko@disroot.org \
    --cc=efraim@flashner.co.il \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).