yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] Yank555:
Let me comment on this ;)

It's not about apps or processes but about memory pages to be precise, that's the smallest block of memory that is handled by memory manager, which on Android are 4Kb blocks (btw. this is why you set LMK settings by giving 4x lower values than you actually want Mb RAM free, so 1024 will actually mean 4Mb ;)).

So in fact, one app will probably never be swapped out completely, but only the least used memory blocks will.

Let me explain like this :

xda app has a settings submenu. You almost never use it, so the memory pages used by it's code will be more likely to be swapped out than the memory pages containing the code to view the content of a thread, which you will use a lot more often.

A memory page has some kind of "last accessed" time stamp. Swappiness will use this timestamp plus current time to decide whether a page may stay in RAM or should be moved to swap (it's a little more complicated than that, but in essence...).

Blocks moved to swap are available as free RAM again...

Battery life will not be affected by more or less swapping (at least nothing you could really measure), and opposed to using swap you would have apps getting killed and restarting, which generates far more I/O's than just swapping in and out pages, thus actually drawing more on the battery. But again, that is so little that it won't be measurable.

This is not considering every aspect of the specifics of Android... and this statement is placed in the generic Linux context (on a PC not a mobile device).

Linux kernel has OOM (out of memory manager) which kicks in, as it's name says, when no more free memory is available (= very late in the process !).

Swapping becomes more aggressive as free RAM drops closer to 0.

Google have added a tool to Android, the LMK (low memory killer), which as it's name suggests will kick in and start killing apps when free memory gets low, lower as a specified threshold, so way before we actually are out of memory.

Thus, swapping isn't induced by free memory getting close to 0 as it will

never

drop that low under normal conditions, LMK will take care of that, that's its only purpose !

Now, if you want swap to be actually used on Android, you need to set swappiness higher, since the only trigger that is more or less left to activate swapping is "last accessed time stamp".

Which is why on Android, using swap with low swappiness makes close to no sense at all...

JP.

---------- Post added at 09:30 PM ---------- Previous post was at 09:29 PM ----------

Actually, htc doesn't set this value at all, since on stock kernel no swap support in included, thus no swappiness ;)

60 is the stock value the kernel.org has defined for all Linux kernels for every device using Linux.

Have a look here :

http://git.kernel.org/?p=linux/kern...434b674c02b4099bcfe58632ad56e183801fd;hb=HEAD

Serach for "swappiness = 60" (line 130). These are

THE

official Linux kernel sources, maintained partly still by Linus Torvalds.

JP.
[HTC Sensation] axetilen:
Thank you :)

Now I have more knowledge about this

sorry for the wrong information because I don't have time to read carefully everything about swap so I just can explain like that :D

so 60 is a good value? a member said to me that 70 is better
[HTC Sensation] Yank555:
Well I actually use 100 on my hardswap mod, as using 60 never got more than 30-50Mb swap used...

I suppose this is as anything, depending on user behaviour, apps used etc.

JP.
[HTC Sensation] sonnhy:
Thanks Master :D ... So go for Hard Swap :good:

How this kernel support the hard swap? There's not a option in the aroma that tell me if i want to enable hard swap :/
[HTC Sensation] Yank555:
Try this : http://xdaforums.com/showthread.php?t=1630095 :D

JP.
[HTC Sensation] ajay83:
Hey guys, Im going to flash this shortly.

Currently on a Faux kernal. Will this get rid of any previous kernal files on my phone? Also I'm assuming I'm setting speeds via editing the init.d script in system/etc?
[HTC Sensation] markb63:
i flashed the kernel reset mod first,running great no problems..
[HTC Sensation] ajay83:
Thanks bud. I read a few pages back OP said no need to flash kernal reset, is that so?

