Author Archives: Andrew

Dozy Android

I’ve just spent a good couple of hours sorting out a problem with my new phone, which has no good reason to exist. In fairness to Sony, it’s nothing to do with them: the issue sits squarely with Google and yet another "improvement" to Android which turns out to be nothing of the sort.

A watch-based alarm doesn’t work very well for me – my hearing is just not good enough. Seeking to reduce the amount of gadgets I carry, I have therefore for many years relied on phones and their PDA predecessors to fulfil the function of alarm clock, especially when I’m travelling. It’s not a difficult role, and I have not had to complain about it. Until now.

In my normal weekly cycle I don’t have much need for a clock as I wake naturally at about the right time each day. This makes the operation of such a function even more critical, as it has to be absolutely reliable on days which are exceptions, and I don’t get much opportunity to do much advance "testing" of what I assume is something that should "just work". However, I do have the alarm set every day when I’m working away from the home, and although I couldn’t be absolutely sure I was coming to suspect that it wasn’t going off at the right time. The first couple of times I assumed "user error": incorrect settings, volume too low etc., but I had eventually eliminated those, and confirmed the behaviour: the alarm didn’t go off at the programmed time. It went off after I had woken up and clicked the button to wake up my phone’s screen.

This is about as useful as a chocolate fireguard, and about as welcome as a fart in a spacesuit.

A bit of Googling confirmed that the problem is quite widespread. I’ve read stories of people with new phones being late for work or missing important appointments. Others describe a similar problem with other programs including not getting notified promptly of night-time messages or similar: potentially quite a problem for those "on call". Fortunately I caught the problem before it caused me any trouble, but that might not have been the case, as I have an upcoming trip with about 8 flights and several other dawn starts.

The web is full of useless "solutions" like factory resetting the phone, but after eliminating those, I tracked down the cause of the problem. With Android 6 ("Marshmallow"), Google introduced something called "Doze" mode. This is a deep sleep mode which kicks in if the device is at rest, screen off, and no significant ongoing activity like an active data transfer. You know, like it tends to be at night. In this state, the system not only slows down processing, but also suspends the bulk of normal background activity. This includes, for no articulated good reason, suspending timers and related event triggers. So your alarm application doesn’t know what time it is, and doesn’t fire. Your messaging app doesn’t know when to poll for incoming events. Simple, core functions of your smartphone just cease to work.

Allegedly, if you change the code of your alarm or other app to use a "different kind" of timer, that should work, but after testing four or five I concluded that this is just not true, certainly on my phone. In any case, I usually just use the stock Android "clock" app, and surely they would have remembered to update that, wouldn’t they? You can also nominally turn off Doze for selected applications, but as far as I can see it makes bugger all difference.

It turns out that the root problem is that in at least some Android 6 implementations, Doze mode actually disables the underlying operating system events on which the other timers are based. It doesn’t matter how sexy your alarm app is, or whether Doze knows about it or not, if the underlying timers are blocked!

There’s a heap of advice on the web about how to disable Doze for individual apps (tried that, doesn’t work), but not about how to disable it completely. I’d tried all sorts of settings without success. However I finally found a useful little app called Disable Doze, which does what it says on the tin, and turns Doze off completely. Allegedly (according to Google) this would result in my phone discharging its battery at a terrifying  rate and ending up doing a Galaxy Note 7 impersonation, but I can confirm that with Doze off in light use my phone is still only consuming about 10% battery per day. The only noticeable effect so far is that alarms and notifications work again.

My worry is that until Google acknowledge their mistakes, they may come up with another "improvement" which disables this fix. I don’t know what tests Google perform in this area, but they are clearly inadequate. This really is a "0 out of 10" effort, a true "breaking change".

However for now things are looking good, and hopefully this blog will help alert others to the problem and the fix.

Posted in Android, Thoughts on the World | Leave a comment

Normal Service Of This Joke Will Be Resumed Shortly

When I was a lad, there was a joke. It went: "It must have been tough in the old days." "Why?" "They had to watch TV by candlelight." Last night we were just sitting down to dinner and our evening’s Continue reading

Saturday, January 21, 2017 in Thoughts on the World

A "Found" Quadtych

The blog has been looking a bit light on pictures recently. Meanwhile I’m beavering away trying to finish tidying up the Bhutan pics before I’m off to Burma in February. This morning I discovered a series of four similar close-ups Continue reading

Friday, January 6, 2017 in Bhutan Travel Blog, Photography, Travel

A catholic Taste in Films?

I’ve always wondered about the phrase "a catholic taste", meaning "broad". Surely the way in which the Catholic religion (like most others) prescribes and proscribes certain behaviours and materials acts to limit rather than broaden an individual’s tastes? Apparently the Continue reading

Tuesday, January 3, 2017 in Reviews, Thoughts on the World

Mojo Not Within Normal Operational Parameters

I’m not sure I know why, but our leading hardware providers are definitely suffering a distinct deficiency in the Mojo department. Take Apple. I’m really very happy with my 2015 MacBook Pro, even though it was bloody expensive for what Continue reading

Sunday, December 18, 2016 in Galaxy Note, Thoughts on the World

A Splash of Colour

No deep philosophical observations today, but with the weather swinging between cold and misty, and mild and murky, I thought it would be nice to brighten things up a bit. I’m working through the remaining shots from Bhutan, before another Continue reading

Wednesday, December 7, 2016 in Bhutan Travel Blog, Travel

Night-Time Photography with the Sony RX100 Mk IV

Last night was crisp, clear, cold and very still – theoretically ideal conditions for photographing the lights at Albert Dock with reflections in the water. I couldn’t get out any earlier, but did manage to take my Sony RX100 with Continue reading

Wednesday, November 30, 2016 in Photography

Taking the All-Round View

Apologies if it’s been a bit quiet here recently, but I’ve been submerged under a tidal wave of new (to me) technologies, and it hasn’t left much space in this bear’s brain for blogging. In the last month or so Continue reading

Thursday, November 24, 2016 in Photography, Thoughts on the World

Taking the Long View

I’m aware that I’m a slightly lazy photographer. I’m not a great one for pre-dawn starts or rushing out the minute the weather changes, and I do tend to walk around with a single zoom lens on my camera making Continue reading

Wednesday, October 12, 2016 in Photography, Thoughts on the World

Just Get On the Train!, Updated

Regular readers may remember that I classify films and plays according to whether they are about talking about getting on a train (i.e. deep and meaningful journeys into the soul), or actually getting on the train (/boat, /plane, /nuclear power Continue reading

Form vs Function – a Tail :) of Three Mice

Just in case you think some of my recent posts have been a bit anti-Microsoft, here’s one in which (spoiler alert!) they win! Call me old-fashioned, but I very much prefer using a mouse to a trackpad or its relatives, Continue reading

Friday, September 30, 2016 in Agile & Architecture, PCs/Laptops

The One Man

Overall this is a cracking WWII thriller, set around the concept of an Allies break in into Auschwitz to rescue a specific prisoner who holds information vital to the Manhattan Project. Andrew Gross has done a great job of capturing Continue reading