holster or in a bag or a pocket when the light sensor software u201c wakes up u201d step 102 sampling and backlight adjustment begins step 106 with a fast sampling rate 400 ms for the next five samples the first sample received is used to initialize the entire sample window if the second sample is brighter than the first then this value is used to initialize the entire sample window if the third sample is brighter than the first two then it is used to initialize the sample window thereafter the normal sampling rate is one sample every 1 2 seconds step 108 preferably each light sensor sample is actually an average of multiple quick samples taken over a period of about 9 ms more particularly at least 8 adc readings are taken over a 9 ms period so that they can be averaged out so as to increase the reliability of each sample and filter out small variances in ac indoor lighting when the device 20 is pulled out of its holster removed from a pocket or bag etc it is highly likely that the light sensor will be temporarily partially covered by a hand or shirt this means that the first couple samples could be below the threshold for transitioning to dim mode even if the device 20 is operating in the office mode likewise the first couple of samples could be indicative of office mode even though the device is in a bright environment however it is nearly impossible for a brighter sample to be received when the device is in.