tuxd3v / ats

91 stars 12 forks source link

PWM1 File keeps resetting to 0 #17

Closed JackGlobetrotter closed 4 years ago

JackGlobetrotter commented 5 years ago

Hey, it is still me, i am running ATS on ubuntu Bionic with Kernel 5.3. Whenever i write something to the pwm1 file (/sys/class/hwmon/hwmon0/pwm1), and for that extend whenever the ats service writes to the file, it keeps resetting to 0 after some seconds. I stopped every service possibly accessing the pwm file without any changes. When i try to see what happens with inotifywait, there is nothing happening.... Here is what is happening: https://www.icloud.com/iclouddrive/06Wsxaxx7aLoIiWQSt9x6V0Ug#Screen_Recording_2019-12-06_at_08.46 thanks again for your help!

tuxd3v commented 5 years ago

hello, Check if this service is installed:

~# dpkg -l|grep  fancontrol

if yes remove it.

apt-get remove fancontrol
JackGlobetrotter commented 5 years ago

Hello, the service is not installed....the output is empty...

tuxd3v commented 4 years ago

Hello, the service is not installed....the output is empty...

If you won't find it, it could be that the driver has flows, and it misbehave.. it happened in the past, even with ayufan releases, last year..

JackGlobetrotter commented 4 years ago

the script closes after some seconds with the message "killed"

tuxd3v commented 4 years ago

that is a strange behaviour.. does you have some bogus thing in configuration, or something?

I never saw a case like that.. Since its working it continues working..

Maybe its a exceptional case? What is the exit code of it?

JackGlobetrotter commented 4 years ago

Maybe...i am unable to find why....once the next armbian build is out i'm gonna switch...fan-pwm changes have been merged:)

tuxd3v commented 4 years ago

hello, I saw that in the Armbian '.config' file: https://github.com/armbian/build/blob/master/config/kernel/linux-rockchip-current.config

Its already there but built as a module.. You can test ...but I know that you already tested ok :)

Thanks for the feed-back on it ;)

JackGlobetrotter commented 4 years ago

Will test later today:) thanks for your help:) I am pretty sur the config is not in the last build (from 19/11, merge was done later), but maybe it can be done via updates

JackGlobetrotter commented 4 years ago

Will test later today:) thanks for your help:) I am pretty sur the config is not in the last build (from 19/11, merge was done later), but maybe it can be done via updates

Not in the latest build nor updates yet

root@rockpro64:~# cat /boot/config-5.3.11-rockchip64|grep PWM
# CONFIG_INPUT_PWM_BEEPER is not set
# CONFIG_INPUT_PWM_VIBRA is not set
# CONFIG_SENSORS_PWM_FAN is not set
CONFIG_REGULATOR_PWM=y
# CONFIG_BACKLIGHT_PWM is not set
CONFIG_LEDS_PWM=y
CONFIG_COMMON_CLK_PWM=y
CONFIG_PWM=y
CONFIG_PWM_SYSFS=y
CONFIG_PWM_CROS_EC=m
# CONFIG_PWM_FSL_FTM is not set
# CONFIG_PWM_PCA9685 is not set
CONFIG_PWM_ROCKCHIP=y
root@rockpro64:~# modprobe pwm-fan
modprobe: FATAL: Module pwm-fan not found in directory /lib/modules/5.3.11-rockchip64