[opensuse] getting sensors to work
Hello, I'd like to control my fan speed. I have installed the sensors package and ran sensors-detect (as root). Here is what I got at the end: Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors for initialization at boot time. You should now start the lm_sensors service to load the required kernel modules. The only non-commented line in the new etc/init.d/lm_sensors is: HWMON_MODULES="coretemp nct6775" So how do I get hese modules to load? I do not know where prog/init/lm_sensors.init is, and besides, opensuse uses systemd, non sysv-init? When I do "modprobe nct6775", pwmconfig works, but this is just until the next reboot unless I can get the modules to load automatically. -- Yours, Mikhail Ramendik Unless explicitly stated, all opinions in my mail are my own and do not reflect the views of any organization -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 10 Jun 2016 00:14, Mikhail Ramendik wrote:
Hello,
I'd like to control my fan speed. I have installed the sensors package and ran sensors-detect (as root). Here is what I got at the end:
Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors for initialization at boot time. You should now start the lm_sensors service to load the required kernel modules.
The only non-commented line in the new etc/init.d/lm_sensors is:
HWMON_MODULES="coretemp nct6775"
So how do I get hese modules to load? I do not know where prog/init/lm_sensors.init is, and besides, opensuse uses systemd, non sysv-init?
When I do "modprobe nct6775", pwmconfig works, but this is just until the next reboot unless I can get the modules to load automatically.
hmm, does lm_sensors even get started at boot? check that first! [code] systemctl status lm_sensors.service [code] output should start with: [output] lm_sensors.service - Initialize hardware monitoring sensors Loaded: loaded (/usr/lib/systemd/system/lm_sensors.service; enabled) Active: active (exited) since ..... [/output] to enable (automatic start at boot): [code] systemctl enable lm_sensors.service [/code] to start NOW: [code] systemctl start lm_sensors.service [/code] Hope this gives a hint that helps. - Yamaban. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-06-10 00:14, Mikhail Ramendik wrote:
Hello,
I'd like to control my fan speed. I have installed the sensors package and ran sensors-detect (as root). Here is what I got at the end:
Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors for initialization at boot time. You should now start the lm_sensors service to load the required kernel modules.
The only non-commented line in the new etc/init.d/lm_sensors is:
HWMON_MODULES="coretemp nct6775"
That should be in file "/etc/sysconfig/lm_sensors", not in "etc/init.d/lm_sensors" You should have a file "/etc/init.d/lm_sensors" intact from the rpm package "sensors". You probably replaced the correct init file with the configuration file, so force install the rpm with YaST to correct the situation. Or extract that single file from the rpm and copy it to the correct place.
So how do I get hese modules to load? I do not know where prog/init/lm_sensors.init is,
No need.
and besides, opensuse uses systemd, non sysv-init?
No matter. Init files are compatible. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAldZ7cgACgkQja8UbcUWM1xHTAD/W/TLpegEwSfdt1bl8R7NmE2O JJt7TPiqVHli2U0eeA8A/3+4K9iQaOfTRmXQHlichfyBE53s47++Nb5HJh4QI3Rf =T3af -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 9 June 2016 at 23:29, Carlos E. R.
You should have a file "/etc/init.d/lm_sensors" intact from the rpm package "sensors". You probably replaced the correct init file with the configuration file, so force install the rpm with YaST to correct the situation. Or extract that single file from the rpm and copy it to the correct place.
I did not - but, after loading the module manually and before any reboot, I slammed straight into another issue. Somehow pwmconfig never managed to stop the right fan. The reason might be that when one puts 0, or 20 or less, into pwm2 (which is the right fan), it just goes full speed. With 30 it goes quiet. And so it failed to write a correct fancontrol config, too. I'm thinking of bailing out, especially since it seems that the noise I hear is all PSU anyway. -- Yours, Mikhail Ramendik Unless explicitly stated, all opinions in my mail are my own and do not reflect the views of any organization -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-06-10 02:32, Mikhail Ramendik wrote:
On 9 June 2016 at 23:29, Carlos E. R. <> wrote:
You should have a file "/etc/init.d/lm_sensors" intact from the rpm package "sensors". You probably replaced the correct init file with the configuration file, so force install the rpm with YaST to correct the situation. Or extract that single file from the rpm and copy it to the correct place.
I did not - but, after loading the module manually and before any reboot, I slammed straight into another issue. Somehow pwmconfig never managed to stop the right fan. The reason might be that when one puts 0, or 20 or less, into pwm2 (which is the right fan), it just goes full speed. With 30 it goes quiet.
Dunno, but if the init.d file is the one you posted, you should reinstall the package. Or was it a typo on the post? Please verify. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlda9PgACgkQja8UbcUWM1yhiQD8DAm3TkZ+DUHLVA9OjOMyREer wPsDuuIdoadCjUFhkj0A/ips4aWN/OqdohetXBd+hRWB0l5J3N6npT4BHV0ghjiz =QMxE -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10 June 2016 at 18:12, Carlos E. R.
I did not - but, after loading the module manually and before any reboot, I slammed straight into another issue. Somehow pwmconfig never managed to stop the right fan. The reason might be that when one puts 0, or 20 or less, into pwm2 (which is the right fan), it just goes full speed. With 30 it goes quiet.
Dunno, but if the init.d file is the one you posted, you should reinstall the package.
Or was it a typo on the post?
I have reinstalled it now. I think that was a typo as the file is really /etc/sysconfig/lm_sensors I have now enabled and started lm_sensors.service. Still, pwmconfig is unable to stop the CPU fan (there is no other fan to control) and fancontrol does not get a working config. -- Yours, Mikhail Ramendik Unless explicitly stated, all opinions in my mail are my own and do not reflect the views of any organization -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-06-10 21:50, Mikhail Ramendik wrote:
I have now enabled and started lm_sensors.service. Still, pwmconfig is unable to stop the CPU fan (there is no other fan to control) and fancontrol does not get a working config.
About fan control I don't know. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAldbN8oACgkQja8UbcUWM1znCAD/Z6Oqy7vr0OYj8LRLl4a7ZaV9 y2HtsURQqDjWYF0nZYYA/3NLRyBHoftceuZt16cgQWTjhDwSn4YQ8W4SOdOUVA/j =GvkX -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Mikhail Ramendik
-
Yamaban