yashsingh1/xdaforums huggingface dataset:
[HTC One V] erosq:
hi again, how come everytime i reboot, it always come back to default value of swappiness=60? then after an hour it change to swappiness=0

i try to google where can i change the config and i always found its in /etc/sysctl.conf but cant find that..

how can i permanently set the value forever?

thank you in advance.
[HTC One V] coldsorrow:
Check your init.d scripts if there's any thing about changing your swappiness value.

Or build your own boot.img which changed the swappiness value...

Or Add your scripts about this:

echo "80" >/proc/sys/vm/swappiness

or this

sysctl -w vm.swappiness=80

Or Touch a file in /system/etc which named sysctl.conf,and added this to any of your scripts:

sysctl -p

It all depends on your situation.;)
[HTC One V] erosq:
I saw sysctl -p in 99complete file under init.d folder and I removed the turboboost swaps though. But the swappiness remains to 60 evertime i reboot the device. Below are the screenshot sir.
[HTC One V] coldsorrow:
Dude,if you wanna change the value every time you boot your phone ,you must added the words I've said into init.d scripts.

Each way goes well for me.
[HTC One V] pavankadam:
Best Kernel.. But when i get a call, sometimes the sweep to wake doesnt work the phone freezes and later again activates.. How to fix this?
[HTC One V] eshneto:
Agreed, the best kernel around for Stock, but this issue is annoying. I have worked around it by disabling sweep to wake when I am carrying the phone on the pocket.
[HTC One V] Rexus1:
Download link is not working :(
[HTC One V] maxwen:
Hi

Just FYI:

Thread title has been renamed to make it clear that this

for PrimoU only

Regrds

max
[HTC One V] :
The kernels I have built so far (for p990) always had wiki kernel module that was shipped along with the boot.img. Don't we need those files for HTC One V or the kernel is compatible with kernel modules in the ROM?
[HTC One V] maxwen:
Hi

At the moment kernel modules are allready part of fhe boot image in /lib/modules. So the image has everything needed. modules in /system/lib/modules are not used.

You can of course repackage them to end up in system.

Regards

Max
[HTC One V] ckpv5:
Hi Max

Just tried the latest Build 201207142232.

But I have problem that when I select OC up to 1.5 Ghz, the actual run is still 1 Ghz. Maybe it is my OC app's problem but please reconfirm.
[HTC One V] maxwen:
Hi

That is strange.

I use no frills and it works fine

Also there have been no changes of any kind in the code in this area.

Regards

Max

Edit: on shell try

cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

This should give 1497600
[HTC One V] DomButcher:
Hi all,

I have one problem, I had the same problem with Titanium Kernel btw.

I tried these OC apps : No-Frills, SetCPU, Titanium Tweaker and Voltage Control, but I don't have the tab, where I can set the voltages. :confused:

I can set governor, frequencies and I/O schedulers only. Running the latest version + myONEv ROM RC v3.0.

What should I do now ?

Thanks a lot,

DomButcher
[HTC One V] paarthdesai:
soo have u pushed init. d script ?

Sent from my HTC One V
[HTC One V] DomButcher:
Umm...no...

I had a lot of Android devices, but I have never had to push init.d script, so I am not familiar with this method. :)

So...if I push an init.d script, I will see the UV option and it will stick after a reboot ?
[HTC One V] maxwen:
Hi

Not all apps support setting voltage levels or if they do this

feature is limited to the payed version.

Even Titanium Tweaker from the play store has not the support

You can try the version found here http://xdaforums.com/showpost.php?p=28598155&postcount=630

Or ask user s4shyam95 directly since he is the developer of this app

The mentioned init.d script is for those who would not like

to use an app but set it permanentely on boot. To use it there are

some requirements e.g. busybox which is fine since you use myOne

All information found here http://xdaforums.com/showpost.php?p=28757696&postcount=44

regards

max
[HTC One V] DomButcher:
Thanks, the xda version of Titanium Tweaker works, but at least Voltage Control is able to control voltages and it doesn't work via it... :confused:
[HTC One V] maxwen:
The free version of Voltage Control has no support for setting VDD

At least not the version that I just downloaded :)

Regards

max
[HTC One V] :
How do you ensure the boot.img has those files? I always had them part of the flashable on P990. The boot.img will have the ramdisk and I doubt you are building a ramdisk on each build. Are you using the ramdisk from the stock kernel (maybe with init.d scripts patched). A simple test would be to check the md5sum of the files in your build and the /lib/modules on the phone after flashing your kernel.
[HTC One V] maxwen:
Hi

Ok lets do some explanation here :)

