Skip to contentSkip to conversation

No pwm with abituguru driver?

lm-sensors Magnus Ekhall 2 participants 4 messages Apr 27, 2007 – Apr 29, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I have an Abit Fatal1ty AN8 motherboard that in Windows uses uGuru to read sensors and control fans.

In Ubuntu Linux I have tried lm_sensors with both the w83627hf driver and the abituguru one.

The abituguru seems to be the most successful, I get temperatures and fan speeds. However I cannot control the fan speed! (And this is what I really want to do.)

In /sys/devices/platform/abituguru.224/ I have some files starting with pwm1, for example pwm1_enable. But I cannot write to this "file" even as root. I get an access denied.

And when I run pwmconfig I get:

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed

What can I try to get pwm working? I think that there are at least 2 pwms on this MB.

sensors-detect report this:

Now follows a summary of the probes I have just done. Just press ENTER to continue:

Driver `eeprom' (should be inserted):
Detects correctly:
* Bus `SMBus nForce2 adapter at 1c00'
Busdriver `i2c-nforce2', I2C address 0x50
Chip `eeprom' (confidence: 6)
* Bus `SMBus nForce2 adapter at 1c00'
Busdriver `i2c-nforce2', I2C address 0x51
Chip `eeprom' (confidence: 6)

EEPROMs are *NOT* sensors! They are data storage chips commonly found on memory modules (SPD), in monitors (EDID), or in some laptops, for example.

Driver `k8temp' (should be inserted):
Detects correctly:
* ISA bus, undetermined address (Busdriver i2c-isa') Chip AMD K8 thermal sensors' (confidence: 9)

Driver `w83627hf' (should be inserted):
Detects correctly:
* ISA bus address 0x0290 (Busdriver i2c-isa') Chip Winbond W83627HF Super IO Sensors' (confidence: 9)

But using the winbond driver gives me a lot of crap sensor values...

Anyone know what I'm doing wrong? How can I control the fans?

Thanks,

Magnus E

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 8 lines · Magnus Ekhall

Hi,

I have an Abit Fatal1ty AN8 motherboard that in Windows uses uGuru to read sensors and control fans.

In Ubuntu Linux I have tried lm_sensors with both the w83627hf driver and the abituguru one.

Quoted 8 lines

The abituguru seems to be the most successful, I get temperatures and fan speeds. However I cannot control the fan speed! (And this is what I really want to do.)

In /sys/devices/platform/abituguru.224/ I have some files starting with pwm1, for example pwm1_enable. But I cannot write to this "file" even as root. I get an access denied.

I doubt that you get an access denied, you probably are getting an invalid parameter. The uguru can only do auto fan speed control. Thus the only 2 valid values for /sys/devices/platform/abituguru.224/pwm1_enable are "0" and "2", with "0" being the fan at max speed and "2" being the fan's speed being controlled automaticly depending on the temp. You can fine tune the settings of the autocontrol either through your BIOS (easiest) or through the /sys/devices/platform/abituguru.224/pwm1_auto_xxx attributes, for the meaning of these attributes see Documentation/hwmon/sysfs in the kernel source dir.

Most likely your pwm is already in auto mode and things are working just fine, as this uguru feature will work fine without any driver at all.

to test try this:
[root@shalem ~]# sensors
<snip>
CPU FAN Speed: 2280 RPM (min = 1200 RPM)
<snip>
[root@shalem ~]# echo "0" > /sys/devices/platform/abituguru.224/pwm1_enable [root@shalem ~]# sensors
<snip>
CPU FAN Speed: 3180 RPM (min = 1200 RPM)
<snip>

Notice how the fan speed increased significantly because of the pwm being switched from auto to disabled (= max speed)

To reenable auto mode do:
[root@shalem ~]# echo "2" > /sys/devices/platform/abituguru.224/pwm1_enable

Regards,

Hans

p.s.

Another reason you're getting permission denied might be because you're doing something like this:
sudo echo "2" > /sys/devices/platform/abituguru.224/pwm1_enable

Notice that that won't work as the redirect will be done as the normal user, you must really _be_ root for this to work.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Magnus Ekhall
Quoted 4 lines · Hans de Goede

Most likely your pwm is already in auto mode and things are working just fine, as this uguru feature will work fine without any driver at all.

You are right, changing values in BIOS seems to work!

Quoted 8 lines

Another reason you're getting permission denied might be because you're doing something like this:
sudo echo "2" > /sys/devices/platform/abituguru.224/pwm1_enable

Notice that that won't work as the redirect will be done as the normal user, you must really _be_ root for this to work.

That was it. I was sudoing! Becoming root made it possible to write to pwm1_enable, and it seems to be controlling the CPU fan only.

Thanks a lot for the fast and verbatim answer!

If I can help the project with info from my AN8 Fatal1ty I would be happy to. Just let me know.

Cheers,
Magnus E

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Magnus Ekhall
Quoted 5 lines · Magnus Ekhall

Thanks a lot for the fast and verbatim answer!

If I can help the project with info from my AN8 Fatal1ty I would be happy to. Just let me know.

If you could mail me the output of dmidecode on your board, that would be much appreciated. I'm planning on adding support to sensors-detect for all the uguru boards oneday and in order for that I need the dmi info of all uguru motherboards.

Thanks & Regards,

Hans

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors