yashsingh1/xdaforums huggingface dataset:
[HTC One SV] Berinjo:
Hi, I have a problem with all versions of this kernel. The problem is that i can't charge my phone with alternative charger, only with original HTC charger charging is possible. Why is that?
[HTC One SV] bataya:
I hava problem with display wake up, with this version it happen to often. Like 3 from 5 time. And there is data corupt problem sometime after reboot like before. All app are instaled, but no app data at all.

Btw, vibration on dt2w and intelliactive are very nice.
[HTC One SV] BrateloSlava:
[MENTION=2494699]bataya[/MENTION]

Try to disable Dynamic FSYNC.
[HTC One SV] bataya:
[MENTION=4842205]BrateloSlava[/MENTION] It didn't help. After disabling dynamic FSYNC I reboot device, it reboot 2 time (come to second HTC black screen, and then reboot again) and all app data was gone. Then I restore data with titanium backup, reboot once, it reboot twice and stack on second HTC screen. Wipe dalvik and cache didn't help, only nand restore. So weird... :(
[HTC One SV] BrateloSlava:
[MENTION=2494699]bataya[/MENTION]

I can not comment on that. Such is not observed in any of my other testers. Strange.

---

Post updated.
[HTC One SV] bataya:
[MENTION=4842205]BrateloSlava[/MENTION] I agree, really strange.

Probably something I do to system interfere with something. I will to do clean system install and flash again when I come home. Hope it will help.
[HTC One SV] BrateloSlava:
Please, test S2W/DT2W after deep sleep on v33 of my kernel.
[HTC One SV] bataya:
Reflash rom solve mine app data problem. :cool:

On v33 there is still problem with device wake up, and I notice one more bug. Sometimes WiFi speed is very low (ftp 1-2 Mbit/s). After WiFi turn off/on it back to normal.
[HTC One SV] BrateloSlava:
Test v34, please.
[HTC One SV] bataya:
Which app you use for setting up s2w and dt2w? I switch from trickster to faux clock. And look like there is no s2w and dt2w options.
[HTC One SV] BrateloSlava:
I refused to use the program FauxClock, because I have begun to problems of some of its settings.

I try to perform most of the settings through init.d scripts, and not through the program.

I added to this post two versions of my current settings.

View attachment and_tune.zip - version for those, who have installed BusyBox.

View attachment and_tune_busybox.zip - version for those who have not installed BusyBox.

I would be very grateful, if someone helped gather information about each setting change not through the TricksterMOD, but through scripts.
[HTC One SV] bataya:
What settings you need? I know how to config more or less everything, but this intellitermal is problem.
[HTC One SV] Fabian2103:
Just flashed v33 and bought the battery with 2500mAh, because my battery goes from 100% to 0% in 5 hours (only using whatsapp!)

But as I saw v37 is available.. what are the changes and is it necessery to install anything before flashing? In the discription of v34 you told something about it and I First want to be quite sure before I flash it...

Gesendet von meinem HTC One SV mit Tapatalk
[HTC One SV] BrateloSlava:
My kernel development will very likely coming to an end. Is likely to be one or two of release, in which I will try to more optimally configure the governors. Also, I doubt the usefulness of version 4.9.1 compiler and optimization for Cortex-A15. For other phones, most patches have already been implemented under version 4.4. And many of them are not compatible with version 4.2.

I can also say about the very weak hardware of some components of our model. For example, this applies to USB controller and disk controller.

Do not forget about backup before installing each version of my kernel. :o
[HTC One SV] amintehrani:
This kernel Support usb otg????
[HTC One SV] bataya:
If I remember correctly (there is post in this topic), duo the hw limitation we must use otg Y cable.
[HTC One SV] Fabian2103:
Why does my phone reboot when I use GPS?

Gesendet von meinem HTC One SV mit Tapatalk
[HTC One SV] BrateloSlava:
I did not have problems from the use of GPS. CityGuide 7.8.352 SP3
[HTC One SV] bataya:
+1, I use iGo, gmaps and orux maps. No reboot or any other problem.

[MENTION=5660743]Fabian2103[/MENTION] Did you add any tweaks in build.prop? I was having reboots before because of some build.prop tweaks.
[HTC One SV] Fabian2103:
Why don't you update this thread? The first post is very confusing, pls structure it like your Downloads: on the one side the links vor K2U and on the other side them for K2UL...

I don't know why but:

Last download-link here is v30..

The newest version seems to be V38 (got it from his profile on androidfilehost.com)

Why are there so many different versions, one with dynamic-Fsync (what is it for, it caused reboots -fixed that issue?) and one without..

Then there are some other differences, can you tell me what they are for?

Thx

Gesendet von meinem HTC One SV mit Tapatalk
[HTC One SV] BrateloSlava:
You are very casually read the first post of this topic.

What is unclear is written here?
[HTC One SV] BrateloSlava:
actual information

Support for this kernel discontinued.

FEATURES:

Based on 3.11.401.x stock kernel sources

By default is oriented to low power consumption

CPU governors (Ondemand + MULTIPHASE, Smartmax, Intellidemand, Interactive)

I/O Sheduller (Deadline, ROW, FIOPS, SIO, BFQ, NOOP)

Readahead and cache optimization of use

Dynamic control of file system sync (optional, separate kernel for K2UL. by default for K2U)

New CPU & GPU frequency and voltage table

AVS

Cortex-A15 optimizations

NEON v4 optimizations

1.674GHz CPU Overclocking and 533MHz GPU Overclocking (optional, separate kernel)

Simple GPU governor by faux123

USB force fast charging control by faux123

Sound control by faux123

Intelli-plug cpu hotplug driver with dual-core optimizations by faux123

Intelligent thermal throttling driver (Intelli_thermal) by faux123

S2W/DT2W support

LZ4 compression support

Compressed RAM block device (ZRAM) support

Logger control support

USB hi-speed support

exFAT & F2FS file system support

To install all the default values, I'm use a script in a init.d folder

and more...

All of nightly builds is here.

All of kernels have a description - string, that contains kernel parameters.

I.e. for K2U:

CPU - 1.188 GHz, GPU - 400 MHz (max BUS freq - 533 MHz, max L2 freq - 1.188 GGz)

Kernel for K2UL contains two version: with support for dynamic synchronization and without it.

I.e.:

CPU - 1.188 GHz, GPU - 400 MHz (max BUS freq - 533 MHz, max L2 freq - 1.188 GGz), dynamic FSYNC - YES

and

CPU - 1.188 GHz, GPU - 400 MHz (max BUS freq - 533 MHz, max L2 freq - 1.188 GGz), dynamic FSYNC - NO

Having two versions - because, some users have a problems with this code in the kernel.

P.S.

I strongly recommend to disable any kernel tweak app before install my kernel.
[HTC One SV] :
Thanks for all your work you have put in to this kernel and for providing it's source here to the XDA Community. Great work.
[HTC One SV] kreumadragon:
I know you don't want to edit it, but I think you can speed up the starting. if you fix it the kernel is Perfect:D

Kreumadragon
[HTC One SV] amintehrani:
Update gpu please ???
[HTC One SV] kreumadragon:
Looks like the SV is death...:(:(:(

I got "some"lags (the whole time)

But I don't know if it is the hardware or the software...

Your kernel, viperSV 1.6 and s off

Kreumadragon
[HTC One SV] bataya:
What kernel version you use?
[HTC One SV] kreumadragon:
SaveEnergy-3_Kernel_4_2_2_v020_OC2

But actually linaro compilled kernel...

Open settings takes more than 1min somethimes...

Kreumadragon
[HTC One SV] bataya:
Try this script https://www.dropbox.com/s/hf7ekfy0k7hkw3l/01_tweak?dl=0 just change max cpu speed to match yours (I use oc1) version.

SaveEnergy goal is to use a less power possible, so it prefer lower frequency.
[HTC One SV] kreumadragon:
If you can say me how i can use this it would be perfect:D

Kreumadragon
[HTC One SV] bataya:
You need init.d support, so install this app and enable it https://play.google.com/store/apps/details?id=com.androguide.universal.init.d after that copy copy script I have attach to system/etc/init.d folder and set permission 777, after that just reboot phone.
[HTC One SV] kreumadragon:
Will Test it later, currently stock unrooted oc1 works perfect:D

Edit after test
[HTC One SV] bataya:
Here you go.

I listen music with player pro ~60min, watch youtube about 90min, sms, Web browsing, ftp use, calls, etc, but I didn't play any game.
[HTC One SV] BrateloSlava:
Thank you. Now, I think, we can still slightly lower voltage for the lower frequency range.
[HTC One SV] bataya:
I just flash v011-update, so if you need new cpu states I can post it tomorrow/when battery discharge?
[HTC One SV] Near710:
why there is no v11 version with oveclock?
[HTC One SV] artlov:
My statistics, just in case:
[HTC One SV] BrateloSlava:
Thank you, is not necessary yet. Will be a short break with the release of the next version of the kernel - I check the feasibility of using some of the new patches. In two days I have not found anything that really increased performance or reduced power consumption.

I do not plan to release continuously overclocked kernel version. They will appear from time to time.

Thank you. Judging by the statistics - not all frequencies equally "useful".
[HTC One SV] Bazdir:
So there are my stats so far using this kernel. From fresh restart after installing the kernel to now.

Send via Tapatalk from my moonshined HTC One SV. :)
[HTC One SV] bataya:
For now kernel is pretty good, I didn't notice any lag, or other problem and it give very good battery life. I will continue using it. Tnx for sharing your work.

Did you figure out how to fix s2w and dt2w?
[HTC One SV] HeIIBoy:
Your kernel is great for battery life :)
[HTC One SV] BrateloSlava:
I'll share a bit of information. About these functions.

When upgrading to 4.2.2, developers have changed the code on the touch screen. It is in the file drivers/input/touchscreen/synaptics_3200.c

Currently, the source code of this file, is very similar to that used in HTC One.

Currently, there are two ways:

Try to do so, as done flar2 here

Use an alternate path. "Spy" "universal" updated code from the author S2W here.

In any case - it is necessary to adapt the code for these functions to the geometry of our screen (resolution 800x480).

I tried to contact the authors of both versions of the code to help understand. However, the answer from anyone I did not receive.

At the moment I do not have time and opportunity to carry out a series of experiments in order to obtain the correct coordinates for the implementation of these functions on our phone.
[HTC One SV] xpirt:
You have first to read the finger cords and to output the y and x to log. Then with these values you can proceed to update the s2w code.

xpirt
[HTC One SV] BrateloSlava:
All is not as easy as it seems at first glance. ;)

File - https://github.com/showp1984/bricked-mako/blob/master/drivers/input/touchscreen/sweep2wake.c

#define S2W_Y_LIMIT
#define S2W_X_MAX
#define S2W_X_B1
#define S2W_X_B2
#define S2W_X_FINAL

Any idea, what values ​​we should point out here?
[HTC One SV] xpirt:
You should contact zarboz, he will help you, he's expert with synaptic screen s2w codes.

xpirt
[HTC One SV] BrateloSlava:
Are you sure? At the moment, no one wanted to help.
[HTC One SV] artlov:
Last night I had a 2 spontaneous reboots (SaveEnergy2 kernel v011). Both are occured during listen to music with Spotify. Sound processor Viper4Android is used.

Is there any debugging tip how to understand where and why error occurs?

Before with stock kernel it never happened for me with the same configuration.
[HTC One SV] old.splatterhand:
Ask him, he is a nice guy. If he don't answer, you can say, you have tried.
[HTC One SV] BrateloSlava:
I can not yet comment. Try to replace TCP congestion from westwood to cubic.
[HTC One SV] xpirt:
Ofcourse I'm sure, he helped me with s2w for DX and even entered with TeamViewer and compiled himself on my PC! He's a nice guy and I've learned a lot by him.

Edit:

And why are you using codes from different kernels like Nexus? We have devices with same touchscreen driver, and s2w too.. Evita, ville.. all same as ours.

xpirt
[HTC One SV] BrateloSlava:
showp - author S2W.

/*
* drivers/input/touchscreen/sweep2wake.c
*
*
* Copyright (c) 2013, Dennis Rassmann <showp1984@gmail.com>

His latest development - https://github.com/showp1984/bricked-mako/blob/master/drivers/input/touchscreen/sweep2wake.c

/* Version, author, desc, etc */
#define DRIVER_AUTHOR "Dennis Rassmann <showp1984@gmail.com>"
#define DRIVER_DESCRIPTION "Sweep2wake for almost any device"
#define DRIVER_VERSION "1.5"

Sweep2wake for almost any device
[HTC One SV] xpirt:
Yes but why using newest code from Mako when you can use an older working code from our similiar devices? Always s2w it is.

xpirt
[HTC One SV] J.ali.li:
Good idea. Jmz kernel already have it.
[HTC One SV] BrateloSlava:
**cleared**
[HTC One SV] artlov:
This didn't help. It seems that kernel crashes occures with smartmax governior. Currently switched to the ondemand (162-1188 MHz). So far so good and testing continued.
[HTC One SV] BrateloSlava:
Good. And the "behavior" of smartmax - is unclear.
[HTC One SV] BrateloSlava:
Link to a new version (v014) normal & OC - the second message. Github updated...

s2w function is not implemented
[HTC One SV] BrateloSlava:
Link to a new version (v016) - the second message. Github updated...

s2w function is not implemented
[HTC One SV] HeIIBoy:
I felt v11 (update) is the best version for battery life :)
[HTC One SV] BrateloSlava:
Link to a new version (v017) normal & OC - the second message. Github updated...

s2w function is not implemented
[HTC One SV] Bazdir:
Latest OC update constantly uses CPU with system_server proccess. However it stays on 384MHz step and uses around 40-50% of both cores.

EDIT: Nevermind, did the reboot and everything has got back to normal.
[HTC One SV] BrateloSlava:
Current position to implement functions S2W/DT2W:

Zarboz - busy

show-p1984 - busy

When one of them will be the time to help me with this - is unknown.
[HTC One SV] bataya:
Is there possible to add some kind of hardware key reset in kernel? Something like hold power for 10-15s. I hate when I must to remove battery when phone go boot loop.
[HTC One SV] BrateloSlava:
I will try at the weekend to explore the possibility of porting us such a patch.
[HTC One SV] BrateloSlava:
Link to a new version (v018-6) - the second message. Github updated...

s2w function is not implemented
[HTC One SV] BrateloSlava:
What phone model has a similar patch? I have not found anything like this.

Some information is here.
[HTC One SV] bataya:
I have that options on xperia p, and alcatel 992d. Just searching to see does any HTC have it, will report if i found it.

I flash powermanager, and now power section has gone from settings. I have k2_ul model.
[HTC One SV] BrateloSlava:
I looked at this topic. But I could not find the kernel, which was implemented the necessary function. :(
[HTC One SV] bataya:
On xperia p it work with stock kernel.
[HTC One SV] artlov:
How about installing it to the odexed ROM? Is it OK?
[HTC One SV] BrateloSlava:
I'm temporarily remove link. I think, I'm a little too far with the patch.
[HTC One SV] Fabian2103:
Still waiting for s2w, Status?

Gesendet von meinem HTC One SV mit Tapatalk
[HTC One SV] bataya:
You are new her on xda, so you probably don't know xda golden rule. The rule is... don't ever ask for eta, new relise and such staff. It will be, when it is ready.
[HTC One SV] BrateloSlava:
Status? No one wants to help.

I - do not hide anything. My source code changes are always available. Take, try and experiment. Make better.
[HTC One SV] Fabian2103:
[MENTION=2494699]bataya[/MENTION] I've registered new but I'm in this forum for a long time, so let me do my own thing! And of course I can ask for a status, where is the problem?

[MENTION=4842205]BrateloSlava[/MENTION]

Status of s2w (28.1.14),

-S2W works

-homescreen makes problems

-Icons dissapear

Picture to illustrate the problem (Source: BrateloSlava on github)

Thanks for your engagement!

Greets from Germany
[HTC One SV] BrateloSlava:
Briefly - yes.

ADD

It's not lockscreen. It's my homescreen.

And - missing a number of icons of installed applications.

This "disappearance" happened after that.
[HTC One SV] Fabian2103:
What if you try apex-launcher for example? Phone doesn't work ?

I made a new post because otherwise I'll lose the overview.
[HTC One SV] BrateloSlava:
I did not try any third-party launcher. Do not see in it sense.

I can not require users to install additional software, to work my kernel.
[HTC One SV] Fabian2103:
Of course I know you can't! But if third-party would work, it's a beginning. You should not publish it like this!! It's just for developing.

So what did you write for the marked parts?

input_dev->event = gpio_input_event;
ip->input_devs->dev[i] = input_dev;
#ifdef CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE
- if (!strcmp(input_dev->name, /*you may need to alter the keypad type depending on your board*/"[COLOR="Red"]keypad_8930[/COLOR]")) {
+ if (!strcmp(input_dev->name, /*you may need to alter the keypad type depending on your board*/"[COLOR="red"]device-keypad[/COLOR]")) {
sweep2wake_setdev(input_dev);
printk(KERN_INFO "[sweep2wake]: set device %s\n", input_dev->name);
}
[HTC One SV] BrateloSlava:
If code:

#ifdef CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE
if (!strcmp(input_dev->name, /*you may need to alter the keypad type depending on your board*/"keypad_8930")) {
sweep2wake_setdev(input_dev);
printk(KERN_INFO "[sweep2wake]: set device %s\n", input_dev->name);
}
#endif

Result: when attempting s2w - phone hangs and reboots

If code:

#ifdef CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE
if (!strcmp(input_dev->name, /*you may need to alter the keypad type depending on your board*/"device-keypad")) {
sweep2wake_setdev(input_dev);
printk(KERN_INFO "[sweep2wake]: set device %s\n", input_dev->name);
}
#endif

Result: missing a number of icons of installed applications and other problems.
[HTC One SV] Bazdir:
Sorry for breaking up the conversation, but in kernel version 1.7 OC appear about 1 or 2 random reboots per day. For no exactly reason - sometimes it lies on my desk, screen off and suddenly reboots. Sometimes there is no reboots for 2 days, but also sometimes it reboots twice a day. But it never happened, when I was doing anything, even while playing games it didn't happen.

Send via Tapatalk from my moonshined HTC One SV. :)
[HTC One SV] BrateloSlava:
I honestly confess - I have not tested thoroughly and for a long time behavior of the phone when overclocked. It is likely, that I need to change overclocking parameters. But - I do not have time for that yet. For a full and long test my phone when overclocked.
[HTC One SV] Bazdir:
Don't worry, I just felt like I should report it. :) It's not annoying or anything (because it haven't appeared for me on a full load and it's kind of rare to appear), but I thought you should know about it. ;)

