yashsingh1/xdaforums huggingface dataset:
[HTC One X] fgth90:
Thanks for responding.

As I said, I created the new 55sw2wake script, inserted it in lyapota_S2W_4.18.401.2_kernel_011.zip (in \system\etc\init.d\), flashed it by cwm and reboot.

55sw2wake is present in system/etc/initd/ with values that I want, so I don't have to modify it, it's present.

But it has no effect on values on real files present in system.

I tried to modify direct values by root explorer, but does not work. I think it's a pb of permissions or so (write....)

Dunno what to do.

I think I'm gonna try to do a factory reset and flash the modified lyapota.zip that I created and see how it does.

Any suggestion?

Thanks again

Franky
[HTC One X] asp2010:
Have you checked that your init.d script has the right permissions? You could also take a look at the sysfs files, see if their permission are all right.
[HTC One X] fgth90:
Thanks for responding.

When rebooting, the script is mounted read-only.To see its permissions, I have to mount it read / write by root explorer. Once done, the script permissions are rwxr-xr-x.

File permissions that I want to change (by the script) are all rw-r--r--

Could this be my problem?

Thanks in advance

Franky
[HTC One X] asp2010:
The permissions look fine to me, as long as the owner and groups are all right. Please check that the init.d script is owned by 0 (root), group 2000 (shell), and the sysfs files you want changed have both owner and group 0 (root).

That being said, could you try running the script in a terminal emulator? There are a few of these apps on the Play Store, download one of your choosing, then run the following commands:

$ su
# sh /system/etc/init.d/55sw2wake

Please note you should not include the '$' or '#', these are just to point out you need to enter 2 separate commands at the prompt. The first one will request root privileges, please allow that. Also, note that the path after sh in the second command is just the path to your script, so if I got it wrong, please adjust it accordingly.

After you run the script, check to see if your values have been applied. If they have, your script is fine, but it doesn't get run at boot time. If they haven't, there's a problem with your script. In either case, post the result and someone should be able to help you.

Good luck! :good:
[HTC One X] fgth90:
Error when landing script by smanager.

not found/zzsw2wake

Here's script:

#!/system/bin/sh

echo 1 > /sys/android_touch/sweep2wake;

echo 10 > /sys/android_touch/s2w_register_threshold;

echo 725 > /sys/android_touch/s2w_min_distance;

echo 0 > /sys/android_touch/s2w_allow_stroke;

echo 1 > /sys/android_touch/pocket_detect;

echo 1 > /sys/android_touch/s2w_allow_double_tap;

echo 500 > /sys/android_touch/s2w_double_tap_threshold;

echo 150 > /sys/android_touch/s2w_double_tap_duration;

echo 0 > /sys/android_touch/s2w_double_tap_dead_area;

echo 1 > /sys/devices/platform/htc_battery/fast_charge;

echo 1 > /sys/kernel/tegra3_dvfs/gpu_quick_oc;

echo 1 > /sys/module/cpu_tegra/parameters/perf_early_suspend;

echo 1 > /sys/module/cpu_tegra/parameters/no_edp_limit;

I join file itself (in zip)

Can you help me?

File is present in system/etc/init.d/ dunno why it can find it.

Thanks

Franky
[HTC One X] asp2010:
What do you mean? How does that work, do you select the script and run it? Can you browse for it or something?

The script itself looks fine.
[HTC One X] DeeZZ_NuuZZ:
If you make a script with smanager you have to put in data partition or on sdcard...it doesn't work if you put in init.d location! But you also clicked on su and run ? Because if you make a script with smanager click again on the file , but it have to be in data partition or on sdcard then if you clicked on it there are some buttons like su etc...click on su...give the su permissions and click on run...then reboot it should work

Gesendet von meinem One X mit Tapatalk
[HTC One X] Souldrinker:
Is it just me or does nfc not work with the latest #011beta? I usually pay using SEQR in the local grocery store and it has always worked before, both on earlier roms and on ViperX both on stock and lyapota #008. But for the last two days I've been unable to read the NFC tag and have had to fallback to the camera to read the qr code instead...

Another thing I've noticed is that it seem to take slightly longer to wake the phone from sleep than on #008, but at least it wakes up every time now as opposed to #008 which hung quite often.
[HTC One X] MK77:
Try to connect to my Smartwatch 2, and NFC works.
[HTC One X] lyapota:
Ver #012

Ver #011 died in beta stage.

Ver #012 remade from scratch

Now it not copy past from old kernel sources, changes made point by point on the new sources.

So now it 99% HTC 4.2.2 kernel with poins changes.

