yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] C4SCA:
;)

Any changes on the kernel part for JWR66Y? Or JWR kernels that so far where created will work flawless on JWR66Y Roms? :confused:

sent from my NEXUS 4 tasting a revamped cooking recipe of Jellybeans (stock 4.3).
[Nexus 4 Original Android Development] snak3ater:
Semaphore JWR kernel works fine on JWR66Y factory image..No issues.
[Nexus 4 Original Android Development] Stef@67:
Hi !

Just wanted to thank you again, Stratosk, for your job.

I just gave 5 stars, on google play store, for semaphore app.

And I wanted to report that I installed latest kernel 1.5.5j on JSS15Q build. No problem so far... :good:
[Nexus 4 Original Android Development] kyp101:
Hi, i have the No baseband problem . i tried The 3 last version without succes.

I'm on cm 10.2 with hybride radio .33/.84.

Thank!

Envoyé depuis mon Nexus 4 en utilisant Tapatalk 4
[Nexus 4 Original Android Development] snak3ater:
Can you tell me what's the purpose of this baseband option other then just info :confused:

I am curious why would someone worry for not having this info in the rom
[Nexus 4 Original Android Development] thracemerin:
It tells you if the baseband (3g/4G radio) loaded correctly.
[Nexus 4 Original Android Development] lyuz:
Had this same problem. Today installed Semaphore N4 1.5.5. Try this: flash ROM, flash Kernel Emergency Settings Reset Zip, flash semaphore kernel, flash gapps, SuperSU, etc...

Sorry for my bad english.
[Nexus 4 Original Android Development] stratosk:
No, there are no changes in the kernel for JWR66Y.

Could you please send a kmsg and a logcat (enable logger module first) after a reboot.

Maybe, I could see something there without installing CM myself. :)

If this works, it means that a leftover from previous kernel conflicts.
[Nexus 4 Original Android Development] pitjago74:
I was on holiday and I found this??Stratosk they can give you 1 Star o ½Star....but everybody Knows you work for FREE...And thats why every user In XDA,Htcmania,HTCSpain RESPECT your work.....Just THANK YOU:D:D:D

Enviado desde mi Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] lyuz:
Perhaps, but previous kernel stock CM.I do not know, but the baseband to work, when in / system / etc / init.d it was so, see the screenshots

Sorry for my bad english.
[Nexus 4 Original Android Development] stratosk:
Then there is a conflict with my initramfs.
[Nexus 4 Original Android Development] Anrikus:
Hi [MENTION=3750240]stratosk[/MENTION]

Could you please take a look at the attached Screenshots and give me a hint what went wrong?

Currently I'm on the Slim 4.3 JSSQ15 build with your 1.5.5j Kernel.

So far everything is smooth, but I have a big sns_async_ev_wakelock that keeped my phone awake for nearly 40% of the time.

The screenshots were taken after I unplugged my phone and went to sleep (so the 12.5 hours reported in the screens are the phone lying at my coffee table with WIFI on and sync on)

I tried to ask google about this, but the results are mixed.

Normally I can pin a bigger battery drain to some apps, but in this case I'm puzzled.

Even if this is not related to the kernel, do you have an idea what behavior could cause something like this?

Best Regards

Anrikus
[Nexus 4 Original Android Development] snak3ater:
It isn't related to the kernel..It's some App which is messing with your system.For starters try disabling greenify.See if the wakelock stops..

I also had the same wakelock but on different kernel.In my Case i quickly found out the culprit App.I had installed Deep sleep Saver App.This wakelock started the moment i installed that App.Removed it & the wakelock stopped.In your case i see only Greenify to be most probably causing issue.Try to remember what exactly you installed in your phone that this wakelock appeared..
[Nexus 4 Original Android Development] Anrikus:
Hi [MENTION=4770534]Sak3ater[/MENTION],

Thanks for the confirmation, that this is not kernel related.

