yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] stratosk:
Did you enable logger in Semaphore Manager? Did you reboot after this?

The you can try this in terminal emulator:

su

logcat

You should see tons of log messages
[Nexus 4 Original Android Development] californicated:
Well...maybe I should enable log too :D
[Nexus 4 Original Android Development] stratosk:
logcat is unrelated to kmsg and last_kmsg.

logcat will show userspace messages (from Android framework and apps)

kmsg will show the kernel messages

last_kmsg will show the kernel messages till your last reboot.
[Nexus 4 Original Android Development] ilea94:
Hey folks,

Have tried your kernel for second time . First time I had some problems but now it is really smooth and overall really great! Thanks for that !

Like the combination of touchwake and gmd!

Also respect for the dev who tries to help nearly everybody hear!

I always had some signal problems with franco (not in stock) but your kernel does the job for me perfect. Don't know why but it just works :)

So I just got one problem.battery. I know that it's not the intention of the dev to get the best battery and that's ok but I just got about 2&half hours onscreen total.wakelocks seems normal. Just got nlp collector for like 35 mins but will try to turn off all location services .

For me it looks like phone is overall to hot with that kernel . Got the thermal led activated and I see it quite often even when just writing whatsapp and listening to music .

Didn't changed any settings . Will now try to undervolt a bit but I wanted to know what settings are stock ? Maybe something didn't changed because I tried a few other kernels before .

I dirty flashed pa Rom and then the kernel so it should be ok .

Sorry for that much text :D. I will investigate further and report if something changes .

So thanks for kernel :)

Gesendet von meinem Nexus 4 mit Tapatalk 4
[Nexus 4 Original Android Development] stratosk:
Thanks for your detailed feedback.

It looks that you installed correctly the kernel.

If you want default Semaphore settings (some settings are different from stock kernel) you may execute the respective command from Semaphore Manager app menu (reset to default).

2.5 hours SOT seems a low score, but everything depends on phone usage.

You may try to use less aggressive settings in ondemand and in dynamic hotplug driver, but maybe you should make sure that you don't have any issue with wakelocks or something like that.
[Nexus 4 Original Android Development] ilea94:
Thanks fot that fast reply!

Yeah i will need to investigate more to find out what problem i really have.

And now i have resseted from Semaphore Manager all settings. Few days ago i got better battery with stock PA Kernel and that shouldn´t be.

Actually i would like to ask one question. Do you know if there is some Scan intervall or something like that for the signal ? With franco it seemed like the phone was longer looking for signal after loosing it. With stock and your kernel it is much faster.

Just curious about this :D

I´m trying now all the kernels and you´rs seems really like one of the smoothest around.Great work !
[Nexus 4 Original Android Development] stratosk:
I'm not aware about scan interval. No changes in Semaphore regarding WiFi - I guess you mean scan interval in WiFi (?)
[Nexus 4 Original Android Development] Slymobi:
Scan interval is defined in system build prop. Nothing to do with kernel unless I'm mistaken ?

Sent from my Nexus 4
[Nexus 4 Original Android Development] ilea94:
No sorry i meant something different.

Not talking about Wifi . I mean Mobile data.

I´m driving everyday by train and there some places without reception (no Signal at all) and with your and stock kernelthe phone will find signal (like H for example) much faster than with franco. With franco it just stays longer without any signal.

I hope u get what i mean :D

For me it looks like your and stock kernel "look" much faster for a cell tower or signal than franco for example. So i thougt it may be something like a scan or something like that.
[Nexus 4 Original Android Development] stratosk:
I think this is modem related. I don't know if this is related to the kernel and what exactly affect this.
[Nexus 4 Original Android Development] ciprianruse88:
[MENTION=3750240]stratosk[/MENTION]

I am using your kernel with Purity rom since a while ago and it's the best experience ever and I've tried every kernel but I am having a small issue...I can get dmsg,last_kmsg but rom log is empty.I tried with logger on/off with reboot between switching it but no luck.Tried different kernels and no problem taking rom log.Not a big deal but I thought you should know.Please tell me if I can help in any way.Going to bed now but I will read your reply tomorrow.Cheers ! :thumbup:
[Nexus 4 Original Android Development] aaron.bufc:
+1 for 1.7.1 and Purity combo...the best this great phone has felt since I've had it.
[Nexus 4 Original Android Development] AhmedFaiz:
Wifi not connecting properly once it's goes out of the wifi signal range and when comeing back to the wifi zone it's suppose to connect automatically right, I have toggle off and on the wifi to connect again.

