Archive for April, 2008

Ubuntu 8.04 on my R60 and it’s problems

Saturday, April 26th, 2008

Ubuntu (Linux distribution)Image via WikipediaYesterday i dist-upgraded my ubuntu 7.10 to 8.04 and just after that i noticed that the machine doesn’t resume from suspend-to-RAM. The next thing i noticed is xine crash just after start with a segfault. That brought me to try glxinfo which crashed too.

My conclusion was, “Damn ATI and their borken drivers!”, so i tried to install it mannully. After dozens of retries i have chosen the right solution:

- $ sudo apt-get remove xorg-driver-fglrx xorg-driver-fglrx-dev fglrx-amdcccle fglrx-kernel-source

- $ sudo dkms uninstall -m fglrx -v 8.476

- $ sudo dkms remove -m fglrx -v 8.476 –all

- $ sudo apt-get remove dkms

- $ sudo ./ati-driver-installer-8-3-x86.x86_64.run (install it without creating packages)

- $  sudo /etc/init.d/gdm restart

And enjoy…

Ah … and BTW, it seem to fix the resume from suspend problem… :)

C coding tip

Friday, April 11th, 2008

There’s nothing wrong with having 6 lines more in your header files even if you don’t need them right now.

You wil maybe spare a lot of time debugging build/linking problems in the future with them.

#ifdef __cplusplus
extern “C” {
#endif

#ifndef YOUR_HEADER_
#define YOUR_HEADER_

int main(int argc, char ** argv) {

}

#endif 

#ifdef __cplusplus
}
#endif

This is needed if you want to use your lib in C++.