There is a misstake in the sys-apps/speedfreq autodetection of batterystatus Reproducible: Always Steps to Reproduce: 1. Set SPEEDFREQ_SPEED="auto" is /etc/conf.d/speedfreq 2. Unplug AC power 3. restart speedfreqd via the initscript 4. run speedfreq -m Actual Results: Step 4 shows 'performance' Expected Results: It should be powersave
Created attachment 16625 [details] Fixed init-script
Found two other bugs Will attach files (messy to make two other bug reports as this one isnt solved yet).
Created attachment 16637 [details, diff] Fixes bad comparasion in battery.sh
Created attachment 16638 [details, diff] Fixes bad comments in the conf
the init script you posted is pretty much like the one in cvs ... ive added the patch for battery.sh ... and the comments in the conf were fixed with bug 27404 thanks ;)
In the speedfreq-0.5 as of today this bug is present again. Reproduce exactly in the same way as above. It looks like the mentioned line in /etc/init.d/speedfreq (v 1.2 2003/11/18 07:08:02 vapier) was changed again and does not work anymore. I include a proposed patch as attachment.
Created attachment 24559 [details, diff] Fixes autodetection of battery status.
ultrich: the bug you describe and the bug this was about are completely different please file a new bug ;)
Same symptomps, same way to reproduce. Filed as #39709. Please don't mark it as duplicate now. ;-)