New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
N900 and Droid 4 power management #317
Comments
On Maemo Fremantle it was /etc/pmconfig with settings for kernel power management. |
|
I don't think we need to worry too much about what Fremantle does. The init script just needs to configure autosuspend via |
What Tony made seems to do the job, and it's already a neat and simple init script. |
I'm just analyzing how it was done on Fremantle. Thought, you will be curious too. |
Sure, more info is always good. |
If it's a problem for systemd-as-init, we could also create the script in /usr/sbin and have the init scripts just call the script. |
I have issues running droid4-pm. I don't seem to have /sys/kernel/debug/pm_debug. So it fails at line 108 |
From IRC logs: |
On my Droid 4 I am currently seeing about |
|
I tried power management on Droid4, 20200323 version. And battery lasted more than 9 hours, but less than 17. That was without modem and without any tweaks. If 146mW power consumption is right, I should be getting 49 hours of battery life or something. (IIRC battery is 1.8Ah, at 4V and assuming 146mW consuption:) 1800*4 / 146 |
So what I did was two things:
|
and of course, you need the MCE patches that also enable DPMS on the X11 screen -- will try to get that all pushed and built tonight. |
So I did three things, really (with DPMS as well). I did keep wifi on. |
I can get the device to idle with modem on at about 65mW now. This should be the same for all Maemo Leste users. Let's close this ticket and open ones for specific power management problems. |
The Motorola Droid 4 and the Nokia N900 have OMAP SoCs in there with sophisticated power management.
We should try to get that working well on the devices.
Tony wrote this OpenRC init script for the Droid 4: https://github.com/tmlind/droid4-pm/
With minor changes it can mostly work on the Nokia N900 too.
We probably want to mount debugfs via /etc/fstab for now (cc @parazyd )
I tried some of this on the N900, and on 5.5 with minimal config and almost no modules loaded, it works well. But certain modules make the device not go into power saving.
The droid4-pm lists a few of those modules. On the N900, the touchscreen module (at least on mainline) also prevents any entering of deeper sleep states. Perhaps the PowerVR changes that we have do something like that as well. I am slowly going to add modules and userspace to see if I can come up with a list of all things that block idle.
I will provide some instructions for the N900 later here on this ticket.
@freemangordon - any preferences for how we set up kernel-level pm? Stuff like timeout in ms, control to auto, that kind of stuff. It feels to me like a init script could do the trick, but maybe we want it in userspace instead?
The text was updated successfully, but these errors were encountered: