[Desire Android Development] Saenic:
The Rom is very cool but wenn i perform certain actions (e.g. activating Sleep Tracking in "Sleep as Android") I get a reboot.

Logcat says this:

11-08 10:03:45.648: W/dalvikvm(1221): threadid=22: thread exiting with uncaught exception (group=0x4001d5a0)
11-08 10:03:45.648: E/AndroidRuntime(1221): *** FATAL EXCEPTION IN SYSTEM PROCESS: PowerManagerService
11-08 10:03:45.648: E/AndroidRuntime(1221): java.lang.ArithmeticException: divide by zero
11-08 10:03:45.648: E/AndroidRuntime(1221):	at com.android.server.PowerManagerService$BrightnessState.setTargetLocked(PowerManagerService.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at com.android.server.PowerManagerService.updateLightsLocked(PowerManagerService.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at com.android.server.PowerManagerService.setPowerState(PowerManagerService.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at com.android.server.PowerManagerService.setPowerState(PowerManagerService.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at com.android.server.PowerManagerService.setPowerState(PowerManagerService.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at com.android.server.PowerManagerService.access$3600(PowerManagerService.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at com.android.server.PowerManagerService$TimeoutTask.run(PowerManagerService.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at android.os.Handler.handleCallback(Handler.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at android.os.Handler.dispatchMessage(Handler.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at android.os.Looper.loop(Looper.java)
11-08 10:03:45.648: E/AndroidRuntime(1221):	at android.os.HandlerThread.run(HandlerThread.java)
11-08 10:03:45.648: D/Process(1221): killProcess, pid=1221
11-08 10:03:45.658: D/Process(1221): dalvik.system.VMStack.getThreadStackTrace(Native Method)
11-08 10:03:45.658: D/Process(1221): java.lang.Thread.getStackTrace(Thread.java:745)
11-08 10:03:45.658: D/Process(1221): android.os.Process.killProcess(Process.java)
11-08 10:03:45.658: D/Process(1221): com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java)
11-08 10:03:45.658: D/Process(1221): java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
11-08 10:03:45.658: D/Process(1221): java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
11-08 10:03:45.658: I/Process(1221): Sending signal. PID: 1221 SIG: 9

---------- Post added at 10:18 AM ---------- Previous post was at 10:10 AM ----------

You need to know, which Partition Layout you got. If your Device is S-OFF, it should report the partition type in the first line when you shut down your Phone and then hold power + vol down.

Your sdcard should have an ext partition (even for MIUI its required), if not then create one Ext4 with Amon Ra, and align partitions with this

http://www.kimithemes.net/Extra/Alignment_Cool_2.zip

If you have CM7 r2 HBOOT then just put the Rom on your sd-card, full wipe, turn of verification and flash.

If you have stock Bravo (means you didn't modify your partitions) or are still S-ON then also put Stock_hboot.zip on your sd-card and flash it directly after the rom before the reboot.