Send via Tapatalk from my moonshined HTC One SV. :)
[HTC One SV] BrateloSlava:
Link to a new version (v019-2) normal & OC - the second message. Github updated...

Try - WiFi Country Problem Solving for K2_U/K2_UL (Android 4.2.2)
[HTC One SV] bataya:
after flashing wifi_fix for lte version wifi dont work.
[HTC One SV] BrateloSlava:
Please, try 3G version. Differences in them almost none.
[HTC One SV] bataya:
Same problem, stack on wifi turning on.

Sent from my HTC One SV
[HTC One SV] HeIIBoy:
So, v19 has some problems ???
[HTC One SV] BrateloSlava:
Hmm... It's unclear... Please, download original files framework.jar and telephony-common.jar from /system/framework folder and send it to me.

No, kernel work fine.
[HTC One SV] bataya:
Here it is, original files.

https://www.dropbox.com/s/7r7kove920danmz/12.zip
[HTC One SV] BrateloSlava:
Link to a new version (v019-4) normal & OC - the second message. Github updated...

The test results of the overclocked kernel:

Stability test of the overclocked kernel:

Please, test OC version.
[HTC One SV] BrateloSlava:
Please, test this.
[HTC One SV] bataya:
Look like this one work fine, wifi turn on normally. Tnx :)

