Sunday, September 7, 2008

CPU Frequency Scaling on the EeePC

If like me, you are thinking about extending the EeePC's battery life by turning on CPU frequency scaling support, I can tell u now to forget about it. It doesn't work.

After turning it on & testing the temperature & battery life, I am very sure it does absolutely nothing for the EeePC. In fact, the only thing it did was make the system lag every time you click on something, this is because the CPU will scale to max for almost every single task. The system takes a second to scale, this is what causes the lag.

After reading in various forums & opinions on it, it's clear that frequency scaling does not improve the battery life or thermal performance of the EeePC 701 which uses an already sluggish Celeron M. In some tests, it even makes things hotter.

So, I've reverted to running the system at the standard 630Mhz with no scaling. I'm currently averaging about 170 minutes per charge with wireless on, which is not too shabby for an 8 month old battery.

Monday, August 25, 2008

Tweaking eeebuntu

I've been running eeebuntu on my EeePC for a week now & I've done quite a few things to improve the overall experience.
Here's a quick list of things (that I can remember) in no particular order:
- Disable unused services. User services-admin to weed out all the pointless services such as: anacron, atd, apport, lm-sensors, avahi-daemon & cupsys.

- Disable unused startup items. Under System -> Preferences -> Sessions, turn off, Conduit, Evolution Alarm Notifier, Print Queue Applet, Update Notifier & Visual Assistance.

- Install much needed games. Get yourself zsnes, armagetron, planet-penguin racer, crack-attack, circus, pinball & wormux.

- Run sudo apt-get clean after every update.

- Remove unnecessary panel applets. cpu meter, temp meter & window picker (window list is more practical)

- Install lock-keys-applet to display the status of numlock, capslock & scrolllock.

- Fix the Fn+ key volume control. Goto System -> Preferences -> Keyboard Shortcuts. Press Backspace to remove the shortcut for Volume up, down & mute. This leaves only asusosd running & supplying only 1 set of controls. The volume being adjusted is Front, so set gnome mixer's primary volume to it.

- Setup some ramdisks to reduce disk writes. Add these entries in /etc/fstab
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0

- To reduce some more writes. Add in the mount options for / in fstab "noatime, nodiratime, commit=30". Like this:
#/dev/sda1
UUID=xxxxxxx-xxxxx-xxx-xxxxxx-xxxxxxxxxxx / ext3 noatime,nodiratime,commit=30,errors=remount-ro 0 1

You'll need to do the same in /boot/grub/menu.lst.
On the line "defoptions=quiet splash" line add "rootflags=noatime,nodiratime,commit=30" Like this:
defoptions=quiet splash rootflags=noatime,nodiratime,commit=30

Then run $sudo update-grub.

- If you don't mind losing all your browser cache every boot, you can do this put all your disk cache in ramdisk:
Open firefox
Goto about:config
Look for "browser.cache.disk.parent_directory"
If it's not there, create it (type string) & set it to "/tmp"

- Optimize the boot readahead cache by reprofiling. Here's how to do it:
Setup the system in exactly the way you want it before doing this.
Press Esc at grub
Edit the kernel line & insert "profile" at end. (without quotes of course)
Press b to boot
Let the system boot normally to the desktop. (It will take much longer)
Once completely booted, do a reboot. (The next boot will be quicker than ever)

Next I'll be experimenting with cpu frequency scaling to improve battery life. I'm still apprehensive about this since this machine is slow as it is. But I'll test it out & we'll see.

Thursday, August 21, 2008

eeebuntu Netbook Remix on the EeePC 701

A few days ago I decided to install eeebuntu permanently into the SSD of my EeePC, I've been running it live off a USB stick & increasingly found it far superior & far more flexible then the Xandros that came with the system. As u can see, I'm cautious about this step as I want to make sure that eeebuntu could effectively replace the Xandros. In this respect, I think the eeebuntu folks did a really great job.

As I increasingly discovered, Xandros did not afford me much flexibility & was in fact not performing well at all on my modest EeePC 701 4G. In operation, eeebuntu was much more responsive due to (I suspect) it's realtime kernel. The drawback though is obviously the boot speed, which I timed at about 1min 9seconds, this was far longer than the 34 seconds it took Xandros to boot. But compromises had to be made if you wanted a modern OS. eeebuntu is based on Ubuntu Hardy 8.04.1.

