D201GLY2 Ubuntu 7.10 fan control
I would like to get fan control working, but when running pwmconfig, I get the following message:
Found the following devices:
hwmon0/device is w83627dhg
Found the following PWM controls:
hwmon0/device/pwm1
hwmon0/device/pwm1_enable stuck to 2
Failed to set pwmhwmon0/device/pwm1 to full speed
Something's wrong, check your fans!
There is no fan control options that can be set in BIOS, however using Speefan under Windows I was able to control the Case fan speed although CPU fan speed is fixed.
I installed lm-sensors v2.10.4 using Synaptic. Sensors shows fan speeds for both case and cpu. I tried reloading the driver with modprobe using reset/init but seems these parameters are not supported for this driver.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 13 lines · Mini Stac
I would like to get fan control working, but when running pwmconfig, I get the following message:
Found the following devices:
hwmon0/device is w83627dhgFound the following PWM controls:
hwmon0/device/pwm1
hwmon0/device/pwm1_enable stuck to 2
Failed to set pwmhwmon0/device/pwm1 to full speed
Something's wrong, check your fans!
Quoted 6 lines
There is no fan control options that can be set in BIOS, however using Speefan under Windows I was able to control the Case fan speed although CPU fan speed is fixed.
I installed lm-sensors v2.10.4 using Synaptic. Sensors shows fan speeds for both case and cpu. I tried reloading the driver with modprobe using reset/init but seems these parameters are not supported for this driver.
Which kernel version are you using?
Note that pwmconfig was improved a lot in lm-sensors 2.10.6, so you could try this and see if it helps. This is a standalone script, so you don't have to install anything to test it, just grab the lm-sensors 2.10.6 (or 3.0.1) source package [1], unpack it and run pwmconfig in place.
[1] http://dl.lm-sensors.org/lm-sensors/releases/
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Kernel version is 2.6.22-14
The 3.0.1 script gets further but comes up with the same result (full output below):
hwmon0/device/pwm1_enable stuck to 2
I know that the fan speed can be controlled manually under Windows. Thanks if there is anything else to try.
Found the following devices:
hwmon0/device is w83627dhg
Found the following PWM controls:
hwmon0/device/pwm1
hwmon0/device/pwm1 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y 0
1
hwmon0/device/pwm1_enable stuck to 2
Manual control mode not supported, skipping hwmon0/device/pwm1.
hwmon0/device/pwm2
hwmon0/device/pwm2 stuck to 0
Manual control mode not supported, skipping hwmon0/device/pwm2.
hwmon0/device/pwm3
hwmon0/device/pwm3 stuck to 0
Manual control mode not supported, skipping hwmon0/device/pwm3.
hwmon0/device/pwm4
hwmon0/device/pwm4 stuck to 0
Manual control mode not supported, skipping hwmon0/device/pwm4. There are no usable PWM outputs.
Quoted 32 lines · Jean Delvare
Quoted 1 line · Mini Stac
I would like to get fan control working, but when running pwmconfig, I
get
Quoted 12 lines
the following message:
Found the following devices:
hwmon0/device is w83627dhgFound the following PWM controls:
hwmon0/device/pwm1
hwmon0/device/pwm1_enable stuck to 2
Failed to set pwmhwmon0/device/pwm1 to full speed
Something's wrong, check your fans!Quoted 2 lines
There is no fan control options that can be set in BIOS, however using Speefan under Windows I was able to control the Case fan speed although
CPU
Quoted 2 lines
fan speed is fixed.
I installed lm-sensors v2.10.4 using Synaptic. Sensors shows fan speedsfor
Quoted 2 lines
both case and cpu. I tried reloading the driver with modprobe using reset/init but seems these parameters are not supported for this driver.
Which kernel version are you using?
Note that pwmconfig was improved a lot in lm-sensors 2.10.6, so you could try this and see if it helps. This is a standalone script, so you don't have to install anything to test it, just grab the lm-sensors 2.10.6 (or 3.0.1) source package [1], unpack it and run pwmconfig in place.
Quoted 5 lines
[1] http://dl.lm-sensors.org/lm-sensors/releases/
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 25 lines · Mini Stac
Kernel version is 2.6.22-14
The 3.0.1 script gets further but comes up with the same result (full output below):
hwmon0/device/pwm1_enable stuck to 2I know that the fan speed can be controlled manually under Windows. Thanks if there is anything else to try.
Found the following devices:
hwmon0/device is w83627dhgFound the following PWM controls:
hwmon0/device/pwm1
hwmon0/device/pwm1 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y 0
1
hwmon0/device/pwm1_enable stuck to 2
Manual control mode not supported, skipping hwmon0/device/pwm1.
hwmon0/device/pwm2
hwmon0/device/pwm2 stuck to 0
Quoted 8 lines
Manual control mode not supported, skipping hwmon0/device/pwm2.
hwmon0/device/pwm3
hwmon0/device/pwm3 stuck to 0
Manual control mode not supported, skipping hwmon0/device/pwm3.
hwmon0/device/pwm4
hwmon0/device/pwm4 stuck to 0
Manual control mode not supported, skipping hwmon0/device/pwm4. There are no usable PWM outputs.
Just to make sure: you're running pwmconfig as root, aren't you? Only root can change the chip's settings.
Can you try setting the PWM output to manual mode manually?
echo 1 > /sys/class/hwmon/hwmon0/device/pwm1_enable cat /sys/class/hwmon/hwmon0/device/pwm1_enable echo 1 > /sys/class/hwmon/hwmon0/device/pwm2_enable cat /sys/class/hwmon/hwmon0/device/pwm2_enable
If it works then the problem is in the pwmconfig script (or bash). If it doesn't then the problem would be in the w83627ehf driver.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
pwmconfig was being run with sudo.
echo to pwm1_enable and pwm2_enable results in:
bash: /sys/class/hwmon/hwmon0/device/pwm1_enable: Permission deniedpwm1_enable is set at 2, pwm2_enable 1
I guess this means its a driver issue? Sensors detect identifies:
Driver `w83627ehf' (should be inserted):
Detects correctly:
* ISA bus, address 0x290
Chip `Winbond W83627DHG Super IO Sensors' (confidence: 9)
Quoted 46 lines · Jean Delvare
Quoted 3 lines · Mini Stac
Kernel version is 2.6.22-14
The 3.0.1 script gets further but comes up with the same result (full
output
Quoted 22 lines
below):
hwmon0/device/pwm1_enable stuck to 2I know that the fan speed can be controlled manually under Windows. Thanks if there is anything else to try.
Found the following devices:
hwmon0/device is w83627dhgFound the following PWM controls:
hwmon0/device/pwm1
hwmon0/device/pwm1 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y 0
1
hwmon0/device/pwm1_enable stuck to 2
Manual control mode not supported, skipping hwmon0/device/pwm1.
hwmon0/device/pwm2
hwmon0/device/pwm2 stuck to 0Quoted 8 lines
Manual control mode not supported, skipping hwmon0/device/pwm2.
hwmon0/device/pwm3
hwmon0/device/pwm3 stuck to 0
Manual control mode not supported, skipping hwmon0/device/pwm3.
hwmon0/device/pwm4
hwmon0/device/pwm4 stuck to 0
Manual control mode not supported, skipping hwmon0/device/pwm4. There are no usable PWM outputs.Just to make sure: you're running pwmconfig as root, aren't you? Only root can change the chip's settings.
Can you try setting the PWM output to manual mode manually?
echo 1 >
/sys/class/hwmon/hwmon0/device/pwm1_enablecat/sys/class/hwmon/hwmon0/device/pwm1_enableecho 1 >/sys/class/hwmon/hwmon0/device/pwm2_enablecat/sys/class/hwmon/hwmon0/device/pwm2_enable
Quoted 6 lines
If it works then the problem is in the pwmconfig script (or bash). If it doesn't then the problem would be in the w83627ehf driver.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines · Mini Stac
pwmconfig was being run with sudo.
echo topwm1_enableandpwm2_enableresults in:
bash:/sys/class/hwmon/hwmon0/device/pwm1_enable: Permission deniedpwm1_enableis set at 2,pwm2_enable1
Beware of sudo, it doesn't play well with shell output redirection. Please try again (both pwmconfig and the echo tests) without sudo.
Quoted 6 lines
I guess this means its a driver issue? Sensors detect identifies:
Driver `w83627ehf' (should be inserted):
Detects correctly:
* ISA bus, address0x290
Chip `Winbond W83627DHG Super IO Sensors' (confidence: 9)
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Ok good progress. Using su I am able to echo in values to pwm1_enable and successfully control fanspeed with echo to pwm1!! However I am still unable to get pwmconfig to work, it seems it still cannot set any values (if I set pwm1_enable to 1 before running, pwmconfig will stop the fan, but still reports pwm1 stuck to 0, manual control mode not supported...).
As I am completely new to linux, I am not sure now if I am running pwmconfig correctly. I downloaded the 3.1.01 package and extracted pwmconfig; renamed it pwmconf3101 and ran it under su by typing in /path/pwmconf3101
I tried creating a fancontrol config file manually and it seems to be working ok so far (running with sudo), I guess I can try to tune the settings manually if I can't get pwmconfig to work.
Thanks so much for your assistance with this!
Quoted 12 lines · Jean Delvare
Quoted 3 lines · Mini Stac
pwmconfig was being run with sudo.
echo topwm1_enableandpwm2_enableresults in:
bash:/sys/class/hwmon/hwmon0/device/pwm1_enable: Permissiondenied
Quoted 1 line
pwm1_enableis set at 2,pwm2_enable1Beware of sudo, it doesn't play well with shell output redirection. Please try again (both pwmconfig and the echo tests) without sudo.
Quoted 1 line
Quoted 9 lines
Quoted 5 lines
I guess this means its a driver issue? Sensors detect identifies:
Driver `w83627ehf' (should be inserted):
Detects correctly:
* ISA bus, address0x290
Chip `Winbond W83627DHG Super IO Sensors' (confidence: 9)--
Jean Delvare
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 5 lines · Mini Stac
Ok good progress. Using su I am able to echo in values to
pwm1_enableand successfully control fanspeed with echo to pwm1!! However I am still unable to get pwmconfig to work, it seems it still cannot set any values (if I setpwm1_enableto 1 before running, pwmconfig will stop the fan, but still reports pwm1 stuck to 0, manual control mode not supported...).
OK... If you can change the values manually then it means that the w83627ehf driver is OK (as I expected) and the problem is with the pwmconfig script, or with bash. Same problem as ticket #2305:
http://www.lm-sensors.org/ticket/2305
Which version of bash are you running? It would be great if you could try a different version, for example a self-built bash 2.05b, which is known to behave properly. No need to install it, just build it locally, and use it to run pwmconfig:
/path/bash /path/pwmconfig
Quoted 3 lines
As I am completely new to linux, I am not sure now if I am running pwmconfig correctly. I downloaded the 3.1.01 package and extracted pwmconfig; renamed it pwmconf3101 and ran it under su by typing in /path/pwmconf3101
That's fine.
Quoted 3 lines
I tried creating a fancontrol config file manually and it seems to be working ok so far (running with sudo), I guess I can try to tune the settings manually if I can't get pwmconfig to work.
Indeed tuning the configuration file manually is easy. IMHO it's even easier than with pwmconfig once you know the syntax.
Quoted 1 line
Thanks so much for your assistance with this!
You're welcome.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu)
I am afraid I am not familiar with build, but if you can give me some steps or links to a tutorial I would be happy to try it out.
Quoted 36 lines · Jean Delvare
Quoted 1 line · Mini Stac
Ok good progress. Using su I am able to echo in values to
pwm1_enableand
Quoted 1 line
successfully control fanspeed with echo to pwm1!! However I am still
unable
Quoted 1 line
to get pwmconfig to work, it seems it still cannot set any values (if I
set
Quoted 2 lines
pwm1_enableto 1 before running, pwmconfig will stop the fan, but still reports pwm1 stuck to 0, manual control mode not supported...).OK... If you can change the values manually then it means that the w83627ehf driver is OK (as I expected) and the problem is with the pwmconfig script, or with bash. Same problem as ticket #2305:
http://www.lm-sensors.org/ticket/2305Which version of bash are you running? It would be great if you could try a different version, for example a self-built bash 2.05b, which is known to behave properly. No need to install it, just build it locally, and use it to run pwmconfig:
/path/bash /path/pwmconfigQuoted 1 line
As I am completely new to linux, I am not sure now if I am running
pwmconfig
Quoted 1 line
correctly. I downloaded the 3.1.01 package and extracted pwmconfig;
renamed
Quoted 1 line
it pwmconf3101 and ran it under su by typing in /path/pwmconf3101
That's fine.
Quoted 3 lines
I tried creating a fancontrol config file manually and it seems to be working ok so far (running with sudo), I guess I can try to tune the settings manually if I can't get pwmconfig to work.
Indeed tuning the configuration file manually is easy. IMHO it's even easier than with pwmconfig once you know the syntax.
Quoted 7 lines
Quoted 1 line
Thanks so much for your assistance with this!
You're welcome.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines · Mini Stac
GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu)
I am afraid I am not familiar with build, but if you can give me some steps or links to a tutorial I would be happy to try it out.
If you're not used to building tools from source code, most packages you need (make, gcc, etc.) are probably not installed on your system so you won't be able to build bash yourself.
On my end, I tried building bash 3.2 including all the patches ubuntu is using, but I was still not able to reproduce the bug you reported:
pwmconfig worked OK for me. So I just don't know what is going on.
You may want to try reporting the bug to the Ubuntu bash package maintainer (if there's anything like that) and see if he/she has an idea.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi,
Quoted 10 lines · Jean Delvare
Quoted 4 lines · Mini Stac
GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu)
I am afraid I am not familiar with build, but if you can give me some steps or links to a tutorial I would be happy to try it out.
If you're not used to building tools from source code, most packages you need (make, gcc, etc.) are probably not installed on your system so you won't be able to build bash yourself.
Quoted 7 lines
On my end, I tried building bash 3.2 including all the patches ubuntu is using, but I was still not able to reproduce the bug you reported:
pwmconfig worked OK for me. So I just don't know what is going on.You may want to try reporting the bug to the Ubuntu bash package maintainer (if there's anything like that) and see if he/she has an idea.
You may want to check the shebang line on the script. If it is /bin/sh, it is actually being run by dash, not bash, as that is /bin/sh by default on Ubuntu. If that is the case, the shebang line should be changed to /bin/bash
You could also try running the script directly with bash like `bash /usr/sbin/pwmconfig'.
-Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.pytagsfs.org
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 21 lines · Forest Bond
Hi,
Quoted 10 lines · Jean Delvare
Quoted 4 lines · Mini Stac
GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu)
I am afraid I am not familiar with build, but if you can give me some steps or links to a tutorial I would be happy to try it out.
If you're not used to building tools from source code, most packages you need (make, gcc, etc.) are probably not installed on your system so you won't be able to build bash yourself.
Quoted 7 lines
On my end, I tried building bash 3.2 including all the patches ubuntu is using, but I was still not able to reproduce the bug you reported:
pwmconfig worked OK for me. So I just don't know what is going on.You may want to try reporting the bug to the Ubuntu bash package maintainer (if there's anything like that) and see if he/she has an idea.
Quoted 6 lines
You may want to check the shebang line on the script. If it is
/bin/sh, it is actually being run by dash, not bash, as that is/bin/shby default on Ubuntu. If that is the case, the shebang line should be changed to/bin/bashYou could also try running the script directly with bash like `bash
/usr/sbin/pwmconfig'.
$ head -n 1 /usr/sbin/pwmconfig #!/bin/bash $
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi,
Quoted 26 lines · Jean Delvare
Quoted 25 lines · Forest Bond
Hi,
Quoted 10 lines · Jean Delvare
Quoted 4 lines · Mini Stac
GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu)
I am afraid I am not familiar with build, but if you can give me some steps or links to a tutorial I would be happy to try it out.
If you're not used to building tools from source code, most packages you need (make, gcc, etc.) are probably not installed on your system so you won't be able to build bash yourself.
Quoted 7 lines
On my end, I tried building bash 3.2 including all the patches ubuntu is using, but I was still not able to reproduce the bug you reported:
pwmconfig worked OK for me. So I just don't know what is going on.You may want to try reporting the bug to the Ubuntu bash package maintainer (if there's anything like that) and see if he/she has an idea.
You may want to check the shebang line on the script. If it is
/bin/sh, it is actually being run by dash, not bash, as that is/bin/shby default on Ubuntu. If that is the case, the shebang line should be changed to/bin/bash
Quoted 6 lines
Quoted 2 lines
You could also try running the script directly with bash like `bash
/usr/sbin/pwmconfig'.$ head -n 1 /usr/sbin/pwmconfig #!/bin/bash $
Well, right, I had already checked it on my system, but I wasn't sure if there could be some sort of variation, for some very strange reason...
-Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.pytagsfs.org
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors