Monday, March 31, 2008

New Computer

My graphics card finally died, and I decided to get an upgrade. I now have an nForce 610i motherboard, 2GB RAM (800MHz), a Core2Duo (2.33GHz). The motherboard has an on-board GeForce 7050, which is quite good for my needs. I'm using the same hard-disk and DVD drive, but might get a new hard-disk soon.

Now I can finally run visual effects in Ubuntu, and boy, is it sweet!! The pretty animations, the desktop cube - I love it. And it runs so smooth!! Aero just sucks in comparison.

Since the motherboard is quite new, I needed to do some tweaking to get it working properly.

sudo update-pciids

To get the "lspci" list updated.

Install the nvidia graphics drivers manually to get the sound working.

For the sound, I followed these instructions posted on ubuntuforums.

The Ethernet card uses the "forcedeth" driver, which has a strange bug that caused the MAC address to change on every boot. I couldn't live with that, since I configure my wireless router based on the MAC. I decided to use my old Ethernet card for the time being.

Wednesday, March 19, 2008

Trouble with fans

I noticed a strange phenomenon with my computer. When I try to play a video, CPU usage would shoot up too 100%. I tried the usual troubleshooting methods, playing without the audio stream, trying different video output drivers, and so on...But nothing worked.

Then I noticed something else. If I pause a video for a minute, and then resume it, CPU usage goes back to the usual 20-30%. After a minute of playing, it would shoot up to 100% once again, until I let it cool off...

Sure enough, my CPU fan was bust. I bought a new one today and fixed it. Pentium-4 fans have a reputation of being notoriously difficult to remove. Ended up breaking a clip in the process.

The strange video problem didn't go away though. Next check: Graphics card. And Hurray!! that fan is bust too. Fortunately, a little nudging got it to work. But it seems I'll have to nudge it every time I start my computer.

I think its time to buy a new mobo. Nobody sells AGP 4x cards anymore :(

Edit: here's a good one. Anything running OpenGL (glxgears, -vo gl2 in mplayer) segfaults whenever the fan is RUNNING!! Works fine when its off...wtf.....

Edit Edit: If I stop the fan with my finger, and then start glxgears, it runs fine (even after I let go and the fan starts). Then I can run it even while the fan is running...
Hmm...this is quite entertaining...

If anyone has an explanation for this strange behavior, do leave a comment.

Looking forward to the sweet smell of burning silicon.
-Aku

Saturday, March 01, 2008

Workaround for watching .flv videos on slow computers

I have a 1.6GHz processor, a GeForce 440 MX, and 376MB of RAM. But it seems I have to upgrade to a GeForce 8-series or something to play friggin' flv video in Linux. Until I can do that, I think I'll have to use this workaround:

  • Let the video buffer completely.
  • Close the window so that it stops sucking 100% CPU
  • Go to the .mozilla/firefox//Cache directory
  • $ ls -lhS
  • The entries on the top are the largest, one of them will be the video. Try running them with mplayer.
  • Copy and rename if the video is worth saving on disk.

This works with youtube, but I think it should work with any website that allows videos to be buffered.

Thursday, February 28, 2008

Sorry, not supported in Linux

I hate it when I buy a piece of hardware and find that it's not supported in Linux. Why don't I have the freedom to choose the operating system of my choice?

Some companies have problems with opening up their drivers. Fine. At least do what nVidia does, provide closed, binary drivers. (Thank you nVidia, at least you provide them, and they work!).

Flash on Linux has always been a problem. It runs slow, jittery and is practically unusable. I tried to find out if other users were facing this problem, and sure enough, many are. The solution posted on (this thread) was to downgrade to a previous release of Flash. I had to download a 73MB archive containing a number of previous releases from Adobe's website. Adobe doesn't seem to care much about Linux users. Even the downgraded version has issues, but at least its somewhat usable.

I'm in a good mind to write to every company I come across that doesn't provide Linux support. About time Linux users made themselves heard. There are already a number of petitions.

Saturday, February 16, 2008

Adblock or not ?

Firefox has this neat extension called Adblock. It blocks out those annoying ads on web pages. Great! Now I don't have to look at flashing smiley ads anymore. (Who the heck would want to buy smileys anyway?)

But when I installed Google AdSesnse on my blogs, sure enough, I couldn't see them. Now, ads definitely help bring the pennies in, but do they have to be so annoying that people should want to block them? Most users hate ads, as they are distracting and loud[citation needed (LOL)]. In my case, Flash ads even use up a lot of CPU. (Hopefully, Flash will be faster with Firefox 3). In comparison, Google Ads are not irritating, and are usually quite relevant.

Some people go so far as to call Adblock "Stealing", and there are a number of discussions on this topic.

So my dilemma was: whether to Adblock or not. I thought of striking a balance. I have Adblock installed, but I'm not subscribed to any of the filters. I block the irritating, flashy ads manually.

Saturday, February 09, 2008

The Linux blog expanded

http://akulinux.blogspot.com/ is now http://bit-rot.blogspot.com/ . Why the change? The Linux blog was just a journal of problems and solutions that I came across while using linux. This blog however, deals with anything and everything that's tech-related.

Please feel free to leave comments, suggestions, your arguments, or if you simply wish to call me a nut for my naïve posts :)

Sunday, December 30, 2007

Shellscript to save power

Even though I run a Desktop, I do whatever I can to save electricity. Turning off the monitor helps a great deal. Then there's CPU frequency scaling. But when I set my machine to "ondemand", I noticed a marginal drop in performance, especially when playing a game or something. So I kept my machine on "performance", and set it to "ondemand" only when I had to leave the PC unattended for a while. Needless to say, it was quite a pain in the butt. So I made a shellscript to automate the process. Whenever my screen is locked, the script will turn CPU frequency governor to "ondemand"



#!/bin/bash
#Script to put the cpu in "ondemand" if the screen is locked

check=`pidof kdesktop_lock`
if [[ -n $check ]] ; then
/usr/bin/cpufreq-set -g ondemand
else
/usr/bin/cpufreq-set -g performance
fi

exit 0




Then I added a task to my root crontab:

0,10,20,30,40,50 * * * * root /usr/bin/freqmod.sh


where /usr/bin/freqmod.sh is the path to the script.

This is my first "real" bash script, so suggestions are welcome :)

Sunday, December 16, 2007

Wednesday, November 07, 2007

Dolphin

Dolphin is a new File Manager for KDE, which I encountered when I upgraded to Kubuntu Gutsy. It's supposed to be lightweight with the sole purpose of being a file manager, unlike Konqueror, which is a complete web browser.

There has been some talk about adding tabs to Dolphin. I missed the tab feature initially, being used to konqueror and firefox. But I realized that I don't really need tabs, except when copying files from one location to another. And for that, there is something called "Split View" in Dolphin. I find this better than tabs actually...


Wednesday, August 22, 2007

Linux to the rescue

I haven't posted anything on this blog since ages. Thats mostly because I haven't come across any more problems using linux. The nvidia kernel module problem mentioned in the previous post was sorted out thanks to another update by the cool ubuntu guys.

I've been really pissed off with windows. The computers in my college are quite slow, and they run windows XP. Opening a damn window takes ages. I opened about 5 windows of Internet Explorer today, simply because windows didn't provide any feedback (not even the mouse-cursor-timer...). Then then killing the windows takes another 10 minutes. And then the great explorer.exe decides to crash...

I had to make copies of a few VCDs of some dance performance for my cousin. No big deal right? Well, apparently windows can't even handle a couple of corrupt VCDs. Explorer.exe, as usual hangs like crazy, and lets not talk about Nero. I wonder why people pay money for that piece of shit?! Even VLC couldn't play the VCDs. Killing a process is practically impossible. Windows keeps reading the CD even when I tell it to stop....