Chage log in OP. Supports all HTC ROM goods, nothing cutted at all.

Don't point please on the min frequence in trickster mod.

Trickster mod do not correct show min freq limit, rather it shows no user limit but at momemt policy min frequency.

Boosting cpu and governors can set min and max policy limist to short time for hold cpu in some mode, after this reset limits to user value.
[HTC One X] lyapota:
Now about my plans to this thread.

After testing #012, kernel will be separate on the three named branches.

Current #012 will be LM serie with mpdecision hotplug.

#007 will be replaced by LS serie with stock HTC best trade hotplug.

Also you will see LQ serie with cpuquiet hotplug and appropriated governors for this.
[HTC One X] p50kombi:
Cool..

Going to test 12 now..

I know I keep bangin' on about this, but any chance you can implement backlight control?

That would be totally awesome as that's the only thing I'm missing at the moment...

Thanks man, great job so far!! :)
[HTC One X] Eiad Ajam:
status 7 error #12

Edit: i will try changing recovery
[HTC One X] lyapota:
Sorry bit outdated with thread questions. Kernel reworking took all free time.

Do you ask about smartdimmer control?

Yep, i can implement it.
[HTC One X] p50kombi:
Nope, that's not what I meant :)

It's the capacitive button backlight.

In Xmister and Alex kernel there was a parameter which you could use to set the brightness of the backlight, please see quote below :)
[HTC One X] chihliouma:
Hi lyapota, I just flash v12, and it seems working fine, but I also found the 3 hardware led never be tuened ON. Is that correct ?
[HTC One X] Diddy555:
Can confirm this. Otherwise v12 seems to be good. The graphics performance is the best i got so far with your kernel, 49 fps in epic citadel high quality with smartmax/row@1,3GHz, -50mV :good:
[HTC One X] DeeZZ_NuuZZ:
gta san andreas is running really great :) interactive and row and it's MUCH better now :) #12

[MENTION=540886]lesscro[/MENTION]

ok hm somehow after trying to change interactive values it's now really laggy..whole phone...hope it will be normal later...
[HTC One X] fjlour:
Will test soon. :eek:
[HTC One X] log30:
Please any antutu test with v12

Enviado desde mi HTC One X mediante Tapatalk
[HTC One X] d1n0x:
First of all, you can do a test yourself.

Secondly, benchmarks don't mean SH*T.

On-topic: GPU 3D scaling setting doesn't stick.

EDIT: Just rebooted the phone and now my touchscreen doesn't work anymore. I can wake up the phone fine, but can't enter my PIN.

EDIT 2: Tried a second reboot and could enter my PIN as long as the screen didn't turn off. As soon as the screen turns off on the PIN screen, there is nothing left to do but a hard reboot.
[HTC One X] log30:
Frist of all relax second if there are anybody with the kernel installed i want to know only for see how is graphics performance

Enviado desde mi HTC One X mediante Tapatalk
[HTC One X] DeeZZ_NuuZZ:
flash the kernel and test games !!!!! then you see how graphics performance is !! benchmarks doesn't show the real performance...just flash the kernel and test high end games -.-
[HTC One X] Diddy555:
I just recognized the backlights working :) so all is fine for me now. There is no lag here...
[HTC One X] high_voltage:
It's not that hard to run one antutu for him. Can't get why so much hate towards those requests? For example I was about to flash the kernel and now I read that there is still the sleep problem(screen goes off and bam - touchscreen is dead). I had that issue with previous version of the same kernel - so it was going to be waste of time to change back the kernels+the phone battery was going to last less then next few cycle to "test" something. We are community and I don't agree to bash such request that much. Also benchamarks MEANS **** when they are ran and analyzed from someone who knows for what to look to in different benches. Also antutu is divided in different categories and it's easy to compare vs stock/other kernel where is the lower performance. /nohate, but you all should stop the bashing too. We are all humans after all.
[HTC One X] lyapota:
Can you try with dissabled s2w?

I'm want to know it s2w related, or to wakeup from suspend mode.
[HTC One X] fjlour:
With default settings, right after flash #012.

Antutu: 16500

Epic Citadel High Quality: 50.5 fps
[HTC One X] lesscro:
This one #012... Perfect for me... no issue actually...

@ One-X-Master...