Still i have problems to pin it down to a specific app. I didn't change my setup / apps for the last two weeks. And before I upgraded kernel and ROM I never saw something like this.

Even Greenify had the same setup.

As far as i could figure it out, the 'sns_async_ev_wakelock' seems to be sensor related. That information alone is more confusing, since the phone was just lying there and I nothing I could think of with sensors was used / activated (NFC disabled, wireless charging disabled, SAI options disabled, no touch control)
[Nexus 4 Original Android Development] snak3ater:
Yes..While i was doing google on this wakelock i also found out about it related to Sensor but just like you my phone was also lying there & no sensor was being used.But luckily i was able to pinpoint the App..Just try to disable your Apps one by one & see if you can find the App..Start with Greenify...Trust me..99% of my problems were due to greenify.I simply wont install it ever.In my case it eats more battery than all..Android OS shoots up like crazy & wakelocks with strange names starts to appear..I really had a bad experience with this App..
[Nexus 4 Original Android Development] gpvecchi:
I think I read somewhere in this thread that there is a beta test program... How to register?
[Nexus 4 Original Android Development] spr33:
The one in the Play Store is the only Semaphore app out there I believe.
[Nexus 4 Original Android Development] blade_:
nice thought...greenify is the only app i use and your post made me uninstall it...lets see the results..
[Nexus 4 Original Android Development] lyuz:
The problem is not in the initramfs. Look please kmsg.file & logcat.
[Nexus 4 Original Android Development] snak3ater:
Lol..Don't ininstall it..Just disable & check if it's causing any issues :D
[Nexus 4 Original Android Development] blade_:
thats not a problem,i reinstall it again.
[Nexus 4 Original Android Development] snak3ater:
Oops ..Spelling mistake..I meant uninstall :victory:
[Nexus 4 Original Android Development] Gafanhotz:
Hey guys, with JSS15Q (latest CM nightly) is the kernel 1.5.5j running fine?

Edit: nah. got the "unknown baseband".
[Nexus 4 Original Android Development] Squeaner:
Works for me with the latest official nightly.
[Nexus 4 Original Android Development] C4SCA:
Any mirror for version 1.5.5 JWR?

semaphore websites is down

EDIT: found the download button :angel:
[Nexus 4 Original Android Development] kyp101:
Without baseband....i can not make or receive call.

[MENTION=3750240]stratosk[/MENTION] i will try to send you a log tomorow.

Envoyé depuis mon Nexus 4 en utilisant Tapatalk 4
[Nexus 4 Original Android Development] stratosk:
I'm sorry, I'm not sure about this wake lock.

Did you see any specific?

I think there is related to kickstarter.

Anyway, I think I will install CM to check myself the issue.

Thanks anyway for the logs!
[Nexus 4 Original Android Development] rschueg:
hi [MENTION=3750240]stratosk[/MENTION]

i'm on 24/8 cm10.2 nightly and when i installed your kernel 1.5.5j i had no gsm. not even the pin unlock dialog worked. baseband was shown unknown.

any hints? i add a screenshot from my config without your kernel ...
[Nexus 4 Original Android Development] stratosk:
Hi,

Unfortunately, you can't do anything. Other users also report this issue.

I'm going to install CM today to resolve this.
[Nexus 4 Original Android Development] manjee:
It happened to me on slim too. I simply engaged the lockscreen security, it made the Sim pin code appear and everything's OK now...

HTH.

Envoyé depuis mon Nexus 4 en utilisant Tapatalk 4
[Nexus 4 Original Android Development] rschueg:
i have lockscreen (pin) security enabled.
[Nexus 4 Original Android Development] y3mita:
I've got no idea how but after flashing your kernel on slimbean beta 3 I lost my APN and there was no way of adding one manually. The way I fixed it, dirty flashed ROM, gapps, your kernel. Then power off device, remove sim card, insert sim card and reboot.

