Skip to contentSkip to conversation

dme177737: pwm not working

lm-sensors Juergen Bausa 3 participants 6 messages Feb 23, 2011 – Feb 27, 2011

lore
Share & tools
lore
#0 lore raw

After upgrading from debian lenny (kernel 2.6.26) to squeeze (kernel 2.6.32) fancontrol stopped working. I ran sensors-detect and I have the dme1737 module loaded, but pwmconfig says:

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

I also noticed that while in lenny the dme1737 reported the found pwms in the log, there is no message from dme1737 under squeeze.

However, some controls are there:

jba@lisa:/sys/class/hwmon/hwmon1$ ll
insgesamt 0
lrwxrwxrwx 1 root root    0 23. Feb 21:01 device -> ../../../ATK0110:00
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan1_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan1_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan1_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan1_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan2_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan2_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan2_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan2_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 in0_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 in0_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 in0_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 in0_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 in1_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 in1_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 in1_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 in1_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 in2_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 in2_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 in2_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 in2_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 in3_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 in3_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 in3_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 in3_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 name
drwxr-xr-x 2 root root    0 23. Feb 21:01 power
lrwxrwxrwx 1 root root    0 23. Feb 21:01 subsystem -> ../../../../../../../class/hwmon
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp1_crit
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp1_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp1_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp1_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp2_crit
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp2_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp2_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp2_max
-rw-r--r-- 1 root root 4096 23. Feb 21:01 uevent

Any idea, what I can do to solve this? I want my fancontrol back!

Juergen

___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://produkte.web.de/go/toolbar

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

#1 lore raw
Quoted 51 lines · Juergen Bausa

After upgrading from debian lenny (kernel 2.6.26) to squeeze (kernel 2.6.32) fancontrol stopped working. I ran sensors-detect and I have the dme1737 module loaded, but pwmconfig says:

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

I also noticed that while in lenny the dme1737 reported the found pwms in the log, there is no message from dme1737 under squeeze.

However, some controls are there:

jba@lisa:/sys/class/hwmon/hwmon1$ ll
insgesamt 0
lrwxrwxrwx 1 root root    0 23. Feb 21:01 device -> ../../../ATK0110:00
(quoted diff) +0 -25
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan1_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan1_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan1_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan1_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan2_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan2_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan2_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 fan2_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 in0_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 in0_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 in0_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 in0_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 in1_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 in1_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 in1_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 in1_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 in2_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 in2_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 in2_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 in2_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 in3_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 in3_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 in3_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 in3_min
-r--r--r-- 1 root root 4096 23. Feb 21:01 name

drwxr-xr-x 2 root root 0 23. Feb 21:01 power
lrwxrwxrwx 1 root root 0 23. Feb 21:01 subsystem -> ../../../../../../../class/hwmon

(quoted diff) +0 -9
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp1_crit
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp1_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp1_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp1_max
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp2_crit
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp2_input
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp2_label
-r--r--r-- 1 root root 4096 23. Feb 21:01 temp2_max
-rw-r--r-- 1 root root 4096 23. Feb 21:01 uevent
Quoted 1 line

Any idea, what I can do to solve this? I want my fancontrol back!

Do you see any related output with dmesg ?

Guenter

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

#2 lore raw
In reply to Juergen Bausa
Quoted 2 lines

Do you see any related output with dmesg ?

nothing:

jba@lisa:~$ dmesg | grep dme1737
jba@lisa:~$ dmesg | grep pwm
jba@lisa:~$ 

Juergen

___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://produkte.web.de/go/toolbar

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

#3 lore raw
In reply to Juergen Bausa
Quoted 9 lines · Juergen Bausa
Quoted 1 line

Do you see any related output with dmesg ?

nothing:

jba@lisa:~$ dmesg | grep dme1737
jba@lisa:~$ dmesg | grep pwm
jba@lisa:~$ 

Juergen

Should have noticed earlier: You other email shows

