Disable screensaver UBUNTU

Solution 1:

Edit /etc/X11/xorg.conf file using the following command

sudo vi /etc/X11/xorg.conf

and add the following lines

Section “ServerFlags”
#other options can go here
Option “BlankTime” “0″
Option “StandbyTime” “0″
Option “SuspendTime” “0″
Option “OffTime” “0″
EndSection

Save and exit the file

Solution 2

Edit /etc/X11/xorg.conf file using the following command

sudo vi /etc/X11/xorg.conf

This effectively disables power management on your monitor Settings

Section “Monitor”
#other options can go here
Option “DPMS” “false”
EndSection

Save and exit the file and restart your machine

 

Solution 3

gconftool-2  –set «/apps/gnome-screensaver/idle_activation_enabled» –type boolean false

 

Solution 4

gnome-screensaver-command –inhibit


Solution 5

gnome-screensaver-comand –poke

 

One of all the above should work in your UBUNTU (I hope…)

HowTo reinstall – restore GRUB in UBUNTU

After a windows fresh install, the windows setup decided to drop MBR to put its stuff in. 
This is an old trick, but udev added a little complexity, so let’s give it a try. First boot on a Ubuntu CD, open a console and run:
(here linux partition is sda2, second partition on a sata disk)
mkdir /media/mnt mount /dev/sda2 /media/mnt/ mount -o bind /dev/ /media/mnt/dev chroot /media/mnt => now you are on the destination disk, so you can install grub. grub-install /dev/sda
Of course you can do a lot more stuff, like changing fstab etc etc .. but the trick is to mount + mount bind + chroot