yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] XlAfbk:
I'm trying to set the gamma values from command line. Thing is, the settings I want are not applied while another set of settings applies just fine.

I got my values by setting them in Faux Display (but I want to get rid of it due to a number of issues) and then reading the values from the kgamma files, so I know they work and can be applied.

My settings (that won't be applied):

echo "208 64 68 118 0 24 8 83 64 3" > /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo "210 64 68 118 0 24 8 83 64 3" > /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo "212 64 68 118 0 24 8 83 64 3" > /sys/devices/platform/mipi_lgit.1537/kgamma_b
echo 1 > /sys/devices/platform/mipi_lgit.1537/kgamma_apply

Other set of settings that is applied just fine:

echo "396 114 21 118 0 13 0 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo "405 114 21 118 0 20 2 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo "408 114 21 118 0 22 3 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_b
echo 1 > /sys/devices/platform/mipi_lgit.1537/kgamma_apply

Any idea what's "wrong" with my settings so they aren't applied?
[Nexus 4 Original Android Development] JaylanPHNX:
Kindly provide a last_kmsg or there's nothing a dev can do. Kernel works fine for a lot of people. Without logs, how is he supposed to know what to fix, if it's even a kernel problem?

Sent from my Nexus 4
[Nexus 4 Original Android Development] jetcz:
just got random reboot right after boot up, not sure if its kernel related though
[Nexus 4 Original Android Development] yht9425:
Does anyone have force close issues with faux display and faux sound running ART?
[Nexus 4 Original Android Development] JaylanPHNX:
I've run those successfully on ART, but you're not the only one with that issue. I wouldn't expect any support on it right now, since ART is still experimental.

Sent from my Nexus 5
[Nexus 4 Original Android Development] JaylanPHNX:
That would go a long way to explaining why only some people get the screen flicker, since not every chip handles sleep states the same.

Sent from my Nexus 5
[Nexus 4 Original Android Development] retskrad:
I'm planning on buying a pair of headphones that has high impedance (250 ohms) and my stock Nexus 4 isn't close to be able to drive them, and I'm a student right now so I cant afford an amplifier that is good.

Has anyone tried faux sound with high impedance headphones?
[Nexus 4 Original Android Development] GiluxVanAce:
Which one do i have to flash on the PA-4.0-Rom?
[Nexus 4 Original Android Development] TheNerd:]:
Any really....
[Nexus 4 Original Android Development] faux123:
Kernel 031 is official!

m - mainline => stock CPU 1.51 GHz

u - mainline => up to 1.84 GHz w/450 MHz GPU

- Release 31 (01/03/2013)

* core scheduler optimizaitons

* cortex-a15 flags added for krait cpus

* ARM LoUIS cache API added

* fastcharge driver added (working)

Enjoy!
[Nexus 4 Original Android Development] THEBANDIT420:
Yes awesome love you faux
[Nexus 4 Original Android Development] Goku80:
would love to rate your thread five stars but already done it...thank you again for your awesome work buddy
[Nexus 4 Original Android Development] natzy85:
Notice this last night myself but with the latest version is gone. Great way to start a new year :)

Now that fast charge is working this is the only and best kernel to use for our N4. This kernel will be the reason I will still use Nexus years ahead.

Thank You Paul!
[Nexus 4 Original Android Development] jetcz:
still getting these with u31 and intellidemand
[Nexus 4 Original Android Development] davej23:
Is this kernel stable enough for daily use? I don't plan on underclocking or overclocking.
[Nexus 4 Original Android Development] bamsbamx:
yes it is
[Nexus 4 Original Android Development] davej23:
Thanks.
[Nexus 4 Original Android Development] tagari:
Thanks for all your hard work!A quick question though..Do you plan on updating the recommended settings or they are fine for KitKat?
[Nexus 4 Original Android Development] clsmn:
great to hear about 31!

anyone still having reboots with the 31U-version? with version 30 i just could use mainline for stable work...
[Nexus 4 Original Android Development] max4wdc:
Always I have a fuc*ing lag with this kernel and cannot fix it :( , can i use touchboost ? And other thing how change the minimum cpu online from one to two ?
[Nexus 4 Original Android Development] AG469:
Running fine on my n4. :)
[Nexus 4 Original Android Development] montbazon:
It means your device can't control 1.8ghz OC;)

Gesendet von meinem Galaxy Nexus mit Tapatalk
[Nexus 4 Original Android Development] montbazon:
Could you update your recommended settings for Brand-new Intellidemand 5.0?

Thank you, faux!!!

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] Voltaine:
WIFI isn't working for me

Slimkat beta 2 + faux v31m
[Nexus 4 Original Android Development] hooliganx:
more information is always good.

what kernel you use before?

clean flash?

wipe caches... or reflash rom...

N4*Slim.4.4.2-b2*AK.012XG*T49H*TWRP.2.6.3.3*0.98
[Nexus 4 Original Android Development] Voltaine:
ah sry, totally forgot that :silly:

used ak xgenesis v12 before

flashed slims boot image before flashing faux kernel

wiped cache + dalvik
[Nexus 4 Original Android Development] Alexkidd85:
For example, i have lag with this setup!!
[Nexus 4 Original Android Development] franciscofranco:
Do you still remember what caused the FC? Is there anything about scaling_min and scaling_max freqs file permissions? Because I enforce some permissions on my ramdisk.
[Nexus 4 Original Android Development] ctfrommn:
I never looked, I just submitted the report and downloaded the new app, which doesnt FC anymore.
[Nexus 4 Original Android Development] franciscofranco:
Yeah, waiting for faux to reply to me, I don't wanna cause issues to other devs, specially if that means breaking their apps. I wouldn't want that to happen with my app as well.
[Nexus 4 Original Android Development] ugotproblemz:
Having issues with the governor configuration sticking...it keeps resetting back to default. (upon backing from app and rebooting)

also im running on the most recent update that was pushed out today.

suggestions?

Thanks
[Nexus 4 Original Android Development] MontAlbert:
Spreadsheet link again?
[Nexus 4 Original Android Development] jarjar124:
Look in general forums of nexus 4
[Nexus 4 Original Android Development] resynx:
In my sig.
[Nexus 4 Original Android Development] jacklebott:
I believe _motely seems to have found a way to keep the screen colors from resetting on screen on/off without using an app. Is this possible to incorporate into your kernel?
[Nexus 4 Original Android Development] SIGUEL:
Really nice settings, looks a bit blueish to me but colors really pop.

Sent from my Nexus 4
[Nexus 4 Original Android Development] faux123:
yeah, it's called hard coded :p But if you change it from the hardcoded values, you will still need an app to keep the changed settings. So it solves nothing.
[Nexus 4 Original Android Development] faux123:
Governor settings has 2 issues in general there's nothing we can do about it from the app side.

1. Sampling Rate. The JellyBean PowerHAL will enforce a certain sampling rate, so no matter what you change to, the PowerHAL will simply overwrite it with its own liking.

2. Max Frequency related settings. Here we have 2 battles to fight. 1 is again PowerHAL, 2nd is Thermald. Once thermald kicks in, because it, again, uses hardcoded frequencies, it will overwrite whatever you set to some predefined settings whenever thermald is used (over heating).

Thermald is on my radar so hopefully I will bring thermald under control soon. The first issue with PowerHAL we probably just have to get used to the idea that PowerHAL is here to stay and certain governor settings will no longer be user adjustable due to it.
[Nexus 4 Original Android Development] jacklebott:
It just seemed like he was suggesting that even after changing it with an init.d script, it'd still stick with on/off
[Nexus 4 Original Android Development] Ace42:
Is anyone's camera acting finicky? Whenever I UV & underclock the camera rear camera freezes and then reboots my device sometimes. Though other times it will just FC gallery instead. I know the the os is resetting the CPU speed b/c whenever it reboots my CPU settings are different. So I'm guessing that the camera app enforces some predefined settings.
[Nexus 4 Original Android Development] jacklebott:
Undervolting too far will freeze the camera. That's actually the method I used to check how far I could undervolt ;)
[Nexus 4 Original Android Development] Ace42:
Wow I did not see that coming, guess I'll test the camera app from now on for stability. :highfive:
[Nexus 4 Original Android Development] wililye:
setting not stay

I'm trying to set LMF Max Freq to 1350000

I changed to 1350000 and apply then set on boot

but always it go back to 1242000

any idea?

I'm on xylon rom with beta5

max1.242 min 384

intellidemand

mpdecision off

snake charmer on

-150 uv

gpu set 400 with vsynce on

IO scheduler deadline

readhead size 2048

thank you
[Nexus 4 Original Android Development] justbabu:
Check the what's new page on Google Play for the app. LMF is set to max FREQ by design.

Sent from my Nexus 4
[Nexus 4 Original Android Development] jacklebott:
So I've been meaning to ask, why are there hidden frequency steps that can have their voltages set, if they aren't used at all? Like 1404MHz, 1296MHz, 1188MHz, and so on.
[Nexus 4 Original Android Development] IAmAN00bie:
So apparently some people on the AOKP thread have managed to underclock the CPU to 50MHz stable. Are you going to surprise us Faux? :p
[Nexus 4 Original Android Development] ak:
xgenesis use caf wifi drivers, you have to use uninstaller or reflash your rom. :good:
[Nexus 4 Original Android Development] Voltaine:
That did the trick :victory:
[Nexus 4 Original Android Development] BYTeXperience:
Now you have to make the following steps to make it work:

1. Install again ak xgenesis v12

2, Install ak uninstaller

3. Wipe cache + dalvik

4. install faux123 v031

That's all you have to do for make the wifi to work again, as AK say xgenesis v12 use CAF WiFi drivers.
[Nexus 4 Original Android Development] salehmbaker:
Every Time I use the U version of the Kernel my N4 goes to the red light of death thing, Happened with 4.2,4.3 and 4.4 I did overclock the device with other kernels and everything was OK.
[Nexus 4 Original Android Development] miomabusy:
Can I request some script for init.d? Like s2s s2w dt2w?
[Nexus 4 Original Android Development] Locksmith81:
Here's your answer. Few posts above yours.

Use M= mainline version

gapping time
[Nexus 4 Original Android Development] creepinm3:
So this is really smooth. I wonder what Faux does to make this as smooth as butter.
[Nexus 4 Original Android Development] mohitgalaxy3:
Guys I have made a new color profile, and I think its perfect. Give it a try pls.

Balancedcolor: 255 255 255 6 6 6 0 0 0 0 0 0 0 0 0 0 0 0 5 5 5 2 2 2 0 0 0 3 3 3 2 2 2 7 7 7 5 5 5 1 1 1 6 6 6 7 7 7

How to apply:

Go inside faux clock folder and open faux display.text and paste this at the end and then select profile from clock app.
[Nexus 4 Original Android Development] hooliganx:
ll give a try...

if I can edit this file :banghead:

N4*Slim.4.4.2-b2*AK.012XG*T49H*TWRP.2.6.3.3*0.98
[Nexus 4 Original Android Development] xcyborg007:
OTG

Hi ppl..

First huge thanks to faux for this awesome kernel..

I know this has been asked before..

But can anyone pls tell how to enable usb OTG on latest version..

I went through the entire search pages and it yielded me this code

echo 1> sys/module /msm_otg /parameters /otg_hack_enable

Which after typing in terminal emulator didn't yield any result..

Any light on the above is greatly appreciated.. Thank you..

PS : I've earlier tried using usb OTG on the nexus 4 and it works well- ziddeys kernel using y cable..
[Nexus 4 Original Android Development] RealSlimShadyMC:
Are you benchmarking? Because running it at 1.8+ GHz consistently can damage it. If you're getting RLoD, don't overclock. It can damage the hardware.
[Nexus 4 Original Android Development] gtanner00:
I think it's already enabled but nobody uses it because nexus 4 requires an external power source for otg so you need a special adapter.

-just what I've heard
[Nexus 4 Original Android Development] biggyk:
So this is the kernel I need to use Faux sound on my nexus 4? Where can I get the stock kernel just in case I need to flash back? On the OP the link says not found.

