LINUX.ORG.RU

Как остановить вентиятор, пользуясь Linux-Libre?

 , ,


0

1

Здравствуйте! Система: ноутбук Lenovo G50-30, Guix System, ядро linux-libre 5.1.15-gnu x86_64.

Установлены два пакета из репозитория guix: lmsensors и thinkfan. Нужно программно отключать вентилятор процессора.

sensors-detect нашел модуль coretemp, им пользуется sensors:

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

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

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

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

Управлять вентилятором не получается ни fancontrol, ни pwmconfig, ни thinkfan:


# fancontrol
Loading configuration from /etc/fancontrol ...
Error: Can't read configuration file


# pwmconfig 
# pwmconfig revision $Revision$ ($Date$)
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

/root/.guix-profile/sbin/pwmconfig: There are no pwm-capable sensor modules installed


# thinkfan

ERROR: /etc/thinkfan.conf: No such file or directory

модули:

# lsmod
Module                  Size  Used by
hwmon_vid              16384  0
fuse                  114688  2
ccm                    20480  9
snd_hda_codec_hdmi     57344  1
snd_hda_codec_conexant    24576  1
snd_hda_codec_generic    77824  1 snd_hda_codec_conexant
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_conexant
joydev                 24576  0
intel_rapl             24576  0
intel_soc_dts_thermal    20480  0
intel_soc_dts_iosf     20480  1 intel_soc_dts_thermal
intel_powerclamp       20480  0
coretemp               20480  0
kvm                   647168  0
irqbypass              16384  1 kvm
punit_atom_debug       16384  0
cmdlinepart            16384  0
rtsx_usb_ms            24576  0
rtsx_usb_sdmmc         32768  0
memstick               20480  1 rtsx_usb_ms
arc4                   16384  2
intel_spi_platform     16384  0
intel_spi              24576  1 intel_spi_platform
spi_nor                45056  1 intel_spi
crct10dif_pclmul       16384  1
mtd                    65536  3 cmdlinepart,intel_spi
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
uvcvideo               98304  0
crc32_pclmul           16384  0
ath9k                 155648  0
ath9k_common           24576  1 ath9k
ath9k_hw              479232  2 ath9k_common,ath9k
videobuf2_vmalloc      20480  1 uvcvideo
videobuf2_memops       20480  1 videobuf2_vmalloc
ath                    32768  3 ath9k_common,ath9k,ath9k_hw
rtsx_usb               24576  2 rtsx_usb_sdmmc,rtsx_usb_ms
videobuf2_v4l2         24576  1 uvcvideo
mac80211              843776  1 ath9k
videobuf2_common       45056  2 videobuf2_v4l2,uvcvideo
videodev              204800  3 videobuf2_v4l2,uvcvideo,videobuf2_common
media                  53248  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
usbmouse               16384  0
usbkbd                 16384  0
hci_uart              122880  0
ath3k                  24576  0
btqca                  20480  1 hci_uart
btusb                  49152  0
btrtl                  20480  2 hci_uart,btusb
btbcm                  16384  2 hci_uart,btusb
btintel                24576  2 hci_uart,btusb
ghash_clmulni_intel    16384  0
bluetooth             577536  7 btrtl,btqca,btintel,hci_uart,btbcm,ath3k,btusb
cryptd                 24576  1 ghash_clmulni_intel
cfg80211              704512  4 ath9k_common,ath9k,ath,mac80211
i915                 1540096  6
r8169                  81920  0
cec                    45056  1 i915
psmouse               151552  0
input_leds             16384  0
realtek                20480  1
snd_hda_intel          45056  3
drm_kms_helper        172032  1 i915
serio_raw              20480  0
lpc_ich                24576  0
i2c_i801               32768  0
snd_hda_codec         135168  4 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel
drm                   421888  7 drm_kms_helper,i915
snd_hda_core           90112  5 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
i2c_algo_bit           16384  1 i915
fb_sys_fops            16384  1 drm_kms_helper
snd_hwdep              20480  1 snd_hda_codec
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
snd_pcm               110592  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
video                  45056  1 i915
snd_timer              40960  1 snd_pcm
snd                    86016  14 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm
i2c_hid                28672  0
pwm_lpss_platform      16384  0
pwm_lpss               16384  1 pwm_lpss_platform
ecdh_generic           28672  1 bluetooth
soundcore              16384  1 snd
mac_hid                16384  0
rfkill_gpio            16384  0
virtio_rng             16384  0
virtio_console         32768  0
virtio_net             57344  0
virtio_blk             20480  0
virtio_balloon         24576  0
virtio_pci             24576  0
virtio                 16384  6 virtio_rng,virtio_console,virtio_balloon,virtio_pci,virtio_blk,virtio_net
virtio_ring            32768  6 virtio_rng,virtio_console,virtio_balloon,virtio_pci,virtio_blk,virtio_net
isci                  143360  0
libsas                 81920  1 isci
scsi_transport_sas     40960  2 isci,libsas
pata_atiixp            16384  0
pata_acpi              16384  0
nls_iso8859_1          16384  0
wp512                  36864  0
serpent_generic        32768  0
xts                    16384  0
dm_crypt               40960  0
hid_apple              16384  0
hid_generic            16384  0
usbhid                 53248  0
hid                   131072  4 i2c_hid,usbhid,hid_apple,hid_generic
uas                    24576  0
usb_storage            69632  1 uas
ahci                   40960  2
libahci                32768  1 ahci