And I'm editing init.d script to make changes?
[HTC Sensation] aidanski:
Do we have any battery life info for this kernel yet, and is there any way to disable swap? I just don't like the idea of reducing my sd's lifespan. Anyway, looks really nice, gonna try it now.
[HTC Sensation] tsokaris:
After the flash of v2 i boot up my Sensation kai when it was ready for use it's reboot by itshelf, after that and when the phone it was ready again i open the message app to send a sms and i have the same prob like friend paparozzi it's start vibrating and close afer a couple of sec

i use ViperS 1.3

update 1: just try to change the page in launcher it's freeze and reboot after a couple of sec

update 2: Reboot again without to make a thing this time, i'm going back to v1 to test
[HTC Sensation] wuerzet:
I check my alarm, phone freeze and reboot. Not a good start :|
[HTC Sensation] duc_xe:
Isn't 192mhz minimal better than 384? I use your single core mode
[HTC Sensation] chielin:
because I say thanks for your work but I tried it and at least in my case of the 010b2 yank555 going a lot better than yours besides this he had with yours only constant reboots

use vipers rom 1.3.0

I'll stick with the moment of yank555

sorry for the others but this is the truth
[HTC Sensation] dublinz:
Htc was changed min freq from 192 to 384 when they introduced 3.33 rom.......
[HTC Sensation] XxXPachaXxX:
of course

Reboots? strange, i'm using the kernel and i haven't this issue. i sended messages, tried a lot of app, tried everything. No reboots!

You have to check these things:

-If u came from faux kernel or Others u have to clean the init.d folder

-Check if you are using UV. Probably it can cause this issue
[HTC Sensation] jaysun3000:
what needs to be cleaned out of the init.d folder?

edit: I just deleted everything in init.d and reflashed
[HTC Sensation] DragunKorr:
Nice bro keep it up!!!
[HTC Sensation] chielin:
just telling you what I've installed it a while then stop at power aver tell how it goes, and then select S2W outputs into two or three applications and has begun to restart only two or three times in a row

and see what the other probe also yours ([TUNE-MOD] Sense 4.x Tuner PACK | For all sense4Roms | TOP Performances!) and that I was going

for now I'll have to wait if there are improvements in your next
[HTC Sensation] wuerzet:
Another problem. GO SMS is laggy as hell. But i don't have any reboots.
[HTC Sensation] tsokaris:
Noob question how to do it
[HTC Sensation] jaysun3000:
I not getting lag in go sms..are you on the latest version of go sms?
[HTC Sensation] Jaglicic:
Edit:delete...
[HTC Sensation] riotman:
does it support soft fast charge ?
[HTC Sensation] chielin:
Check if you are using UV. Probably it can cause this issue[/QUOTE] -that is, where it is and I have to do?
[HTC Sensation] axetilen:
yeah. you can go for it by following the instruction in yank's thread

in order to add hardswap, I have to ask him for the permission and then ... add it

I took a look through his MOD and there are a lot of codes and other stuffs :|

It is possible for me to include it but it can cause headache :)

my MOD will have a lot of stuffs and it quite difficult to check if there is something wrong
[HTC Sensation] Yank555:
If you want to include it, you have my permission, just give credit as is usual ;)

It is a little tricky to merge with other stuff, so as you want, flashing it seperately is no big deal either...

JP.
[HTC Sensation] bazji:
hey guys, really struggling here, flashed new kernel and im getting stuck at the boot screen like a few other people,

ive downloaded the newboot.img and have the android sdk and fastboot but haven't used them in a long time,

could some kind soul give me exact instructions on how to flash it as im getting nowhere.

does the newboot.img need to be renamed to boot,img ? where should i place the newboot.img

i can get the cmd screen up for fastboot but the command im using does nothing.

regards