Did you maybe check is it possible to enable USB otg with normal cable?
[HTC One SV] rollon76:
It not possible.Our device hasnt get a physical USB-OTG.
[HTC One SV] BrateloSlava:
I'm happy! :laugh:

Unfortunately, I can not help with that.
[HTC One SV] bataya:
Oki, just asking. :cool:

Sent from my HTC One SV
[HTC One SV] BrateloSlava:
Ask in German show-p1984, his countryman, to help us. ;)
[HTC One SV] Fabian2103:
Nice idea, but I already did that.. No answer yet. :(

Gesendet von meinem HTC One SV mit Tapatalk
[HTC One SV] artlov:
I must say that before I got reboots only during listening to music with Spotify, but with the last version 19+4 I had today 2 reboots during normal operation like browsing.
[HTC One SV] BrateloSlava:
Project is temporarily suspended due to strange to me problem with NFC on K2_U. K2_UL works fine.

The problem described by me in this thread.

:confused:
[HTC One SV] BrateloSlava:
Only K2_U owners, who are experiencing problems with NFC, please, try my new kernel. :victory::laugh:

The description and GitHub link will be later.
[HTC One SV] bataya:
Relise for k2_ul? :D

Sent from my HTC One SV
[HTC One SV] BrateloSlava:
Now - work becomes 2 times harder. The kernel source code for our models (K2_U and K2_UL) still differ.

I spent three days on receipt of a properly functioning core from code 3G model.

And now I doubt, that I can make the code compatible with both models.

Now, I have to spend a few days on the transfer all patches to the new kernel.
[HTC One SV] bataya:
To bad, I really like your kernel. :)