APN is fine now and I have data now.
[Nexus 4 Original Android Development] McPh1st0:
I hate to qoute myself but i think this kernel deserves it!!! I think the results are quite good! Altough i didn't use my phone that frequently in the last days i think 3+days & 3+SOT are nothing to be ashamed of...

Thanks for that great kernel!!!
[Nexus 4 Original Android Development] Anrikus:
Thanks,

For now I just rebooted the phone and in this night I had 98% deep sleep and the wakelock was gone.

I didn't change anything, so I guess this was some strange unexpected behavior of my device.
[Nexus 4 Original Android Development] philidor:
All work with latest cm build

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 Original Android Development] hotnikkelz:
This kernel is super lovely on the latest 4.3 build, JWR66Y. Thanks stratosk
[Nexus 4 Original Android Development] jolas:
[MENTION=3750240]stratosk[/MENTION],

I was using for a couple of weeks Franko Kernel, which is a very good kernel, until yesterday I tried your kernel and I loved the smoothness of Semaphore kernel and the way it works.

Only thing if missing is TouchControl support...

I quoted some of your thread's posts (#2511 and #2513) and TouchControl's developer answered why is not supporting your kernel.

Could you look at posts #3277 to #3282, it would be super if we have TC working with your kernel.

Thanks in advance.
[Nexus 4 Original Android Development] un.droid:
Been using this kernel for two days now, loving it so far. Can any one help me with understanding the undervolting procedure via trickster mod? There are two options to undervolt, lower freq and higher freq. I've undervolted both by 100m, does that mean that the undervolting is only applied when the phone is running minimu, and maximum frequencies?
[Nexus 4 Original Android Development] capoooro:
Try semaphore app. Is more complete for tuning of this kernel. By the way you have two ranges of frequency. Divided in high and low. You have undervolted all frequency by 100

Spaghetti Mandolino Pizza
[Nexus 4 Original Android Development] rschueg:
hi,

i have the identical configuration. cm10.2 nightly and baseband version are exactly the same.

but when i flash the exact same version (1.5.5j) of the kernel:

- no pin unlock of my sim-card is shown

- it starts with my lockscreen unlock (pin)

- baseband version is shown als "unknown"

- no way to get gsm working (no phone, no data)

after that i tried to reflash baseband ... but with no effect. so i'm back on cm's kernel.

