Wednesday, June 22, 2011

How to disable monitor standby in Linux

To check if your video card support DPMS just run
xset q
and see the result:
You should get something similar to this output:
DPMS (Energy Star):
Standby: 1200 Suspend: 1800 Off: 2400

DPMS is Enabled
Monitor is On

To disable these settings just run:
xset dpms 0 0 0

Or disable DPSM with
xset -dpms

Run again
xset q
to check the new settings

If you to make these settings permanents just add these rows to your xorg.conf

Section “ServerFlags”
Option “blank time” “0″
Option “standby time” “0″
Option “suspend time” “0″
Option “off time” “0″
Option “dpms” “false”
EndSection

Thursday, January 20, 2011

How to Automate the Disk Cleanup Tool in Windows XP

Open a command line window, then launch Cleanmgr.exe /sageset: n to choose the clean-up option. The n variable can be a number from 0 to 65535. When finish press the "Ok" button.
The command Cleanmgr.exe /d C: /sagerun: n perform a full clean-up of the c: drive with the options you set previously.

Now you can easily schedule this operation with a simple cmd file.

Thursday, January 13, 2011

VMWare Issue "Operation Failed Since Another Task Is In Progress"

You get this issue qhen a Vmachine is frozen. It's a snapshot issue. To fix this without rebooting the ESX server, you just have to kill the VM process via command line.

  • Login with SSH into the host running the frozen vmachine
  • The command
    cat /proc/vmware/vm/*/names
    shows you the list of the running VM's on the host. Write down the vmid of the frozen vm
  • The command
    less -S /proc/vmware/vm/vmid_frozen_vm/cpu/status 
    shows you some stats about the vm. Scroll to the right with the right arrow key to get the vm id group (i.e. vm.1760). Write down the number after "vm."
  • The command
    /usr/lib/vmware/bin/vmkload_app -k 9 vm_id_group
    unlock the vm and power off it. In a while you'll be able to run it again.