View Single Post
Posts: 38 | Thanked: 14 times | Joined on Feb 2010
#1549
Originally Posted by eitama View Post
"vi" - File editor that is apart of almost every linux distribution,
among those is the one on the n900.
vi uses some odd keyboard shortcuts to get around, the advantage is that when you get used to it, it's far superior than notepad.

You need to edit a file called pmconfig, which is located in side /etc
to do that, go tp applications on your phone : (make sure you have rootsh installed 1st)
1. Start X Terminal
2. Type : sudo gainroot
2.5. Backup your file, "cp /etc/pmconfig /etc/pmconfig.old"
2.8. To restore : "cp /etc/pmconfig.old /etc/pmconfig"
3. Type : vi /etc/pmconfig - you can now move around with the arrow keys, but you cannot edit the text yet.
4. Locate the cursor where you want to insert text, press "i".
5. You are now in edit mode, be careful in what you are doing - you can type in new letter, and delete with backspace and delete, write in what you need, press ESC.
6. You are not out of edit mode, make sure you did what you needed to do, to save and exit the file you press : ":wq" (with the ":") and ENTER.

It's not "code" just bash commands, like you had batch commands in DOS.
Strange, I did exactly this, but the changes are not sticking, after reboot it reverts cpu speed back to 600 (from conky) even though when I check the pmconfig file it shows that the sample_max_freq is set to 750000, any ideas what would be the problem here ?