yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] starscream92:
Yeah I used to do that, but Trickster broke some of Motley's modules. Not sure how. My screen colors would get screwed up when I turn the screen on/off on B35. CPU seems to still be working in dual-core mode after restoring the maximum online cores to 4 after changing it to 2 in Trickster. All this doesn't seem to happen at all after I started using scripts. Might need to use apps like CPU Spy or something, apps that don't require root or unable to change kernel settings.

Also, about the voltages, I used to be able to run at -50 mV daily from Motley's default "fast bin" voltage presets. Now those voltages seem to cause my phone to reboot once in a while. Which is why I have all FSYNC stuff turned on (once after a reboot the Google out-of-box experience actually popped up, freaked the hell out of me).
[Nexus 4 Original Android Development] thracemerin:
You can test your UV via script, but don't leave the script in init.d until you're rock stable so you can recover by rebooting if something goes wrong.
[Nexus 4 Original Android Development] Remoteconcern:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

I guess this is quite a beginner style question but I'm confused! I've never really used scripts before, however I really want to use motley kernel with the stock kernel colours. I have two questions.

Can I use init.d on totally stock ROM?

And will the fact that motley reverted a commit from Google to enhance red colour mean that I won't be able to get totally identical colours on motley kernel? Or is that undo able with a script. Thanks everyone.
[Nexus 4 Original Android Development] starscream92:
Go into the following directory and check if it exists or has existing shell scripts in it. If it does, then you'd be able to use init.d. I believe whether or not you can use init.d depends on the kernel.

/system/etc/init.d

You can also test your scripts. Write something simple and non-harmful like changing the vibration motor's amplitude:

# !/system/bin/sh

# Increased intensity (stock value is 70)
echo "90" > /sys/class/timed_output/vibrator/amp

Save the file as "91vibration" or something like that. Put it in your /sdcard first (in case ADB doesn't automatically have root) using:

$ adb push 91vibration /sdcard/

Then, running the shell as root, copy it into the directory mentioned above. Then change the file's permission bits so that it is executable as well as the owner and group just to make sure:

# chmod 0755 /system/etc/init.d/91vibration

# chown root:root /system/etc/init.d/91vibration

And as to your last question, yes you can adjust the color multiplier and gamma settings as such to be identical with complete stock AOSP kernel using a script, provided you can find the right values.
[Nexus 4 Original Android Development] ironjon:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

I only can say good work.

B39 is amazing fast with a low battery drain.

Thanks

Enviado desde mi NeXus⁴
[Nexus 4 Original Android Development] starscream92:
Still on B38 right now. Will flash B39 as soon as I get home tonight! Low msm_hsic_host wakelocks here we go!
[Nexus 4 Original Android Development] gianton:
Thanks!

Here is a flashable .zip with my settings based on yours and veyka's scripts. I have a faster binned chip and the further UV of -50mV is stable on my device.

Don't flash this unless you're 100% sure your device can handle these voltages. First try them with an app like trickster mod.

90voltage

#!/system/bin/sh
#Undervolt by -50000 (from _motley's defaults) across all frequencies
echo "304000 662500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "486000 800000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "594000 837500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "702000 862500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "810000 875000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "918000 887500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1026000 900000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1134000 912500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1242000 925000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1296000 950000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1350000 955500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1404000 962500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1458000 970000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1512000 975000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1566000 1030000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1620000 1037500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;
echo "1674000 1062500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels;

91obsanitycolor

#!/system/bin/sh
#Settings as per obsanity@xda franco interface (Not corrected?)
sleep 5
echo "255 255 255" > /sys/devices/platform/kcal_ctrl.0/kcal
echo "103" > /sys/class/misc/gammacontrol/whites
echo "119" > /sys/class/misc/gammacontrol/mids
echo "119" > /sys/class/misc/gammacontrol/blacks
echo "23" > /sys/class/misc/gammacontrol/contrast
echo "0" > /sys/class/misc/gammacontrol/brightness
echo "119" > /sys/class/misc/gammacontrol/saturation
echo "0" > /sys/class/misc/gammacontrol/greys

93tweaks

#!/system/bin/sh
#Fsync enable
echo 1 > /sys/kernel/dyn_fsync/Dyn_fsync_active
echo 1 > /sys/class/misc/fsynccontrol/fsync_enabled
#TCP enable
echo "westwood" > /proc/sys/net/ipv4/tcp_congestion_control
echo row > /sys/block/mmcblk0/queue/scheduler
echo 2048 > /sys/block/mmcblk0/queue/read_ahead_kb
[Nexus 4 Original Android Development] Archmag3:
is there any app which i can use to change/tune settings including colors ??

can i use this ? : https://play.google.com/store/apps/...xLDMsImNvbS5iaWdleWVzMHgwLnRyaWNrc3Rlcm1vZCJd
[Nexus 4 Original Android Development] pa.pn2:
AW: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Kernel settings yes but I think not the colors...
[Nexus 4 Original Android Development] Remoteconcern:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Thanks for the amazingly detailed response. I'd give you more thanks but I can't!

I didn't have the init.d directory so I made it, but unfortunately it doesn't seem to work, even with pre made scripts. So I'm guessing there's a problem with using init.d on stock ROMs. Thanks a ton for the help anyway.
[Nexus 4 Original Android Development] thracemerin:
you'll need to install busybox: https://play.google.com/store/apps/...t=W251bGwsMSwxLDMsInN0ZXJpY3Nvbi5idXN5Ym94Il0.
[Nexus 4 Original Android Development] Remoteconcern:
Thanks a lot, both of you. I already had busybox installed. It's really quite strange. I followed all instructions perfectly, even testing with vibrator function and nothing is working.
[Nexus 4 Original Android Development] thracemerin:
busybox needs to be in /system/xbin, if it's in /system/bin for some reason it wont work during boot, check on that.

also, if you made the script on windows with notepad or wordpad (pretty much any windows text editor) it will have added windows carriage return characters and other various windows crap to the file, that stuff tends to mess up scripts in linux/android, you'll need to use notepad++ or something similar and save the files in unix format to avoid this problem.
[Nexus 4 Original Android Development] gianton:
Try this:

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

It enables init.d on any rooted device regardless of ROM/kernel. It works for me I tested it.
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

1st full discharge with b39, looks good!
[Nexus 4 Original Android Development] batman368:
i use trickster for everything, including color control. works awesome. i have the donate version, it's worth it
[Nexus 4 Original Android Development] nobnut:
There is something very wrong with your screenshot. See attached image.
[Nexus 4 Original Android Development] Somairotevoli:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Also lack of radio suggest airplane mode.

Sent from my Nexus 4 using Xparent Skyblue Tapatalk 2
[Nexus 4 Original Android Development] gianton:
Yes I was on airplane mode during the night, but screen was off. Maybe TC interferes with the readings.
[Nexus 4 Original Android Development] xcstacy:
Motley, I just want to say thank you for your hard work. I have been using your kernel for quite awhile now but this is the first time posting in your thread.

B38 was great. Battery lasted at least for 4 hours on 3G all the time. Just flashed B39 and I realized that battery is draining quite quickly with only minimal usage. 100% - 96% in 10 minutes with only Chrome Beta on 3G. Maybe I did a bad flash. Regardless I will try it out for today and report back the battery life. Btw, I'm using unofficial PUB AOKP.

Thanks motley!
[Nexus 4 Original Android Development] Remoteconcern:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Doesn't work for me. I press activate and it fails every time. I suspect it hasn't got the right permissions to make a folder in system, but unfortunately this is taking up too much of my time trying to learn when I have work deadlines coming up next week!

Thanks everyone for the help and I'm sure I'll try again next week. Thanks motley for the kernel and the atmosphere in the thread of help.
[Nexus 4 Original Android Development] _motley:
Thanks for the feedback everyone. I haven't noticed a lot of difference between b38 and b39 (with hsic fixes). I am going to observe for another full day today and and then we can go from here. Looking for input on battery use, data reliability, and data speeds. Slightly better battery isn't worth sacrificing the latter two items IMO.
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

I did enable roaming like you suggested... So far, with b39 it has been solid. Battery life is good, data seems to be working fine. I had couple of issues where h+ icon would get stuck with an up arrow, but it really hasn't happened enough to suggest there is an issue like before.
[Nexus 4 Original Android Development] ctfrommn:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

My wake locks are under 2% on b39 now. They were in the 5-6 range on b38.

Sent from my blazing bionic Nexus 4
[Nexus 4 Original Android Development] Remoteconcern:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Same. And no problems with data speed, or drops. Battery life better than ever.
[Nexus 4 Original Android Development] jazzboyrules:
I haven't seen much difference between b38 and b39 either. I have had no issues with data reliability and speeds. Battery life has been better before but I think that I sacrificed the battery life when I upgraded from PA 4.2.1 to 4.2.2. I have had no issues with the 4.2.2 radio and bootloader.
[Nexus 4 Original Android Development] gbroon:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Regarding data reliability quite often after flashing a new version I have had data drops and mobile signal remains grey. This is only on the first boot though and resolves itself fully if I just turn the phone off and back on. No problems at all after that. This isn't specific to the current version I've noticed it on a few earlier versions too.

37 to 38 went fine, 38 to 39 did this and I tried kernel wipe script and flashing 37 then 39 and got the problem again on first boot.
[Nexus 4 Original Android Development] starscream92:
Thanks for sharing your scripts. I swear about a month ago I was able to run -50 mV on Motley's older builds (B32 I believe, that was my daily driver for a long time). Now it just reboots (though very random and extremely seldom).
[Nexus 4 Original Android Development] azrash:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

perhaps there was a voltage at a specific clock speed that is undervolted a bit too low. Try doing the scaling test and see at which clock speed it reboots and increase the voltage for that. With b39, I am running at -62.5, fast binned chip

Flowed from my Nexus 4
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

No issues with data reliability or speed on b39, but for me at least its improved battery life, as I spend most of my time on 3G
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Which ROM are you running?
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

CM10.1, latest nightly
[Nexus 4 Original Android Development] starscream92:
Maybe. I'm not sure. I, too, have a fast binned chip. I'll try it again by echoing through shell. So you're saying you undervolted by -62.5 mV across all frequencies, with reference to Motley's defaults?

Same here no data issues whatsoever. I do notice that my battery drains a little faster. I haven't gotten to test it for the whole day, but I've noticed idle consumption this morning was greater than B38.

Strangely I got data drops on B38. I'm not sure if this is a kernel issue (probably not since there were no msm_hsic_host fixes) or more like ROM-related.

Also, sometimes when I leave my phone on WiFi for a while and it goes to sleep, I'd wake it up and see that I'd lost connection to Google services, and shortly after I'd get my notifications for Google Talk, Gmail, etc.

Flashed the latest CM10.1 nightly (21/02) along with B39 (was on 19/02 before) and the issue seems to have gone away completely.

Since B38 was marked stable, I'm suspecting that this was a CM10.1 19/02 nightly issue.
[Nexus 4 Original Android Development] nobnut:
No data drops at this end.

Battery is fine... not worse than 38.
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

I noticed some slight stuck up arrow issues on b38 as well as b39, so imo that's going to be a network or radio issue (network/general issue tbh, had it very occasionally on every device I have had, sgs2, gnexus, and this, though the n4 has been the best, qcom do know how to make a baseband that's for sure, and people on other networks have reported it as well over the years).
[Nexus 4 Original Android Development] azrash:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Yeap, I am too lazy to minus the values in the VDD table manually, so I used trickster app and set - 62.5 and copy the new numbers in the VDD table, and put it into the script. I disable trickster after that. Trickster doesn't play nice, it'll change the screen colour even when the only changes I made was to the voltage.

