Showing posts with label Suspend. Show all posts
Showing posts with label Suspend. Show all posts

Friday, May 6, 2011

Get the beautiful ubuntu natty running on your Vaio CS laptops

Its been a week since Ubuntu natty got officially released. I was running natty since when it was alpha. Since i had issues like the touch-pad freezes, and also since i wanted try the gnome-shell and screwed the install, i decided to do a fresh install.

These are the steps i went through to get a beautiful natty 32bit running on my sony vaio CS17G.



1. Installation: Download Ubuntu natty free from the Ubuntu site, here.
                         Burn the ISO file with a ISO burning software to a CD.
                         Boot with the CD into a live session, to test it, for me i was booted to a Ubuntu classic desktop, without unity. everything worked fine.
                     
                        Go ahead and press on install Ubuntu, If you have partitioned hard disk with gparted, you may run into the issue of installation getting stuck at copying files stage, for ever.

                        So while installing to partitions done with gparted, selecting formatting option, overcomes this problem and installation proceeds without a hitch.

2. Reboot:       After the successful installation, you will be prompted to reboot. I landed in trouble again when natty refused to boot and it stops permanently with a black screen and a cursor on the top left corner. I had to boot with kernel options noacpi nolapic. This resulted in a successful boot into a natty ubuntu classic desktop with a message that unity is not possible because of driver issues.
                     
                        The fresh install without the nvidia proprietary drivers results only in Ubuntu classic Desktop without unity. But the Fn keys work very well, both for volume and brightness, and the AV Mode key brings up Banshee media player.

3. Nvidia:       If you want unity desktop you have to install nvidia drivers. Go to additional drivers option, which will search for the available nvidia drivers, install nvidia current form the available drivers, reboot.

4. Unity:       I was rebooted to a beautiful natty desktop with unity running. But i lost the Fn key for brightness after installing the nvidia drivers. Volume keys worked fine. Av key stopped working. To make brightness keys work again, i had to install nvclock.  Look here for the instructions on how to make this work.

5. Updates:  Install all the available updates. Also install some of the essentials, like ubuntu-restricted-extras from the ubuntu software center. Also install most useful apps like vlc, conky, chromium, gimp, cheese etc. Look here.

6. Conky:   To get a beautiful conky, shown in the screenshot above, look here for instructions.

7. Suspend: Suspend works well, haven't tested hibernate yet. But the problem is that when you wake from suspend you will loose the keyboard. For this i had to use atkbd.reset option to the kernel while booting. This mitigates the problem of loosing your keyboard after suspend.
                    So my kernel options while booting are i8042.nopnp noacpi nolapic atkbd.reset.
                    I found that these options make my vaio cs work reasonably well.

8. Kernel:   Without noacpi nolapic kernel options it will not boot many a times, though it boots without these options, randomly one in 5 to 6 tries.
                   i8042 option seems to help with the touchpad craziness. It seems have stopped the freezes and make touchpad more usable.
                   atkbd.reset is required for the no keyboard after suspend issues.

You might not have the touchpad at the login screen with atkbd.reset option, use keyboad to login. On reaching the desktop press alt+F2, select terminal, and from the terminal do
                  sudo modprobe psmouse.


Randomly touchpad might act weird especially after waking up from suspend, for that do
                 sudo rmmod psmouse

                 sudo modprobe psmouse

9. Camera: Webcam works only with the cheese webcam booth.

10. So now you have a beautiful, stable, working Ubuntu natty running on your Sony Vaio CS laptop.
cheers!!

Sunday, August 1, 2010

Finally suspend works on Sony Vaio CS running Ubuntu 10.04

Yes finally got suspend to work on my Sony Vaio CS, running Ubuntu 10.04 64 bit edition.

  • sudo gedit /etc/default/grub. Look for the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and change it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash atkbd.reset". Save it.
  • sudo update-grub.
  • Reboot.
  • Now when you want to suspend, if you have a SD Card mounted, unmount it first.
  • Suspend should work now. cheers.

Tuesday, May 4, 2010

Bluetooth & suspend problems solved Macbook

It is a well known problem that on apple macbooks, whenever your battery lifetime is nearing the end or the battery is not functioning well, you will face these two problems.
  • The bluetooth icon on the panel fades and it says bluetooth not available.
  • And when this happens suspend will not work and when you close the lid, you can still hear the fan running noise intermittently.
These issues are some how related that if you have a battery related problem your bluetooth disappears and when this happens suspend will not work.

Apple says to reset the SMC, see here.
But this may not work for most as this may be a hardware problem.

I faced the same problem and after heavy googling was all set to take apart my macbook to set right the problem.

But since i replaced the battery the problem rectified on its own.
Initially after the replacement the problem persisted. But gradually i started getting the bluetooth available intermittently and whenever bluetooth is available suspend worked fine.
Later i was getting the bluetooth not available problems intermittently.
After nearly two months of new battery it seems now that the problem has disappeared completely. Now bluetooth is always available and suspend works fine.
So the fix is : Replace your battery if nothing else works.

Saturday, March 13, 2010

Ubuntu 9.10 on Sony Vaio VGN-CS17G

Hi, a little more than a month left now for the release of Ubuntu Lucid lynx i,e 10.04. I have been using ubuntu for the last 5 years,earlier on my previous sony vaio PGN-K115Z and now on my new vaio CS17G for the past 6 months. I have tried hard to get the most of my lappy in ubuntu. It is the time to list what has worked and what did'nt, since i want to move to ubuntu lucid beta ASAP.

What did'nt work:
1. Inbuilt microphone
2. Suspend works but no keyboard on waking up.
3. Media keys do not work.

What works:
1. Fn keys for volume control works including mute, up and down out of the box.
2. Fn brightness keys worked after tweaking, to get them work with nvclock
3. Inbuilt webcam works with cheese but not with camorama.
4. wifi works out of the box
5. Hibernate works out of the box.
6. Headphones work

Most of the other things worked.
For me, the one which caused much trouble was suspend. It is anoying to hibernate, as it takes more time to wake up than booting time. So you can actually shut down and boot everytime faster than hibernate

I have heard that the new kernel in lucid has rectified the problem of suspend. That is good news and that it is very fast in booting i,e under 10 secs boot.

I will report back when i install lucid beta on this machine.