I've been having some trouble with configuring cpufreqd to enter a temperature limiting mode when the laptop battery is inserted. This is useful to protect it from the high temperature damage. The thing is cpufreqd misbehaves when the battery is inserted/removed: If I start cpufreqd with the battery disconnected, then it will report its status as -1% and select the performance mode. But if I reconnect it it won't detect the battery and keeps reporting the -1% battery life. On the other hand if I start cpufreqd with the battery on it will report its status correctly (for instance 98%). But if I remove the battery its status just won't be updated (that is, it keeps the value it had before the removal). This should be easily reproducible, and I believe the bug #1515288 from cpufreqd's sourceforge tracker is relevant.
Ok, the relevant usptream bug report is this one: https://sourceforge.net/tracker/?func=detail&atid=489239&aid=1708807&group_id=58904
tracking this upstream. Please reopen in case we got a patch to add in gentoo