Yep 51-1300 / row / GPU 3D scaled ON / uv-75 mV /
[HTC One X] TAGTRAUM:
With disabled s2w touchscreen works, rebooted 3 times in a row :fingers-crossed:
[HTC One X] DeeZZ_NuuZZ:
why do you leave gpu 3d scale on? disabling it will make performance better because gpu is running without scaling with cpu which can be really bad
[HTC One X] high_voltage:
I told you long time ago - new s2w gives issue with touchscreen for like 1/4 of the people. Can you use the old one? It's faster on waking and d2w is not that much used anyway. Pointless gimmik. Otherwise you can look at the new s2w and what cause the touchscreen freeze. Cheers and 10x for the developing!
[HTC One X] treebill:
3D scaling has nothing to do with the CPU.

When enabled it allows to GPU to lower its clock speed when idle/low work loads.

And this saves power, the hit on performance from having it on is negligible
[HTC One X] DeeZZ_NuuZZ:
lol then some ppl told me the wrong things -.- and if this is really the truth they told me the wrong sh1t -.-

...i get also under 16k in antutu...interactive/row 1,3ghz....hm
[HTC One X] lyapota:
Thanks! Hope it last issue with s2w :D
[HTC One X] lyapota:
For me the new alghoritm better. Much complicated, but better. I'm will revert to old one only when in three week can't solve pointed critical problem. At momemt all previous issue solved, hope i'll solve this too.
[HTC One X] high_voltage:
If you want to compare run @1.5GHz 520gpu and interactive governor. You should score 17000-17300(on sense! Aosp score a lot lower!).
[HTC One X] log30:
*-* stock configuration latest version 16660 on antutu it's so good if we will get cpu overclock.... :0 18000 xd

Enviado desde mi HTC One X mediante Tapatalk
[HTC One X] lyapota:
With disabled EDP limitation.
[HTC One X] DeeZZ_NuuZZ:
you really think 0.2 ghz would be make such difference? :D gpu is now by default [MENTION=3705640]520[/MENTION]mhz...but this kernel won't get 17k....the ones with such high score were alex-v 2.6 pa2/3 and sometimes xm kernel and trips gaming kernel....and another i think...
[HTC One X] log30:
How can i disable EDP?

Enviado desde mi HTC One X mediante Tapatalk
[HTC One X] high_voltage:
I think [MENTION=1148003]lyapota[/MENTION] answered to your question. You only need to enable all cores @ 1.5GHz and set that freq. 200MHz on 4 cores gives a lot of performance. :)

I am just waiting to rlash and test beta for the s2w bug that freeze the touchscreen.
[HTC One X] DeeZZ_NuuZZ:
lol ok my edp limit is disabled but will trying now again...something went wrong i think... but otherwise not bad battery life and it's after a reboot fast and smooth again with interactive :)
[HTC One X] fjlour:
I can't set the no EDP limit.

Even if I set the file permissions to read/write and save it, after reboot the file is restored with 0 inside and with read permissions only.

:crying:

Do I have to add an echo line to the init.d file?

I appreciate some help setting the parameters in OP.:fingers-crossed:
[HTC One X] DeeZZ_NuuZZ:
echo is already set....i have the same problem i just manually changed to 1...
[HTC One X] drivenby:
Could you add support for swap /turbo boost mod?

I can't get it to work in v12
[HTC One X] meat_hooligan:
How to enable GPU 520? Or need to add a line in the init.d?
[HTC One X] stathis95194:
For #012

GPU 3D Scaling doesn't stick on trickster. What's the attribute i need to change for that to try it like this?

In another note, Minimum Frequency now sticks to 51MHz on trickster with no problems

Thanks a lot lyapota. Trying for one hour smartmax/row and so far so good!!!
[HTC One X] fjlour:
I confirm that even using the 55 file in init.d to set the EDP limit to 1, does not work.

After reboot the file always resets to 0.

---------- Post added at 05:52 PM ---------- Previous post was at 05:50 PM ----------

Gpu is 520MHz by default, the clock only goes to 520MHz if necessary, playing a game for example.
[HTC One X] lyapota:
Yep, I'm know about it. That what I starting and not finished in #011. Bit other attribute realisation.

Отправлено с моего HTC One X через Tapatalk
[HTC One X] fjlour:
So, only you can disable the EDP stuff? Are you going to fix this?

Sorry but I didn't understand this part:
[HTC One X] meat_hooligan:
Thank you! Now I am calm :)

Thanks for the 012 version, everything works great, without 55sw2wake in init.d.

ROM ViperX, variant tegra 1. CPU settings: 51-1500MHz, Smartmax, Row, Voltage -25.

:good:
[HTC One X] lyapota:
No, you can do it too manually, but only after kernel loaded. It's not applied in init.d scripts while kernel booting.

