yashsingh1/xdaforums huggingface dataset:
[HTC One X+] :
You don't have to use 4 cores, you can use 1 if you like. Only use 4 if the situation demands it. I've never written an app, but I'm sure I could do a simple widget just to control the the cores up and down.

Woeful ineptitude is the most I can guarantee. :p

I'm not sure exactly how other kernels work. I think nik3r might have locked the maximum idle frequency to 475MHz, which might have prevented hotplugging. Someone confirm?

Yes, hotplugging is supposed to provide extra cores only when needed, but I think it causes horrible lags. I removed the hotplugging and the lags are gone. This is a brutal approach to fixing the issue, but to be honest, the only game I play on my phone is Asphalt 7, and with the new governor I can now limit to one core, and there are no lags and the phone doesn't heat up. That heat tells me that there is a vast amount of unnecessary code execution going on, and my guess is it's the complex code needed to bring the cores up and down.

I twice made the XDA portal news for battery drain measurements I did on the nexus s (using an old ammeter) and definitely, UV makes very little difference, keeping the frequency low is the biggest factor in saving CPU power. But the biggest hog is the screen. To be honest, I reckon with a screen as large and bright as the hox+'s, the CPU power consumption is really a minor side issue. Hopefully my solution to hotplugging is pragmatic. Let the user decide what they need.

:D
[HTC One X+] :
v0.5 is here: http://d-h.st/BZM

so far we have

-GPU OC

-Slide to Wake [S2W]

-NO-OP IO scheduler

-No hotplugging

-Power saving companion core not active when screen is on

-Companion core active when screen is off (higher speed cores not allowed)

-User defined core activation:

echo 1 > /sys/class/misc/cpusallowed/cpusallowed for one core

echo 2 > /sys/class/misc/cpusallowed/cpusallowed for two cores

echo 3 > /sys/class/misc/cpusallowed/cpusallowed for three cores

echo 4 > /sys/class/misc/cpusallowed/cpusallowed for four cores

-smartmax governor by maxwen

-limited to one core by default

I've tuned smartmax now, and I'm happy that it's rapidly scaling up to the higher frequencies when the demand is there. I can now play asphalt 7 on one core with no lag, no heat, and I'm totally satisfied with it, so one core is now default.

I don't know how to write an app, but I doubt it's difficult. If anyone out there can write an app or widget with a simple up/down arrow interface to issue the above commands required to change the number of cores, I'd appreciate it. Otherwise I'll do it myself. :D
[HTC One X+] nealkoy:
Re: [KERNEL] hXORe for sense [INTERNATIONAL]

what about taking pictures? how does one /two core perform if you don't mind my asking?

Anyway great job on your kernel! :thumbup:

Sent from my HTC One X+
[HTC One X+] anko184:
It appears that the link is down or not working.. Could you check?

I'll try to came up with something although i don't write android apps.. No promises though, i just want to help ;)
[HTC One X+] nealkoy:
I guess all of these features are with Power Saving Mode off right? Would you mind sharing with us what happens if PS Mode is enabled in your kernel? E.g. Stock kernel caps max frequency @ 1.3 to all 4 cores, EliteKernel enables 3 cores only and caps them @ 1.15..etc
[HTC One X+] :
Re: [KERNEL] hXORe for sense [INTERNATIONAL]

Dev host can be a bit flakey. Try again later.

Good luck with writing the app. Most appreciated.
[HTC One X+] :
Re: [KERNEL] hXORe for sense [INTERNATIONAL]

If you turn power saving on, it still limits to 1.3GHz max.

I tried asphalt 7 and to my surprise it worked pretty well. Hardly a notice difference.

Photo seems to work a lot better with 1.7GHz limit though. Feedback is appreciated of course.
[HTC One X+] :
here is v0.7: http://d-h.st/cRT

so far we have

-GPU OC

-Slide to Wake [S2W]

-NO-OP IO scheduler (now default)

-No hotplugging

-Power saving companion core not active when screen is on

-Companion core active when screen is off (higher speed cores not allowed)

-User defined core activation:

echo 1 > /sys/class/misc/cpusallowed/cpusallowed for one core

echo 2 > /sys/class/misc/cpusallowed/cpusallowed for two cores

echo 3 > /sys/class/misc/cpusallowed/cpusallowed for three cores

echo 4 > /sys/class/misc/cpusallowed/cpusallowed for four cores

-smartmax governor by maxwen

-limited to one core by default

-enabling more cores adjusts the cpu frequency governor parameters automatically

This version includes a lot of fixes for various rare or esoteric issues, cherry-picked from maxwen's and TripNRaVeR's source on github (thanks!)

For 0.7 I've attempted to make it easier for the CPU frequency to scale down if you have more cores enabled. I'll have to spend some serious time studying how this works in practice. Even if it works, it will still need to be refined.

I've noticed that recording video in HD requires two cores or the quality becomes a bit jumpy. I'll see if I can automate a minimum of two cores for video.
[HTC One X+] PinoPano:
Hi Bedulus, I have been following this thread closely and I find it really interesting. Congrats on what you've managed to do thus far. I just wanted to ask you if it's possible to add to your kernel a color control option to tweak colors to our liking. I find them to be kinda washed out at times and I was wondering if that slightly yellow tint could adjusted as well.

Thanks a lot
[HTC One X+] nealkoy:
Re: [KERNEL] hXORe for sense [INTERNATIONAL]

Cherry picking fast charge might also benefit your kernel:rolleyes:

Sent from my Nexus 7
[HTC One X+] :
Re: [KERNEL] hXORe for sense [INTERNATIONAL]

This is a personal project. I'm just sharing. Feel free to suggest anything you like, but be prepared to hear a no.

On the issue of colour, I like it as-is, so I won't provide it. Fast charge I will consider.
[HTC One X+] nealkoy:
Re: [KERNEL] hXORe for sense [INTERNATIONAL]

You might want to check this thread out.

http://xdaforums.com/showthread.php?t=2096464

Sent from my Nexus 7
[HTC One X+] ratcom:
Im running the latest 0.7 and I must say I'm impressed ;) only issue I seem to have is after running this script

I never seem to reach 1.7 :confused:
[HTC One X+] :
It's possible in other kernels to reach 1.7GHz, but I'm trying to keep the kernel relatively stock, which means 1.7 is only available in single core mode.
[HTC One X+] :
v0.8 is here: http://d-h.st/1dy

so far we have

-GPU OC

-Slide to Wake [S2W]

-NO-OP IO scheduler (now default)

-No hotplugging

-Power saving companion core not active when screen is on

-Companion core active when screen is off (higher speed cores not allowed)

-User defined core activation:

echo 1 > /sys/class/misc/cpusallowed/cpusallowed for one core

echo 2 > /sys/class/misc/cpusallowed/cpusallowed for two cores

echo 3 > /sys/class/misc/cpusallowed/cpusallowed for three cores

echo 4 > /sys/class/misc/cpusallowed/cpusallowed for four cores

-smartmax governor by maxwen

-limited to one core by default

-enabling more cores adjusts the cpu frequency governor parameters automatically*

-when the camera is activated, a minimum of two cores will be available for smooth video recording

It wasn't an easy fix, because I've never had to use a header before, but I found the camera code easily enough, and from there the only confusing part was that I had to declare my hook variable as external in both the header and in the hotplugging code (I got stuck for ages on that because I thought it was sufficient to declare it as external in the header alone!)

*the same issue applies to the cpu frequency scaling, because the header was wrong in v0.7. This is fixed now, so that when you increase the cores, the governor won't scale up to the higher frequencies quite so aggressively.
[HTC One X+] ratcom:
Oh that explains alot lol been wondering why I dont see 1.7 in cpu spy lol. Just for reference after much testing v0.7 out preformed EliteKernel in real racing 3 by a few fps :) So I'm happy........ now to flash v0.8 :fingers-crossed:
[HTC One X+] :
Re: [KERNEL] hXORe for sense [INTERNATIONAL]

On how many cores?
[HTC One X+] Vixa:
The problem is in the s2w , it locks even with only back button swiped left ...
[HTC One X+] :
I could increase the minimum distance required?
[HTC One X+] reaper90:
I also increased distance to 400px using an init.d script, 325px seems to short and phone turns itself on in my pocket...
[HTC One X+] aliko007:
Every time i use Back button lock the screen ! driven me crazy >< plz fix it :crying: other than that !! everything is perfect :rolleyes:
[HTC One X+] haighpaul:
I'd appreciate an increase in swipe distance too please. Has anything been changed in this version because I never seemed to inadvertently lock with the back button before?

No charging or other issues though - brilliant!
[HTC One X+] :
Yeah, I updated the s2w code, so I probably made a mistake. I'll look into it.

In other news, AT&T thread opened: http://xdaforums.com/showthread.php?t=2339797
[HTC One X+] markwoo:
That would be great at&t thread I flashed the last kernel you put out liked it ..was alittle slower then one before menu back buttons seem less resposive but that was all I noticed so far is there anyway to under volt this yet
[HTC One X+] 0r32:
I think that increasing the swipe distance won't fix the problem. If I swipe from left to right or from right to left, my phone does nothing until I swipe up to the menu button. That's a good distance in my opinion.

The problem is if you touch the back button and move your finger just a little bit to the left, then the screen turns off.
[HTC One X+] reaper90:
I never experienced issues with the back button, it's just that the 325px default s2w minimum distance is too short for me, so that my phone turned on my pocket somehow.

You can change s2w settings in /sys/android_touch/, just change the number's in the file or if you want it to be set on reboot you have to put it in an init.d script.

Or maybe Bedalus could eventually add an easy s2w customization possibility to his CoreManager app some day, just a suggestion for future versions ;)
[HTC One X+] :
I'm not having this issue. Doesn't matter what I do with the back button, I can't reproduce this issue. Maybe it could be ROM related

Edit: I have to slide the same as the distance between two buttons for it to turn off or on
[HTC One X+] Notechis:
Same here,

have changed the distance to check several values.
[HTC One X+] haighpaul:
OK I hope Bedalus can make sense of this:

I've traced the problem back to some sort of kernel/ROM interaction. I use InsertCoin and if I select AutoRun Tweeks under the kernel options on the ROM I can reliably recreate the problem but only with 3.4b kernel.

I flashed 3.3 kernel and when I select the AutoRun Tweeks and turn it On the back button works fine. However when I change to 3.4b and set AutoRun Tweaks to On the back button turns off the screen at the slightest movement. Turning AutoRun Tweaks to Off does not solve the problem until phone is rebooted. The messages I get from SU when changing this option on 3.4b are variable ranging from SU grants permission to Usage or to Storage or to HTC Function test! With 3.3 I noticed it was SU granting access to HTC Car gps but I don't know if it changed like it does with 3.4b.

:confused:
[HTC One X+] :
I'm not really big on how android works, especially the htc version of it, but yeah, they've probably got some unusual hooks into the kernel that I don't know about. I may be able to find them and disable them, but until then, skip the autorun tweaks or stick with 3.3
[HTC One X+] :
I just updated my Rom and this time decided to use the Rom cleaner and go with no-sense, with nova launcher.

I'm finding that I need to disable cpu/gpu coupling or I get lags in the app drawer. Anyone else had the same thing?
[HTC One X+] Notechis:
I am using latest nova launcher prime and it works for me without any lags. Before I used 2.0.2 and that was a bit laggy.

Rgds Mr. Floppy
[HTC One X+] laurab4369:
The kernel work on new arhd 7.0?
[HTC One X+] reaper90:
No problems here yet, runs fine!
[HTC One X+] yourguitarist:
Just a heads up, with that international test, my AT&T booted up fine. stuff lagged a little and I didn't have a signal and my launcher wasn't starting but this leads me to wonder if international roms will run fine as long as they have the right kernel for the phone. I don't mean to go off topic but just putting that out there!

Sent from my HTC One X+
[HTC One X+] :
No, I think they would need porting, there's different hardware and therefore different drivers required
[HTC One X+] Notechis:
Works pretty nice with ARHD 7.0

Rgds Mr. Floppy
[HTC One X+] yourguitarist:
Is porting hard? I know on aosp it's a pain but what about from sense to sense?

Sent from my HTC One X+
[HTC One X+] :
I've no idea!
[HTC One X+] :
I ran my phone all day today. It dropped from 90% to 10% over 16 hours with 4 hours 30 minutes screen on 75% brightness most of the time.

I had GPU coupling off, and played at about two hours of asphalt 7

Does this sound fairly representative of the battery life other people are getting?
[HTC One X+] reaper90:
wow, nice one! i wish i could get that out of my phone^^ what CPU settings do you use to get that?

but i think it also heavily depends on what apps you mostly use and what is running in the background. i just came back from cinema, locked at wakelock detector and saw that facebook caused ~700 wakeups in the last 4 hours although i have it on greenify list...

edit: ok just noticed i forgot to turn off some sync function after latest ARHD install with full wipe... but nevertheless i can hardly get such a battery life
[HTC One X+] :
I had sync on wifi or 3G on finding whether I was at home or at work.

I didn't limit the hotplugging. But I'm running the no sense (using Rom cleaner) version of arhd and I don't use Facebook
[HTC One X+] Notechis:
Wow, with greenify I have absolut no wakeups using facebook or similiar apps / messengers

The usage and drain of my phone is similar to bedalus results ... I am using 4 or sometimes 2 cores hotplugging at the moment and data off while screen off.
[HTC One X+] reaper90:
yesterday was extreme because i didn't see there was an error while syncing... but today i ungreenified facebook to see how it is normal and wakelock detector says 300 wakeups since i ungreenified facebook 5 hours ago... and this even though i disabled facebook notofication and availability in chat and set update interval to never...

I know data connections (3g/wifi) drain battery very fast, but i use whatsapp a lot and sometimes facebook messenger (which does not seem to cause wakelocks at all if there are not messages received) and i'd like to get them instantly, so this is ok for me if it drains a bit more power. I also use Smart WiFi Toggler to enable/disable my WiFi connection automatically when there's no known network.

beside this, HOX+ is a quadcore smartphone and i wanna use that, why should i buy a quadcore phone to limit it to 2 cores? Two cores are more than fast enough for every day usage as far as i have tested, but if i only wanted two, i could have bought a cheaper dualcore phone^^ (just my opinion ;)) Only reason i limit it to 2 or 3 cores is gaming, so that it does not get too hot and doesn't drain too much battery, but it's not like i'm playing games on my phone all day.

Even though i can't get these results without sacrificing some of the smartphone features, i'm quite satisfied with battery life today. almost 10 hours on battery and i still got 53% left. although wakelock time could be much shorter, i'll see if i can track down the reason for this. i can't imagine facebook is causing all this...

Nevertheless this kernel is a beast in terms of performance and also a good power saver in standby! :)
[HTC One X+] pradeepvizz:
Thanks for taking up the topic of battery life and giving some great numbers. my battery numbers are no where near others reported here.

One of the reason would be that i am primarily (80%) on 3G during the day.

The biggest point for me here is that while some ppl are able to run daily tasks smoothly with 2 cores and does not happen to me even at 1.3GHz*4 i.e auto-plugging limit at 4 and power save on - i have small lags here and there at this setting

i am only able to have a smooth experience it at 4 cores with power saver off(1.7GHz *4).

i think i would need to do a clean install of my ROM without sense and then selectively install the apps.
[HTC One X+] Notechis:
That make sense... If you test and flash different ROM´s or Kernels, you will recognize big differences...

Sometimes one version runs absolut smooth and after flashing to next version, something is not working...

The last month with hox + and roms was sometimes trial and error .. The phone is superb and I have less problems, but sometimes there was minor bugs , like the "3 cores online issue"
[HTC One X+] saitch76:
Hey bedalus,

Just installed 3.4b on InsertCoin 4.0.0. Core Manager reported 5 cores online when I first opened it!
[HTC One X+] :
It's just a bug I haven't fixed yet
[HTC One X+] pradeepvizz:
ok so clean installed ARHD 7 with rom cleaner no-sense and now flashed the kernel!
[HTC One X+] :
Me too!
[HTC One X+] pradeepvizz:
The phone is smooth enough in 2 cores with nova launcher for daily usage - i don't believe it!!! will see how it goes about.

---------- Post added at 03:03 PM ---------- Previous post was at 03:02 PM ----------

with power save on too
[HTC One X+] Notechis:
Yes. butter smooth :)
[HTC One X+] :
Continuing with my tradition of 'over-sharing' my life, I'm also playing with this today: http://xdaforums.com/showthread.php?p=24515123#post24515123
[HTC One X+] pradeepvizz:
That sounds great to have a full fledged os on a phone!
[HTC One X+] :
I played with it a lot today. Ubuntu 12 works but the included browsers (chromium and firefox) don't work. I installed midori and it worked. I VNCed in using my laptop, and it was a bit crap and slow, but I think it's because it's not running natively. I think if it ran native, it would be great! But obviously you'd lose the phone capability.

I also tried debian, but it didn't work.

Anyway, while I was playing with it, I realised that because the screen was off, the device was limited to using the low-power core. I wanted multi-core performance with the screen off, so I added another mode to the kernel to allow this. Also, while I was in there I decided to add a power-saving option again, to allow fixing to 1 core, and allow the low-power core to come online even with the screen on.

There's a test kernel available: http://d-h.st/0wI

The sysfs location is /sys/class/misc/cpusallowed/cpusallowed (yeah twice!)

Edit the cpusallowed file with 1 for the new power-saving mode, or 5 for keeping multi-cores awake even with the screen off (only useful for like what I was doing today. I can't imagine any other uses...)

If it tests well, I'll integrate controls into the core manager app and issue a general update :)
[HTC One X+] :
Oh, I need to remember to sort out one other issue with the power saving mode, which is that one one core it spends a disproportionate amount of time at the highest frequency

EDIT: I've updated the link to the test kernel in the post above. I've fixed the governor so that if one core is active, it means the device is in this special power saving mode, and it will be much more difficult for the frequency to scale up. In fact, it needs to reach 99% load to scale up. I've just tested it in this mode, and played asphalt 7 and checked the UI, and twitter/xda/some other apps, and everything seems fast and smooth, so I think it's a good option for when you are trying to converse power. I'll stick a button in the app to activate this mode (and the other freaky mode I mentioned in the post above)
[HTC One X+] pradeepvizz:
As you said, i am not also quite sure of the uses of having multi kernel active during screen off - i am guessing that it would make the background services / sync faster which i think is good.

i probably did not notice this core - power save issue, i will check how the test kernel behaves and probably notice the difference.

btw, is there a way to check the core frequencies in real time with adb or any other app?
[HTC One X+] :
Checking the frequencies in real time can be done with cpu stats (app in play store) I think.

I don't think there can be many other uses for having multi core performance with the screen off. It's over-kill for sync so don't do that!

Maybe if you want to decompress a large zip file... Really the uses are quite limited
[HTC One X+] pradeepvizz:
no multicore screen off - yeah ok... it might that may result in drain too if i turn it on.

i just download the cpu app stats. Faux123 kernel app also has a real time cpu stats but only shows when the app is open, so now i opened both the apps. i am now able to see the cpu frequencies at the same time by both apps - but the confusion is the number don't match.
[HTC One X+] :
The frequency can change many times per second, so the reason for the difference will be down to how they measure and/or average the stats per refresh interval
[HTC One X+] :
I was testing the low power mode today and had 90 to 74% over 9 hours, with occasional screen on time (just a few minutes)

I'll test tomorrow with the same starting conditions in the high power mode!
[HTC One X+] pradeepvizz:
Due to flashing ARHD recently, i can see better battery stats reporting lot of Sync's which i think is not normal and hence not able to rely on kernel/battery stats. I guess the system should have settled in by this time - 2 days.
[HTC One X+] Notechis:
4 cores active no frequency limit

11h 40m 95% to 71% ~2,1 h

Awake 2,3 h

screen on 30 min

Data Sync on :)
[HTC One X+] reaper90:
So how does it work with multi core allowed? Is there a frequency or core limit though? I don't need 4 cores active in standby, two would be maximum, and i also don't need highest frequency. Most of the time i'm fine with low power core, listening to music works flawlessly, no lags or so, but there are certain situations where i'd like to have some more power while screen is off^^
[HTC One X+] :
I tried backtrack today, which works better. At least Firefox works. However, it's still very slow. I think it was a fun experiment, but I can't see much use to it. I believe the problem is that there is very little ram left in the system to run an os. I bet swap is doing overtime. That's not going to be good for the flash drive. This sort of thing would probably work better on aosp, or dual boot would be great! I don't know of it's feasible though. It's beyond my expertise anyway.

Can anyone else think of any reasons to be able to force multi core performance with the screen off?
[HTC One X+] aquariusp78:
SIM issue

Hi bedalus, I have this issue with all your kernel vers;

doesn't read sim so I haven't radio and data conn---

I tryied to disable pin lock but not solved

stock rooted rom 1.17.401.1/3 (same issue)

Can u help me?

:eek:
[HTC One X+] :
You've got the international version of the phone right? What network are you on?
[HTC One X+] aquariusp78:
Yes, Int. version, Wind Op
[HTC One X+] :
Have you confirmed this issue is specific to my kernel?
[HTC One X+] aquariusp78:
Good morning bedalus,

yes I have issue with Xhore only;

stock kernel and Elite are ok with same roms
[HTC One X+] pradeepvizz:
[MENTION=4128576]bedalus[/MENTION] one week without new version of the kernels ?? ::) just kidding i don't think the kernel needs anything more. Seems like ATT is keeping you busy.
[HTC One X+] :
I've been building in pretty much all my spare time. I've been waking up early to do it before work too. :p

Unfortunately I've gone around in a big circle trying to find a way to save power without ruining the performance.

I'm going to keep trying though. When I get somewhere I'll make it available
[HTC One X+] faandrabi:
best config in core manager

Dear Dev

please tell me the best config in core manager as I don't know what to keep and where

thanks
[HTC One X+] :
I keep my BLX set at 90%, GPU Scaling ON, Fastcharge ON, CFQ, available cores 4
[HTC One X+] towelboy:
Is there a way to confirm that the core manager app works? I set my blx to 90 yet it recharges to 99%! Is there a way to check how many cores are active?