1. With the device turned off, press and hold the VOLUME UP and VOLUME DOWN buttons, then briefly press the POWER button.
2. Continue pressing the VOLUME UP and VOLUME DOWN buttons until you see this message on the screen:

3. Release the VOLUME UP and VOLUME DOWN buttons.
4. Press the VOLUME UP button to perform the hard reset, or press any other button to cancel the reset.
http://www.hardreset.eu/htc_touch_diamond_2_hard_reset_soft_reset_en.html
sudo add-apt-repository ppa:ubuntu-boot/ppa
sudo apt-get update
sudo sudo apt-get dist-upgrade
http://www.ubuntugeek.com/ubuntu-tip-increase-your-boot-times-with-ubuntu-boot-in-karmic.html
HKEY_CURRENT_USER\ControlPanel\BackLight\AutoDeviceLockEnable=1