Thanks
[Nexus 4 Original Android Development] RealSlimShadyMC:
Reflash your ROM or get boot.img from factory image. And yes, faux makes both.
[Nexus 4 Original Android Development] biggyk:
Oh I didnt realize that I needed to flash the Rom again if I needed to revert back to stock kernel. Figured I could just flash the kernel.
[Nexus 4 Original Android Development] RealSlimShadyMC:
You don't, but the ROM contains stock kernel. Just dirty flash it without wiping, nothing gets lost
[Nexus 4 Original Android Development] TheByteSmasher:
Sorry, I've just downloaded the app and I'm at work so if this had been asked, please don't bite my head off: are there plans to introduce sound control into the app as is accessible through trickster?
[Nexus 4 Original Android Development] JaylanPHNX:
Faux Sound is a separate app. There are reasons, though I don't remember now.

Sent from my Nexus 5
[Nexus 4 Original Android Development] xcyborg007:
OTG help

Hi ppl..

First huge thanks to faux for this awesome kernel..

I know this has been asked before..

But can anyone pls tell how to enable usb OTG on latest version..

I went through the entire search pages and it yielded me this code

echo 1> sys/module /msm_otg /parameters /otg_hack_enable

Which after typing in terminal emulator didn't yield any result..

Any light on the above is greatly appreciated.. Thank you..

PS : I've earlier tried using usb OTG on the nexus 4 and it works well- ziddeys kernel using y cable..
[Nexus 4 Original Android Development] sgs505:
Hi ... [MENTION=3332811]faux123[/MENTION] and also the others ...

is it the correct behavior seeing internal storage when plug into my computer usb while Fast Charge set on ??

Should i change something in the Fast Charge option ? (i set Force AC cause i got only USB2)

And what should i choose under Battery Throttle CPU frequency ??? (the lowest it can handle or ??)

Also : scare me when i saw Farenheit Temp in Faux ...big numbers

I mean i didn"t directly notice it is now both in F° and C° ... now i know ..

Also I forgot... Last 31u on 4.4.2 stock ... in case
[Nexus 4 Original Android Development] kwerdenker:
Enabling fast charge when you plug the device into a computer USB port does nothing. It only helps if you use an ac charger that isn't correctly recognized as such. It's only meant for those special cases and normally should be set to off.
[Nexus 4 Original Android Development] sgs505:
Ho ?? :eek:

So why does it mention USB2 and USB3 then ??? :confused:

Does it mean you have to find out wich usb version is the charger then ??? :confused:

Make me very confuse now ... lol :silly:
[Nexus 4 Original Android Development] kwerdenker:
USB 2.0 specification states a maximum of 500mA as supply current per port, USB 3.0 raised that to 900mA. This is explained in the description for the new fast charge option in faux's app.

AC charger don't have to adhere to these specs, that's why you have a wide range of chargers from 500mA to 2A(2000mA) or more. The USB spec defines a way how a device can distinguish between those two possibilities but very cheap charger are not always recognized as such. The device then stays in the USB data connect modus (which draws only 500mA) instead of switching to the charger modus, which enables it to draw more current thus charging faster.

The Fast charge option only changes how the system handles this detection of the external connected device and forces it into the defined state. In case of a not correctly recognized charger this enables you to use it correctly. In all other cases it does nothing or it can even be harmful to either your device or the device (pc, laptop, etc) you are connecting it to because it might try to draw more current then the device is able to give.
[Nexus 4 Original Android Development] sgs505:
fast charge

Ok think i see "disable acces to storage" under Trickster Moder's (Use FauxClock :good:)fast charge option that's why i'm getting confused.

And also ... Force AC= custom 500? on a usb2 port ... and is it safe set on the standard charger coming with the N4 ?

:silly:
[Nexus 4 Original Android Development] kwerdenker:
If you use the original charger or your computer, just set fast charge to off. That's the safest option you have and it will work optimal in 99% of the cases.
[Nexus 4 Original Android Development] sgs505:
Fast charge dangerous if set on ...