Отправлено с моего HTC One X через Tapatalk
[HTC One X] DeeZZ_NuuZZ:
Wasn't there a command for init.d script to let it apply after a time you want? Like after a minute after booting? That could work or not

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] fjlour:
After the EDP disable. +700 points
[HTC One X] Golf_4711:
Quadrant Standard Benchmark

Hi m8s,

here are my results with the app Quadrant Standard.

Please be careful. It is a synthetic benchmark!

Regards

Golf :cool:

PS Thanks for this huge kernel, lyapota :good:
[HTC One X] high_voltage:
[MENTION=1148003]lyapota[/MENTION]

Couldn't resist and flashed the kernel. Rom: viperx 4.0.5.

On first look it's quite good! Smooth, good performance, good temperatures, etc. Will test more tomorrow and report back in the evening!

One note: 3d scaling setting isn't sticking. Also I made sure on bootup that the screen won't go off and set/unset the s2w function so there is not touchscreen freeze. So far so good.

Cheers!
[HTC One X] d1n0x:
I have disabled s2w in Trickster Mod. Touch works after a reboot every time. The problem is when you let the screen time out on the PIN entry screen and wake it up then it doesn't work anymore. Volume buttons work fine and I can also go into APM, but can't select anything. Only a hard reboot left to do.

I don't know if it's only on the PIN screen, will have to test that.

Btw, I have pocket protection disabled as well.
[HTC One X] chihliouma:
Hi there, can you describe in more detail about how to disable EDP ? I guess many of them are not aware of this. Thanks.
[HTC One X] DeeZZ_NuuZZ:
You have to do it manually...just look in his init.d script in etc/init.d/ and look where the file is...then open the file and change from 0 to 1 :b but atm it won't stick after reboot...

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] chihliouma:
Thanks for the info. Ijust mod the 55sw2wake which inckudes the EDP line, and I remove the "#" loactes in the top of that line (listed as below), save and re-boot. After that I go back to check the line, and it is still SAVED and STICK perfectly.

echo "1" > /sys/module/cpu_tegra/parameters/no_edp_limit;
[HTC One X] DeeZZ_NuuZZ:
Yea in the script it sticks but not in the file itself ! I meant the file no_edp_limit....after boot that file doesn't use the command from the init.d script...so after boot you have to change it always

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] chihliouma:
Well, then I am confused. If there is no function at all for changing the file inside init.d, then why we need to change the contents of 55sw2wake ?
[HTC One X] DeeZZ_NuuZZ:
I didn't said you have to change the command in the script -_- I meant the original file ...if you look in the command ...that last name is the file's name...THAT you have to change because it will be otherwise always enabled and it won't give better performance etc

After reboot check the esp limitation file itself if it's set to 1... Because by default it's set to 0 so edp is enabled..but if it's set to 1 after reboot or after changing manually the limit is off and so better performance bla bla

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] chihliouma:
Thanks anyway, but I am not sure I follow your words. What I am asking is HOW TO DISABLE THE EDP MANUALLY.
[HTC One X] DeeZZ_NuuZZ:
I already said that....... Go the location of the file which is called no_edp_limit ! You can see the location if you look at the command in the init.d script from lyapota...then open the file change from 0 to 1 and save ....then it's disabled....!!

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] chihliouma:
Hehe, so what I am doing previous is CORRECT, right ?
[HTC One X] DeeZZ_NuuZZ:
You have edited just the init.d script which runs while/directly after booting...but you can try...if you removed the '#' from before the line reboot and see if the original file which is the goal of the command is changed to 1 inside...if yes it worked if not it won't work only if lyapota changes some things so it will be able to set automatically

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] lyapota:
Can you describe more detail what you change comparison to default settings. I can't repeat your situation. Tried with phone pin lock, tried with SIM card pin lock after timeout off and awake i can enter pin code. So what settings you are change? How you awake device after timeout off on the security window? Which ROM, mods are you using? What's settings you are set in trickster mod? Etc...
[HTC One X] lyapota:
Done. Will get in next release.
[HTC One X] p50kombi:
You're a star... Thanks mate..

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[HTC One X] d1n0x:
Using lonelyx 1.0.1 with 012 kernel and Modpack.

I am using smartmax, row, 51 min, 1200 max, s2w and dt2w disabled (I deleted the whole line for dt2w in the script with notepad++ before flashing), pocket protection disabled, -50mV UV, GPU 3D scaling ON (deleted pnpmgr)

