Archive for the ‘Linux’ Category
A few months after I got an LG Optimus One, my first Android phone, an onslaught of other droids made sure that my device felt like something that came out 5 years ago. Two months after ownership, LG’s Optimus 2X came out. In other words, here I am with a 600MHz single core phone amid a generation full of dual core droids and even at least 1GHz single cores.
So now, I decided not to choose too cheap. I opted for a Nexus 7 over mid-range smartphones as I get more with the Nexus at the same price range.
Tegra 3 T30L, 1GB RAM, NFC. What else could I be missing?
Nothing, for now.
Next year, probably a lot.
The Tegra 3 system-on-chip is equipped with a quad-core CPU built using a 40nm manufacturing process, with each core being ARM Cortex A9’s with the exception of the extra low-power ARMv7 companion core.
The upcoming SoCs for 2013 are even more powerful, with a godly gap in instructions per clock compared to the previous generations. To put things into perspective, here’s a screenshot of the top Android devices (androidbenchmark.net) currently in the market. While benchmarks don’t tell the whole story, they give a good-enough idea as to where a specific device stands.
Okay, I must admit – I’m an Android fanboy. Before you bash me though, I ask you to hear me out as I’m not forcing my opinion on you. Rather, I’ll talk about why I love it and why I’ll continue to love it despite the possibility that its time may come to an end.
My first Android phone was LG’s infamous (at least to the tinkerers) Optimus One. It has a 600MHz single core Qualcomm processor and half a gig of RAM running Android 2.2 Froyo. It was pretty underpowered, and about half a year later I couldn’t find nice games that would run on it as most stopped caring about the low end droids. Not to mention Facebook and many other apps performed like shit.
Even through all that, I still loved that phone.
BECAUSE LINUX IS FUCKING AWESOME.
Setting up powersaving on a laptop can be a chore. If you’re like me, you’ll probably just ignore everything else (suspend, hibernate, standby, lid thingies, hard drive spindowns, etc) except CPU frequency scaling. This laptop wouldn’t even attempt to shut down on its own when the battery level is extremely low. A few days back I ran out of juice while playing Chrono Trigger for 3+ hours straight.
3 hours. On a netbook. While emulating a SNES game. Unacceptable battery life for a netbook, right?
I did a little tinkering, and found out that my frequency scaling setup many months ago was a fluke. Loading the cpufreq_ondemand module wasn’t enough, as the output of cpufreq-info still showed that the scaling governor I was using was still at performance. I fixed it by not setting the governor this way anymore and do it by starting the cpufreq daemon at boot. I set my default governor to ondemand by simply editing a few lines at /etc/conf.d/cpufreq.
I didn’t stop there. I created 2 scripts which modify the maximum and minimum frequencies so I could easily switch between my “profiles”. I did this with cpufreq-set.
Script that I named powersave.sh:
cpufreq-set -c 1 -g ondemand -u 800Mhz -d 800Mhz
cpufreq-set -c 0 -g ondemand -u 800Mhz -d 800Mhz
Script that I named notpowersave.sh:
cpufreq-set -c 1 -g ondemand -u 1.60GHz -d 800MHz
cpufreq-set -c 0 -g ondemand -u 1.60GHz -d 800MHz
Thanks to Nicola for the heads up. I haven’t been playing this game for quite some time because I lack the time and/or the creativity in playing such an amazing game (that I sadly did not pay for).
If you have the black screen problem, which I think first surfaced during the 1.0 release, all you have to do to fix it is to update LWJGL that came with the game.
Note: The latest version (2.8.2) did not work for me and Nicola. We got past the black screen and were able to create the world, but we got stuck at the pause menu. I got around that by using the previous release (2.8.1). The latest one might work for you though. Give it a try. If it still does not work, try 2.8.1.
This is an extremely lengthy intro. Real install post here.
Ever since got my hands on this laptop, I have been deliberating about installing Arch. For quite some time, I thought that I should stick with Windows 7 instead, since I wouldn’t have to worry about the shitload of things I still have to do when installing Arch (or Linux in general). Days passed, and performance is still in mint condition due to the fact that I have the most excellent Windows maintenance skills ever(HAHA). Every useless start up entry have been removed, leaving only those that are needed to make the system usable.
To give you an idea of how obsessive-compulsive I am with these shit:
Before reading everything else, I just would like you to note that this isn’t the only way of doing things. This is just how I like to do them, and the options described aren’t the only ones available either. This was meant to be done as quickly as possible.
EDIT (Aug 6, 2011): Added cpufrequtils stuff. Confirmed working.