pwmconfig generate wrong config when multiple fans are on same pwm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lm-sensors |
New
|
Unknown
|
|||
lm-sensors (Ubuntu) |
Triaged
|
Low
|
Unassigned | ||
Focal |
Triaged
|
Low
|
Unassigned |
Bug Description
WARNING, the package reported by ubuntu-bug is "lm-sensors", but pwmconfig and fancontrol are installed by "fancontrol" package.
When running pwmconfig, after the detection step you can configure min/max temp. If you answer 't' when prompted
"Enter the minimum PWM value (0-255)
at which the fan STOPS spinning (press t to test) (100):"
...you can get the following error :
"cat: hwmon2/
/usr/sbin/
If you ask pwmconfig to show the generated config, you can read
"Settings for hwmon2/pwm2:
Depends on hwmon1/temp1_input
Controls hwmon2/
...which is exactly the FCFANS value in /etc/fancontrol:
"FCFANS=
The error occurring during PWM value test is due to this wrong path value with '+' sign.
This kind of value is generated when more than one fan is found on the same hwmonX/pwmY. On my computer, hwmon2 is coretemp-related, and hwmon2/pwm2 is controlling 4 fans.
The generated path with '+' doesn't exist, hence pwmconfig test scripts and fancontrol service should split the path using '+' as separator char to recover right paths to fanX_input files.
I checked what I have under "/sys/class/
So the bug is just that fancontrol and pwmconfig scripts are not able to read the FCFANS value they generated in case of more than one fan by "pwm" !
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: fancontrol 1:3.5.0-3ubuntu1
ProcVersionSign
Uname: Linux 5.3.0-62-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu8.9
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Jul 15 01:16:57 2020
Dependencies: lsb-base 11.0.1ubuntu1
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-08-02 (2902 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: lm-sensors
UpgradeStatus: Upgraded to eoan on 2019-12-03 (224 days ago)
Changed in lmsensors: | |
status: | Unknown → New |
Thank you for taking the time to report this bug and helping to make Ubuntu
better.
The next step is to identify whether this bug is present in the upstream
project, introduced in Debian packaging, or introduced in Ubuntu's
modifications. If Ubuntu has not introduced the problem, we should get a bug
filed in the appropriate upstream bug tracker. Are you able to help with
this, please?
You can describe the issue at:
https:/ /github. com/lm- sensors/ lm-sensors/ issues
as it seems that the issue could be present in upstream source code.
If you do end up filing a bug upstream, please link to it here. Thanks!