Barry
[HTC Sensation] axetilen:
you can try this way. My old post
[HTC Sensation] bazji:
thank you very much. really appreciate it.:good:
[HTC Sensation] flamechamp:
Repost since no one came to rescue :(
[HTC Sensation] axetilen:
can you explain your problem in detail because I have no issue with usb & pc
[HTC Sensation] q9650:
Yep, me. When i connect my phone to my pc, nothing happens. It just charges. I also CANNOT set the connection manually via settings. My pc also doesnt Show any new hardware connected. Btw: i set fastcharge to 1 in the script, but This is NOT the problem...
[HTC Sensation] philseven:
Hay thanks for the utility tool but for some reason when I went to use the tool it did not recognize the new bootimg and I did place in tools folder several times I am sure I did something wrong just wondering if you could help me out please stuck on stupid. Any help would be much appreciated have not used fastboot in a long time.
[HTC Sensation] singlong:
I second that, don't know what's wrong with my adb, it just don't allow me flash. I would suggest someone make a flashable zip to flash the boot.img from recovery. Thanks would be nice.
[HTC Sensation] magic.hand:
Could be your HTC driver isn't properly installed. Make sure your pc/laptop can detect your phone properly. Also, make sure debugging option turned on in the development option setting.

Sent from my HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] Onefast:
You can flash boot images from recovery if you want.

1. Go to root explorer or what ever file explorer you want,

2. then sdcard/clockworkmod/advance/boot.

3.Then create a folder and name it vipers (the name shouldn't matter).

4. Then place the boot image I've attached in that folder.

5. Now you can boot into recovery, go to backup/restore, then advance/boot/advance boot/ boot.img... Restore.

6. Then flash pyd-x 3.1.1

Worked for me! Hope it works for you

Or even easier, if you have the paid 4ext app, you can flash boot images through that without even booting into recovery...

File http://db.tt/nSwNJnxT
[HTC Sensation] hinxnz:
It sounds like to me that your boot loader is not unlocked so you need to unlock it first so you can execute fastboot commands.

Sent from my HTC Sensation with Beats Audio
[HTC Sensation] Onefast:
I just had a random reboot... No uv, on-demand performance, 1250 max,192 min, 594 screen off, 1024 2nd phase, vipers 1.3.5. Pyd-x 3.1.1.

Disabled logcat... Dammit

Just enabled logcat, so will get logs if it happens again
[HTC Sensation] ganeshp:
Naah more than logcat we need last_kmsg

Check in /proc for that file

If it's there post it here
[HTC Sensation] Onefast:
Hope this helps... Last kmsg

http://db.tt/71e8zNjT
[HTC Sensation] ganeshp:
You flashed the newboot.img to bypass htc splash screen stuck issue?

Then that kmsg is mine lol.. It's an old one and that too its from recovery its useless lol

Delete it for now :p
[HTC Sensation] Onefast:
Nah, I had viper s on my sd, and I flashed a boot image I extracted from vipers 1.3.5. Then flashed kernal 3.1.1
[HTC Sensation] chickenz88:
I have same issue, my phone was rebooted every time I connected to PC.

btw, I didnt flash boot.img because my phone didn't get bootloop after flashed this kernel...
[HTC Sensation] philseven:
I got so frustrated that I just decided to use 4ext boot img flash tool and it worked place boot img on sd card and flash new boot img and then went into recovery and flashed kernel and it worked hope this helps.
[HTC Sensation] axetilen:
Now it's time for battery report:

- Lost 1 - 3% per night (6 to 8 hours)

- Drain level (-mA) is low: from 3 to 9mA

- System is fast like hell although all settings are set as battery save

Final comment: REALLY SATISFIED!!!!!

WISH: next version will solve boot.img problem completely and consider some comments about connecting to PC :D

Optional: include LED notification configuration like faux, USB fastcharge (??? I don't know if it causes problems to USB OTG)

p/s: I think again about adding HardSwap ==> I think it would be better if users flash it separately => I want the mod to be stable and simple
[HTC Sensation] ganeshp:
I think hard swap is unnecessary now.. As the services.jar hacks by zeppelinrox(didn't remember his name now) are giving you true multitasking (when used with zram).. Really I'm amazed by the hack.. I opened a 5 hours ago app that was closed from recent apps and the memory of it is still intact @_@

Edit: Ahh remus82 was the one who nodded them :D

Btw how is the drain for others when. Using 2G/3G/4G.. I got some bad experience of drains when on network data ( anker battery was empty in 6 hrs with just 2hr screen on time :()
[HTC Sensation] axetilen:
I think ViperS rom services.jar is already supercharged, right?
[HTC Sensation] ganeshp:
Naah I used his stuff and the difference is quite visible and great
[HTC Sensation] sonnhy:
Sorry, if i ask, but i can't get the solution for the bootloop, how to definitely fix it?
[HTC Sensation] axetilen:
storing too many apps in RAM is not always good :)

it may consume more battery with some apps running in background and strain the device performance when it reaches an amount of free ram

---------- Post added at 06:14 PM ---------- Previous post was at 06:09 PM ----------

what's the problem???

follow the instruction in kgs1992 v7 (something like that) => it would be fixed

or you're using 1.29 firmware

try to follow the instruction to flash Unlocked HBOOT (jounuputbear)

after finishing this step, try to flash newboot.img again
[HTC Sensation] sonnhy:
I'm on firmware 3.33, hboot 1.27 and S-OFF, HTC unlocked too... all others kernels works on ViperS 1.35, but this is the only one that doesn't work, neither with no UV or default preferences..
[HTC Sensation] ganeshp:
naah the ram is not really affected thats the best part of it ..it still stays the same (120-140 mb free)
[HTC Sensation] XxXPachaXxX:
What's this pc usb connection problem?
[HTC Sensation] remus82:
ViperS services.jar only supercharge the launcher. The patched services.jar using zep's script removes the time killer and the sense app limit. Try it and feel the difference :)
[HTC Sensation] The_Hamster:
Flashed this, and now I can't get passed the PIN-unlock.. Whenever I enter my PIN, and press Okay, it FC's com.android.phone.. Gonna try wiping cache and dalvik..

Edit: Yup, clearing dalvik did the job.. So smooth now, running ViperS 1.3.5 :)
[HTC Sensation] axetilen:
@pacha

I have no idea -> they said it always got reboot everytime they connected to pc

I've tried a lot of time and never got problem with this UNLESS I set SCREEN-OFF MAX = 192 or 384 => got reboots...... 432 or 486 have no problem

they explained ... not enough info
[HTC Sensation] duc_xe:
got bootloop on arhd ... any solutions?
[HTC Sensation] deepsaha007:
check here to fix boot-loop problem
[HTC Sensation] hinxnz:
Hi :) thought I share my battery results from yesterday as was on phone for a while, only plugged it into my pc for approx. 5 minutes running @1782MHz with no UV..
[HTC Sensation] singlong:
Finally I am able to flash pacha's kernal and thanks for your tips!!! it's much easier than using adb method
[HTC Sensation] Jwatt0918:
I had a similar issue as some others. I would plug the phone into the pc and the pc would say USB not recognized. After 5-6 times it finally connected. Has happened on several occasions. I tried multiple USB ports and cords still same result. Don't use it that often so not an issue for me but made it difficult to flash newboot img.

In other news....This kernel is Amazing!

Sent from my HTC Sensation 4G
[HTC Sensation] Onefast:
No problem! Glad it worked for you!
[HTC Sensation] sonnhy:
That is.. Wow, how do you get that stats? 6hrs on-screen and always wifi on pratically?

Are you using a different battery like Anker 1900mah?
[HTC Sensation] XxXPachaXxX:
I haven't this problem. I tried to connect to other pcs and everything fine.

I need some infos:

-What do u do when u connect the phone to pc? What type of connection u set (charge, usb, pass-trought)?

-This issue happen with previous versions?
[HTC Sensation] yazzabo:
Really nice...this 3.1 is fantastic!

Question: if I set down differential to "1" it is a a danger for kernel??
[HTC Sensation] axetilen:
no harm but it is slower and the kernel wont run correctly because the kernel will down too quicky and it has to scale up after that. higher values make it scale down slowly

I recommend to set it at 3 4 or 5. 3 is the best for speed and battery. higher is faster
[HTC Sensation] hinxnz:
Yeah you caught me lol, I have a Anker :D it only ~400mA more than stock though but thought it wasn't necessary to mention as thought everyone would have one by now, best investment you can make for this phone but the battery credits really go towards the kernel :cool:

Here's my config also:

#!/system/bin/sh

echo "266667000" > /sys/devices/platform/kgsl-2d0.0/kgsl/kgsl-2d0/max_gpuclk

echo "320000000" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

mount -t debugfs debugfs /sys/kernel/debug

echo "0" > /sys/kernel/debug/msm_fb/0/vsync_enable
echo "0" > /sys/kernel/debug/msm_fb/0/hw_vsync_mode

umount /sys/kernel/debug

echo "1782000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "1782000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

echo "50000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo "918000" > /sys/devices/system/cpu/cpufreq/ondemand/two_phase_freq

Sent from my HTC Sensation with Beats Audio
[HTC Sensation] Jwatt0918:
For me nothing happened in the phone when I plugged it in only a USB not recognized message on the pc. It acts as if it doesn't know it is plugged in. You can tell when it does work because USB debugging will popup and then ask you what connection type(charge, USB,) I honestly thought I had a cord going bad that was sometimes working and others not but then I read others having the issue.

I have not tried other versions as I waited for 2wcr. Wish I could me more help.
[HTC Sensation] sonnhy:
Let me understand.. vsync is on or off? Also, you have everything overlocked, it's a bit "strange" that you have a good battery xD

Inviato dal mio Super Sensation XE
[HTC Sensation] Yank555:
0 = disabled

1 = enabled

JP.
[HTC Sensation] axetilen:
2wcr is included in v3.1 :D
[HTC Sensation] AshtonTS:
flashed the zip in recovery, flashed the newboot.img from fastboot and now I can't connect to wifi. It just sits on "Turning On.." Im running the latest ViperS rom....
[HTC Sensation] tikis45:
reflash the kernel.
[HTC Sensation] AshtonTS:
still same problem
[HTC Sensation] ataf:
just flashed that Kernel

have boot loops, so want to flash the newboot.img

but having this problems, pls have a lock on the ss

who can me help out?
[HTC Sensation] sjknight413:
I'm guessing you S-OFF'ed using HTC's bootloader unlock tool right? I'm pretty sure you cannot flash the boot partition after S-OFF'ing this way. the workaround is to enable 4ext recovery's smartflash but this will not enable you to flash images to the boot partition using fastboot unfortunately.
[HTC Sensation] ataf:
Hi,

no I did not used htc bootloader unlock tool

I used a unlocking method more that a year ago before htc give out thier tools

but it is too long ago to remember how i did

in bootloader screen is following written, maybe this can help clear the situation:

**** LOCKED ****

Pyramid PVT Ship S-OFF RL

HBOOT-1.29.0000

eMMC-boot

Mar 2 2012, 18:14:34
[HTC Sensation] hinxnz:
Hi :) you need to unlock your bootloader for fastboot commands to work, I don't have the link handy sorry..

You can also use this way also..

Edit: I think you Revolutionary S-offed so you just need to flash the patched H-boot version of the firmware ;)

Edit: Here you go, just flash "HBoot Patch to get 1.27.1100 Back"
[HTC Sensation] sjknight413:
Oh okay, hmm thats strange. I'm afraid i have no idea why your bootloader says locked, yet it says its been S-OFF'ed.

Maybe somebody else can help?
[HTC Sensation] tikis45:
it seems to be not s-off..try to turn s-off..and then adb...
[HTC Sensation] ataf:
it is s-off
[HTC Sensation] :
You did the s-off method one year ago, so you had an older HBOOT Version.

Now you have upgraded to HBOOT 1.29 where fastboot commands are locked and bootloader also says locked.

Look at the second post >Here<.

There is a patch to go back to HBOOT 1.27 with fastboot commands.
[HTC Sensation] hinxnz:
You must of miss my post to you above here :D
[HTC Sensation] ataf:
what can i do now , unlock it again with the new method?
[HTC Sensation] tikis45:
use this Guide...step by step. http://xdaforums.com/showthread.php?t=1864053
[HTC Sensation] :
No, simply look at the second post >HERE<

There is a patch to go back to HBOOT 1.27 with unlocked fastboot commands ;)

=> There is a guide how to flash the HBOOT 1.27 in post 1