B39 is stable for me, no issues with data connectivity so far. Running the latest nightly of CM10.1

Flowed from my Nexus 4
[Nexus 4 Original Android Development] :
will touch control work on this kernal? coz its not working on stock 4.2.2
[Nexus 4 Original Android Development] gianton:
Yes it's working.
[Nexus 4 Original Android Development] thracemerin:
Yeah, it works on motley. It no longer works on stock because Google disabled it.
[Nexus 4 Original Android Development] tengen:
b39 is amazing so far; noticeably smoother than previous versions for me. Not that previous versions weren't smooth, but b39 seems to fix the few tiny flaws I noticed before. Data seems fine so far, despite my putting it through hell as far as wifi/mobile signal strength goes.
[Nexus 4 Original Android Development] starscream92:
Bad news. For some reason on B39 my phone gives me a crazy msm_hsic_host wakelock (26.5 mins in 6 hours standby, BBS reports it's on top of PowerManagementService, which is the first time this has ever happened on any custom kernel). I know Motley's previous kernels were among the best when it comes to minimizing this wakelock. What am I doing wrong?

Running CM10.1 21/02 Nightly. Flashed B39 over B37 as instructed.

Nevermind I'm an idiot. Didn't have B39. Had B37 instead. How the hell did I forget to flash the AnyKernel update!?!?!?! *Sigh* seems like I have to restart my testing today.

Anyways, anyone with a fast-binned chip care to share their voltages? Please make notes if your setup includes underclocking too. I want lower voltages but stable enough for a full-scale-range of the frequency steps.
[Nexus 4 Original Android Development] thracemerin:
Power Manager Service is the wakelock held when a userspace application is keeping the phone awake, if you look under partial wakelocks it will probably tell you which apps are doing it.

msm_hsic_host wakelock is related to the waking up and sleeping of the USB host controller which controls the 3G modem, if you have an app or service that is waking up to sync data on 3G a lot, this is probably the cause of your problem. Even if the partial wakelock screen in BBS doesn't tell you which app it is (sometimes it doesn't), I'd look at things like social networks, im apps, etc... as possible culprits.
[Nexus 4 Original Android Development] starscream92:
Yeah I saw your explanation before :) very nice. But I edited my post. I was being a dumbass.
[Nexus 4 Original Android Development] thracemerin:
Woops, lol :p
[Nexus 4 Original Android Development] batman368:
here is a voltage table with data from a lot of motley users:

https://docs.google.com/spreadsheet/ccc?key=0AnlqtEwFJwR6dE55WkZYSThEM3U4SGtKMVl2V1VqMmc#gid=0
[Nexus 4 Original Android Development] :
Can anyone recommend color settings for motley that are comparable to Franco or Trinity? First time using this kernel (I am on b39 with PA).

Thank you in advance.
[Nexus 4 Original Android Development] batman368:
big collection of colors:

https://docs.google.com/spreadsheet/ccc?key=0AoDp2qRui0u0dGE4T2gtSDBTRHVFSldPS2RrX1Rya0E#gid=0

i use the setting from acer73, works really well for me
[Nexus 4 Original Android Development] AcmE85:
The link does not work.
[Nexus 4 Original Android Development] thracemerin:
http://xdaforums.com/showthread.php?t=2039607

he copy pasted it from the forums, which shortened it with ... in the middle.
[Nexus 4 Original Android Development] batman368:
damn copy paste :)

https://docs.google.com/spreadsheet/ccc?key=0AoDp2qRui0u0dGE4T2gtSDBTRHVFSldPS2RrX1Rya0E#gid=0
[Nexus 4 Original Android Development] :
let me get this straight. I need to flash 37 first then only 39 right? Using stock kernal
[Nexus 4 Original Android Development] reaper000:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Yup
[Nexus 4 Original Android Development] sophan:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Deleted
[Nexus 4 Original Android Development] yyz71:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Loving b39

