LCD Brightness in KDE4

Dec 28 2009 Published by under Linux

The KDE4 control panel does not have a panel for setting the display brightness yet. However, changing the display brightness can be done at the shell, and the changes take effect immediately.

  1. find a path like “/proc/acpi/video/VGA/LCD/brightness” using ls and cd (the exact path varies)
  2. cat yourfile. The top line contains possible values. The bottom line is the current one.
  3. login as root using su
  4. echo -n new brightness > /proc/acpi/video/VGA/LCD/brightness

to make this permanent every time you login, add it to the KDE autostart directory

  1. cd ~/.kde/Autostart
  2. vim set-brightness.sh
  3. put the following lines in it:

#! /bin/sh

echo -n brightness > /proc/acpi/video/VGA/LCD/brightness

  1. chmod 775 set-brightness.sh

No responses yet

Bad Karma and the Fox Chasing Its Tail

Dec 21 2009 Published by under Firefox,Linux

I’ve been using Windows 7 since May, when I started my first co-op term. It was definitely better than Vista and much better than XP in some ways. The only thing I don’t like about Windows 7 compared to XP is more hard drive grinding pre-loading programs before they are used into memory.

So this time I decided to install Kubuntu again, forgetting what caused me to abandon it last time. (I couldn’t recall the reason until I finished writing that last sentence) Just a quick overview of what whas karmic and the fox before I get into the root cause of this.

Karma is evolutionary garbage, literally. Some companies trying to make monkey dress it up and call it “good karma” or try to sell you “karma coins”. All garbage. I remember the story behind the game Alpha Centauri. There was only 1 in a million chance of the spaceship getting hit by a meteor, yet due to the karma carried by humans onboard, it was destined to be hit by a meteor. Same thing happens in real life. Things on an outer level never change without a change on an inner level.

So why is Kubuntu karmic? It still had the same problems from last time. When I loaded up my wireless card, I still had to apply the bug fix from Hardy, back 2 generations ago over a year. I expected it to be fixed by now. Second, the default firefox version from the repository was version 3.0.6. If Ubuntu updated its software every six months, then it should at least be 3.5 now. Karmic was released at the end of October. I go through several links on google to install 3.5. Unfortunately, this wasn’t the only bug I encountered installing firefox. There was a firefox installer included with Kubuntu. If I click on it, the installer exits saying firefox is already the latest version. As a result, I had to install it from the command line. After the installation finished, it gave an error message about kde. This should have been a clue about what would follow. Firefox ran smooth until I tried to restore a few things using Firefox Extension Backup Extension (FEBE). I was only able to restore 3 things until the dialog box just refused to show up (it was a GNOME dialog box). After that, I saw KDE desktop crash a few times, apt unable to resolve dependencies, wireless stop working, and several attempts to get wireless back (it’s a lot harder without an internet connection). NOW the Karma becomes obvious, though I still don’t know why.

So now we come to the fox chasing its tail. That’s what you get with a distribution that aims to be current built on top of Debian Linux. The fox will never escape its tail. Kubuntu is based on the KDE desktop, and many Ubuntu users won’t even care to try it for whatever reason (maybe for the same reson they’ve never tried other distributions). When I compare the Kubuntu/Ubuntu website with the Sabayon/Gentoo websites, I find that the Ubuntu side has far less activity and takes longer to solve problems. All because the distribution is based on Debian. In a source based distribution like Gentoo, there is a much greater flow of knowledge. Just look at Planet Gentoo, a Gentoo user blog. It’s not surprising that I remember the reason I abandoned Kubuntu last time, as my laptop is installing Sabayon and I’m writing this. Kubuntu didn’t have a community, it didn’t have people contributin knowledge. It’s just a buggy KDE desktop on top of Xorg and the rest of Ubuntu.

Update: I’ve come across another article mentioning the same problem with Ubuntu (I did get the Kubuntu broken Grub bug, forcing me to install another Linux distro). Also, there is a more technical article benchmarking Gentoo and Ubuntu. Gentoo won, of course. As far as speed goes, Gentoo is the fastest, followed by Fedora, Slackware, Mandriva, and almost last . . . Ubuntu (last goes to the outdated Debian stable).

No responses yet

Reading Week

Feb 20 2009 Published by under Life,Linux

I’ve just spent the last few days at home on reading week (It’s called that because that’s the last thing you want to do yet the first thing that you should do on spring break.) It hasn’t been a much of a week as far as getting thing done. I’ve spent the first few days chasing the karmic tail. First, I decided not to bring home my ReadyBoost USB for Vista as I anticipated using XP or Linux. I was mostly exited about my Fedora 10 installation because I haven’t used it much. 5 days max. And I wanted to use a 64 bit OS. By the time I think about it now, I can’t tell if Fedora was faster than XP or Vista, but I do remember it crashing in Gnome with Compiz and KDE4 with its effects. It’s official. Anything on Google’s official (at least as soon as you find out). Everything else don’t make a difference. (Actually, everything else worked fine in Fedora except…) I’ve been an old Sabayon user (more on that later), and I trust it a lot more than some pet project of Red Hat that charges money for the better bug fixed Red Hat Enterprise and sabotages the most innovative Linux projects to crush competition (more on that again, but here’s a hint just to remind myself). Yeah, so I have been chasing the garbage tail (er… a tail of garbage?) since I got opinionated about the OS I use. There’s even a great divide between XP users and Vista lovers (not to say anything about my dad’s preference to keep 2000 on an old machine). It’s all garbage. I mean the garbage code in PLT Scheme! If it wasn’t for that and a slight problem with suspend that I’ve just figured out from Google, I’d still be using Sabayon. But as the story goes, it started this way:
XP -> Sabayon -> Dark XP -> ____ -> Sabayon -> XP -> Sabayon -> Vista -> Sabayon -> Kubuntu -> Vista -> Sabayon -> Kubuntu (next time)
Ah, good thing I kept an album of my old desktops on facebook.

No responses yet