Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,750 Members 44,148 Now Online
XDA Developers Android and Mobile Development Forum

SleepSense Beta - sleep cycle monitor and alarm

Tip us?
(Last edited by ash2093; 14th April 2010 at 11:58 PM.)
Member - OP
Thanks Meter 0
Posts: 36
Join Date: Nov 2008
Cool SleepSense Beta - sleep cycle monitor and alarm

Hi All

This is a beta application which monitors your sleep cycle, and sets a gently increasing alarm to go off at up to 30 minutes before your set alarm time (during your lightest sleep phase so that it's easier to wake up fresh). If you are interested in testing it, please download and install the CAB here:

CAB link removed because its a very old version, a much improved version will be released on this thread very soon.

You can click Menu>Export Chart as a JPG image, and Menu>Export CSV to see the raw data. Please include the chart and raw data if you send me a bug report etc.

Method of calculating lightest sleep phase: alarm can go off up to 30 minutes earlier than the set alarm time if you become more alert than you were at the lightest phase of the previous sleep cycle. If alarm does not go off early, as a failsafe it will always go off at the set time. The alarm does not affect any other alarms you may have set, so I would recommend setting some other alarm too as a failsafe.

Developers: I would appreciate it if I could find a keen .NET Compact Framework developer out there to open-source and maintain this project because I don't have any more time to work on this.


All Windows Mobile 5, 6, 6.5 devices which have a gsensor/accelerometer. All resolutions supported. Tested on Touch HD.

- 2010-02-11
+ Improved UI, with volume slider.
+ New alarm music, gently increasing alarm volume and vibration.
+ Sleep time statistics.
+ Start menu icon.
+ Less CPU usage to conserve battery.
- 2010-02-07
+ Fixed bug where device did not wake up to sound alarm.
+ Improved the way the system switches to unattended mode to keep it running in background.
- 2010-02-06
+ Original release.
(Last edited by bigdish; 11th February 2010 at 10:09 PM.)
bigdish's Avatar
Senior Member
Thanks Meter 0
Posts: 131
Join Date: Jun 2007
Location: South Yorkshire
Thanks for your continued work on this.
Original thread
HTC Desire HD
HTC Touch HD
Op Ver

Junior Member
Thanks Meter 0
Posts: 11
Join Date: May 2009
Sounds good, I'll give it a try!
Junior Member
Thanks Meter 1
Posts: 27
Join Date: Dec 2008
Location: Arhus
Nice and thank you, can't wait to try it in the morning
Senior Member
Thanks Meter 33
Posts: 556
Join Date: May 2006
Location: Sydney, AU
awesome i reuqested this a week or more ago, didn;t realise someone else was interested. i'll give it a shot. thankyou!
Nokia Lumia 920 Black
Windows Phone 8 8.0.10211.204
Moto Razr M XT905
Carbon JB Nightly
Internode (Optus AU)

My Blog -

Think and Search before you post!
pablo11's Avatar
Senior Member
Thanks Meter 301
Posts: 1,876
Join Date: Jun 2007
Location: Down Under
Excellent work mate - congrats
Thanks Meter 0
Posts: 46
Join Date: Dec 2005
Can you make the Alarm Up-Down button larger. It is to small for my big fingers.
Thanks Meter 0
Posts: 61
Join Date: Dec 2008
I tried this latest release on my Touch HD last night. I had two bars of battery left and it had run out by the time I woke up in the morning so the alarm didn't go off.
Junior Member
Thanks Meter 0
Posts: 10
Join Date: Aug 2006
Hi Ashfaq,

great work in this short time. Are you going to release the project as open source and e.g. host it on codeplex?
Probably you should reconsider the name of the project or talk to the people from for not running into trouble...


Dtrieb's Avatar
Senior Member
Thanks Meter 44
Posts: 335
Join Date: Mar 2008
Location: @home

On my Omnia (Samsung I900 Omnia) i get an Error Message
if its the time for alarm.

I will post the text later.
Visit my Mobil-Page, and my Fart APP.
My Apps on the Google Play Store:

accelerometer, alarm, gsensor, sleep
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

And the Winners in the XDA Pebble Development Challenge Are…

Almost two months ago, we set out with Pebble to findthree amazing … more

MediaTek Releases Full Kernel Source for First Android One Devices

Those who might have thought that MediaTek wouldnever release working … more

Submitting a Patch to Gerrit – Featuring XplodWild – XDA Developer TV

Not every developer specializes in every area of … more

Learn How to Make a Live Wallpaper all by Yourself

Stillimages can bebeautiful, but some of you prefer to see animations on your screens. … more