I have tested it and it only does that on the PIN screen so far (couldn't reproduce the problem on the home screen after screen time out)
[HTC One X] furius:
init.d

Hi all, I'm on Viper X 4.06 and coming from Alex Kernel v2.6rc2 (the best I tried in terms of battery life). I just installed last lyapota kernel and testing it right now. First impression is really good, thanks for your work! I'll report evaluations on battery life in the next days ...

I'm a little bit confused on how kernel settings are applied: in Venom Tweaks there are a lot of kernel related settings ... who wins between Venom Tweaks and 55sw2wake init script? For example: on the 55sw2wake script s2w_allow_stroke is set to 0 but I'm evenly able to switch off the screen (and this options wasn't available in Alex Kernel ...) ... same for DoubleTap2Wake ... it's set to 1 in 55sw2wake and disabled in Venom Tweaks ... the result is that it's not enabled ... so seems that Venom Teaks is winning ... but why s2w_allow_stroke is enabled even if it is set to 0 and it's not available in Venom Tweaks?

Thanks!
[HTC One X] chewu.pg:
The only thing that keeps me with alex v is the fact since those new kernel sources cpu control is realllyy bad, not during benchmarks but games and other apps.so performance is also worse because of that. I was using prefMon during a geekbench and gta sanandreas and only 2 cores are active... I think that htc screwed up something with new kernel base...
[HTC One X] DeeZZ_NuuZZ:
Or the governor are just not good tweaked...on-demand is already screwed up by HTC so no reason to use it...if interactive is tweaked very well it will work reeeeaaally good

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] chewu.pg:
probably governor is awkward... But than i tested every other governor on this kernel and next kernel... Seems like only performance governor can plug all 4 cores when needed... If htc was aiming better battery, they clearly did it wrong way :)
[HTC One X] DeeZZ_NuuZZ:
Yea the performance governor can give good performance boost but heat is after a while a problem :D yea don't know what's wrong with them..instead to use by default interactive and tweak it do that we will achieve great battery life but keeping performance ...Hm ..

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] TAGTRAUM:
I have reproduced this situation (disabled s2w in trickster, let screen off on PIN enter), then push vol+ to screen on and touchscreen absolutely works, tested on Viper 4.0.6 :cyclops:
[HTC One X] DeeZZ_NuuZZ:
Yea if s2w is disabled all is fine...but this has to do with the new s2w and if it's enabled it will make many problems like that with frozen touchscreen etc

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] lyapota:
Repeat all your steps, of course i'm on lonelyx 1.0.1 with 012 kernel and Modpack. Nothing, touch still works even after deep sleep on the security window.

s2w_allow_stroke it's not s2s. Allow stroke means that one way sweep direction, or any way sweep direction. When you set 0 it allow only one way sweep direction - to right on, to left off. With 1 you can on and off in any direction. Anyway 55sw2wake setting values while kernel booting before ROM related apps. So Venom Tweaks will allways override similar attribute in 55sw2wake. That what you not see option in UI not necessarily mean that not set by code.

+1

In any case, i'm close last losted block of code with "if" condition. If d1n0x still have this issue with dissabled both s2w and dt2w options, i'm sure now it not sweep2wake. Will see with #014...
[HTC One X] lyapota:
Last confirmed error with sw2w was fixed in #011 beta. And d1n0x have problem with dissabled s2w and dt2w.
[HTC One X] lyapota:
#013-#014

Ver 014

* Remade no_edp_limit attribute. Now can be applied from init.d

Ver 013

+ added Backlight button brightness

/sys/class/leds/button-backlight/button_brightness (0-255)

working immediately
[HTC One X] DeeZZ_NuuZZ:
Yea then it's maybe problem with his device that it don't like the kernel :D...there was a kernel which my phone didn't liked too....kozzmick kernel or so...some other ppl said the kernel was the best for them...so yea some devices like your kernel some not....Hm

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] d1n0x:
Could be that, or could it have something to do with the files I modified?

I deleted the whole dt2w line and pnpmgr.
[HTC One X] DeeZZ_NuuZZ:
No it should. Be because some devices are having problems...I also don't have any problems with and without s2w or so...I had them in the first few builds but all had some problems...now no problems

Gesendet von meinem HTC One X mit Tapatalk
[HTC One X] d1n0x:
will try #14 now
[HTC One X] cphkelvin:
Op, using your Rom is really great abd now would like to change a custom kernel for a better battery life.

Really really hope you can released a further clean version which only has overclock, uv cpu, uv cpu version.

Sometimes s2w dt2w are some gimmicks, but as a user who rely a phone very much at work, battery and stability are really of essences.

:thumbup::thumbup::thumbup::thumbup:

Really hope this could be happen