yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] Bastaerd:
I'm trying to set cfq scheduler on LeeDrOiD V3.1.0 with faux's 0.2.2 (zcache disabled) by using the following script:

echo "cfq" > /sys/block/mmcblk0/queue/scheduler
echo "cfq" > /sys/block/mmcblk1/queue/scheduler

Works perfectly for mmbblk0 but mmcblk1 doesn't want to change from deadline to cfq.

Weird thing is, manually typing:

su
echo "cfq" > /sys/block/mmcblk1/queue/scheduler

in terminal sets I/O scheduler for mmcblk1 nicely to cfq.

What am I doing wrong? Wrong permission somewhere?
[HTC Sensation] jerrylzy:
Yes i know that but seems no effect:( i tried to write it in init.post_boot.shbut only can change ondemand settings....

Sent from my greatest Sensation 4G
[HTC Sensation] eisteh:
One of the last issues that remains for me with the 0.22 kernel (besides the autobrightness failure i mentioned some days ago) is that my phone seems to not like the app "Sleep-as-a-droid" anymore.

I don't know if you know this app, if it even matters, but could you take a look at the last_kmsg I attached and maybe point me out what might be wrong? Is it something with the app, is it a kernel error? But please don't tell me it can't get the battery info again :D
[HTC Sensation] faux123:
hm.. you have some strange errors

[BATT] err:htc_batt_ioctl: no matched ioctl cmd at 1179242827042

are you using the stock battery? It seemed that the kernel battery driver cannot communicate with your battery at all :( (Yeah, all smartphone batteries are smart and can communicate with the phone). Did you drop your battery in water... Do you know someone with Sensation? Maybe you should borrow their battery to try it in your own phone and see if you can get battery info or not... if you experience the same issue with another battery, then I would say you have a hardware failure and you should go to your local phone shop to have them repair or exchange for another Sensation.
[HTC Sensation] d_matt20:
hey faux how do i change GPU I/O fraction to 50
[HTC Sensation] d3vilskid:
Yea disabling mpdecision forces cpu1 online. Is it really forced on tho? If I enable mpdecision than phone bootloop well I guess its a trade off.
[HTC Sensation] parmijo11:
Anything special I need to do on 1.56 version? I don't need to adjust OC or anything, I mean for zram or the other benefits of the kernel or is it self sufficient? I'm mainly concerned I might have overlooked something in the op.
[HTC Sensation] Astug:
Use FauxClock.
[HTC Sensation] d_matt20:
Ok I got it thanks
[HTC Sensation] Hawke84:
How can u check what the deadline is? I've nor actually checked its changed
[HTC Sensation] Bastaerd:
Change "echo "cfq" to "cat" ;)
[HTC Sensation] ali1984:
I am change on standy in daemon to powersave and See ....

Only -68 mA
[HTC Sensation] eisteh:
Unfortunately I know nobody with a Sensation around :(

My phone has no damages I know of, never got wet or something (the LDI doesn't show any signs of moisture damage).

Seems like my battery or other hardware didn't like the intensive flashing in the past, thanks for your help, I'll try to check what's wrong.

What makes me wonder though, why does this error in combination with a reboot only appear when I use Sleep-as-an-droid? Doesn't the phone try to communicate with the battery otherwise?
[HTC Sensation] ali1984:
Sorry this -68mA its only a second :)

Always ~ 178 mA
[HTC Sensation] Hawke84:
Sorry I still don't get how I will see if that's worked? Also won't that crash it?
[HTC Sensation] Mafia_Boss2007:
I have a problem to install the kernel file via recovery.

Every time I gut the error asset: boot.img..... Error 7.

I have Stock 1.45.401.3 rooted and s-off.
[HTC Sensation] Hawke84:
U might have a bad download. Try again with a fresh one
[HTC Sensation] rmk40:
Been using this kernel for the past day and it's definitely a solid upgrade over the stock kernel; the performance impact is immediately noticeable.

My only concern is that I had a "black screen" earlier today and had to pull the battery to get the device to respond again. Has anyone else run into this? I suspect a bit of voltage tuning can sort it out.
[HTC Sensation] faux123:
Due to variety of possibilities provided by all the amazing ROM Chefs and Kernel devs we have for Sensation, sometimes various combinations of ROM/Kernel/Hacks would often conflict with each other. I introduce to you the "First Time / Reset Kernels". These kernels will reset the RAMDisk, Fix permissions and if necessary (for sense 3.5) install libraries needed to run my kernel correctly without additional patches or hacks yet preserving ROM Chefs' own tweaks and enhancements (/etc/init.post_boot.sh will be UNTOUCHED!)

The First Time / Reset Kernels are located in OP. If you suspect you have issues with:

Strange Battery Drains,

ZRAM not enabled,

Phone Running super hot,

CPU1 stuck online all the time etc

The above issues should all be resolved by flashing my "first time / reset kernels" then flash the latest release version from me :D

BTW: There's a new package / zip file for 022z kernel (022z_r1). You should use that new zip file (no features were added, just a minor edit to disable mpdecision).
[HTC Sensation] xyqtt:
If I flash this first time kernel for 3.5 ---> 2.2 zcache enabled phone freezes

If i flash this first time kernel for 3.5 --> hack for 3.5 --> 2.2 z cahce enabled my phone don't freeze

I think a lib is missing
[HTC Sensation] fmedrano1977:
After flashing reset kernel, do I need to boot or can I flash latest release without having to boot in between.

HTC Sensation
[HTC Sensation] GideonX:
I flashed it immediately after, works.

Sent from my HTC Sensation Z710e
[HTC Sensation] GideonX:
Flash the reset zip in the op, then the kernel.

Sent from my HTC Sensation Z710e
[HTC Sensation] guntcent:
My data on my phone is staying on constantly its kinda of weird even though i disable auto sync and all other internet stuff to off
[HTC Sensation] faux123:
I have released a minor fix for 2.2z called 2.2z_r1.. re-download then flash first time / reset, then flash 2.2_r1 without rebooting

Quick Announcement:

zcache versions will be part of ULTRA editions (once in a while limited editions) and will NOT make it to the next official version. Zcache is NOT compatible with mpdecision :( Until either I fixed zcache or somehow hack mpdecision (most likely not, since we have no source for mpdecision), it is simply too much time and work to maintain multiple versions :cool:
[HTC Sensation] lainemac:
Sorry if this was posted already but I don't usually visit this thread. I'm just wondering if there was anything new released and if it is being worked on? I saw that some new sources were released today via the HTC twitter. Just curious.
[HTC Sensation] d3vilskid:
First time kernel still left CPU 1 active fyi. So you're saying zcache won't be in your latest kernel correct but is it still coded in it but disable? If so can you also release a script that can activate zcache in your later release kernel, with no support for who activate it?
[HTC Sensation] faux123:
zcache version is not compatible with mpdecision, that's why cpu1 is online with zcache version.

Zcache can only be enabled or disabled during EARLY kernel initialization, no script can enable or disable it, so two versions are required and that's one of the reason I will NOT release it on a regular basis. Too hard to maintain multiple versions
[HTC Sensation] d3vilskid:
That's all good, just sad to see zcache go.
[HTC Sensation] faux123:
It won't be gone completely, it will show up as ULTRA editions once in a while when I feel like it
[HTC Sensation] d3vilskid:
Yea, I meant that ill miss it in the streamline edition. Kernel v22 rocks so far.

Conservative:1.5max-192 min

Screen off:192-192

Gpu:50 ondemand

Uv:82.75
[HTC Sensation] g1user101:
I'm using.0.22 on p3d. No messing with daemon ir anything.

How do I keep its great speeds and hhve great batt life? Thanks
[HTC Sensation] epsix:
Faux123, ZSL coming? I'm still on beta 10.

I'll wait for the update.

Thanks
[HTC Sensation] Shroomster:
What am I missing/doing wrong? I have kernel .2.1 and faux clock, but no option for conservative anything.......
[HTC Sensation] faux123:
023 Open Beta build-05

Once again, I bring you the latest cutting edge technologies. I have ADDED many SMP optimization which will be even SMOOTHER than 022 at an incredible clock of 1.026 GHz ;)

All 3D apps will work including all NenaMark benchmark apps (Avg FPS 56+ for Nenamark 1 and 36+ for Nenamark 2 all @ 1.026 GHz)

Initial ALPHA ZSL driver for Sense 3.5 camera. :D (When used with original 3.5 libs, the Camera will work but after capture, it will be stuck @ processing stage, no FC however).

Kernel 023 Open Beta build-05: (NOTE: NO SUPPORT will be GIVEN for ANY OPEN BETA KERNELS from me, but you can still report problems/issues, THINK CM7 Nightlies style).

Make sure you start your post by saying [023-build-05] [ROM: ARHD 3.6.xx]

As always, 1.566 GHz version ONLY, don't even ask for any other versions for Open BETA!

1. Make sure your INSTALL my first time / reset kernel for your ROM base (3.0 or 3.5) from my OP before beta testing!!!!!

2. Install the latest beta from here

(optional 3.5 Sense User ONLY)

Install Original Sense 3.5 Camera Libs if you want to ALPHA TEST my latest ZSL :o

http://www.multiupload.com/4QR64X3GEK

Version 0.2.3 (Coming NO ETA, Official GB2.3.4)

<01~04>

(internal test versions)

<05>

CleanCache (zcache disabled due to incompatibility with mpdecision, blame HTC :( )

ARM Patch: Use CTR for the I-cache line size on ARMv7 (better performance)

lowmemkiller: make it swap friendly (better performance)

Enabled inline locks for ARM (performance)

SMP CPU workqueue optimization (limit some workqueues to single thread)

Conservative Governor minor tweak but OnDemand made default governor

patched qdsp6v2 to Set tx and rx flags based on current device

patched display to avoid staging up two pipes at same mixer_stage

ZSL Driver backport (part 2, EXTREME ALPHA!!!!)

Tired.. out of caffeine :p
[HTC Sensation] GideonX:
Update to 0.2.2.

---------- Post added at 02:15 AM ---------- Previous post was at 02:03 AM ----------

Faux, any reason with the switch back to OnDemand as default?
[HTC Sensation] faux123:
With OnDemand, you can go even lower clock rate and still have amazing smooth experience. It's for the EXTREME UNDERCLOCKERS :D Also without zcache, OnDemand will make the experience the same as before :p
[HTC Sensation] Malakor:
Hello faux,

just a quick question.

In Coredroid 2.3.5, your Kernel 0.2.1 is imbedded and. I used your fix to enable ZRAM.

Do i have to flash your fix each time i upgrade your Kernel, or just the first time?

btw: You are doing great Work!

Best Regards

Malakor
[HTC Sensation] faux123:
You should do it at least once, and if you stay with my kernels then no need to flash afterwards. If you switch to another ROM / kernel and coming back to my kernel, I highly recommend you to flash First Time / reset kernel just to be sure...
[HTC Sensation] Malakor:
Thank you for the Quick Answer faux!

Will stay with your Kernel and with Coredroid.

Loving the Package!

Best Regards

Malakor
[HTC Sensation] TheUntouchable:
Update from ARHD 3.6.2 with Kernel 2.1. Used your First Kernel and then beta 5. Runs very smooth the last 10 mins ;)
[HTC Sensation] hoskic:
Can somebody tell me whick of the kernel from first page to use with cm7 alphafield9 ?
[HTC Sensation] Catnap:
You want the CM7 thread, not the Stock thread.
[HTC Sensation] JayVee:
If I am right, none of them. CM7 kernel can be found here: PushMe
[HTC Sensation] Evil-Dragon:
[Kernel 023 build-05] [Android Revolution 4.1.3]

The 3.5 Camera libs are flashed, Performance of Ondemand is great and better than Conservative. Seems smoother overall.

Camera works - Kinda, it displays the image from the camera sensor however after a few seconds the image starts distorting and the starts overlapping itself from the bottom moving upwards. As mentioned, the camera gets stuck in processing after taking an image. It requires killing the camera app via task manager, which then resorts in a complete restart of the phone to get the camera app to work again.

Haven't found any other issues just yet.
[HTC Sensation] TheUntouchable:
[Kernel 023 build-05] [Android Revolution 3.6.2]

Somehow deamon controller (virtuous_oc) doestn work anylonger with this build..

Set max CPU to 1188000 on wake but it gets to the max (1,56Ghz)
[HTC Sensation] faux123:
No, 234 kernel source is not out yet. Now since official OTA is 234, we should all send GPL requests to HTC for 234 kernel source!

BTW, the new kernel 007 has a new "pseudo performance governor" setting. Since only ondemand governor will work correctly for this CPU, CodeAuroraForum has added a tweak to sysfs interface to force ondemand governor to act like "performance governor" which will ALWAYS run at MAX frequency with BOTH CORES enabled.

To enable this feature using Terminal Emulator:

su
echo 1 > /sys/devices/system/cpu/mfreq

To disable, replace 1 with 0 to above.

WARNING: BY USING THE ABOVE SETTING, YOU COULD POTENTIALLY DAMAGE YOUR CPU / PHONE. USE WITH EXTREME CAUTION. LAST WARNING!!!!!
[HTC Sensation] zimphishmonger:
Meaning it will run at Max clock speed full time? What purpose is that for, besides benchmarking? Seems like a heater and battery killer, but would be interesting if we could get it to scale properly
[HTC Sensation] vincepg13:
How the heck did Mdj do it. This is why it sucks when devs don't get along
[HTC Sensation] mike1986.:
It's very easy mate, I will make 0.0.7 compatible with 2.3.4 soon, look at my sig and you'll find 0.0.6 already working with 2.3.4.
[HTC Sensation] seo:
here you go. also you need an extra switch for pyra (don't remember its name). see com.android.server.usb.UsbService

that's the way
[HTC Sensation] vincepg13:
But I'm talking about without usb bug
[HTC Sensation] faux123:
There you go! Thanks Seo!

People, Go hit thanks button to Seo for that tip :D This is why I like open collaborations!

I will update my kernel again to version 008. So if you guys want to wait a bit, I should have a version out after work tonight.
[HTC Sensation] vincepg13:
Thank you seo that's very good of you, hopefully one of the devs can make sense of this....I'm just an ordinary man with no super powers (well I can dunk at 5ft7....that usually impresses people)
[HTC Sensation] vincepg13:
So is it up to you or Mike to make it work? Seeing as yours works in 2.3.3 right?
[HTC Sensation] mike1986.:
Please remember about VR if possible :) also 1.7 is default speed or 1.5 with possibility to oc to 1.7?
[HTC Sensation] jlevy73:
deleted.........
[HTC Sensation] faux123:
Boots at 1.5 OC to 1.78 can be tone down to 1.2 or 1.5 via set cpu.
[HTC Sensation] vincepg13:
Nice I'm looking forward to these and new kernels bases & leaks. Because right now I miss my desire hd
[HTC Sensation] NV30:
I understand it correctly, that the new version will work with 2.3.4?
[HTC Sensation] zimphishmonger:
Yes, however its not compiled from 2.3.4 source
[HTC Sensation] faux123:
Caveat: It will NOT work stand-alone. It will still require ROM devs to include their RAMDISK + lib combination in order to work. There are NO OFFICIAL release yet from HTC (BTW, Go bug HTC for source code now OTA is official).

The upcoming version will fix the USB Selection Error.
[HTC Sensation] faux123:
Quick Status... Updating my own phone to 2.3.4 :p I need to be at 2.3.4 to test my own kernels :p The kernel is already patched and compiled... The update process is slow.. .then I have to unlock again the 2nd time... bare with me...
[HTC Sensation] faux123:
Need help: Excuse my noobness... I restored my phone to stock using football's Tmo RUU, now I can't updated to 2.3.4 :(

I kept hitting check for software update and it kept telling me there are NO updates... Until I can update to 2.3.4 I am stuck @ 2.3.3... Is there a way to force 2.3.4 update OTA or via RUU... any help is appreciated....
[HTC Sensation] m4tr1s:
check this guide

Hey faux123

I use this guide, resolve my problems with my phone, restore original fw, rooted, S-OFF or S-ON, custom roms etc etc.

http://xdaforums.com/showthread.php?t=1192300
[HTC Sensation] nenadr:
@faux123 or anyone who knows:

What are the default voltage levels on 022 kernel ?

1st post say, that it should be 1150000 microVolt for 1566000 Hz, but everytime I boot ARHD 4.1.3 I get 1225000 microVolt for 1566000 Hz ?!?

So my question is do you think that something from ROM is OVERVOLTING my device, or that 1225000 microVolt is normal, and by undervolting it with suggested -75000 microvolts I come to values suggested on the 1st page.

And that brings me to second question:

I have added /system/init.d/84uv script set rwxr-xr-x permissions and ownership to root.shell, with following content:

#!/system/bin/sh
echo "-75000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_values
echo "50" > /sys/devices/platform/kgsl/msm_kgsl/kgsl-3d0/io_fraction
echo "bfq" > /sys/block/mmcblk0/queue/scheduler
echo "bfq" > /sys/block/mmcblk1/queue/scheduler

and interestingly 'io_fraction' command, and setting scheduler for 'mmcblk0' are succesfull on every reboot, but rest of the commands are NOT ('mmcblk1' scheduler, and undervolting)

On the other hand, if I connect via adb shell or from terminal emulator and type those same commands (or execute script from shell), they are always successfull.

Does anyone knows why this script fails during boot and doesn't fail during terminal emulation session (or adb shell session) ?

Thanx.

EDIT: same problems if I put those same commands in adequate 'case' section of 'init.post_boot.sh' file.
[HTC Sensation] lainemac:
Installed the latest 2.2 right after the first time .zip for 3.5 base and my battery life seems bad. I read something a few pages back about CPU1 being on all the time. Is that why? What are your suggestions faux? It also seems to be making my phone hot. Should I still flash the first time mod when using mike's ROM or does it cancel out his customizations?

Edit: just had a reboot after simply locking my phone. New kernel isn't looking good.
[HTC Sensation] orymd:
faux, will the 0.2.3-5 version work on ARHD 4.1.3 ? i don't want to backup, flash and resotre if this version doesn't work on it :)
[HTC Sensation] elvislam:
I'm using ARHD 4.1.3 with 0.2.3b5 without problems. It's really smooth by the way...:D
[HTC Sensation] orymd:
without hacked lib? only ARHD 4.1.3 + 0.2.3-5? Does the camera work without problems?
[HTC Sensation] elvislam:
I didn't install any hack lib as suggested by mike, and I can take photos and videos as usual, without trying any special effects though. ;)
[HTC Sensation] d3vilskid:
Zram disabled after flashing v23b5. Have to flash zram enable script.

Just a thought since zcache is out for the time being, what do you think of adding KSM with your zram?
[HTC Sensation] orymd:
Flashed 0.2.3-5 on a clean ARHD 4.1.3 install... NO PROBLEMS :) Thanks faux ;)
[HTC Sensation] dlads:
Great kernel, lagless gaming, smooth ui, all good. Cheers m8.
[HTC Sensation] nenadr:
Does anyone know if this 0.2.2 kernel supports 2-way call recording on Sensation ?

I don't see mentions of 2-way call recording in faux123 changelogs, and I see that UNITY kernel mentions 2-way call recording support in their kernel (that is why I ask:) ).

I come from Desire and back there we needed something like THIS in order to have 2-way call-recordings.
[HTC Sensation] faux123:
Most likely not. After zram, I don't believe we are running out of memory any time soon and even if we do I can simply increase the zram size. Ksm is expensive because a kernel process or user daemon has to run all the time to scan memory allocated, and you don't want to scan compressed memory due to compression / decompression overhead. Ksm is useful for system without zram or zcache enabled, but its performance won't be as good as zram/zcache.
[HTC Sensation] zimphishmonger:
Also had the black screen freeze a few times on v22 zcache 1.56. Button backlog stays in but phone is unresponsive. Had to battery pull.

Would that create a kmsg to pull?
[HTC Sensation] faux123:
I have answered this questions many times. 2 way recording has been around for a long time and I am still not convinced that the patch is stable. Until then, I will not patch it to my kernel.
[HTC Sensation] d3vilskid:
Thnx for the little explanations. Yea coming from the g1 era we did have little ram and so zram was put in. Lately they added ksm and it made the system more responsive and smoother in combo with zram. That is why I asked.
[HTC Sensation] faux123:
Interesting, I haven't experienced the black screen issues at all. You and rmk are the only ones reporting so far. Unfortunately when you pull the battery, it won't generate a /proc/last_kmsg, if it happened again and you are near a pc, you can try to use adb and do

dmesg > /sdcard/dmesg.txt and post the saved txt file to pastebin.com for post mortem analysis
[HTC Sensation] zimphishmonger:
Testing v23b5 on bulletproof v22. Will def try and pull if it happens and I'm near a pc. Of course it usually happens when in walking to lunch or the likes lol, will see what I can do.

Thanks for the new beta and "clean " libs :)
[HTC Sensation] PaulGiz:
Faux's kernels do not support 2-way call recording. If that's an important feature, you need to find another kernel. Since ROMs tend to be optimized to their included kernel perhaps you should explore moving.

P.
[HTC Sensation] NV30:
+1. I got a black screen after a few hours after a kernel upgrade. :(

ROM IC 2.3.4. First install clean kernel.
[HTC Sensation] faux123:
zcache disabled version I presume. Can you recall more details as to what you were doing? Was phone sleeping etc... I have enabled DEEP SLEEP on my kernel, so sometimes when you first turn on the phone, it will lag slightly as it coming out of its deep slumber. Moar details please.
[HTC Sensation] NV30:
zcache enabled version because IC based on 3.5 sense.

I'm played with phone in my hand, then turned off the screen and put it on the table. After about half an hour I tried to turn the phone, but nothing happened. Phone did not react to the power button and I had to take out the battery.
[HTC Sensation] d3vilskid:
After some time with 23b5 battery is not as great as 22 stable. Another fyi enabling zram also causes cpu1 to stay online, but that is just minor to me. Oh and mpdecision is still enabled.
[HTC Sensation] orangestrawberry:
Similar issues here but cpu1 not online always. How do I find out if mpdecison is enabled?
[HTC Sensation] orymd:
i'm on 0.2.3-5, stop mpdecision on init post boot file and i don't have cpu1 online :)
[HTC Sensation] d3vilskid:
Hmm that is weird ima try and reflash Rom/kernel and see if that makes a diff. I wonder if flashing beta over 22 stable keep zcache on.
[HTC Sensation] zimphishmonger:
Was using 1.56 zcache version. Had the phone in my pocket for a while (probably was sleeping) and I pull it out and try and wake, no wake. Buttons backlit and notification light works but black screen (the LCD is on, just black). Sorry, ill try and gather more details when it occurs again
[HTC Sensation] d3vilskid:
I usually look in the init.post.sh and look for a line that says "stop modecision" that disables it I think I delete that line. Even tho the zram.sh was in the first time kernel zram wasn't enabled after flash, modified the zram enable zip(removed stop mpdecision) flashed zram is enable but regardless CPU 1 stays on with or without the line command.
[HTC Sensation] PaulGiz:
Don't delete that line.

If you want mpdecision off, change #stop mpdecision to stop mpdecision.

If you want mp decision on, change stop mpdecision to #stop mpdecision.

The hashtag at the beginning a line of code disables whatever code follows on that line.

So if #code means code is ignored.

P
[HTC Sensation] nenadr:
No problem, it is not essential to me. Stability is more important. Thanks for answering.

Sent with XDA Premium from HTC Sensation with ARHD 4.1.3
[HTC Sensation] d3vilskid:
Actually I added that line in rcmix init.post cause its not in there and I also took it out when testing it. Like I said when zram is active so is cpu1, when its not active cpu1 isn't activated until its needed.(thats how I determine "stop mpdecision" and zram keeps cpu1 on.)