Yes - I build the ramdisk for every new build.

The one that I use is based on Adi_Pats work and I guess

he has started from the stock ramdisk.

Therefore it has support for things like init.d scripts

It is pure "intention" that the modules are in /lib/modules

This is to not interfere with /system/ib/modules because the stock

kernel boot_signed.img is NOT including any kernel modules

in the ramdisk.

So by not overwriting /system/lib/modules those are are kept "save"

and you can switch between Titanium and stock kernels easily

just by flashing boot.img.

Just ROM creators that provide their own boot.img have to make

sure that the use the right "combination" of zImage and modules

since modules cannot be "cross-loaded" between different kernels

cause there is a magic version header in the modules.

Kernel modules can reside in /lib/modules or /system/lib/modules

the kernel can load them from both locations.

Regards

max

EDIT:

Just another short note

Actually it is quite bad that HTC is NOT including the kernel modules in boot_signed.img

cause this can easily end in the "famous" "WIFI not working" issue.

It is very IMPORTANT that the boot_signed.img that you flash is matching what the

ROM has in /system/lib/modules. So if you use a specific ROM and want to use

stock kernel make sure you read in the ROMs description on what version it is based!

If you want to use Titanium or KISS you can simple "ignore" that which

makes it much easy to use :D
[HTC One V] tranceph0rmer:
Fully agree with ckpv5.

The idle battery time on this kernel is just short of amazing.

Coupled with the undervolt I'm getting huge battery life.

First come smiles. Then come lies. Last is gunfire.
[HTC One V] maxwen:
Hi

Is is possible that you can reduce the voltage for lower frequencies even more

The general "rule of thumb" ist that the higher the CPU frequency is the more

"fragile" it becomes to UV. This could lead to a even better battery usage

on idle.

I hadnt the time so far to test all of this. I just tested the "other" end

to find out whats the maximal reduction on OC frequencies.

So everyone is welcome to do it :)

Using too low voltage cannot harm your device. The "worst" thing that

can happen is that your device "simply" freezes and you have to

"hard reset" it.

Since this is "sometimes" not without risks :)

Only people who know what they do should try it.

I dont want to be responsible that you brick your device :)

Also dont make this changes permanently before you really tested it

So if you e.g. use my VDD script dont change the file instead simple

issue the command on shell

echo '<frequ> <voltage>' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

The "hard" limit for UV is -200

Regards

max
[HTC One V] tranceph0rmer:
So I was just wondering if I could take this undervolting just short of the bleeding edge so to speak.

My minimum freq. is 368 in sleep mode and 1.2 ghz max. With on demand governor and deadline scheduler.

What's the maximum safe value for these frequencies to be undervolted?

First come smiles.Then come lies.Last is gunfire.
[HTC One V] maxwen:
I cannot answer that therefore my previuos post :D

regards

max
[HTC One V] tranceph0rmer:
Tee hee :D

Thought so :p

First come smiles.Then come lies.Last is gunfire.
[HTC One V] maxwen:
Can only say for OC frequency

Mine freezes on more then -50 at 1.5 -100@1.2 still works

Regards

Max
[HTC One V] :
maxven: Thank you for letting me know the details on bundling the kernel modules in the ramdisk. I built my own kernel with powersave as default governor (and one with conservative as default). I learned something today about bundling kernel modules.
[HTC One V] harsh.ea:
Sell your phone and buy a new one if you want development and working links
[HTC One V] jonas2790:
You can compile the kernel yourself from this sources: https://github.com/maxwen/primou-kernel-KISS
[HTC One V] °Andrew°:
Hello, can someone have the latest version of the img kernel?

Someone on version 3.0.16 noticed problems with the cellular network?
[HTC One V] a1test:
Found backup on 4pda forum

mediafire.com/file/12owtyl8z513hks/TitaniumKISS.zip

mediafire.com/file/328dkb8r2s44s1z/TitaniumKISS-OC.zip
[HTC One V] s4shyam95:
Hey max.. i m ready with the signed tweaker with voltage workin great.. u just need to tell me on thing b4 i give u the ramdisk build.. what is ur ro.kernel.version? It shld be static and shld not change with builds.. give me this and ull have the app :D
[HTC One V] maxwen:
Hi

Just tested it again

-100mV for 1.2GHz is possible and causes no freezes for me

So IMHO it is save for everyone.

If you use my vdd script you need to change the line

echo '1200000 1100' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

BTW: I will be post a new version of the script soon

Regards

max
[HTC One V] maxwen:
Hi

As I already said. Both Titanium kernels are not providing a /system/build.prop

in their ramdisk. So you cannot get the version from this file