I'm going to try to detail my experience installing eeebuntu 1.0 NBR (Netbook Remix):
(Check out eeebuntu's Homepage)
- Installation went well without a hitch.
- Post Install, run the sndfix701.sh script in /eeesupport/scripts
- Sound should work fine now, but be careful when adjusting the volume with the Fn+hotkeys, for some reason it adjusts both Master & Front volumes. Adjusting it with the normal volume control works fine. For this I found that by setting the master channel to PCM (instead of Master) helped the volume control become smoother (still doesn't help the hotkeys issue though). In the volume options, I recommend to only enable these items: Headphone, PCM, Front, Microphone & Capture. Set Master & Front to the max & control all volume using only PCM.
- Due to a bug in the installer, the custom repositories used are not in the installed system. This is easy to remedy, simply boot the LiveUSB again, copy out the last 3 entries from /etc/apt/sources.list & put them into the installed system.
- The default ume-launcher has some issues of overlapping text on the 701. After updating to the new ume-launcher, the issue is resolved.
- SD cards will not mount because the system thinks they are optical drives. This is solved by commenting out the /dev/cdrom0 line in /etc/fstab
- I use zsnes to get my doses of old console games. zsnes will start with no sound at first, this is resolved by setting the sound sampling rate to 48000Hz & restarting zsnes with the parameters $ zsnes -ad sdl

Next time, I'll talk about optimizing the OS to boot faster, run faster & write less to the SSD.

Saturday, June 14, 2008

How's Mandy so far?

Been running Mandriva 2008.1 Spring Free for well over a month now, there have been many updates coming through rpmdrake. Most of the obvious bugs were ironed out by the 2nd week, so things are looking good. Here are some random observations:
- I figured out how to disable the annoying meta file download in rpmdrake.
- I found out that compiz works much better with EXA rather then XAA on my intel chip.
- I discovered that Flashplayer will crash Firefox every 2nd youtube video I watched. I later found out this is because Flashplayer 9 is not playing nice with PulseAudio. I have since disabled PulseAudio so I can watch youtube. I'm a freedom hater. I know.

I've had very little chance to hack around & get to know this new Mandriva release. This is in part because of my current work schedule, but it's also because Mandriva & Linux in general has matured to a stage where it almost requires no hacking to make everything work well. Linux is getting to a stage where it could almost just get out the way & let you use the computer. I feel as if a tipping point is near & I'm almost afraid to see what's over the horizon...

Thursday, May 1, 2008

Finally upgraded to Mandriva 2008.1 Spring Free

I finally did it today! Got around to backing up all my data & installing a fresh copy of 2008.1 Spring Free.
Just started to play with it a little & already I managed to kill Konqueror once. (by dragging files around)
It's ok, I'm installing Dolphin anyway.

Lets start with some first impressions:
- Multimedia keys on me Tosh are working perfectly, it even has the much needed OSD.
- Rpmdrake has been improved tremendously in speed & reliability, downloading & setting up repos automatically. However, I don't like the behavior of it downloading the info headers every time I click on a package. On my slow line, this takes a good 2 minutes per click.

Haven't had any time to play more with it. So I'll save any more comments till my next post.

Sunday, April 27, 2008

OMG! I'm too busy for Mandriva!!

Mandriva has release 2008.1 Spring, but sadly I've had very little time lately to explore it in any depth. I've just spent the entire March training "How to provide Tech Support for Ubuntu" and the last month attending a course on Solaris 10 Administration. So my head is now full of Ubuntu brown and a lot of old school UNIX unfriendliness.

Well, both Mandriva and Ubuntu have recently released their respective April update. Both releases are significant in their own way. For Ubuntu, it's finally time for their 2nd LTS release. Their last one was 2 years ago.
For Mandriva, this release marks their first Manbo Labs base system release that was developed in collaboration with Turbolinux. I see this as a great move for Mandriva since I personally found Mandriva to have very effective support for eastern languages, their partnership Turbolinux will only strengthen their position in this area.

In the last 2 months haven't spend any time hacking my EeePC, just using it as it was intended & I must say that it's been serving me well. It's been very good to my back & no more aching shoulders lugging a 10 lb laptop.

Well. gotta go back to studying my Solaris books & get ready to deliver training to the support guys. :(

But first, I gotta catch up on my BSG. Season 4 is out man... ;)

Sunday, March 16, 2008

Getting hooked on Linux Podcasts

Been really bz with work lately. March & April are hectic months for me. I've been asked to learn-up and deliver training on a couple of topics that are complete new to me. Out of bunch, 2 of the more interesting topics are Ubuntu Desktop & Solaris 10 on x86.

Apparently the local tech support need to be prepared to provide customers support for these OSs. Due to cost cuts I will not be getting any training on Ubuntu. (They assume that since I know Linux, Ubuntu should be simple) I hope they're right.

As for Solaris 10, I've been given an account to get into their e-learning site & I've been going through all their material for 2 weeks now. Some of this old school Unix stuff is really mind bogglingly boring and unnecessarily complicated. It's surprising for me to see a modern day commercial Unix still looks like something out of the 80s. CDE looks truly horrific, I though I'd traveled back in time to 1985.

To keep myself updated in the world of free software I've been listening to a couple of Podcasts that I would highly recommend to anyone interested in Linux.

My 2 favorites are:
lugradio - It's very European, with plenty of English jokes, biased reviews and profanities galore.
linuxoutlaws - A German accent, modest and lighthearted discussions and light on profanities.

Both are excellent Linux Podcasts. I listen with Amarok and can't get enough.