Skip to content

Dirk Mittler's Blog

A Journal of my Ongoing Experiences.

8°C
Wind: 21km/h NW
Broken Clouds
Humidity: 42%
Montreal, according to OpenWeatherMap
Sat
6°C
Sun
6°C
Mon
13°C

Weather Widget by interconnect/it

During very bad weather, this site can go down. If so, please try again later.

Tags

  • Android
  • Apache
  • Bitcoin
  • DCT
  • Debian
  • Debian Stretch
  • Desktop Compositing
  • Downtime
  • DynDNS
  • FS Corruption
  • Future Downtime
  • GPU
  • HBS-750
  • IPv6
  • KDE
  • Kernel Update
  • Linux
  • Linux Laptop
  • memcached
  • MP3 Compression
  • MySQL
  • OpenGL 3
  • OpenVPN
  • Package Manager
  • Pixel C
  • Power Failure
  • PulseAudio
  • Quantum Mechanics
  • Reboot
  • Roku
  • RTL8723BE
  • Samba
  • Sound Compression
  • Successful Update
  • System Update
  • Teredo
  • Unattended Upgrades
  • Update
  • Upgrade
  • WiFi Disconnects
  • WiFi Problem
  • WordPress
  • WordPress Plugins
  • WordPress Update
  • X-Server

Total Hits

1265690
Total Hits

62117
Unique Visitors

Most Directly-Viewed, Individual Posts

  • One reason Why, It is Difficult For Me to Guess, at the Variable-Length Encoding of numbers, Chosen By Other People (29,940)
  • The Possibility of a Side-Register (25,031)
  • I can offer a sound-compression scheme that I know will not work, as a point of reference. (22,553)
  • Testing the Focusrite Scarlett 2i2 external sound device, with my Samsung S6 Smart-Phone (4,938)
  • Pixel C Keyboard Pairing Problem – Solved. (2,103)
  • Atomic Game Engine Installed – twice (1,516)
  • Possible Solution to ‘Dropbox Missing Systray Icon’ under KDE (1,171)
(Hit Counters Installed March 5, 2016)

Recent Posts:

  • Why the Atmosphere is Thermally Asymmetric.
  • One way, in which my earlier description of CUDA was out of touch, with the real-world implementation.
  • Alpha Blending and Multisampling Revisited.
  • Photon Polarization / Superposition of States
  • How Accuracy-Of-Prediction may not be Adequate Proof.
  • High Wind-Gusts For now
  • How NOT to control our Gaming Keyboards, from a Linux computer.

Recent Comments

  • One way, in which my earlier description of CUDA was out of touch, with the real-world implementation. | Dirk Mittler's Blog on “Hardware Acceleration” is a bit of a Misnomer.
  • Alpha Blending and Multisampling Revisited. | Dirk Mittler's Blog on Multisampling
  • Alpha Blending and Multisampling Revisited. | Dirk Mittler's Blog on Alpha-Blending
  • Dirk Mittler on How to Add a Web-browser to GNURoot + XSDL.

Archives

Categories

Pages

  • A summary of my Site
  • About the Dates / Modification Time-Stamps
  • About The Translations – And The Missing Pieces Of Text
  • Communication Through Entanglement?
  • Permalinks
  • Posting Comments
  • Sample Artwork Made With FOSS
  • Some Nastiness that had taken place, with my Blocks Of Code
  • The Most Directly-Viewed, Individual Posts
  • The Superfluid Fountain

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Tag: Alarms

Why Android Devices Consume More Power, Until They Are Rebooted

One of the many misconceptions which people have about Android, is that it is another flavor of Linux, because it uses the Linux kernel. Android is not Linux, and for that reason, also does not have ‘‘. is a Linux daemon, which allows for the background scheduling of services, that are kept in non-volatile memory. Android does not have this.

The background scheduler which Android uses, is based 100% in volatile memory. What this means is that a given app needs to have run at least once in any given session – i.e. since the last reboot – in order to place an ‘Alarm’ in the background scheduler, for itself to be woken again, according to the clock of the Android device.

This fact can confuse people, because additionally, certain apps have it as their privileges, that a part of themselves should be run once, when our Android device first boots. I.e., if the programmer decides that his app should run in the background, even if a user has never launched it, then he must first arrange to have a part of that app run once, every time the device boots, so that that part of the app can register scheduled re-awakenings of itself afterward.

But what that also means, is that if a user has 200 apps installed as I do, only some small subset of those are set to run when the device is rebooted. Facebook and Twitter happen to be among those. But after that, as I run more and more of my apps in a given session, more and more alarms get registered, so that the device is in standby potentially less and less, and so that my battery consumption also gets worse.

Further, many people like for their apps to give them push notifications. Well, as we run these additional apps, they also re-register with whatever server they are supposed to receive push notifications from, which means that the apps are receiving more push notifications as the session continues. And then our CPUs stay in low-power mode for less and less time.

So it is a good idea, to reboot our devices from time to time, for a number of reasons, not just for the reason I explained here.

Also, Android has a separate list of Accounts, that are specifically listed in the System Settings. Android will make sure when it boots, that all the accounts there which are set to sync, are in fact registered. A longer list of accounts also means greater battery consumption. In fact, I am sure that Android will periodically rescan the accounts there, to make sure that their connection to the server is ‘alive’, as our device disconnects from and reconnects to the network.

Dirk

 

Posted on December 22, 2016December 22, 2016Tags Account Sync, Alarms, Android, Android Accounts, Battery Consumption, cron job, Linux, Non-Volatile, Push Notifications, Reboot Phone, Scheduled Execution, Scheduler, Volatile1 Comment
Proudly powered by WordPress