Add android-like governors to any Linux on PC

1

I was looking for a better way to get the most of a laptop on Ubuntu or any Linux distro. In Android rooted phones, we can add CPU governors to the kernel in order to have "smart governors" taking advantage of the multi-core architecture and the downclock abilities of a CPU. These governors can give the user the best user experience while keeping the lowest heating/power consumption. Unfortunately, I can't find anywhere if there is a possible way to get one of those "android governors" to work with computers Linux Distros.

More about :

PS: I am fully aware of the archicatural difference between ARM processors and x86 and others, latest x86 processors have features like p-state for example that are somewhat like what Arms are offering.

Tarek Jellali

Posted 2014-07-30T09:30:20.650

Reputation: 136

Answers

1

I just browsed the documentation, so not an expert. But your concerns about x86 vs ARM are irrelevant. Governors set policy, they don't execute it. That's the job of the CPUfreq driver. Your laptop should already have a suitable driver, for sleep purposes.

I.e. you should be able to compile any "Android" CPU governor for x86 and have it talk to your CPUfreq driver.

MSalters

Posted 2014-07-30T09:30:20.650

Reputation: 7 587

Yes, I already know about that since as you explained, we can compile those governors for the two architectures (and I think it's obvious because there are both android for ARM and x86 tablets/phones). What I find currently strange is that no one ported actually those governors to the actual pc platform. I wonder if that was ever tested. – Tarek Jellali – 2014-07-30T10:40:15.367