racoma.com.phJ. Angelo Racoma on technology, economics, writing, problogging, and getting things done

  • Home
  • About
  • Archives
  • Consultancy
  • Contact

Subscribe to Articles

The Thing With Blogging About Linux (a.k.a. Tweaking ACPI on Ubuntu on my Compaq Presario V2000)

Author: J. Angelo Racoma Category: Blogs and blogging, software, technology Tags: acpi, compaq, fix, Hacks, laptop, linux, operating-system, OS, presario, ubuntu Views: 11756

Friday
Jul 27, 2007

If you want to skip the long story and go straight to the fix, click here.

I’ve been a Windows guy for most of my computing life (I have used DOS, of course, then desQview on top of that, and then Windows 3.1 onwards). Then I got hooked on the Mac. Since then, my computing was split between Windows and OS X, with the Mac dominating sometimes, and PC the rest of the time. When I got my PC laptop back from the service center (with a lot of parts being replaced at the tail-end of warranty period) I shifted my preference toward PC. But I wanted something more, and Windows XP just didn’t cut it.

Sure, it was stable (as how I usually build up my machines), but after a year of every day wear and tear, XP was starting to slow down.

So I took the plunge and installed Linux on My Presario V2000.

It’s not actually my first time to explore Linux, as I may have mentioned before. I used to use Linux on my work machine back in the corporate world (cost saving measures, and because some tech companies tend to have this preference for open source). I tried running Ubuntu on all my laptops so far using the Live distribution CD (from 5.10, to 6.06 LTS, and now 7.04, a.k.a. “Feisty Fawn”). I even ran 6.06 on my PowerBook the first time I got it, since the pre-installed OS X release was 10.1, and it didn’t support some of my devices, such as the Cardbus wireless adapter. But that’s not the same as actually installing it and using it as your main OS.It’s only now that I’ve committed Linux to my laptop.

So here are some thoughts about blogging on Linux, and Linux in general.

A quick comparison

First off, a comparison among Windows, Linux and the Mac, from my perspective. That means someone who’s not really a hardcore hacker, and someone who’s not exactly an idiot, either. I’m an enthusiast who loves to explore, but I don’t have the time to do uber-serious tweaking. I just want something that works.

Windows XP – Seems to be a reliable and stable OS–that is, if you know how to secure yourself from malware. XP is solid as a rock as long as you prioritize security, meaning you’ve installed a good Antivirus (AVG recommended), anti-spyware (such as Spybot S & D), and you let auto-update do its thing. Of course, there’s the human aspect, so security doesn’t preclude your being victim to social engineering attacks.

Don’t even ask me about Vista (I’ve used it, but I’m not about to install Vista on any of my computers anytime soon).

OS X – It just effin’ works. I hope that’s enough said, but then again to the uninitiated, OS X was supposed to be designed from ground up by Apple to work 100% well with Apple hardware. So there should be no glitches, hardware incompatibilities, and other such difficulties you might expect with an OS of wide distribution like Windows.

The Mac is supposed to be simple and straightforward enough for a dummy user to use. But it also accommodates the more advanced users–it’s a UNIX-like operating system, after all. I’ve had my share of command-line hacking and tweaking via Terminal, myself. So basically, it’s a solid, secure UNIX-based operating system with great eye candy for a user interface. Actually, the GUI is not all eye-candy. There are usability and efficiency concerns, too. Like Expose is not only supposed to be a beautiful way of switching across windows. You can make your workflow more productive and efficient with it.

Linux – It’s the OS for enthusiasts. Frankly, I’ve tried a handful of distributions in my life (including Red Hat, Mandrake / Mandriva, Slackware, and even locally-developed Bayanihan Linux, and as well as several live CD distros like Damn Small Linux and Knoppix), but none have been desktop- and laptop-ready as Ubuntu.

By this, I mean Ubuntu is the only distro I’ve encountered so far that a user can just pop into his computer, install, and run without much trouble.

Of course, this is relative. Sure, you will still encounter some incompatibilities, and you still have to tweak configurations and install patches. But compared to other distros, this one is less of a hassle. Great thing with most distros is that as long as you’re online you could download or install updates straight off the web (like with apt-get). You’ll have to spend some time searching for fixes to problems or issues, though.

I could go on and on, but that would be too much rambling on my part (and something that I would rather not do, as you would read further on).

Blogging about Linux

Now the thing with using Linux is that you would inevitably have to get online to read up on blogs, forums, bug reports, and other such online resources. That’s because you will encounter some glitches one time or another. And these are usually fixed either by updating your OS, or applying fixes/patches, or fixing something that doesn’t work natively–meaning a hardware incompatibility or unsupported hardware/devices.

For instance, I was really amazed by how Ubuntu Feisty got to detect all my hardware, including the built-in Intel Pro 2200BG wireless card. On Windows, I had to download and install drivers from Intel before this worked (silly, eh?). Same with audio and video drivers. Ubuntu worked like a charm when I first ran it. Windows XP needed specific drivers for the Intel 915GM chipset for video and the sound, and these I had to download from HP and Intel.

So here’s an observation I have with bloggers who blog about Linux (I’m generalizing here). Most of the time, the posts are about:

* Comparison between their experiences with Linux and other OSes, like Windows.
* How-tos, hacks, and fixes, like how to make incompatible or unsupported devices work.
* Bashing other OSes, or telling the world how better off they are with Linux than other OSes.

Okay, I guess I’ve adequately met most of these criteria. Now on to the fix.


ACPI and Network Manager Fix

While Ubuntu was generally able to detect my hardware and use the appropriate drivers (where Windows failed to do automatically), I still faced several issues. One, whenever I woke up the laptop from sleep, my wireless networking will not always turn on. In fact, sometimes, Network Manager would just stop working, and I would have to restart the computer just to get WiFi and wired networking back on.

I added a few scripts that forced Network Manager off before sleeping and forced it on again during resume. Here are the files I added (based on this fix on the Ubuntu forums):

/etc/acpi/suspend.d/05-network-manager.sh

#!/bin/sh

dbus-send --system \
--dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \
org.freedesktop.NetworkManager.sleep

And,

/etc/acpi/resume.d/91-network-manager.sh


#!/bin/sh
dbus-send --system \
--dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \
org.freedesktop.NetworkManager.wake

I made sure to make the files executable by running:

sudo chmod +x /etc/acpi/resume.d/91-network-manager.sh

and

sudo chmod +x /etc/acpi/suspend.d/05-network-manager.sh

I also had to edit /etc/default/acpi-support to include the following line, so the Intel Pro 2200BG driver would be enabled upon resume after standby:

MODULES="ipw2200"

Then another problem I noticed was that while my laptop LCD blanked when idle, the backlight would turn on after a couple of minutes, and stay this way until the computer was put to sleep or when the screen was awaken . This was so, even when the LCD had actually blanked out. I try manually turning off the LCD backlight using the command

xset dpms force off

but I still experience the problem–backlight turns on after a few seconds. Same if I substitute “off” with “suspend” or “standby.”

I scoured the web for a week until I found a fix that worked. Apparently, battery events (such as charging, full charge, switching to and from AC adaptor power) reported by the system caused the backlight to turn on. Using the NoPM option prevents these events from being misinterpreted (okay, not really a technical explanation, but it’s something like that).

The fix involves adding this line to /etc/X11/xorg.conf to add the following line under Section “ServerLayout”:

Option "NoPM" "yes"

I’m actually in doubt as to what this exactly does, since the X.org manual just says the following about “NoPM” “Yes”:

Disables something to do with power management events. Default: PM enabled on platforms that support it.

How descriptive, eh? At least it says the option has something to do with power management events, some of which–namely the battery events like charge update and power supply changes–were causing the backlight to turn on.

If you’ve been experiencing the same problems, I hope these fixes could help. For reference, my machine is a Compaq Presario V2617TS, with a Celeron-M 750 processor, Intel 915GM chipset, and an added Intel Pro 220BG mini PCI wireless card, DVD-RW drive (all of which work with Ubuntu 7.04).

  • Tweet
  • "&title=""">
J. Angelo Racoma is a technology journalist and blogger. See more of his blog posts here at racoma.com.ph, commentaries at racoma.net, and Twitter feed at @jangelo.
Share:
image image image image

Comments via Facebook:

Comments


Click here to cancel reply.

Comment Form

Laptop Care: Cleaning my Laptop Keyboard
My Votes for the Top 10 Emerging Influential Blogs

About This Blog

I'm a technology blogger and journalist. I contribute to CMSWire and TFTS. I also run a content writing and VA service at WorkSmartr.com.

Do check out my profile and resume to learn more about me.

Please feel free to leave a response to any of my articles, using the forms provided at the bottom of each post.

Subscription

If you have an RSS reader, you may add my feed to your subscriptions. You can also subscribe to updates by email.

Quoting and License

In case you would like to quote, cite, or refer to articles I have written here, please refer to my site license page, for information on fair use and copyright. You can also refer to my comment policy for any questions regarding copyright and ownership of comments by readers. For media and blog interviews, please refer to my interview policy.

I hope you enjoy your stay!

Blog hosted by AccuWebHosting.Com - Leading Windows VPS Hosting Provider.

Search

Summer Savings! $7.49 .com

Recent Comments

  • reynald on Globe Super Combo 20 offers 1-day unlimited texting plus 50 minutes voice call
  • engelbert on Is Globe’s Supersurf unlimited Internet promo really “unlimited”?
  • Dane on Smart Bro Plugit Prepaid Kit Review
  • Jinai on Globe Super Combo 20 offers 1-day unlimited texting plus 50 minutes voice call
  • pat ramirez on Globe Super Combo 20 offers 1-day unlimited texting plus 50 minutes voice call

Recent Posts

  • Twitter, China Censorship & Why Everything Seems to be Made in China
  • Microsoft to Merge Mobile, Desktop Operating Systems With Windows 8?
  • Windows Phone 7.5 Mango is Out, Samsung & Intel Release New Mobile OS; Microsoft to Collect Android Royalties & More Mobile News
  • Essential Apps for the Mobile Worker [Check Out Our Suggested Apps for iPhone, iPad, Android & Other Important Online News, Such as SSL Security, HTML5 App Creation & Linux]
  • Adobe Flash Now Works on iPhone, iPad Through Flash Media Server 4.5

Projects

  • Green Liter
  • Star Tripping
  • Study Digital Photography
  • Study Driving
  • Technology & Computers – Top Blogs Philippines
  • Work Smartr

Resources

  • Free Twitter Followers
  • Las Vegas Discount Shows

  • email hosting.
  • colocation hosting.
  • windows hosting.
  • coldfusion hosting.
  • asp hosting.
  • Audi Car Technology Upgrades to Consider

More Resources

  • Free Mouse Cursors
  • Mobile OS

Copyright 2012 racoma.com.ph - All Rights reserved.

Wordpress theme by: WPUnlimited