I don't know weather it is a kernel or Rom issue, but this kernel is super fluid performer, always SOT close to 5 hr mark consistently.

Thanks a ton. :)

N⁴/PA3.99_RC2(NIGHTLY)/Semaphore 1.7.1/V4A
[Nexus 4 Original Android Development] KingBeike:
Hi stratosk,

I can not give you a logcat, because i have the same problem as ciprianruse88.

I enabled logger, reboot and then waiting for the soft reboot. I get one and took a log with syslog. Empty ! I opened terminal Emulator, typed su, granted it, typed logcat. It says the file does not exist :(

Any idea ?
[Nexus 4 Original Android Development] kenshinta:
If I set tap to wake to max, would it eat battery too much?

I feel default is too short, especially coming from using touch control
[Nexus 4 Original Android Development] alen1901:
Yeah, it would eat your battery like hell. I personally use 3 seconds because im always near phone to touch screen if it times out. I wouldnt recommend more than a minute or two max.
[Nexus 4 Original Android Development] cmajetic:
i think max is a bit much but you can increase it. just don't forget to turn off the screen with the button if you are sure that you won't use your phone again in the next seconds ;)

Gesendet von meinem Nexus 4 mit Tapatalk 4
[Nexus 4 Original Android Development] Simer03:
I'm using carbon with no issues at all with this kernel

Sent from my Nexus 4
[Nexus 4 Original Android Development] lonz358:
+1, great combo
[Nexus 4 Original Android Development] skarayala:
Is this kernel compatible with paranoid 3.99 rc2?
[Nexus 4 Original Android Development] N4Solomon:
Thank God I'm not the only having the WiFi problem, I swear my phone was going bad but I have the exact problem you have with going out of range. Does your wifi/settings crash when you try to reconnect to a network after you disconnect?

This wifi issue started after I flashed this Kernel and its such a fantastic kernel but I can't use it because I only use Wifi for my data
[Nexus 4 Original Android Development] JmPTaz09:
You might as well just use faux's kernel :cool:
[Nexus 4 Original Android Development] a g bell:
I seriously doubt stratosk doesn't know how to make the best kernel:)

I am just glad he shares the magic
[Nexus 4 Original Android Development] Mahdi786:
Well if you check his github you will see that he has already exposed gamma to sysfs, I don't think Stratosk is here to cherry-pick from everyone else's kernels and make the best kernel ever. I think he has his own code to contribute.

Thanks Stratosk touchwake is working very well now, no reboots.
[Nexus 4 Original Android Development] TheeWolf:
Do you want him to make you a cup of coffee as well? :)
[Nexus 4 Original Android Development] playya:
LOL I think he gets the point now... Good job xda hopefully he wont make any more off the wall statements like that again... This is a forum of originality or at least some damn good attempts at it. The differences gives us choices and we all know how much we like that.

I would say: Lesson Learned! :good:
[Nexus 4 Original Android Development] stratosk:
My comments for your list:

- Voltage control: maybe in the future. I will not sacrifice stability with some minutes of battery.

- Mpdecision: maybe yes, maybe no. I'm not sure yet. I'm not sure if this driver must be included in the kernel. Kernel provides the functionality for something. It's user's decision about the policy. For example, kernel provides the functionality to CPU hotplug. The policy of how many CPU will be online or not, maybe it's a user decision (it's a policy). Moreover, mpdecision works pretty good (in my usage). Maybe, I'm wrong, I'm investigating this.

- FIOPS: no thanks.

- Intellidemand: no governors with fancy names. I make my own tweaks to ondemand. It's still 'ondemand'. I know that intellidemand has cpu hotplug feature (please see my note for mpdecision).

- 192 MHz: I think that LG-Google know something more about 384MHz min scaling freq.

- Gamma control: I don't care about colors (people from SGS forums know that :) ). But, I will not break anything if I will expose the gamma table to userspace. So, It's ready for next version.

- CPU/GPU OC: we need a cpu hotplug driver to put offline CPUs and we also need OC? This monster is more powerful than my laptop, why do I need to OC it? Maybe in 1-2 year when we will need to run Android 6.

- Fast charge: investigating if it's safe. Most probably I will include it.

- min/max online CPUs: yes, if I will decide a custom solution.

Thanks for your suggestions and your comments.
[Nexus 4 Original Android Development] masterchif92:
Next version gamma color yeah!!!!

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Original Android Development] Tylog:
Yes, this is what I am waiting for ( gamma controle ) after this this will be my daily kernel and I will spend you one or two beer for your work :)

