[cpufreq applet] fixed setting userspace in CPU speed setting (better patch)

Hallo, I've fixed bug with setting freq by user (problems on govs
"performance").

I've investigated in cpufreq-set (cpufrequtils) and that apps set govs
to "userspace" before setting cpu speed.

By: Pavol Klačanský



SVN revision: 44653
This commit is contained in:
Gustavo Sverzut Barbieri 2009-12-22 13:08:57 +00:00
parent bb3c3c1af5
commit 2994d25b35
1 changed files with 4 additions and 0 deletions

View File

@ -418,6 +418,10 @@ _cpufreq_set_frequency(int frequency)
e_dialog_show(dia);
return;
}
// change it to "userspace"
_cpufreq_set_governor("userspace");
snprintf(buf, sizeof(buf),
"%s %s %i", cpufreq_config->set_exe_path, "frequency", frequency);
ret = system(buf);