Not on custom but just enabled ??
[Nexus 4 Original Android Development] explorerman:
Just want to ask if this kernel v31 is compatible with cm11 m2 build? I just bought my nexus 4 recently so im not yet familiar thanks :)
[Nexus 4 Original Android Development] kwerdenker:
Under the right circumstances, yes
[Nexus 4 Original Android Development] JaylanPHNX:
Since you're new, I'll give you the short answer: no CM moved away from AOSP kernel. For the long answer, search the terms CM and CAF.

Sent from my Nexus 5
[Nexus 4 Original Android Development] Dryblow:
Fixed OC/UV kernel with fauxclock?
[Nexus 4 Original Android Development] xcyborg007:
Guys pls..

Can anyone guide me towards how to enable usb OTG on this kernel..?

I've the required y cable..

Thanks in advance..
[Nexus 4 Original Android Development] hooliganx:
use fauxclock app

N4*SlimKat-b2*Matr1x.12.5*T49H*TWRP.2.6.3.3*0.98
[Nexus 4 Original Android Development] xcyborg007:
Thanks for quick response..

But is there any way other than that app.. As my cards are not getting through Google wallet I'm not able to buy that app..

After searching through this entire thread.. I got this code..

Echo >1 sys/module /msm_otg /parameters /otg_hack_enable

But how do I get it to work..??

Thanks in advance..

---------- Post added at 02:49 PM ---------- Previous post was at 02:47 PM ----------

Thanks for quick response..

But is there any way other than that app.. As my cards are not getting through Google wallet I'm not able to buy that app..

After searching through this entire thread.. I got this code..

Echo >1 sys/module /msm_otg /parameters /otg_hack_enable

But how do I get it to work..??

Thanks in advance..
[Nexus 4 Original Android Development] SpasilliumNexus:
With Terminal or similar. The spacing is wrong in your post too. Should be:

echo 1 /sys/module/msm_otg/parameters/otg_hack_enable
[Nexus 4 Original Android Development] gandharva:
+1
[Nexus 4 Original Android Development] xcyborg007:
Thanks mate.. Will get back to you after I try it..
[Nexus 4 Original Android Development] strapped365:
Running the 031 m release and I noticed since the newest fauxclock update that in Thermal manager it shows a Fahrenheit and a Celsius for tweaking the intellithermal.

Well it looks like the tempatures are all jacked...

I've cleared the app data deleted the folder from my internal memory reinstalled the kernel and everything and it still shows wonky.

The funny thing is if I move the frequency throttle temp slider up to 69° C it shows a lower temp in F than 65°C.

I'm on Stock Factory 4.4.2 images with xposed and GB if that helps.
[Nexus 4 Original Android Development] sgs505:
Mine on 31u
[Nexus 4 Original Android Development] a g bell:
Anyone else not going into deep sleep with mpd disabled ? running 31u
[Nexus 4 Original Android Development] HiGhDRo3o5:
Looking great here on 31u
[Nexus 4 Original Android Development] sgs505:
You're not using last of Faux Clock otherwise you should at least see T° in both F° & C°

It seems to be an application issue not a kernel one ... perhaps wrong thread to express?
[Nexus 4 Original Android Development] ksilver89:
[MENTION=3332811]faux123[/MENTION]

Just got a kernel panic on 031m. I have attached the last_kmsg. Thank you very much for your work. The new fast charge works great!

Kernel Settings:

Mpdecision OFF

Interactive governor

Sleep state C0, C2, C3 on, C1 off

No UV

zRAM OFF