very strange. :(
[Nexus 4 Original Android Development] stratosk:
I found the issue of unknown baseband in CM.

I reproduced the issue in CM using Semaphore.

The problem is SELinux.

CM changed configuration of SELinux and it's different from stock.

Using CM's SELinux configuration resolves the issue but causes massive audit errors in stock ROM.

I have to find a way to have a SELinux configuration that will work fine on both stock and CM.

Or I should use different initramfs on normal and 'j' version (that is used on CM). In this case I don't know if other ROMs use stock or CM approach.

Or maybe I should stop using initramfs in Semaphore...

BTW: I really hate SELinux!
[Nexus 4 Original Android Development] snak3ater:
Stratosk..Any comments on this?

Quoted from other thread.A guy asked Touch Control Dev to work on Semaphore.Thisis what Bponury replied..
[Nexus 4 Original Android Development] stratosk:
Touchwake does not use IRQs to wakeup the device. It simply holds a wake lock and prevents the device goes to sleep.

Anyway, I can't say what exactly is the conflict with touch control since I don't have access to the code.

Moreover, I'm not going to drop GPL code (touchwake) for a close source kernel module (and app).
[Nexus 4 Original Android Development] jolas:
[MENTION=3750240]stratosk[/MENTION]

I believe that a lot of people would love to see TC working on your marvellous kernel.

Do you believe that it is worth trying with TC's dev. to find a common solution or are you not interested?

Should we ask the same question to the other person?
[Nexus 4 Original Android Development] snak3ater:
We should ask Bponury if he even tried working on Semaphore.Stratosk has done his job.Now it's Bponury who should be working with Semaphore.I myself want TC to work with this kernel.But how to overcome this deadlock between Touch Wake & Touch Control :crying:
[Nexus 4 Original Android Development] stratosk:
I am here to cooperate with Bponury (if I can) and find a solution.

I can't help if the solution means to drop touchwake.
[Nexus 4 Original Android Development] ak:
The battle begin ... a long story ... always the same problems and questions ... :angel: ... from sgs epoch!
[Nexus 4 Original Android Development] stratosk:
Honestly, there is no battle. But I can't do anything. :)

I need either source code to see if I can help or directions to modify touchwake code and resolve possible conflicts.
[Nexus 4 Original Android Development] ak:
I do not think that the developer is willing to provide the source ... and however, should compile the module with linaro toolchain .... but this is another story.
[Nexus 4 Original Android Development] twowheeler:
1.5.5 is running perfect here. There's nothing more I could ask for :). I hope my nexus will start the ota update pretty soon
[Nexus 4 Original Android Development] Drmol:
If you still haven't recieved the JWR66Y update, simply go to Settings -> Apps, find Google Services Framework, force close it and delete its data. If you then check for system updates, you should get it.

The Play Store might stop working for you (didn't happen in my case), if it does, simply delete your Google account and re-add it, that should solve it.

Also make sure your system is completely stock with no modifications whatsoever and you should be running stock recovery as well (even stock kernel to be on the safe side although I've heard that's not necessary for this particular update), otherwise the update might fail to install.
[Nexus 4 Original Android Development] gialakias:
The recovery doesn't matter, just make sure you have the stock apps and files unmodified and fully unroot before applying, or else flash directly the modified ota for rooted n4 from efrant.

(sorry for the off topic)
[Nexus 4 Original Android Development] funcrusher:
2JD04574DU788144N

Thanks for the great work you've done on this kernel.
[Nexus 4 Original Android Development] stratosk:
Thanks so much!

Really appreciated!
[Nexus 4 Original Android Development] twowheeler:
And what about kernel and root?
[Nexus 4 Original Android Development] gialakias:
There is another thread for this : http://xdaforums.com/showthread.php?t=2145848
[Nexus 4 Original Android Development] ioucorsa:
Confirmation number: 3S509622BX643622D

as i promised some days ago!

go to have a drink for your good work!
[Nexus 4 Original Android Development] stratosk:
Thank you very very much!

Θα πιω στην υγειά σου! :)
[Nexus 4 Original Android Development] deeppans:
Semaphore on CM 10.2

I was on CM 10.1 with Semaphore and didn't get a chance to look into 4.3.

Can someone please let me know if I can flash Semaphore Kernel on latest CM nightly cm-10.2-20130826-NIGHTLY-mako.zip?

And which version?

I read few pages back regarding issue with baseband, problems with root, etc. Hence asking.

TIA
[Nexus 4 Original Android Development] adiif1:
Hi How to set min and max CPU?? and touch load?
[Nexus 4 Original Android Development] capoooro:
Semaphore app in playstore

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Original Android Development] Sir_gpm:
Any version newer than 1.5.0 is for 4.3? or just the 1.5.0
[Nexus 4 Original Android Development] stratosk:
Any version >= 1.5.0
[Nexus 4 Original Android Development] -iNSiGhT-:
I think CM is JSS based. So you'll have to use the j version of any version from 1.5 (1.5.5 is the latest).

Paranoid mako
[Nexus 4 Original Android Development] Sir_gpm:
Looks really good, great work. Try to test it but it cause loop in booting. Using MIUI ported from 4.2.2, but no luck.
[Nexus 4 Original Android Development] adiif1:
i have semaphore app ;/ and dont have min and max cpu ;[
[Nexus 4 Original Android Development] snak3ater:
Try trickster mod
[Nexus 4 Original Android Development] Sir_gpm:
Running 1.4.1 in slimrom 4.2.2 will download the app to control the kernel...thnxs
[Nexus 4 Original Android Development] stratosk:
I'm not sure about the compatibility with MIUI. I think it doesn't work.
[Nexus 4 Original Android Development] twowheeler:
Would be great if this feature will also be in the next semaphore update. And maybe some more phone info like temperature. ;)
[Nexus 4 Original Android Development] apatal:
If you are referring to setting the number of mom and max online cores, it's in the Semaphore app. As for touch boost load, it's in the governor settings (ondemand). Try searching for past posts by the dev where he explained each tunable and their effect of you play with them. Cheers. :)
[Nexus 4 Original Android Development] Sir_gpm:
I set enable touch wake in semaphore manager. But how it works to wake my phone?, I did slide as side2wake, touch the screen but nothing happend.
[Nexus 4 Original Android Development] Naa Laa:
Don't turn off your phone using the power button.
[Nexus 4 Original Android Development] rschueg:
as confirmed by stratosk CM10.2 currently doesn't work with his kernel (1.5.5j) because auf selinux problems.

i even tried it with 0827 nightly mako ... no baseband, no gsm phone and data. :(
[Nexus 4 Original Android Development] gpvecchi:
It works, check my signature... Installed with full wipe from 24/8 nightly. Just an issue, don't know if it's kernel/ROM/modem related: data drops. No, not data drops, bars suddenly disappear then come back, but without data drops...

Edit: Selinux set to permissive. Multi click on it in settings to change, but I think it is the stock value.
[Nexus 4 Original Android Development] gialakias:
[MENTION=293437]rschueg[/MENTION] There is a workaround for your problem.
[Nexus 4 Original Android Development] rschueg:
thx, it worked. i will test it for a while.

changing selinux setting with multiclick leeds to a total hang with a endless reboot in cm10.2 ... so it's no option.

is there another way to change selinux to permissive? changing boot.img is a bit of a hazzle.
[Nexus 4 Original Android Development] snak3ater:
This thing is making me mad here..Tried Carbon Rom & what i did was multiclick on selinux..The phone hanged & then i was stuck in bootloop.I wonder why including this option if it doesn't work
[Nexus 4 Original Android Development] stratosk:
Google implemented SELinux in permissive mode.

This means that only audit will work (but not supported yet in stock ROM) in order vendors will configure it correctly.

Setting it to enforcing (in custom ROMs only) will cause you many troubles in a incomplete SELinux configuration.

I recommend to do it only for development purposes.
[Nexus 4 Original Android Development] snak3ater:
Thanks for the clarification..Actually i occidentally pressed that option.

Now that i know about it,will stay away from SElinux :highfive:
[Nexus 4 Original Android Development] rschueg:
when google delivers permissive mode, cm must have changed it to moderat. do you know a way to set it back to permissive?
[Nexus 4 Original Android Development] bponury:
Hi there :)

Sorry it took so long but I am a bit overloaded. I looked at touchwake and patched it to make it a bit more sane. Having in mind a KISS rule I only did minimal changes in order for it to work.

TL;DR below is a patch that will fix touchwake so it won't interfere with TouchControl if it's disabled (touchwake):

