Public bug reported:

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/fan4_input+hwmon2/fan3_input+hwmon2/fan2_input: Aucun fichier ou 
dossier de ce type
/usr/sbin/pwmconfig: ligne 717 : [: -gt : opérateur unaire attendu"

If you ask pwmconfig to show the generated config, you can read 
"Settings for hwmon2/pwm2:
  Depends on hwmon1/temp1_input
  Controls hwmon2/fan4_input+hwmon2/fan3_input+hwmon2/fan2_input"
...which is exactly the FCFANS value in /etc/fancontrol:
"FCFANS=hwmon2/pwm2=hwmon2/fan4_input+hwmon2/fan3_input+hwmon2/fan2_input 
hwmon2/pwm1=hwmon2/fan1_input"

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/hwmon/", everything is fine: I
can find all hwmon/fan and pwm items formerly detected by pwmconfig.

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
ProcVersionSignature: Ubuntu 5.3.0-62.56-generic 5.3.18
Uname: Linux 5.3.0-62-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
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)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: lm-sensors
UpgradeStatus: Upgraded to eoan on 2019-12-03 (224 days ago)

** Affects: lm-sensors (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug eoan

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1887586

Title:
  pwmconfig generate wrong config when multiple fans are on same pwm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lm-sensors/+bug/1887586/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to