Original Post: The Asus Eee PC uses a relatively low power 900 MHz Celeron processor to help cut down on costs and to help prolong battery life. Unlike newer Pentium chips, Celeron processors don't include SpeedStep technology, which means you generally don't get advanced power management features. But while you can't configure the Eee PC's processor to alter its voltage, you can alter the processor frequency, which should theoretically prolong your battery life.
SmallFootprint over at Eee User wrote up some great instructions for turning on CPU scaling using a command line process. I figured there was no way I was going to remember that command though, so I wanted to create some shortcuts to put in my start menu. Here's how I did it.
There are three commands you need to know:
- "echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" will turn on CPU scaling (which will automatically adjust your CPU speed from 112.5 to 900 MHz depending on your work load).
- "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" will return you to full performance mode (where your CPU will run at 900 MHz all the time).
- "cat /proc/cpuinfo" will show you what your current CPU speed is.
In order to add these commands to my start menu, I first created two executable files:
- Open File Manager
- Navigate to your Home/User folder or whatever folder you want to put these files in.
- Right click in the File Manager and select "Create New" and then "Text File."
- I named the first "Power Saver," and the second "Performance."
- Open up the first file using the Kate text editor by double-clicking on the file. Later, we'll make these files executable, so you'll need to right-click and select "open with text editor" to edit them.
- Enter "echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" (without the quotes) in your power saver file.
- Click Save and Exit.
- Enter ""echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" in your performance file.
- Click Save and Exit.
- Right-click on a file and select Properties
- Select the Permissions tab
- Make sure the box that says Exec is checked. For good measure, I check the boxes under Owner, Group and Others. I'm not sure is you need to click all three, but I don't think it hurts.
- Repeat the process with your other file.
Before adding the items to my start menu, I decided to hide them so I won't see them all the time and accidentally delete or modify them. All you have to do to make these hidden files is right-click the file, select "rename" and place a "." before each file. Now in order to see them you'll have to select "show hidden files" from the File Manager.
Okay, next up let's bring up the menu editor by selecting Applications/System/Menu Editor from the start menu. Select the folder you want to place the new icons in and either create a new item or a new subfolder from the File Menu. I decided to add my files to a new folder called Applications/System/CPU Speed.
Here's how to create your new shortcut:
- Type a name into the name field, and a description into the description field if you like.
- Click the folder icon next to the Command box and a window will pop up that lets you browse to find your executable files. If you've hidden them, you'll have to right-click on the white part of the window and select "show hidden files."
- Click on the icon section next to Name and Description and look through the system icons to see if you like any. You don't really need an icon, but it makes your start menu look prettier.
When you select Power Saver or Performance, a little hourglass should pop up in your taskbar. It takes a few moments for the changes to kick in, which is odd because they're almost instantaneous in command line mode. But I think this solution is still a lot more convenient.
Note that when you reboot your PC, you will always wind up back in performance mode. But I'm pretty certain someone at the Eee User forum will come up with a way to fix that soon. And I haven't been using the new power saving trick long enough to know what if any impact it has on battery life. I'll keep you posted.
Update: OK, there seems to be a flaw in my brilliant plan. In order for the shortcuts to work, you need to make sure that scaling_governor is executable. I figured that doing this once would be enough. But it turns out that when you reboot your Eee PC, you have to reenable executable access. I'll let you know if I come up with a solution. Or if anyone has a better idea for creating a working power management shortcut, let me know.