Why he should use this guide?

His phone is s-off...
[HTC Sensation] ataf:
ok , thanks so far

I will do it tomorrow in the evening, after work

its late now to reinstall all that stuf etc. ,

do I have to change the cid and mid in the patched h-1.27 file (PG58img.zip) ?

mine is

CID: VODAP102

mid:PG5813000

and what abot HBoot Patch to 1.29.0000

should I stay at 1.27, so i dont need to use this earlier version?
[HTC Sensation] flamechamp:
Sorry for the late reply. My issue is that the laptop won't detect my device. It just goes charging without neither usb debugging nor connection type popping up. Any idea?
[HTC Sensation] AshtonTS:
Guys?!
[HTC Sensation] hinxnz:
Yes I know that's why I think this kernel is so great :) I have had that battery life with other kernels but not with the overclocks and have had no heat issues either due from it, also performance is superb so XxXpatchaXxX must have something sussed :good:

Sent from my HTC Sensation with Beats Audio

I flashed the boot image first before flashing the kernel and did you check the md5 checksum of kernel, maybe it was a bad download..
[HTC Sensation] magic.hand:
Try installing HTC Sync. It should install the latest driver as well. That should detect your phone properly.
[HTC Sensation] axetilen:
reflash ther kernel and reflash EIL => it should be gone
[HTC Sensation] alphaz1:
how do i check if zram is enabled?
[HTC Sensation] axetilen:
use roo explorer

go to this path:

system -> etc -> init.d

if you see "90zram" => zram is on

if there is no 90zram => it's off
[HTC Sensation] tikis45:
guys...i am testing last kernel...the phone sometimes is very slow...many sec to open anything and very laggy....any idea???? :confused:
[HTC Sensation] axetilen:
what settings did you choose?

it is fast for me

maybe, your amount of free ram reaches laggy level (less than 120mb), you would feel laggy obviously
[HTC Sensation] tikis45:
i left evrrything as default...but again nothing
[HTC Sensation] AwsmStar:
Reckon we'll see an AOSP version soon? Dying to try this but I really would rather stay on AOKP. :p
[HTC Sensation] :
The 1.27 file is for the following CID & MID:

So, your phone is supported.

There are no important differences between HBOOT 1.27 and 1.29 (but fastboot commands only work on 1.27).

The normal sensation has also never officially got HBOOT 1.29, so it can not be that important.
[HTC Sensation] kurtlar1414:
I flashed this on miui china 2.9.21 rom. But i got bootloop. Is there anyone that has this problem?

Sorry for my bad English.
[HTC Sensation] rzr86:
hi,

see here

http://xdaforums.com/showpost.php?p=32234138&postcount=599

edit:wait maybe this is not for you.it is for vipers rom.wait for somenone else to give you a solution
[HTC Sensation] hinxnz:
Isn't your ROM the jellybean version and based on cm10 and this kernel is a ICS kernel based on sense..

Edit: If it is the sense version you need to extract the boot.img from your ROM and flash it either via recovery or via fastboot command first.

Sent from my HTC Sensation with Beats Audio
[HTC Sensation] Dijkstra88:
Will try this kernel out for a couple of days. Lots of users are using it.:good:
[HTC Sensation] flamechamp:
Tried it, only worked once after restarting my laptop, after that it didn't detect it again :(