jba@lisa:/sys/class/hwmon/hwmon1$ ll
insgesamt 0
lrwxrwxrwx 1 root root    0 23. Feb 21:01 device -> ../../../ATK0110:00

which indicates the loaded module is atk0110, not dme1737. Which afaik means that the device is detected as ASUS ACPI device. It loads the asus_atk0110 driver which does not support pwm attributes.

Not sure what to do about that, especially since this suggests that ACPI claims access to the dme1737 registers, and parallel access may cause trouble.

Guenter

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

#4 lore raw
In reply to Juergen Bausa

Von: "Guenter Roeck" <[email protected]>
Gesendet: 23.02.2011 23:23:58

Quoted 17 lines · Juergen Bausa
Quoted 9 lines
Quoted 1 line

Do you see any related output with dmesg ?

nothing:

jba@lisa:~$ dmesg | grep dme1737
jba@lisa:~$ dmesg | grep pwm
jba@lisa:~$ 

Juergen

Should have noticed earlier: You other email shows

jba@lisa:/sys/class/hwmon/hwmon1$ ll
insgesamt 0
lrwxrwxrwx 1 root root    0 23. Feb 21:01 device -> ../../../ATK0110:00
Quoted 7 lines

which indicates the loaded module is atk0110, not dme1737. Which afaik means that the device is detected as ASUS ACPI device. It loads the asus_atk0110 driver which does not support pwm attributes.

Not sure what to do about that, especially since this suggests that ACPI claims access to the dme1737 registers, and parallel access may cause trouble.

Thanks for the tip, that helped a lot. Searching the web I found some cases, where the asus_atk0110 prevented other modules from working correctly. Mostly it was suggested to add "acpi_enforce_resources=lax" to the kernel parameters. Allthough some people say this may be dangerous (others said it is not) I tried it and now the pwms are there again!

However, next problem was, that after each boot, hwmon1 and hwmon2 (dme1737 and asus_atk0110) may change. As a result, I was not able to write fixed adresses for the pwm in the configuration file for the fan-controller. After blacklisting the asus_atk0110 this problem was also solved. As I dont need any of the outputs of the asus_atk0110 I dont think this is problem. Most outputs are also given by the dme1737.

Could anyone please comment on this? Could it be dangerous to add "acpi_enforce_resources=lax" to the kernel parameters? If so, what could happen? And, is there any reason to not blacklist the asus_atk0110 module?

Juergen

Quoted 6 lines

Guenter

___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://produkte.web.de/go/toolbar

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

#5 lore raw
In reply to Juergen Bausa
Quoted 15 lines · Juergen Bausa
Quoted 3 lines

Not sure what to do about that, especially since this suggests that ACPI claims access to the dme1737 registers, and parallel access may cause trouble.

Thanks for the tip, that helped a lot. Searching the web I found some cases, where the asus_atk0110 prevented other modules from working correctly. Mostly it was suggested to add "acpi_enforce_resources=lax" to the kernel parameters. Allthough some people say this may be dangerous (others said it is not) I tried it and now the pwms are there again!

However, next problem was, that after each boot, hwmon1 and hwmon2 (dme1737 and asus_atk0110) may change. As a result, I was not able to write fixed adresses for the pwm in the configuration file for the fan-controller. After blacklisting the asus_atk0110 this problem was also solved. As I dont need any of the outputs of the asus_atk0110 I dont think this is problem. Most outputs are also given by the dme1737.

Quoted 3 lines

Could anyone please comment on this? Could it be dangerous to add "acpi_enforce_resources=lax" to the kernel parameters? If so, what could happen? And, is there any reason to not blacklist the asus_atk0110 module?

Using *both* atk0110 and the native driver is almost guaranteed to cause troubles because the two drivers will compete for access to the same device without synchronization.
Using the native driver alone may or may not cause troubles, it really depends on what the firmware is doing with the resources that it claimed (and this can only be verified by inspecting ACPI code).

L

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