Sony has spent the past few months rolling out Android 7.0 Nougat to its Xperia phones, and a growing number of owners say their battery life got worse after the update. An XDA Developers member says the cause is in the firmware’s memory settings and has published a fix for rooted phones, but one part of it deserves more caution than it is getting.
How the Nougat rollout unfolded
Sony moved faster than most Android makers this time. It began pushing Nougat to the Xperia X Performance in November, making it the first Sony phone on the new version, and announced the Xperia XZ update on December 1. The Xperia X and X Compact followed in December, and the Xperia Z5 family started receiving the update after that, later than Sony had first suggested.
| Device | Nougat rollout |
|---|---|
| Xperia X Performance | Began November 2016 (first Sony phone) |
| Xperia XZ | Announced December 1, 2016 |
| Xperia X, X Compact | December 2016 |
| Xperia Z5, Z5 Compact, Z5 Premium | Early 2017, after a delay |
| Xperia Z3+, Z4 Tablet, XA, XA Ultra | On Sony’s eligible list, staggered |
Sources: Sony announcements as reported by PhoneArena and FoneArena; Smart Stock News reporting
The update is a meaningful one. Nougat adds split-screen multitasking, bundled and directly replyable notifications, and an improved version of Doze, Google’s power-saving mode, which now kicks in when the phone is in a pocket or bag rather than only when it lies still. On paper, Nougat should improve battery life, not hurt it.
What owners are reporting
The complaints run the other way. On Sony’s own community forums, on Reddit and on XDA, owners describe phones that lose charge much faster than they did on Marshmallow, including while the screen is off. Several threads point to heavy “Phone idle” and “Android System” entries in the battery statistics, which suggests the drain happens in the background rather than from any single app.
That pattern matters for diagnosis. When one app is draining the battery, the fix is to update or uninstall it. When the drain sits in system processes, the cause is more likely in the firmware itself, which is beyond the reach of an ordinary user.
What XDA found
XDA senior member PDesire looked into the problem and concluded that Sony had miscalibrated the virtual memory values in its Nougat firmware. Those settings control how the Linux kernel underneath Android manages memory: how aggressively it caches files, how much dirty data it lets build up before writing to storage, and how often it wakes up to flush that data.
Poorly tuned values can keep the processor and storage busier than they need to be, which costs power even when the phone appears idle.
The values in the fix each have a specific job. The two dirty_ratio settings set how much unsaved data, as a share of memory, the kernel lets build up before it starts writing to storage, and the two centisecs settings control how old that data can get and how often a background thread wakes up to write it out. Writing in larger, less frequent batches lets the storage chip and processor sleep longer between bursts. The vfs_cache_pressure value tells the kernel how readily to drop cached file information, and laptop_mode, set here to zero, is a Linux power mode the fix leaves switched off. None of these changes touches an app or a user setting, which is why they only take effect through a system script. PDesire’s fix rewrites those values in a startup script so they apply every time the phone boots.
There is a catch. The fix only works on a rooted phone, because the script sits in the protected system partition. Rooting itself can void a warranty, block some banking and payment apps, and on many Xperia models requires unlocking the bootloader, which on some devices permanently removes certain camera and display features. Back up your device before you start.
The steps, with one change we recommend
You need a Sony Xperia running Nougat, root access and a root-capable file manager such as Root Explorer from the Play Store.
- Install Root Explorer and grant it root access.
- Go to /system/etc and make a copy of init.qcom.post_boot.sh before editing it.
- Open the original file and scroll to the end.
- Add the lines below, save the file and reboot the phone.
echo '0' > /proc/sys/vm/laptop_mode
echo '60' > /proc/sys/vm/overcommit_ratio
echo '70' > /proc/sys/vm/vfs_cache_pressure
echo '20' > /proc/sys/vm/dirty_ratio
echo '10' > /proc/sys/vm/dirty_background_ratio
echo '2000' > /proc/sys/vm/dirty_expire_centisecs
echo '3000' > /proc/sys/vm/dirty_writeback_centisecs
The version circulating online also includes two lines that change the msm_thermal driver, the Qualcomm component that slows the processor down when the phone gets too hot:
echo 'N' > /sys/module/msm_thermal/parameters/enabled
echo '1' > /sys/module/msm_thermal/vdd_restriction/enabled
We recommend leaving those two lines out. The first one turns off a layer of thermal protection, and those two lines have nothing to do with virtual memory. Disabling it can make the phone feel faster in short bursts, but it also lets the processor run hotter for longer, which can hurt battery health over time. If the memory changes fix your drain, you do not need them.
If anything goes wrong, restore the copy you made in step 2 and reboot. Give the change two or three full charge cycles before judging it, since battery statistics take time to settle after a reboot and a single day can mislead.
Why a phone maker gets this wrong
Battery problems after a major update are common across Android, not just at Sony. Each manufacturer adapts Google’s code to its own hardware, adds its own software and tunes the kernel for its chips, and every one of those steps is a chance to get something wrong. The more phones a company updates at once, the harder it is to test each combination thoroughly.
For Sony, the stakes are reputational. Its Xperia phones sell in far smaller numbers than Samsung’s or Apple’s, and quick updates have been one of its selling points to enthusiasts. Android rivals are pushing hard on hardware and software alike; Samsung, for example, has just unveiled its Galaxy Tab S3, while Apple fans are already following the expected features of the next iPhone. A fast update that drains batteries undercuts the very reputation it was meant to build.
Before you root: simpler things to try
Most owners should try the low-risk steps first. Check the battery statistics for a single app using far more power than others, and update or uninstall it. Make sure every app is current, since apps built for Marshmallow sometimes misbehave on Nougat. Clear the system cache from recovery mode. And if the drain persists, a factory reset after backing up, though tedious, often fixes problems left behind by an over-the-air update.
Sony also regularly releases firmware updates, and a fix from Sony itself is the safest outcome. If the drain is widespread, the company has every reason to correct its memory settings in a future build.
What happened next
Sony kept updating its line. At IFA in Berlin on August 31, 2017, it unveiled the Xperia XZ1 and XZ1 Compact, which were among the first phones to ship with Android 8.0 Oreo preinstalled, as Droid Life reported. Oreo brought new background limits that restrict what apps can do when they are not in use, aimed at the same kind of background drain Xperia owners were complaining about on Nougat.




