Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fan is running at the same speed constantly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Chrjs
n00b
n00b


Joined: 27 Aug 2019
Posts: 16

PostPosted: Fri Aug 30, 2019 4:22 pm    Post subject: Fan is running at the same speed constantly Reply with quote

Hi,

I have a problem that I have no idea how to fix. Basically, when I boot up my computer one of the fans will start at a certain speed during POST and into the rEFInd boot loader sequence.
My system is dual-booting Windows 10 and Gentoo, and if I launch Windows; when I hit the Windows login screen the fan will slow down to almost silent.
If I boot into Gentoo, the fan will maintain the same speed all the time, no matter what I am doing.
If the fan happens to be slow and silent when I boot Gentoo, then that's what the fan will be until I reboot the machine; if it is fast and loud when I boot Gentoo, it will be like that until reboot.

I have a feeling that I am missing a driver for the kernel or something. When I was installing Gentoo I used the genkernel approach, but I recall now that the fan problem also existed during the liveUSB install.
But I have no idea what driver it would be. Or even if it is a driver problem.

Anyone have any suggestions?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Fri Aug 30, 2019 4:56 pm    Post subject: Reply with quote

Chrjs,

Welcome to Gentoo

It could be lots of things. Fan control starts with being able to sense temperatures.
There are two methods ACPI and the sensors drivers in the kernel.

Code:
cat /sys/class/thermal/thermal_zone0/temp
58913
tells that my CPU is at 58.913 C. Do you have /sys/class/thermal/thermal_zone/... ?
If not you have a piece missing from your kernel.

Can you install and configure sys-apps/lm_sensors?
This needs kernel support too.

The kernel support is hardware dependent. Please post the output of
Code:
lspci -nnk
so that we can see your hardware.
Please post your kernel .config file on a pastebin site too. Its too big for a post.

Once temperature sensing works, we can poke at fan control.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Chrjs
n00b
n00b


Joined: 27 Aug 2019
Posts: 16

PostPosted: Fri Aug 30, 2019 6:10 pm    Post subject: Reply with quote

Thanks.

Quote:
Do you have /sys/class/thermal/thermal_zone/... ?


Yes I do.

- I installed sys-apps/lm_sensors and rebuilt the kernel using the configurations from the wiki, added them to OpenRC, but sensors-detect told me that I had to use 2 drivers: coretemp and nct6775.
coretemp loads just fine on boot, but nct6775 doesn't. I don't know which one to pick in the kernel menuconfig. I picked the one called "Nuvoton NCT6775F and compatibles" and set it as a module, then ran `make modules_install` and rebooted. But that didn't work neither.

lspci --nnk:
Code:

00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00] (rev 06)
   Subsystem: ASUSTeK Computer Inc. 4th Gen Core Processor DRAM Controller [1043:8534]
   Kernel driver in use: hsw_uncore
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06)
   Kernel driver in use: pcieport
00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31] (rev 05)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family USB xHCI [1043:8534]
   Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family MEI Controller [1043:8534]
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-V [8086:153b] (rev 05)
   Subsystem: ASUSTeK Computer Inc. Ethernet Connection I217-V [1043:859f]
   Kernel driver in use: e1000e
   Kernel modules: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 05)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family USB EHCI [1043:8534]
   Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset High Definition Audio Controller [1043:859d]
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 [8086:8c10] (rev d5)
   Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 [8086:8c16] (rev d5)
   Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26] (rev 05)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family USB EHCI [1043:8534]
   Kernel driver in use: ehci-pci
00:1f.0 ISA bridge [0601]: Intel Corporation Z87 Express LPC Controller [8086:8c44] (rev 05)
   Subsystem: ASUSTeK Computer Inc. Z87 Express LPC Controller [1043:8534]
   Kernel driver in use: lpc_ich
   Kernel modules: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [8086:8c02] (rev 05)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [1043:8534]
   Kernel driver in use: ahci
   Kernel modules: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22] (rev 05)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family SMBus Controller [1043:8534]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
   Subsystem: ASUSTeK Computer Inc. GP106 [GeForce GTX 1060 3GB] [1043:85b9]
   Kernel driver in use: nouveau
   Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)
   Subsystem: ASUSTeK Computer Inc. GP106 High Definition Audio Controller [1043:85b9]
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
03:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 01)
   Subsystem: ASUSTeK Computer Inc. ASM1062 Serial ATA Controller [1043:858d]
   Kernel driver in use: ahci
   Kernel modules: ahci


kernel .config:
http://dpaste.com/0VKM532
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Fri Aug 30, 2019 8:43 pm    Post subject: Reply with quote

Chrjs,

You should be able to find some temperatures in /sys/class/thermal/thermal_zone/...
They will all be in milli Deg C.

Chrjs wrote:
I picked the one called "Nuvoton NCT6775F and compatibles" and set it as a module, then ran `make modules_install` and rebooted. But that didn't work neither.


Be warned that does not always work.
After picking a module as <m> you need to do
Code:
make modules
before
Code:
make modules_install
to actually rebuild the modules before they can be reinstalled.

You don't have the driver for your
Code:
00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family MEI Controller [1043:8534]

It probably doesn't matter as its a remote control system intended for use by corporations.

Support for your
Code:
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22] (rev 05)
   Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family SMBus Controller [1043:8534]

Is missing. I think that needs
Code:
# CONFIG_I2C_I801 is not set
Sensors can use the I2C bus.

Everything else looks good.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Chrjs
n00b
n00b


Joined: 27 Aug 2019
Posts: 16

PostPosted: Sat Aug 31, 2019 5:38 am    Post subject: Reply with quote

Quote:
You should be able to find some temperatures in /sys/class/thermal/thermal_zone/...
They will all be in milli Deg C.

Yeah, I have 3 (0-2) zones and I can see the temperatures.

I did what you said and got the nct6775 module to work now. I also found the I2C_I802 entry and built it into the kernel and recompiled it. It shows it in use for the SMBus device thing exactly as you said.

But I guess the problem isn't fixed yet? So now we need to do fan control as you said?
Why is it that if I run something like Arch Linux (or at least last time I ran it), it just works out of the box. Is it because they included all this in their system build by default?

Also, here's the sensors output, in case you need it:
http://dpaste.com/1GSQKK4
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum