When I finished setup everything I need on windows, and peek back to ubuntu.
Everything works. Damn it !!!
The story begins that I would like to buy a second monitor for my laptop.
I try to figure out how to make it work on ubuntu with my NVIDIA graphic card with a lot of methods I could find on the Internet.
I try to install nvidia-current, nvidia-current-updates, nvidia-current-dev, nvidia-173, nvidia-319, etc., but nothing works in my case.
Moreover, some package gives my ubuntu a black screen of death.
I also try to download an official package from NVIDIA website, but I could not finish installation. That installation told me that I have to disable the nouveau driver that is in my machine. I try put it into a blacklist, but it does not works, so I set it back.
After give up with ubuntu and try to install every software I needed on windows, and I peek back to ubuntu to get some files. Everything works in a couple of minutes !! I do not know what is the real cause of the problem, so everything I note here is just for myself for using in the future ( I hope ). However, if it works for your system I will be appreciate.
First thing I do today is uninstall all the nvidia package
$ sudo apt-get purge nvidia-*
Modify the xorg file a little bit. Note that here I commented out the resolution of the xorg file (# Virtual 1024 768).
I post my whole xorg file here. For the one who is not familiar with ubuntu, use it with care. It is very dangerous to change xorg file without any knowledge.
</pre> Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" HorizSync 28.0 - 33.0 VertRefresh 43.0 - 72.0 Option "DPMS" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" #Virtual 1024 768 Depth 24 EndSubSection EndSection Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 # commented out by update-manager, HAL is now used and auto-detects devices # Keyboard settings are now read from /etc/default/console-setup # InputDevice "Keyboard0" "CoreKeyboard" # commented out by update-manager, HAL is now used and auto-detects devices # Keyboard settings are now read from /etc/default/console-setup # InputDevice "Mouse0" "CorePointer" EndSection Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" Option "NoLogo" "True" EndSection <pre>
Stop the lightdm service
$ sudo service lightdm stop
and Restart the gdm service
$ sudo service gdm restart
At first my login screen and unity side panel are on the output display tv, but when I disabled my tv ( using System Settings > Displays ), they can recognized my laptop as main screen.
NOTE that I can use resolution 1280×800 on my laptop, and 1920×1080 on my extended screen, using the ubuntu that is stored in the external drive connected with machine using USB-2.0 without any lag. ( At first, I though USB-2.0 is not fast enough, so my laptop is lag when connected to the high-resolution screen, but it is not. )
That’s it. I just note it here perhaps this will be useful for my future.