Tapatalk
[Nexus 4 Original Android Development] stratosk:
0.5.5

- video: msm: Expose gamma table to sysfs* (thanks to faux123, franciscofranco for ideas)

- android: logger: Compiled as module** (disable by default)

- Clean up configuration (excluded swap support, ext2, ext3, some debug options)

- touchwake: clean code, remove debug information

- msm: acpuclock: Lower max L2 speed to 1134MHz (fix from Code aurora)

- built with Linaro gcc 4.7 201304

* You may tune gamma through sysfs using the following path:

/sys/devices/virtual/misc/gamma_control/gamma_r

/sys/devices/virtual/misc/gamma_control/gamma_g

/sys/devices/virtual/misc/gamma_control/gamma_b

You have to pass 9 values for each file (r, g, b). For example:

echo "64 68 118 1 0 0 48 32 1" > /sys/devices/virtual/misc/gamma_control/gamma_r

For your convinience, franciscofranco uses the terminology below for array's positions

"greys, mids, black, XX, contrast, brightness, saturation, white, XX"

So, he leaves positions 4 and 9 with hardcoded values. (You may also leave them untouched)

** In order to enable logger until next Semaphore Manager version:

- Copy the /lib/modules/logger.ko file to /data/local/

- give the file permissions (as root):

chmod 640 /data/local/logger.ko

- reboot
[Nexus 4 Original Android Development] Tylog:
I talk about it and there it is, thank you! :) now I can use your kernel, happy :)

Tapatalk
[Nexus 4 Original Android Development] Kagath:
really thank you for your quick response and for explaining your reasons.
[Nexus 4 Original Android Development] masterchif92:
For changing colors I must use this guide or I can also use the trickster mod?

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Original Android Development] Sad56:
You can disable mp decision with trickster mod if you want;)

N4 - Xenon HD - Semaphore Kernel
[Nexus 4 Original Android Development] stratosk:
You have to use this mini guide. This is not compatible with other kernels.

I will try to include some functionality in Semaphore Manager.

Please let me know if you need help with scripts.
[Nexus 4 Original Android Development] Tylog:
Is there a script for half breath settings out? :) this are my favorite settings,I hope you know them? :)

Tapatalk
[Nexus 4 Original Android Development] jarjar124:
Yay. It uses Franco's implementation of gamma or very similar :)
[Nexus 4 Original Android Development] Kagath:
If it's someone interested in AnTuTu I'm over 21500.

With Cyanogenmod 10.1 M3 and Semaphore 0.5.5.

Thanks a lot for your kernel fast
[Nexus 4 Original Android Development] stratosk:
Although, it's better to disable a couple of things in kernel. You may simply do this with a root explorer app.

Rename file /system/bin/mpdecision to /system/bin/mpdecision.orig

Reboot.

(I'm not responsible if your device will fly away :) ) Of course, nothing will happened.

#!/system/bin/sh

echo "64 68 118 1 0 0 48 32 1" > /sys/devices/virtual/misc/gamma_control/gamma_r
echo "64 68 118 1 0 0 48 32 1" > /sys/devices/virtual/misc/gamma_control/gamma_g
echo "32 35 116 0 31 16 80 51 3" > /sys/devices/virtual/misc/gamma_control/gamma_b

The values above are same as stock. Please replace with your owns.

Copy the above in a file and give it executable permissions. Run it. Or copy it to /etc/init.d and reboot.

EDIT: After running the script you need to turn off/on screen for the settings to be applied.

EDIT2: Or simply change /system/bin/mpdecision file permissions to non executable
[Nexus 4 Original Android Development] H-Body:
Thank you for gamma control my friend! Now it is time to jump on the train :)
[Nexus 4 Original Android Development] stratosk:
At your convenience, my friend! :)
[Nexus 4 Original Android Development] AhmedFaiz:
This issue happens for me sometimes only not always. Really not a problem for me just thought of Mentioning it here.

N⁴/PA3.99_RC2(NIGHTLY)/Semaphore 1.7.1/V4A
[Nexus 4 Original Android Development] PetritH:
Yes it is, download JWR version (the one without J in the end)
[Nexus 4 Original Android Development] PouperPoups:
I was having these issues with multiple recent ROM releases. Purity, PA, Slim. All the same issue. Went to work. Connected to WiFi. Came home and could not connect unless I restarted.

This is with multiple ROMs and kernels.

I've gone back to stock with this kernel and have had no issues. I'm waiting for KitKat to flash a new ROM. Between JWR & JSS, CM & AOSP driver issues, I've had enough with 4.3 problems.

Stock is flying very well!
[Nexus 4 Original Android Development] stratosk:
I guess something prevents the logger module to be loaded.

Please enable logger module in Semaphore Manager and then check if the logger is copied properly to /data/local.

Also, please post your init.rc file.

I would agree that since wifi works fine in stock issue is either on ROM or because devs made a change that broke compatibility with stock.
[Nexus 4 Original Android Development] ciprianruse88:
Or maybe the user didn't did a clean install.I never experienced this kind of issue.
[Nexus 4 Original Android Development] meangreenie:
I believe the WiFi reconnect problem is down to the 4.3 radio, data connection gets stuck. Using the .48 radio from 4.2.2 resolves it afaik.
[Nexus 4 Original Android Development] N4Solomon:
Will try this
[Nexus 4 Original Android Development] N4Solomon:
Whats your baseband version?
[Nexus 4 Original Android Development] Oops...:
Can't confirm that. I'm using latest radio from 4.3 (. 84), in combination with faux kernel and have no problem with wifi so far. So it's definitely not a radio problem.
[Nexus 4 Original Android Development] KingBeike:
Hi Stratosk,

i reflashed my rom a few times now, it tried franco kernel and also stock kernel. No Problems at all, with PSX, Cataclysm.

Even when i activate Touchcontrol or UV, i have no problems on other kernel :(.

As i said earlier, i cant get a logcat, dont know why.

Is there a way to figure out what the porblem causes? Because your kernel is so fu***ng smooth and battey friendly!
[Nexus 4 Original Android Development] californicated:
Since yesterday Touchwake gets enabled from time to time. Any log I can provide?

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] stratosk:
Hi,

Can you please test with the attached version?

It has logger built into the kernel.

What happened yesterday? :)
[Nexus 4 Original Android Development] KingBeike:
Works fine now! Syslog and with terminal emulator i get a log. Waiting for soft reboot now :laugh:
[Nexus 4 Original Android Development] N4Solomon:
That's the thing I'm using the latest faux without problem on the latest radio band but then if I attempt to use Semaphore it goes haywire
[Nexus 4 Original Android Development] gpvecchi:
Well guys, I finished trying to calibrate the display; I can say that calibration is far from being perfect, but I assume that this is a display limit.

About the two unknown values: I can't give them a name, but rising the first one make gamma more light in dark levels and the opposite in light levels.

The second one make the whole levels more dark, but even more dark in the lightest levels.

Now in the attachment you can see screenshot of calibration program of my display; keep in mind that every display is different, in particular the ones from rev10! The photos shows actual measures over correct lines, using these values:

R 252/110 20 119 0 0 9 71 48 2

G 240/114 21 119 0 0 7 71 48 2

B 216/114 21 119 0 0 8 71 48 2

P.S.: I used auto brightness, as this practically doesn't affect calibration
[Nexus 4 Original Android Development] Slymobi:
Hi Stratos

Only just found time to test this issue on stock jwr66y and running semaphore 1.7.1 I can report no issues and it runs slimport perfect. I probably won't be running the previous ROM I mentioned originally again so this is just for info purposes now really.

Thanks for your great work.

Sent from my Nexus 4
[Nexus 4 Original Android Development] californicated:
Nothing special. It's the day when I disabled touch wake and installed Gravity Screen.

Something I forgot to mention: When touch wake gets enabled by magic, Semaphore Manager still shows it as disabled.
[Nexus 4 Original Android Development] Oops...:
Ah, I see. Guess it's one of these problems which are not only related to a single part, but a combination. Sorry no further help from my side, just provided my observations.
[Nexus 4 Original Android Development] stratosk:
Semaphore Manager does not read the settings until you explicitly select the option from the menu. It shows user settings that will be applied during boot.

So, do you mean that the touchwake option is enabled (/sys/devices/virtual/misc/touchwake/enabled is set to 1) or that you tap the screen end the device wakes up?

I'm sorry for silly questions but I'm trying to understand what you see.
[Nexus 4 Original Android Development] californicated:
Silly questions? I'm glad about you trying to help ;)

When turning screen off the blue led turns on, and device wakes up when touched. So just the way touch wake is working.
[Nexus 4 Original Android Development] Svid:
Can i use trickster mod to control the kernel? got the app from the galaxy s3 times.
[Nexus 4 Original Android Development] szucsgf:
Yes. You just won't be able to adjust 1 or 2 Semaphore specific things. Though trickster makes adjusting colors easier.
[Nexus 4 Original Android Development] Svid:
The things are critical? or i better use Semaphore manager?
[Nexus 4 Original Android Development] snak3ater:
One thing that i know is the brightness setting which you can do only in semaphore manager..
[Nexus 4 Original Android Development] californicated:
I prefer Semaphore Manger over Trickster. Stratosk did a good job on both, the app and the kernel itself.
[Nexus 4 Original Android Development] stratosk:
Please try to get a kmsg after this happens.