Sent from my Nexus 4 using Xparent BlueTapatalk 2
[Nexus 4 Original Android Development] pa.pn2:
can someone share his settings for this kernel?

actually i use ondemand/deadline min 384, max 1512 fsync off

is interactive more recommended?
[Nexus 4 Original Android Development] :
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Hi,

It means nothing without any information...

Rom?

CPU settings like min / max CPU freq, governor, governor settings?

Other kernel settings?

Other tweaks?

Thanks.

:)
[Nexus 4 Original Android Development] yyz71:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Sorry guys :)

I'm using Carbon Rom 1.1

Max freq 1674/min 304

I/O set to row

Freq set to Ondemand

GPU setting 487 with performance

Using Faux's App

Better?

Sent from my Nexus 4 using Xparent BlueTapatalk 2
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

2nd full discharge is even better!

CM Kang linaro builds and b39 UVed 50mv.
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

I don't know if it is the ROM or kernel issue but on cm10.1 linaro built I seem to be getting major slowdowns ever since b37. Would run great for about 8 hours or so, then it starts feeling choppy. Recents button would take good 4-5 seconds to bring app list, notification drawer feels laggy as well.
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

No such problem here, running b39 and CM Linaro 0222 build.
[Nexus 4 Original Android Development] thracemerin:
Do you happen to have force GPU rendering on?
[Nexus 4 Original Android Development] karanrajpal14:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Can someone here tell me how to undervolt? I've never done it before. Thanks!
[Nexus 4 Original Android Development] efan3719:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Battery life on 39 is phenomenal. Little over 6 hours screen on time with 9 percent left. :D
[Nexus 4 Original Android Development] azrash:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

I am on official nightly and b39 and i notice this lag too, it happens even when I don't UV. I might try stock CM kernel first and see whether the lags exist too.

Flowed from my Nexus 4
[Nexus 4 Original Android Development] gianton:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Use trickster mod app first to UV and find your stable values. Start slowly like -25mV for all frequencies and run some stress tests. Then try more.
[Nexus 4 Original Android Development] pa.pn2:
ok my 1st charge on b39 is over

i am really impressed coming from trinity

runtime about 1day15h, screentime bout 5h30m

thats really nice,no wakelocks, everything is smooth and nice

thx motley
[Nexus 4 Original Android Development] samwebbo1990:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

Hi Motley, thank you for such a brilliant kernel! Just one question, on b39 I'm getting around a 16 minute 'alarm_rtc' wakelock and I haven't had the alarm on at all? :/ Just wondered if you knew what was causing this?

Thanks in advance :)

Oh and one other question, I have a high wake lock (around 40 minutes) of:

'GTALK_ASYNC_CONN_com.Google.android.gsf.gtalkservice.AndroidEndpoint'

This only ever seems to appear overnight and never in the day. I have signed out of Google talk and uninstalled the app, I have the 'backup my data' un-ticked and I only have two gmail accounts synced. Has anyone else experiencing this or know the cause? Help would be appreciated :)
[Nexus 4 Original Android Development] Remoteconcern:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

In my experience it's really hard to reduce that wake lock. But it is caused by Google syncing as far as I know. By the way, talk being present, as long as it's signed out, doesn't seem to have any effect for me and so if you want it back, you can.
[Nexus 4 Original Android Development] veyka:
Re: [KERNEL][Feb 20][b39] _motley kernel for the N4 (hsic patches back for 4.2.2)

That looks like the Google push notifications system, so it may be caused by an app getting a lot of notifications.

Removing talk might cause more issues with push notifications, it can also be caused by talk losing connection and failing to reconnect.