I'm currently having a two batteries laptop and experiencing instant cpufreqd crash and both of them are pluged in.
By expending logs / debuging I have seen sysfs values where all at NULL.
I looked over some other programs that use sysfs_open_attribute, and have seen they also use sysfs_read_attribute.
Adding a call to this function corrected my problem, even if I don't know why it worked with only one battery (battery independent, only both of them crashed cpufreqd)
Log in to post a comment.