What would happen if I flash k2_u kernel to k2_ul device? I guess lte would not work, but Serbia don't have lte support so it's not problem. What other wouldn't work?

Sent from my HTC One SV
[HTC One SV] BrateloSlava:
;) Do not rush ... Yet - only tests.
[HTC One SV] BrateloSlava:
Small info.

Project SaveEnergy-2 suspended. Latest kernel (v20 & v20_OC) available for download. See the second post. It's recommended for K2_UL.

I'm starting new project SaveEnergy-3 for K2_U, based on stock k2u-3.4.10-g6d8dbef kernel source. Latest kernel (v06 & v06_OC) available for download. See the second post.

At the moment, I do not see any patches that can further reduce power consumption.

If such patches are found - I will continue to release both versions of the kernel. Second and third.

Of course, new kernels from me are released, when the new kernel source from HTC are published.

PS.

I would like to mention one more weird problems. After using NFC stops working deep sleep. :eek:
[HTC One SV] bataya:
NFC deep sleep problem, is it related to both device (k2_u, k2_ul)?

Sent from my HTC One SV
[HTC One SV] BrateloSlava:
I do not know, honestly. Problem noticed on K2_U. I'm now explore the kernel source code for this chip.
[HTC One SV] bataya:
Just to report, there is no NFC - deep sleep problem on k2_ul.
[HTC One SV] droidkeyboardfan12:
can this kernel please be ported over the one vx, basically same phone just gsm
[HTC One SV] BrateloSlava:
1. You have kernel from Jmz.

2. As I understand you have now 4.1.2. So, you need to port the old version of this kernel. For 4.1.2.

3. I do not have your phone model. Therefore, I cannot do the kernel, which itself I can not check. Sorry.
[HTC One SV] bataya:
Have quastion about cpu and gpu overclocking. How safe is to overclock cpu to 1.6 ghz, and gpu to 478mhz? I read somewhere that adreno 305 is oc by qualcom from 300 to 400mhz.
[HTC One SV] rollon76:
Optimal condition:

450 for GPU

1.5 for CPU
[HTC One SV] imankareem:
Nfc :(

My Nfc is dead using Version 3 006 1.1 Ghz....
[HTC One SV] BrateloSlava:
How do you define it?

What is your phone model?

Have you tried to return to stock kernel?
[HTC One SV] BrateloSlava:
Users, who have a problem with Spotify.

Please, try to disable the dynamic fsync control via Trickster MOD or other application.
[HTC One SV] imankareem:
1. When I click on the option to turn on nfc... It blinks back and remains turned off..

Now I am facing random reboots too..

2.K2_UL

3. Yes.. It works then when I use stock

Thanks for helping me BTW