For an intermediary value, it represents the percentage of time that the high value will be on the output – so 150 would mean (150/255) * 100 = 59% of the time. 255 represents fully on (power rail value e.g. For those that don’t know, pulse width modulation (PWM) is a way to use a digital output to control an analogue device. Pwmconfig will cycle through each one and see if any of the fans has had their speed changed. PWM controls – these are the devices that can control fan speeds using pwm.Devices – these are the bits of hardware that can have monitoring capabilities – as shown earlier, coretemp = cpu, w83667hg = motherboard and radeon = video card.In standard Linux fashion, these directories contain files that can be read or written to control the physical devices we are interested in: These all refer to sub-directories of /sys/class/hwmon. I think it’s worth taking a moment to understand the concepts that are being shown here. Then need to update the boot configuration: sudo update-grub The way I fixed this is to edit /etc/default/grub to add acpi_enforce_resources=lax to the GRUB_CMDLINE_LINUX_DEFAULT giving: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_enforce_resources=lax" This can be fixed by relaxing an acpi check in the kernel (hmm), see amongst others for more details. When I first ran it, I got the error: /usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed What we are trying to do is to automatically have the fan speeds controlled by a sensor temperature. This is where we get the first error that may not be obvious how to fix. Or xsensors to get this in a dynamically updating window: Then you can run sensors on the command line: To use the kernel modules, I ran: sudo service kmod start If you run the command twice, it will put the drivers into /etc/modules twice. Here coretemp shows the cpu temperatures and w83667hg shows motherboard information such as fan speeds, temperatures and voltages. You can see the additions in /etc/modules. I answered yes to every question including the one where it does the update to the kernel configuration file. This identifies the kernel modules that can monitor the speed of the fans and the temperature of the cpu, motherboard etc. Install the software sudo apt-get install lm-sensors xsensors fancontrolĪs a check to monitor fan speeds, cpu and motherboard temperatures, we first need to be able to run xsensors. The values shown below are after correcting this and replacing all the fans with high-end quiet versions (except the power supply). When I first bought this computer, the manufacturer hadn’t attached the CPU cooler correctly and I ran for a while with the cores permanently throttling themselves at 100 degrees. I don’t think this is particularly dangerous, but some might. Maybe this has arisen because my desktop PC hardware is 4 years old and newer motherboards are better integrated with modern Linux, but this is what I needed to do to solve this problem.Ĭaveat – if you’re not comfortable running your PC without fans for a time, don’t bother going any further. There are various articles around on the internet, but this has been a constant problem for me so I thought I’d collect together all the info I need to provide a reference for the future. On my desktop computer, I am able to control the fans under Windows using software provided by the motherboard manufacturer, but it is not obvious how to do this under Ubuntu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |