yashsingh1/xdaforums huggingface dataset:
[HTC One X+] maxwen:
thanks for the info

I havnt made up my mind about this :)
[HTC One X+] :
No worries, just thought you'd be interested
[HTC One X+] Lloir:
your welcome to commit changes to official cm kernel for the enrc2b ;)
[HTC One X+] :
Well, JRCU is known to expose a deadlock issue, but this may be resolved now. However, it's difficult to say for sure because it's random and rare. More testing is needed first.

I do have some other commits that are working well. Do you prefer pull requests in github or what?
[HTC One X+] Lloir:
you have to use the CM gerrit

http://wiki.cyanogenmod.org/w/Doc:_using_gerrit
[HTC One X+] :
JRCU failed again! I've wasted so much time on that now, I'm giving up
[HTC One X+] Notechis:
Hi, I got an update and I am now able to edit GPU fast response while using latest blade. What happen or what is a good setup. It is currently set to 7000 as default... Thx in advance

Gesendet von meinem enrc2b mit Tapatalk 4
[HTC One X+] Lloir:
Not me....
[HTC One X+] Notechis:
Trickster

Gesendet von meinem enrc2b mit Tapatalk 4
[HTC One X+] maxwen:
LOL - Ok I see :)
[HTC One X+] I_3:
Maybe a stupid question, but will this kernel work with stock rom latest update to 4.2.2?

There was first statement, that there will be no Sense support, but in later build there was some support for Sense mentioned.
[HTC One X+] nchantmnt:
No it will not work. Maybe it even boots but there will be no hardware support, so no radio WiFi etc. I guess that it will stay in a bootloop if you try it.

Gesendet von meinem HTC One X+ mit Tapatalk 4
[HTC One X+] :
Just seen this: https://plus.google.com/104711040110222472212/posts/MMGruw4oN6Z

Cool!
[HTC One X+] nchantmnt:
Am i missing sth?

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] PippoX3:
Deleted
[HTC One X+] maxwen:
OP updated for new build
[HTC One X+] Preaper:
The new build has it all. Performance, battery-life. It's like having your cake and eat it too. Thanks Max! :)
[HTC One X+] Groteski:
Having a phone-boner!
[HTC One X+] maxwen:
Just got one issue reported

But actually I have told you that already :)

If you want to use ondemand govenor you MUST use the

script I provided - using an app seems to cause other issues too

See here

http://xdaforums.com/showpost.php?p=36291380&postcount=48
[HTC One X+] alioth:
Really really good!

Now Video record is super smooth too! So the little lags in recording was something about kernel-processor and not drivers.

Im happy :)
[HTC One X+] Sharpshooterrr:
Hi, I downloaded the newest kernel: (boot-BLADE-42-201301112025) and battery seems to have improved further, but is laggy some times. How do I exactly use ondemand governor? Which file in the link do I download? How do I "push" files? and where do I type the adb stuff? Thanks for your efforts, they are really appreciated!
[HTC One X+] nagpochenpo:
copy http://goo.im/devs/maxwen/BLADE/03-kernel-tune-ondemand to /system/etc/init.d set 755 - maybe with rootexplorer

i find interactice laggy too. new kernel seems better than the old one. now i have to choose between battery and some lags lol. but thanks for your work max
[HTC One X+] Sharpshooterrr:
I can copy 03-kernel-tune-ondemand to the directory you mentioned (using Astro), but how do I "set 755"?
[HTC One X+] maxwen:
adb shell chmod 755 /system/etc/init.d/03-kernel-tune-ondemand
[HTC One X+] Sharpshooterrr:
Pardon my ignorance but I just don't know how to do that. What program should I use? Where do I put that command? Thanks.
[HTC One X+] maxwen:
When exactly do you experience lags?

Cause even in my setup whith max frequ cap to 1.3GHz for all cpus

I have no lags in "normal" use.
[HTC One X+] simorangkir_dcs:
You put it in cmd when you are in adb mode. If you dont know how to enter adb mode search via google. There are a lot of explanation of how to adb-ing
[HTC One X+] Sharpshooterrr:
While listening to music (N7player), typing an sms - keyboard lags a lot.

In some instances, the phone dialer takes about 6 seconds to load.

Also after a reboot, the phone seems to take more time to settle, it lags when swiping across home screens (Nova). I have to wait a bit longer so there won't be any more lags when flipping through home screens.

I have not touched anything in to alter the performance except for Settings-Rom Control-Performance - setting Max:1700 MHz and turning on "Set on boot".
[HTC One X+] maxwen:
try ondemand as described
[HTC One X+] Sharpshooterrr:
Ok, I have researched and done the necessary steps. Now, how do I know I have indeed successfully switched to ondemand governor? The phone is back to its lag-free ways though.
[HTC One X+] Preaper:
One thing I noticed with the new kernel, is that it's pretty unresponsive when powering on from screen-off. It takes a couple of seconds for the lockscreen to show up. I guess this is related to the frequency lock during screen-off?
[HTC One X+] nagpochenpo:
same (and more) for me, so i went back to ondemand.

@Sharpshooterrr: "normal" govenor changing apps show the govenor. if you copy the file to the folder, cmd 755, reboot, it works.
[HTC One X+] maxwen:
No - frequency is scaled up quickly on power on event

We had the frequency lock to 475Mhz on screen off also before

The "lockscreen lags" are probably not only kernel related.

I get those with all goveners sometimes

But so to say I found a few other problems in my latest changes :)
[HTC One X+] v-b-n:
Hmm ... Getting reboots when connected with USB and adb connected and goes into sleep ... Press power to wake up when file transfer happening and phone reboots ... Happens more with ondemand ... Will try to get a log

Oh might I just add the efficiency of the kernel is awesome on cm10.1 ... Hotplug seems to have really taken effect ... Can just imagine future iterations :)
[HTC One X+] maxwen:
I know this crash - no need for a log

ondemand is a little bit.h :)

This happens if for some reason ondemand is NOT set on all cpus

which in theory can even happen if you use my init.d script

For that reason I might change the default govener again back

to ondemand.

I still hope that we cat a reliable app for switching goveners soon :)
[HTC One X+] v-b-n:
I was wondering you might already know about this :D
[HTC One X+] maynard_jk:
Is it possible that hotplugging with interactive is a bit more aggressive than with ondemand? I've been experiencing some lags and unresponsiveness with interactive as well so I tried to observe how my CPUs behave with perfmon and sometimes the freqs kept being capped to 475mhz with only one CPU enabled (for example while browsing to the android market, which was a bit choppy then). Ondemand seems to be more 'aggressive' when it comes to turning CPUs back on.

Nevertheless, it is such a pleasure having the ability to use this outstanding kernel and CM/AOKP with this device, thank you VERY much maxwen!
[HTC One X+] maxwen:
Found a solution for the governor switching

With next build you are free to use any app

to switch governor - no need for any init.d

scripts anymore

Just keep in mind that this is ONLY valid for

the governor itsself - NOT for any governor tunables

like scaling_max_freq a.s.o
[HTC One X+] maxwen:
yes it is
[HTC One X+] simorangkir_dcs:
wow, this kernel development is very quick :)

As much as I enjoyed using AOKP and CM 10, this kernel development is the main reason I moved from Sense ROM. You really are AWESOME Sir maxwen.
[HTC One X+] flipside101:
Media Audio over Bluetooth

Hi all,

Firstly im a little torn over which thread to post this in Loirs 10.1 rom or this but i thought id start here as IIRC Bluetooth has more to do with the Kernel than Rom.

My problem is that I cant get media audio to play over Bluetooth , Ive tested to headsets (well one headset and my laptop) and although phone audio works fine media audio still plays from the phone

Im running the 20130107 version of Loirs 10.1 Rom and Build 201301112025 of this super fine kernel. Ill grab a logcat shortly though ive no idea if it wil help

Oh the PC reports its unable to make connection
[HTC One X+] MonsterMatt:
I have this same issue. Not sure if it's kernel or the CM10.1 ROM itself that's causing the issue but I can't get it to pair to my bluetooth speakers or my cars built in bluetooth. However the phone says its connected but plays through the phones speakers.
[HTC One X+] maxwen:
Actually this must be ROM issue since it works fine in AOKP :)

I will check with Llior on 10.1 there are a few things required in the rom

for this to work properly
[HTC One X+] maxwen:
OP updated for latest build

So you can remove all your init.d scripts for governor switching now :)

Actually any app and also the CM performance settings should

now switch governor correctly
[HTC One X+] maxwen:
Next change in "queue"

-unlock full 1.7GHz for all cores
[HTC One X+] maynard_jk:
Yeah :D
[HTC One X+] flipside101:
@maxwen Ta, im going to post this over in the 10.1 thread in case others there are having the issue
[HTC One X+] cowgaR:
Shouldn't the ondemand be already cooked in inside the kernel by HTC itself? I do get you need to alter tunables of the the various other governers out there though...starting with interactive, so this might be gigantic work unless there's similar quad-core 1.6GHz to copy.

Or do you mean the ability to run all four cores up to 1.7GHz simultaneously, thus a bit overclock in place? (on stock kernel I've got 1.7GHz on single core working only, obviously by nVidia specs. Also 1.6GHz on quad cores working together without a problem in my records)
[HTC One X+] maxwen:
second

I have no idea what you are talking about in the first section :)

since governors have nothing to do with this
[HTC One X+] cowgaR:
tuning the parameters of various governors, e.g. adding/configuring new one...I guess HTC One X kernel has 1.5GHz/1.4GHz cap limit (single/quad) 'only', haven't looked to HOX forum though...

Will 0.1GHz overclock bring anything meaningful?
[HTC One X+] maxwen:
correct - but OC to 1.6 for all cores is easy possible
[HTC One X+] Preaper:
Is there a way to change the frequency cap set during screen off? The phone now stutters when playing podcasts at 2x speed.
[HTC One X+] maxwen:
no - you can only try to find a player that needs less resources
[HTC One X+] Preaper:
Too bad. How does a screen off frequency cap help preserve battery life? Wouldn't the fact processes have to run longer negate any saving?
[HTC One X+] maxwen:
Because it uses the LP-mode of the tegra chip

which means the "5th" (companion) core which can only run at max 475Mhz

http://www.embedded-vision.com/news...g-low-power-consumption-embedded-vision-story

EDIT: also the original HTC kernel code supports this but allows

"leaving" LP-mode at the cost of battery. Original cap is 640Mhz there
[HTC One X+] maxwen:
Just FYI to all:

This is caused by a "wrong" change that did in last build

So this affects all audio on screen-off.

Will be fixed in next build
[HTC One X+] Lloir:
that would explain a few things then, and i thought i broke something in AOSP...
[HTC One X+] maxwen:
Sorry :D

New build will be available for all tonight
[HTC One X+] maxwen:
OP updated for latest build

Just for the statistic :)

4x1.7Ghz will push Antutu benchmark from about 15500 to about 16500
[HTC One X+] nagpochenpo:
thanks for the new kernel :)

but now i have crashes, heating problems, battery drain :D (just kidding)
[HTC One X+] cornedor:
Here is the first version of my app that changes the settings of this kernel correctly: https://play.google.com/store/apps/details?id=info.corne.performancetool

source: https://github.com/cornedor/performance-tool

Next thing that I am going to add is: profiles.

And, I'm just as everyone else that makes something for your phone, not responsible for any damage caused by this app.

Corné

P.S. Thanks to maxwen for providing the info I needed.
[HTC One X+] maxwen:
Just to share some of my experiences

My current setup is 2x1.7Ghz

So OC enabled but max_cpus = 2

This is by far fast enough for "normal" Phone use

I still need to collect more information about battery use

with this setup compared to using all CPUs
[HTC One X+] Preaper:
Interesting choice. What's your goal there? Increase battery life? Increase performance? I guess the main thought behind it is that most processes are not optimized for multi-core usage so you're better off with few cores that run faster.
[HTC One X+] maxwen:
Re: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

well they're single core android devices with 1GHz and they are also fast enough :)

my good old HOV with 1.5GHz OC is not much slower then the HOX+ for what I use my phone normally
[HTC One X+] Preaper:
You must have never used Dailyroads + Flitsmeister (traffic camera alerter) + Google Navigate / TomTom + Beyondpod together during your commute :)
[HTC One X+] maxwen:
Re: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

no cause I don't need it :)

for me this is primary still a phone :D

use the right device for the right job

a smartphone is not a navigation device and will never be as good as a dedicated device for that
[HTC One X+] Preaper:
While for me it seems I'm using it for phonecalls less and less. For me it's an internet device first :D I guess this is what I love about Android the most. You can suit it for almost any user. :)
[HTC One X+] maxwen:
Re: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

you are 100% correct :)
[HTC One X+] spray.de:
tried the 4x 1,7ghz OC and its blazin fast but blazin drain and blazin heat ;) but allthough nice to have such a function
[HTC One X+] Sharpshooterrr:
-delete / wrong thread, sorry-
[HTC One X+] maxwen:
Re: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

depends what you are doing with it
[HTC One X+] allgsmnetwork:
I have problem with rom all rom cm10.1/aokp and pure aosp after flashing seem kernel boot loop guide me please :(
[HTC One X+] simorangkir_dcs:
Re: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

Make sure you flash the correct kernel
[HTC One X+] nchantmnt:
AW: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

I happened to forget to flash right kernel and booted AOKP with cm10.1 kernel. Didn't notice any issues but of course flashed right kernel afterwards. Either you are trying to boot with completely wrong kernel eg. 4.2 with a 4.1 rom or you maybe have non international service?

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] nchantmnt:
AW: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

Oh and don't forget to wipe :rolleyes:

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] :
maxwen: kernel patch to significantly improve disk io when using multiple cores - http://xdaforums.com/showthread.php?p=37001024#post37001024

I've already built and tested it, and everything seems good, but I'm often misguided in my hackery. Would you mind taking a look?

I'm passing the same info to nik3r also.
[HTC One X+] maxwen:
Re: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

look good - thanks for sharing

need to do more code reading though :beer:

I would make the code change adjustable using sysfs then it's also easier to test
[HTC One X+] :
Re: [KERNEL][Inernational] 2013/01/17 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

It might be possible to turn it on and off for testing, but not the way I've done it because it's in the init function it'll only be called once. I put it there so that all the child processes also inherit the same processor affinity.
[HTC One X+] maxwen:
Searching testers for UV (under volting)

Testers must be willing to expect things like

freezes and crashes when playing with this :D

So volunteer only if you can handle this and will

not come crying to me about it :)

Actually I have made this as safe as possible so

no harm should be done to your device.

Tester should be able to provide data collected

on their devices to me

So if you think you can do this please PM me

Your used ROM actually doesnt matter (AOSP, AOKP or CM)
[HTC One X+] likepeas:
Hi,

I would like to say this is such great work. Been on the sense rom and couldn't run sixaxis and cm10 and your kernel totally fixed that. Everything is running smoothly. :good:

Just a noob question.

Is it a must to enable this?

echo "1" > /sys/module/cpu_tegra/parameters/enable_oc

and if so how?

Sorry about that, couldn't find it anywhere.
[HTC One X+] maxwen:
No its not a must - only if you like to get extra speed and battery drain :D

You can use PerformanceTool from the playstore of xda member cornedor

Think the latest version has already support for this
[HTC One X+] maxwen:
OP updated for latest build

This is the start for the "battery saving project"

1) new ondemand governor

To make it easier for you I added a "second" ondemand governor

The existing one has been renamed to ondemand1. This is much easier

then "fiddeling" with governor tunables in sysfs

The "new" one is less aggressive and biased more towards battery saving

still trying to be smooth and fast enough for "daily" use

If you are a heavy gamer you most probably will not like it :)

So if you are such a user dont tell me anything about the fact

that the new ondemand will lag in certain games- just use ondemand1

2) Added UV (under volting) support

Some technical details about the power supply in tegra3 chips

for those that are interessted in

There are 2 power "rails"

1) the core rail where all peripherals e.g. emc, GPU, ... are attached

2) the cpu rail which defines the voltage supply for the cpu cores

Only #2 can be changed "on the fly" (sysfs)

#1 must be defined on boot

But both have some dependencies to each other

so e.g. reduced core voltages will also allow reduced cpu voltages

So back to the facts:

This build has reduced core voltages (-50mV) which have been proven to be stable

The cpu voltages are reduced by -25mV by default

Show current values:

cat /sys/kernel/tegra3_dvfs/cpu_millivolts

On the top you well see a line e.g.

current mv change -25

Changing is only support on a "global" level for all frequencies

Only values between 700mV and 1250mV are possible

Examples:

Reduce to -50mV

echo -50 > /sys/kernel/tegra3_dvfs/cpu_millivolts

Reset to default;

echo 0 > /sys/kernel/tegra3_dvfs/cpu_millivolts

If you want to make this change permanent across reboots

put it into an init.d script or use scriptmanager
[HTC One X+] poojiggles7:
is this ever going to be available on the AT&T version? please this is so sick i want to use it so bad :good:
[HTC One X+] maxwen:
I am of course very interessted in your experiences with this

e.g. things like

1) are there any "things" except games that lag with ondemand now

2) how does using "new" ondemand influence your battery "life"

3) and/or the same about voltage decrease

Just keep in mind that the CPU is sometimes not the main

source of battery drain

BTW: if you use my AOKP 4.2 rom it is quite helpfull

to enable "Show CPU Info" in the developer options

This will show you in an overlay the current CPU info

e.g. how many cpus are online and at which frequeny the are running

If the first line becomes "green" it means CPU is in LP mode which

is the most powersaving state
[HTC One X+] maxwen:
Most of my kernel changes should apply to the AT&T source with

no or little change. So you need to find a dev which has the

AT&T device and knows how to do kernel builds
[HTC One X+] maxwen:
Just found there is a pretty nice way to get the current

battery drain in mA

cat /sys/class/power_supply/battery/batt_attr_text|grep gauge_current

Values < 0 means discharge

Values > 0 means charging

This is updated with some delay so dont expect "real-time" values

Running @2 cores with 1.7Ghz will draw about -700mA!

Charging using usb will only get about a max of +300mA

so you can see very clearly that this can never level the drain
[HTC One X+] s3nsation:
Very interesting! I get ~250 mA while charging through USB.

Question: Will this work with our HOX+ too? Sry if it's been asked before.
[HTC One X+] maxwen:
BTW: if battery is full gauge_current will be around 0

The charging vaiue will also change depending on the level

so seems to be some charging curve applied depending on the

actual battery level
[HTC One X+] maxwen:
Actually except the core limitation based on battery level we have

all the features already in PerformanceTool

Profiles will be added soon AFAIK

You can ask cornedor what he thinks about the battery level

depending core selection - maybe he can add it.
[HTC One X+] maxwen:
With only 1 core fixed to 1.7Ghz it is about -450mA

So this seems not linear with the number of cores
[HTC One X+] cornedor:
Profiles are added. Testing it atm, and the battery levels looks like a nice feature. Going to look into that.
[HTC One X+] craig82:
Re: [KERNEL][Inernational] 2013/01/24 - BLADE - CM/AOKP/AOSP - 4.1.2+4.2.1

I seem to be getting random notification light blinking. Seems to flash now and again for no reason and when pressing the power button to wake / sleep screen.

Running latest build of kernel and cm10.1
[HTC One X+] maxwen:
LED is controlled by the ROM
[HTC One X+] maxwen:
Just FYI about cpu undervolting

Actually only up to -50mV it is setting all values correctly

BTW I am running -50 now for days without problems

so I would assume this will work on all devices
[HTC One X+] nchantmnt:
i guess this is mostly kernel-related bufor the reason the rom is as well causing some of these issues i'm posting this in both threads.

just some things i have experienced in the last couple of days.

1. whenever i plug in my charger my device gets a good bit slower. i did tick cpu info in dev settings and saw that the cpu didn't scale up in this situations, either staying in lp mode even if there is significant load on the cpu, or just staying with one or two cores and 1300mhz max.

happened for ondemand, ondemand1, interactiv all overclock enabled, no freq cap and uv -50mv.

2. far less frequent, but also happening sometimes: no matter what governor set, it just takes very long for the device to scale up cpu frequency. as soon as the cpu scaled up once everything is back to normal. strange thing is: this does NOT happen each time the device is going into lp mode. for both problems i have to turn display off and on to get propper scaling back immediately.

3. when changing governor, the osd cpu-info shows that it is only set for cpu0 and is unchanged for every other core as long as it is online. as soon as a core gets ofline the governor for this core changes. i realy wouldn't mind that behaviour, but i guess that's the cause for some problem i encountered recently:

4. changing governor most of the time does work as intended (with small issues explained above), but sometimes i get stuck governor setting for one or more cores and after some seconds the device reboots.
[HTC One X+] maxwen:
cant reproduce this
[HTC One X+] maxwen:
OP updated for latest build

Some word about "fast charge"

Main reason for this is to be used with chargers that "fail" to be autodetected as

AC chargers. But even using "normal" USB connection charging current will

be a little bit higher with it.
[HTC One X+] maxwen:
Cant reproduce - has been fixed in Build 201301142339
[HTC One X+] nchantmnt:
did experience these issues with boot-BLADE-42-201301240030.img on aokp 1.0d

don't know about any reason, but keep my eyes open if i encounter these again. just updated to hb 1.4 via ota and now flashing your newest builds from clean start
[HTC One X+] maxwen:
Well - I have tried it now multiple times :)

Just start e.g. antutu so that all cpus are online then change governor

and that works just fine here
[HTC One X+] nchantmnt:
well maybe it's something i have messed with governor settings even thou i thought i had completely reverted those changes
[HTC One X+] maxwen:
Should actually cause no problems

But there could be of course some race conditions during

setting of the governor

EDIT: actually I just found somthing that "could" cause what you have seen

Do you volunteer for testing? :)