I will check the code again.

Also, is it possible to check with Gravity app uninstalled? (and without enabling touchwake)
[Nexus 4 Original Android Development] californicated:
Sure. I'll get you the kmsg after it happens the next time. After that I'm going to try if it happens with Gravity Screen disabled/uninstalled.
[Nexus 4 Original Android Development] -iNSiGhT-:
Semaphore manager is waaaaayyy lighter than Trickster (which do lag my phone on every boot...)

Paranoid mako
[Nexus 4 Original Android Development] szucsgf:
Semaphore manager is free. Give it a try. Some things you can only adjust in Semaphore app are Stratosk 's brightness control and SAI, for example. (You can search the thread to see what these do).
[Nexus 4 Original Android Development] KingBeike:
Here are alle the log from latest reboot
[Nexus 4 Original Android Development] stratosk:
Can you please post the output of this command in terminal emulator?

su

ls -l /system/lib/hw/

EDIT: If you want, please test the attached test version. Please install it over your stock kernel.
[Nexus 4 Original Android Development] KingBeike:
"can't execute: Is a directory"...

is this the same version you postet some pages ago? i use the version 1.7.2 you posted here with logger build into kernel
[Nexus 4 Original Android Development] stratosk:
My friend, I think something goes wrong to your installation (or something goes wrong in my mind :) ).

Can you please post a listing (ls -l) of /system/lib/ ?

If you get the same error try to ls -l /

I just need to see the contents of /system/lib/hw directory.

No, it's different file (with the same version number). It doesn't starts mpdfake. This is a service I made to accept powerHAL messages for touchboost. It works OK on stock.

In the logcat you sent, there is segmentation fault in mpdfake service (among other many warnings and error messages). I'm not sure if this starts from the segmentation fault or generally something wrong in your ROM.
[Nexus 4 Original Android Development] KingBeike:
Here you go
[Nexus 4 Original Android Development] stratosk:
Thanks!

Your installation is not clear.

Please see the file 'power.msm8960.so.bak' file. This should be 'power.msm8960.so' in a clean installation.

Franco kernel changes some files. You need to dirty flash your ROM and then flash Semaphore kernel.

Another thought: does you ROM comes with Franco kernel?
[Nexus 4 Original Android Development] KingBeike:
No, psx and catalysm do not come with franco, but i tried Franco Form time to time. Okay thanks ! Will do this now ;)
[Nexus 4 Original Android Development] stratosk:
OK, if the issue persist, please try the test version (flash your stock kernel before) and send me the logs in case of soft reboot.
[Nexus 4 Original Android Development] jst_tsj:
[MENTION=3750240]stratosk[/MENTION] the 1.7.2 version fixed the logcat issues on slim bean 1.8 :) thx my friend
[Nexus 4 Original Android Development] stratosk:
Thanks for feedback. Obviously it works because it's built into the kernel in the test version. I need to find a solution to work also as module.

I don't want this stuff loaded all the time. :)
[Nexus 4 Original Android Development] stratosk:
[MENTION=3183256]jst_tsj[/MENTION]

Can you please post init.rc and init.slim.rc?
[Nexus 4 Original Android Development] jst_tsj:
Haha!! That's why :) anyway, the init files are below:

https://dl.dropboxusercontent.com/u/17484732/sema.zip
[Nexus 4 Original Android Development] MuertoKo:
It may and most posible will not be kernel related, but as I'm using pure stock + Semaphore thought was the place to ask:

When browing the net having the device plugged to charger it gets hot, like 56º CPU, that's ok, full brightness + charger + chrome hit hard, BUT after a while surfing max. screen brightness goes lower O.o

It's not like it really lowers, it's still set to max, but screen has less light (it actually jumps down while using it, so pretty easy to notice).

Is this something intended during CPU throttling or something? Perhaps chrome-related? (Happens when surfing a dark webpage, some forum with dark background but couldn't find a tooggle for that really).

Anyone else facing this? Are my eyes getting old with 24 y/o? O.o
[Nexus 4 Original Android Development] KingBeike:
Thanks for your help stratosk ! Always so fast and friendly, amazing !

No reboot now, everything works fine ;).

Using the latest 1.7.2 ZIP you posted