diff --git a/drivers/input/input.c b/drivers/input/input.c
index ad45927..ec79fee 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -247,7 +247,7 @@ static void input_handle_event(struct input_dev *dev,
if (is_event_supported(code, dev->keybit, KEY_MAX) &&
!!test_bit(code, dev->key) != value) {
#ifdef CONFIG_TOUCH_WAKE
-	if (code == KEY_POWER && !device_is_suspended()) {
+	if (touchwake_is_enabled() && code == KEY_POWER && !device_is_suspended()) {
if (value == 1)
powerkey_pressed();
else if (value == 0)
diff --git a/drivers/misc/touch_wake.c b/drivers/misc/touch_wake.c
index 50645e7..9682fdb 100644
--- a/drivers/misc/touch_wake.c
+++ b/drivers/misc/touch_wake.c
@@ -66,8 +66,17 @@ static void touchwake_enable_touch(void)
return;
}

+bool touchwake_is_enabled(void)
+{
+	return touchwake_enabled;
+}
+EXPORT_SYMBOL(touchwake_is_enabled);
+
static void touchwake_early_suspend(struct early_suspend *h)
{
+	if (!touchwake_enabled)
+	return;
+
if (touchwake_enabled && timed_out) {
wake_lock(&touchwake_wake_lock);
led_trigger_event(&touchwake_led_trigger, LED_FULL);
@@ -93,6 +102,7 @@ static void touchwake_late_resume(struct early_suspend *h)
led_trigger_event(&touchwake_led_trigger, LED_OFF);
timed_out = true;
device_suspended = false;
+
return;
}

diff --git a/include/linux/touch_wake.h b/include/linux/touch_wake.h
index 0185ec7..00b2293 100644
--- a/include/linux/touch_wake.h
+++ b/include/linux/touch_wake.h
@@ -7,6 +7,7 @@

extern void touchscreen_enable(void);
extern void touchscreen_disable(void);
+bool touchwake_is_enabled(void);

void powerkey_pressed(void);
void powerkey_released(void);

If you add that to your kernel and publish it I think I could make a working TC version with it.

Cheers :)
[Nexus 4 Original Android Development] stratosk:
As far as I know, CM has it in permissive mode by default. But you change it tapping some times in the About-> Selinux

Hi!

Thanks for the patch! I will check it and I will prepare a test version tomorrow.

I will let you know.

Thanks again!
[Nexus 4 Original Android Development] thracemerin:
Yes, CM ships with Permissive as the default.
[Nexus 4 Original Android Development] snak3ater:
Cannot believe it.. Finally tc is coming to semaphore.. Wow...

Stratosk & Bponury...Thanks a lot
[Nexus 4 Original Android Development] stratosk:
[MENTION=2538253]bponury[/MENTION],

I'm checking you patch and I think it will cause an issue.

When touchwake is disabled and touch control is not used the touchscreen will remain powered on for ever.

Is this required for touch control to work? I guess yes, but please confirm. I need to find other solution.
[Nexus 4 Original Android Development] bponury:
No the screen will go off normally. Ideally all #ifdef CONFIG_TOUCH_WAKE content should be embraced in if (touchwake_is_enabled()) { } that way it will work as stock if not enabled.

But the screen should go off without a problem with that patch I sent.
[Nexus 4 Original Android Development] stratosk:
The LCD panel will go off, but touch device will remain powered on.

In your patch, if touchwake is disabled, touch_early_suspend will break early without calling touchwake_disable_touch() (that powers off touch).

So, do you need touch powered on?
[Nexus 4 Original Android Development] bponury:
Well yes but not then. But I think that touchscreen early suspend call should disable touch by itself. Won't it?
[Nexus 4 Original Android Development] sgw99:
Do I understand correctly that Semaphore 1.5.5(j) is currently not working with eg. 0828-nightly? Thanks for any info.
[Nexus 4 Original Android Development] stratosk:
I'm sorry, I don't understand. Do you need touch always powered on?

No, something have to be done in early suspend to disable touch.

We have to call touchwake_disable_touch() to power off touch.
[Nexus 4 Original Android Development] Sir_gpm:
Can I use this with the last release of this amazing kernel?
[Nexus 4 Original Android Development] rschueg:
yes, i was a bit confused by the german translation in cm settings about of selinux status saying "moderat" instead of "permissive".

so, although selinux is disabled, semaphore doesn't work with cm10.2 nightlies so far. no baseband, no gsm.

with a patched boot.img (semaphore's in cm zip) baseband is ok, gsm works, but i had some connectivity failures which forced me to start/stop gsm. so i switched back to cm10.2 without semaphore's kernel and connectivity was perfect again.

it would be great to have your kernel with cm10.2. ;)