[78890.248790] ------------[ cut here ]------------
[78890.248912] WARNING: at kernel/softirq.c:159 local_bh_enable_ip+0x40/0xd0()
[78890.248973] Modules linked in:
[78890.249096] [<c00147b8>] (unwind_backtrace+0x0/0xe0) from [<c006a348>] (warn_slowpath_common+0x4c/0x64)
[78890.249218] [<c006a348>] (warn_slowpath_common+0x4c/0x64) from [<c006a378>] (warn_slowpath_null+0x18/0x1c)
[78890.249340] [<c006a378>] (warn_slowpath_null+0x18/0x1c) from [<c0070ea4>] (local_bh_enable_ip+0x40/0xd0)
[78890.249462] [<c0070ea4>] (local_bh_enable_ip+0x40/0xd0) from [<c0151274>] (wakeup_flusher_threads+0x58/0x7c)
[78890.249584] [<c0151274>] (wakeup_flusher_threads+0x58/0x7c) from [<c027b280>] (dyn_fsync_force_flush+0x10/0x24)
[78890.249675] [<c027b280>] (dyn_fsync_force_flush+0x10/0x24) from [<c027b2a8>] (dyn_fsync_panic_event+0x14/0x20)
[78890.249797] [<c027b2a8>] (dyn_fsync_panic_event+0x14/0x20) from [<c008cbd0>] (notifier_call_chain+0x38/0x68)
[78890.249920] [<c008cbd0>] (notifier_call_chain+0x38/0x68) from [<c008cd90>] (__atomic_notifier_call_chain+0x34/0x44)
[78890.249981] [<c008cd90>] (__atomic_notifier_call_chain+0x34/0x44) from [<c008cdb4>] (atomic_notifier_call_chain+0x14/0x18)
[78890.250042] [<c008cdb4>] (atomic_notifier_call_chain+0x14/0x18) from [<c08a75d0>] (panic+0xcc/0x1f4)
[78890.250164] [<c08a75d0>] (panic+0xcc/0x1f4) from [<c0011d74>] (die+0x2d8/0x368)
[78890.250286] [<c0011d74>] (die+0x2d8/0x368) from [<c08a6f80>] (__do_kernel_fault.part.15+0x54/0x74)
[78890.250377] [<c08a6f80>] (__do_kernel_fault.part.15+0x54/0x74) from [<c00190fc>] (do_page_fault+0x30c/0x358)
[78890.250499] [<c00190fc>] (do_page_fault+0x30c/0x358) from [<c00084c4>] (do_DataAbort+0x160/0x184)
[78890.250561] [<c00084c4>] (do_DataAbort+0x160/0x184) from [<c000da58>] (__dabt_svc+0x38/0x60)
[78890.250683] Exception stack(0xcb6e3f68 to 0xcb6e3fb0)
[78890.250774] 3f60: 3359e5c0 3359e608 00000000 76810480 000f0002 32b1f980
[78890.250835] 3f80: 3359e581 000f0002 400b0010 3359e5fc 7a31a735 3359e581 02900000 cb6e3fb0
[78890.250957] 3fa0: 7681048c c000dfa8 400b0093 ffffffff
[78890.251018] [<c000da58>] (__dabt_svc+0x38/0x60) from [<c000dfa8>] (vector_swi+0x28/0x88)
[78890.251079] ---[ end trace 2be2290cb820dd06 ]---

No errors detected
Boot info:
Last boot reason: watchdog
[Nexus 4 Original Android Development] sxp:
only faux kernel not enough

first flash ziddey otg aosp kernel

this kernel including android modification

mount external storage

faux NOT

and after flash faux kernel and enable otg

and now work automont
[Nexus 4 Original Android Development] explorerman:
Thanks for the response :) and can you suggest me a custom kernel that works with cm11 thanks
[Nexus 4 Original Android Development] Rohit02:
Ak CAF based kernel. :good:

Hells Cm kernel BEST. :)
[Nexus 4 Original Android Development] evcz:
Or check this cm build http://xdaforums.com/showthread.php?t=2524014
[Nexus 4 Original Android Development] SpasilliumNexus:
Thank you for this tip. Now I don't have to use StickMount to mount manually.

To make this more understandable, while in recovery:

1. Flash Ziddey's OTG Kernel here [aosp r7] as it adds Settings > Storage > Mount/Un-mount USB Storage

2. Flash Faux's kernel

3. Reboot back into Android

4. Enable OTG either by using FauxClock or using Terminal: echo >1 sys/module/msm_otg/parameters/otg_hack_enable

5. Plug in your USB drive and it will automount

6. To unmount, go back into Settings > Storage > Un-mount Shared Storage.
[Nexus 4 Original Android Development] black_bottom:
what kind of usb-storage hardware supports this? perhaps you have a spec or -better- a link to a product which will run with this hack. merci! ;)
[Nexus 4 Original Android Development] xtrymind:
trying 31m on psx, it's normal that bootanimation just long for 1 sec?