# modinfo coretemp
filename:       /run/booted-system/kernel/lib/modules/5.1.15-gnu/kernel/drivers/hwmon/coretemp.ko
license:        GPL
description:    Intel Core temperature monitor
author:         Rudolf Marek <r.marek@assembler.cz>
srcversion:     88BD604D089FAF532B6A0EE
alias:          cpu:type:x86,ven0000fam*mod*:feature:*01C0*
depends:        
retpoline:      Y
intree:         Y
name:           coretemp
vermagic:       5.1.15-gnu SMP mod_unload modversions 
parm:           tjmax:TjMax value in degrees Celsius (int)

Помогите, пожалуйста, настроить что-нибудь и остановить шумный вентилятор.

PS: по умолчанию данный ноут шёл с пассивным охлаждением, но вентилятор был вставлен руками.

★★

Управлять вентилятором не получается ни fancontrol, ни pwmconfig, ни thinkfan

Не ври! Ибо это:

Error: Can't read configuration file

ERROR: /etc/thinkfan.conf: No such file or directory

Означает несколько иное нежели "не получается".

init_6 ★★★★★
()
Ответ на: комментарий от init_6

я прочитал мануал https://www.mankier.com/5/thinkfan.conf и нашел следующие модули hwmon, выбрал любой из них для опций 'hwmon' и 'pwm_fan', но thinkfan не может найти этот файл:

# find /sys -name 'temp*_input'
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp4_input
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp5_input
/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input
/sys/devices/virtual/thermal/thermal_zone2/hwmon3/temp1_input
/sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input
/sys/devices/virtual/thermal/thermal_zone1/hwmon2/temp1_input


# cat /etc/thinkfan.conf 
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input
pwm_fan /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input

# thinkfan

ERROR: HwmonFanDriver: Initializing fan control in /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input: No such file or directory

также как и другой файл не видит:

# cat /etc/thinkfan.conf 
hwmon /sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input
pwm_fan /sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input

# thinkfan

ERROR: HwmonFanDriver: Initializing fan control in /sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input: No such file or directory

не получается.

znavko ★★
() автор топика
Ответ на: комментарий от znavko

также не получается найти файл управления вентиляторами:

You can search for a PWM control file e.g. with `find /sys -type f -name «pwm?»'
https://www.mankier.com/5/thinkfan.conf

# find /sys -type f -name "pwm?"
#
# find /sys -type f -name "pwm*"
# 
znavko ★★
() автор топика

libre-система на ноутбуке. что может пойти не так?

Avial ★★★★★
()

Залезь внутрь и отключи вентилятор. Но лучше снизь ему обороты, уменьшив напряжение, воткнув последовательно плюсу цепочку диодов (каждый гасит 0.7В) или стабилитрон (на какое рассчитан, на столько и уменьшит). Даже небольшой выдув существенно облегчает температурный режим.

anonymous
()
Ответ на: комментарий от anonymous

Стабилитрон при неправильном подключении работает как простой диод, то есть гасит 0.7В вместо его маркировки.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.