In linux, copying the VCDs was a breeze. Mplayer and K3b are everything you need. For the corrupt VCDs, I could just use mplayer -streamdump, and a Clone Copy in K3b for the ones that worked. Nothing hung, it didn't even slow down the machine. Now that's the way it should be!

Tuesday, June 26, 2007

The kernel upgrade - Nvidia

There was a kernel upgrade a couple of weeks ago, and the sda/hda thing was sorted out. But the nvidia modules weren't loading and X didn't start. As usual, I posted a thread on Ubuntuforums.

For now, I don't want to install the nvidia drivers manually. So I'm sticking to the older kernel.

Wednesday, May 30, 2007

Issues with the new kernel: 2.6.20-16-generic

Adept-notifier showed me new kernel updates, and I installed these, only to find that I was greeted by a whole bunch of problems.

During the upgrade process, Adept seemed to have hung at 100%, (yes 100%). It showed dpkg-run finished in the terminal. I had to close the window, but just to be on the safe side, I opened a terminal, and ran sudo apt-get upgrade again. There was an unmet dependency, and I sorted this out. All seemed to be OK, and I rebooted the machine.

I had played with my partitions a bit, and all the /dev/sda* entries in the partitions wouldn't be mounted. Also, a new partition that I had created showed some superblock error. I just rebooted the machine, using the old kernel, and none of these problems showed up.

As usual I checked on UbuntuForums, and it seems the new kernel has a whole load of issues:
http://ubuntuforums.org/showthread.php?p=2733874
http://ubuntuforums.org/showthread.php?t=456662

Lets wait and see if the issues are sorted out. It seems all /dev/sda* has been made into /dev/hda* again
neutral

Saturday, May 05, 2007

Edgy to Feisty

I upgraded to Feisty Fawn a few days ago. It was quite a smooth process as compared to the previous release. The upgrade tool on the DVD was crashing, so I used the commandline instead.

Apart from Samba breaking, (which I managed to fix in a few hours), everything went quite well. My thanks to the Ubuntu team for a nice release.
biggrin

Downloading the DVD was quite a waste. Inspite of spending a week downloading 4.3 GB, I still had to download another 400MB. Next time, I'm sticking to solely to apt-get.

Tuesday, April 24, 2007

Monday, April 23, 2007

Saturday, April 21, 2007

Feisty Fawn

Ubuntu Feisty Fawn was released on the 19th. I've been trying to read the wiki pages for upgrading, but the servers are so slow I can barely open a page. I'll have to wait a bit for my upgrade. But till then, I'll download the alternate CD (using bittorrent)
smile

Sunday, April 15, 2007

PhotoRec


I had made a post some months ago, on how to recover accidentally deleted data. I never had to use it, but today, I accidentally deleted an important spreadsheet file, while cleaning up some older files.

PhotoRec came to the rescue. Its fairly simple to use, and within a matter of 20 minutes it searched for over 170 old, deleted files. I easily found the one I was looking for. I think everyone should have a copy of PhotoRec, just in case...

Tip: Don't recover all the files, (I ran out of disk space). Go to "FileOpt" and just select the filetypes you are looking for.

Friday, April 13, 2007

Dvdisaster

Dvdisaster home

Have you ever faced a situation when your important backup DVD is corrupt? I have, and it can be quite frustrating. Strictly speaking, optical media is not good is backups and archiving. But if I were to buy a 100GB hard-disk every 3 months, my dad would freak out
razz

So it would seem that DVDs are the way to go for the time being. And I found a good piece of software that would help me restore my DVDs if they ever got corrupt. Its called Dvdisaster.

The process of creating the error codes is a bit tedious, but it would help with important data.

Saturday, March 10, 2007

Additional Plugins required ?

How many times have you seen the "Additional plugins are required" message in firefox? I found a neat workaround. There's an extension called "Unplug" that allows you to download media directly from a page. Then you can watch it in your favorite media player. (Might not work with Flash though. I'm not sure...)