Actually the only way to get this information is to using something like "uname"

Or we could ad it to /default.prop or create a new file that is part of the ramdisk

regards

max
[HTC One V] Lloir:
Max if i provide you with some modules or if you could use stock modules + the rom i told you to grab earlier...could you possibly be able to do me a boot.img for the CM9 build? to test out bluetooth\wifi\gps

thanks

-Lloir
[HTC One V] maxwen:
Hi

Sure

What I need

1) zImage

2) all modules

Should it be based on the ramdisk of stock boot_signed.img?

Any specific version or would Europe 2.08 be ok?

BTW: in the CM9 zip there is one single file in

/system/lib/modules/bcm4339.ko

This is the wifi driver for a broadcom chip which is not in the One V

so you should remove the file :)

regards

max
[HTC One V] Lloir:
everything you should need SHOULD be in the rom you grabbed + the boot.img that was generated with the build should be in the .zip so that SHOULD have crap inside too....

also use whatever you deem necessary to get it all going in regards to which stock image and version ;) you got free will here dude!

also herp derp on my behalf on the wifi module lol

thanks

-Lloir
[HTC One V] maxwen:
Ah - Ok will check

regards

max
[HTC One V] Lloir:
nice one, PM me with results dude, also im w\out phone still....you able to test it all for me please? :highfive:
[HTC One V] tranceph0rmer:
Thanks, changed the value.

I'll report back if any issues occur.

First come smiles.Then come lies.Last is gunfire.
[HTC One V] s4shyam95:
u need to assign the kernel version name when u compile the kernel!!!

do that, and telll me what have u kept it as,,
[HTC One V] shubhamchamaria:
Amazing battery life with this kernel...

http://db.tt/kJ9xBr5K
[HTC One V] GTI WR6:
May I ask what settings you chose to achieve this? Thanks.
[HTC One V] maxwen:
Just FYI: I will prepare a script that reads out all of those values

for all settings like OC,UV, govener etc from the /sys filesystem

and dumps them to a text file. So it should be easier to share your

"profile" and make it easier to compare.

Can be executed via e.g. via adb shell

Will post it tonight

max
[HTC One V] maxwen:
Hi

Ok here is the script

http://www.mediafire.com/?emhetf9ctcb3l0g

This script should work on all available kernels also stock

just the VDD info will of course not be printed in this case

To use it e.g. with adb do

adb push getcpuinfo.sh /data/local/tmp

adb shell chmod 755 /data/local/tmp/getcpuinfo.sh

adb shell /data/local/tmp/getcpuinfo.sh

Output will be e.g.

Starting getcpuinfo 07-17-2012 23:32:09

--------------------------------------------------

Available goveners:smartassV2 conservative Lionheart ondemand performance

Available frequencies:245760 368640 768000 806400 1024000 1200000 1401600 1497600

Active govener: ondemand

min CPU frequency:245760

max CPU frequency:1497600

Scaling min CPU frequency:245760

Scaling max CPU frequency:1200000

--------------------------------------------------

Settings for govener ondemand:

down_differential :3

ignore_nice_load :0

io_is_busy :0

powersave_bias :0

sampling_down_factor :4

sampling_rate :50000

sampling_rate_min :10000

two_phase_freq :0

up_threshold :90

--------------------------------------------------

VDD values:

24576: 900

61440: 900

122880: 900

184320: 900

192000: 900

245760: 900

368640: 950

768000: 1000

806400: 1000

1024000: 1100

1200000: 1100

1401600: 1200

1497600: 1200

--------------------------------------------------

End getcpuinfo 07-17-2012 23:32:09

The output is also stored in the log file in /data/local/tmp/getcpuinfo.log

regards

max
[HTC One V] TechnoLover:
just use "cat /proc/version" in shell/terminal? oO
[HTC One V] maxwen:
Yes thanks for writing this :)

Actually that is the best way to get the version of the kernel

since this is completely independent from the the ROM

Regards

max
[HTC One V] maxwen:
Hi

Just an announcement

I was able to get USB host support working :)

See also http://xdaforums.com/showpost.php?p=29064150&postcount=7

As soon I am able to make this "stable enough" I will post a kernel

and maybe some scripts required for you to test.

Regards

max
[HTC One V] boland:
I get bad results on Memory in Quadrant with this ROM?

Stock: 880, with Titanium Kernel @ 1.5Ghz: 1195, with this kernel @ 1.5Ghz: 800

???

/edit: 944 after 2nd test. I like this kernel :D
[HTC One V] donhashem.dh:
What is the difference between the different stock and boot ?? I know what they are but I ain't knowing which one to download and whats the difference between them pls help
[HTC One V] shubhamchamaria:
Download the boot-TK.....img not the difference from stock file...
[HTC One V] donhashem.dh:
Which version r u using??
[HTC One V] donhashem.dh:
What is a script
[HTC One V] donhashem.dh:
Yeah ok now I got it cz I read what he previously wrote about adding the features to the stock kernel
[HTC One V] donhashem.dh:
What build r u using cz I need long life battery
[HTC One V] maxwen:
All of those performance tests depend on a lot of things

So dont take any value from any test as is" :)

Run a test at least 3-5 times and take the middle

Make sure the "setup" of the device is the same for all tests

And yes the pure "values" with Titanium kernel will probably higher

since more optimizations have been included.

But if you read the OP again you will notice what my intentions with this kernel are :)

regards

max
[HTC One V] maxwen:
Always take the latest. :)

Battery optimzations mostly come from choosing the right

govener and the usage of VDD. And done use a too high OC value :)

There is NOT one optimal settings. We are still in the progress

to find good "profiles" that can be used.

Regards

max
[HTC One V] donhashem.dh:
Which governor should I use conservative ??
[HTC One V] donhashem.dh:
OMG the kernel went back to the stock one byitself how?? What's the problem in ky phonr,do I just have to reflash it??
[HTC One V] shubhamchamaria:
Do fastboot flash boot boot.img

Not fastboot boot boot.img

The 2nd command only makes it last for one boot
[HTC One V] donhashem.dh:
THanx man
[HTC One V] GTI WR6:
sorry for a very noob question, but can you please how exactly to install your kernel. I could not understand the commands from your opening post. Thanks.
[HTC One V] paarthdesai:
boot your phone into fastboot

go to cmd on pc

(bfre this place the boot. img in fastboot folder)

then type the location where the image along with fastboot is located on your pc

then type the following command

fastboot flash boot boot.img

done :)

now reboot

Sent from my HTC One V
[HTC One V] GTI WR6:
Is there any way I can make a backup of the stock kernel?
[HTC One V] donhashem.dh:
I don't think so,it is recommended to do a nandroid backup before flashing anything incase u wanna go to stock but if u didn't do a nandroid backup I don't think that u would be able to return to stock(maybe not for sure)
[HTC One V] GTI WR6:
Ive done a nandroid backup. But does that backup kernel as well?
[HTC One V] paarthdesai:
yes..

Sent from my HTC One V
[HTC One V] GTI WR6:
How do I go back to default cpu vdd etc values after I tweaked and applied the changes. Is there a default button somewhere in antutu cpu master?
[HTC One V] paarthdesai:
remove the vdd. txt file u pushed

Sent from my HTC One V
[HTC One V] GTI WR6:
I did not push any text file, I just changed the settings using Antutu CPU Master (Free). Can you tell me how to remove the vdd.txt file please?

Thanks.
[HTC One V] paarthdesai:
if u didnt push then how come u can remove
[HTC One V] GTI WR6:
I just changed the settings in antutu cpu master. Im just trying to find the default button or go back to default.
[HTC One V] maxwen:
Hi

AnTutu cannot change VDD (voltage levels)

It can set OC, frequency govener and I/O scheduler

If you mean those defaults you will find them at the second

post of this thread.

regards

max
[HTC One V] izbushka:
2 way call recording

maxwen, could you please try to add two way call recording into your kernel. There was some problems with this in Titanium kernel. So maybe you could figure this out together with Adi_Pat.

Thanks
[HTC One V] sashapetrik:
+1
[HTC One V] Lloir:
Maxwen can you grab me on Gtalk later please dude semi-important, to do with some thats currently in development ;) CODE NAME: UJ
[HTC One V] shubhamchamaria:
i know that :p
[HTC One V] tranceph0rmer:
Reveal your secret to the world!!
[HTC One V] shubhamchamaria:
Ummmm...no!:p
[HTC One V] maxwen:
Hi

I will look into it but cannot tell you when :)

regards

max
[HTC One V] maxwen:
Hi

Works :)

Anyone out there who wants to give it a try? - please PM me

I just did a quick test with CallRecorder trial version

Regards

max
[HTC One V] maxwen:
Hi

Just FYI:

Dont use the images for any CM9 based ROMS at the moment!

Those ROMs need a different ramdisk e.g. for WIFI to work properly.

Always use the boot image that comes with the ROM

I will provide boot images suitable for CM9 after sorting out

all the issues.

Regards

max
[HTC One V] maxwen:
Hi

Uploaded new build 201207282326

See post #2 for details.

No need to upgrade for people who dont need the new things for now

Regards

max
[HTC One V] maxwen:
Hi

Just FYI:

I am already working on the next build which will include some

tweaks and optimsations "useful" for everyone :)

Regards

max
[HTC One V] maxwen:
Hi

Had some time lately to "play" with VDD levels again

I think voltage for lower cpu frequencies could be reduced even more

This would lead to lower idle time battery usage.

Currently I am testing

245760: 875

Runs stable so far

Regards

max
[HTC One V] Cr3sc3nt:
quick question? Is there another way to under Volt like an app or Script Manager to run the script from within the phone?
[HTC One V] maxwen:
Hi

Most of the apps that support setting UV in the play store are not free.

I still prefer doing this in an init.d script cause I dont change those

values very often :)

But you can run my 01vdd init.d script also with the Script Manager app

http://www.mediafire.com/?yj11n461vz23l4j

regards

max
[HTC One V] ckpv5:
This is my favorite : http://xdaforums.com/showthread.php?t=1222020

And I have one in my Add-On folder in my ROM thread that set the Min, Max, Gov for One V.
[HTC One V] :
thanks for the kernel.. trying it out. long time in no-android land. so only kernel for now, and I see no eye-candy ROM's yet :(.. also V seems so fragile :P
[HTC One V] tranceph0rmer:
Hi,

Have you just changed the 245mghz value or all of them?

Just edited the vdd.txt and it seems to be working fine...

First come smiles. Then come lies. Last is gunfire.
[HTC One V] maxwen:
Hi

For now only this one

Need to do it step after step :)

But you are welcome to try other values first and report :D

Regards

max
[HTC One V] maxwen:
Hi

Update:

We have confirmation that WIFI is working with "untouched" boot images

So I am happy to correct that statement :)

There is only one thing that is not working at the moment and that is GPS

Regards

max
[HTC One V] izbushka:
i've found no problems with call recording during all day. Everything works perfect. I use rVoix for recording.

Thanks, maxwen

P.s. record example in attachment
[HTC One V] maxwen:
Hi

Repackaged latest build to include the gps permission fix for CM9

Regards

max
[HTC One V] maxwen:
Hi

Update on VDD settings (based on my and ckpv5 experiences)

1401600 and 1497600 seems to be stable with 1175

I run several benchmarks multiple times to force the device

to 1.5GHz without freezes.

On the "other end" ckpv5 experienced problems with using 875 for up to 245760

...

For me 875 for anything up to 245760 has a weird effect on the icon text. It's all scrambled

...

Though it works fine for me the recommendation is to use 900 here.

So the current values are:

24576: 900

61440: 900

122880: 900

184320: 900

192000: 900

245760: 900

368640: 950

768000: 1000

806400: 1000

1024000: 1100

1200000: 1100

1401600: 1175

1497600: 1175

But you have to keep in mind that all those values may not be

applyable to every device 1:1. So you still need to test for yourself

Regards

max
[HTC One V] tranceph0rmer:
Quick question here.

I've been running 245mghz at 850 and 1200 at 1100 for quite some time now and it seems pretty stable. Now what is the best governor for maximizing battery time, as in 245 in sleep mode and 1.2 in wake mode?

I'm guessing either ondemand or smartass V2?

First come smiles. Then come lies. Last is gunfire.
[HTC One V] maxwen:
Hi

There is not 1 answer to this :)

Every govener can be configured to be more performance

or battery "oriented" depending how fast and at which levels

it scales the frequency

I have already posted that here with samples for ondemand

http://xdaforums.com/showpost.php?p=28759988&postcount=46

For smartassV2 they could be based on this

http://xdaforums.com/showpost.php?p=19846297&postcount=2

i) For battery:-

Code:

echo "500000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;

echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;

echo "500000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq

echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;

echo "70" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;

echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;

echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;

echo "48000" > /sys/devices/system/cpu/cpufreq/smartass/up_rate_us

echo "49000" > /sys/devices/system/cpu/cpufreq/smartass/down_rate_us

ii) For performance:-

Code:

echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;

echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;

echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq

echo "75" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;

echo "45" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;

echo "0" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;

echo "0" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;

echo "24000" > /sys/devices/system/cpu/cpufreq/smartass/up_rate_us

echo "99000" > /sys/devices/system/cpu/cpufreq/smartass/down_rate_us

I still plan to provide init.d scripts for that but didnt had time to do so so far

Regards

max
[HTC One V] tranceph0rmer:
Thanks for the quick feedback.

Will experiment with both governors and values.

First come smiles. Then come lies. Last is gunfire.