On Wed, Apr 26, 2006 at 11:20:03AM -0700, Ryan Neufeld wrote: > I have found a serious bug with powersaved.
I'm not too sure about this, i think it is mostly a kernel bug :-) > When switching from the dynamic mode, to the performance mode the cpu > frequency stays at its lowest setting. I have found that the solution > to this is to set the scaling_max_freq to the max that the cpu is > capable of *prior* to setting the governor back to performance. You > may have to set the governor to "userspace" prior to this setting. > What I have done in the past is used cpufreq-uitls as such: This looks like an incarnation of https://bugzilla.novell.com/show_bug.cgi?id=119836 which we have seen on many D600 and D610 as well as on D800s. > #!/bin/bash > maxmhz=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies > | gawk '{ print $1}'` > cpufreq-set -g ${ONAC_GOVERNOR} -u ${maxmhz} > > > > I am sure there is a better way, but this seems to do the trick. > Unfortunately when I use this method along with powersaved my system > becomes very laggy and difficult to use. The only solution seems to be > to restart the computer. so you have powersaved running, then start the above script (what value does $ONAC_GOVERNOR have?), then the system gets so laggy that you have to restart it? I can hardly believe that... Maybe the processor is throttled? (check with "powersave -t", current state should be 0 or just read out from /proc/acpi/processor/*/throttling) > My system specs: > Dell Latitude D610, Gentoo Linux, latest version of powersaved. using > default configuration of powersaved except for changing the > CPUFREQUENCY="performance" in the /etc/powersave/scheme_performance. > > Septu ryder # uname -a > Linux Septu 2.6.16-suspend2-r4 #1 PREEMPT Sat Apr 22 10:35:21 PDT 2006 > i686 Intel(R) Pentium(R) M processor 1.60GHz GNU/Linux > Septu ryder # cat /proc/cpuinfo > processor : 0 > vendor_id : GenuineIntel > cpu family : 6 > model : 13 > model name : Intel(R) Pentium(R) M processor 1.60GHz > stepping : 8 > cpu MHz : 800.000 > cache size : 2048 KB > fdiv_bug : no > hlt_bug : no > f00f_bug : no > coma_bug : no > fpu : yes > fpu_exception : yes > cpuid level : 2 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe est tm2 > bogomips : 1599.97 this is when running in performance mode? > Septu ryder # cat /sys/devices/system/cpu/cpu0/cpufreq/* > 0 > 800000 > 1600000 > 800000 > 1600000 1333000 1067000 800000 > conservative ondemand powersave userspace performance > 800000 > centrino > performance > 800000 > 800000 hm, from checking againnst my: [EMAIL PROTECTED]:/tmp> grep . /sys/devices/system/cpu/cpu0/cpufreq/* /sys/devices/system/cpu/cpu0/cpufreq/affected_cpus:0 /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:600000 /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:1400000 /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:600000 /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies:1400000 1200000 1000000 800000 600000 /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:ondemand userspace powersave performance /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq:600000 /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:centrino /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:ondemand /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:1400000 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:600000 i would judge that your system is on "performance", but still cur_freq is 800000, because min and may are both 800000, so this really looks like the bug above and would qualify as a kernel bug IMO :-) Thomas sent the fixes upstream IIRC, so maybe it is already fixed in the latest and greatest 2.6.17rc? -- Stefan Seyfried \ "I didn't want to write for pay. I QA / R&D Team Mobile Devices \ wanted to be paid for what I write." SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen _______________________________________________ powersave-devel mailing list [email protected] http://forge.novell.com/mailman/listinfo/powersave-devel
