yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] gc2712:
fstrim command not working

Have just installed this ROM after Revolution HD. Fstrim command worked in Revolution HD, but not in this ROM. Error mesage is:

"fstrim: FITRIM: Operation not supported on the transport endpoint".

Is there some way to enable this in this Unofficial SlimKat(Pyramid) on my Sensation?

Also, is there a way to control the max/min cpu speeds and governors? Are these both kernel related issues, and if so is there a stable kernel that supports these features that I can install?
[HTC Sensation] ThatsABigOne:
Trim is already included in this rom and it works automatically.
[HTC Sensation] LordNerevar:
You can edit /etc/init.d/89kernel for this with a root explorer or use one of the apps in the play store if you like that better. Kernel Tuner is one of the often recommended apps.

P.S. An article about trim being built into Android since 4.3 is here.
[HTC Sensation] gc2712:
Thanks for the response. I did know that TRIM was included as of 4.3 as I have a Nexus 7 (2012) as well. But I found that if I also ran trim command in a terminal on the Nexus regularly a) it trimmed a lot and b) the device sped up noticably. This was the case for many months of use. I therefore concluded that I would continue to run fstrim manually despite the seeming illogicality if TRIM is already running in background. I also did this with the Sensation phone running Revelation HD with similar results. The error message I referred to above occurring with this Unofficial SlimKat Rom made me wonder if there was some issue with partitioning/file format that was interfering with the TRIM function (even as a background process) that was revealed by the failure to execute when invoked in a terminal. Thus maybe inbuilt TRIM works, maybe it doesn't?

[LordNerevar]

"Kernel Tuner is one of the often recommended apps"

I had tried several CPU control apps, but none of them would maintain the minimum frequency setting for CPU for some reason. Had never seen Kernel Tuner before. Downloaded and installed. Its a great app!:good:

Was able to display both cores and set max and min speeds without breaking anything (So far!). My main reason for wanting to control this is to manage what seemed like high battery drain and sure enough, the cpu was running 1500Mhz most of the time even though the phone is in standby most of its life. Overall, I am very happy with the ROM and will use it from now on. Thank you for your efforts and the link to article on TRIM
[HTC Sensation] LordNerevar:
Thank you for this information. I'll see if there's anything that can be done to get fstrim working manually.

Update: I've found that the TRIM command has been disabled in the kernel (fs/ext4/ioctl.c line 405 if interested). This appears to be due to some bricking issues (google: CONFIG_ENABLE_FITRIM). We'll have to wait for it to be re-enabled upstream.
[HTC Sensation] gc2712:
Many thanks for the follow up. Much appreciated. I thought the problem may be something I was doing wrong. I look forward to the day fstrim works with F2FS too. Both are certainly a boon to older systems.
[HTC Sensation] wieman01:
For anyone who is interested in a generic solution (that works for all Slimkat versions) to the "Volume Rocker Wake" problem, here is what I was able to figure out thanks to LordNerevar & ivanich.

Before you proceed enable "Volume Rocker Wake" in the Display settings.

Use Root Browser or a similar tool to create this file:

/data/local/userinit.sh

Change permissions to Read (Owner, Group), Write (Owner), Execute (Owner, Group, Others). Now edit the file and add this line:

echo 1 > /sys/keyboard/vol_wakeup

Save & exit. Reboot your phone and your are done. The userinit script gets executed upon startup and ensures that vol_wakeup is set to 1 (it normally resets itself to 0 when you reboot the phone).
[HTC Sensation] LordNerevar:
The new 8.4 build is up. This build incorporates the HTC proprietary blobs from TheLoonyBin on github. They seem to be pretty darn good. The camera seems to be focusing better on stills and video now which is something I've always wanted from KitKat. Also, the ROM just seems smoother. Give it a spin and let me know what you think. Cheers!
[HTC Sensation] ivanich:
LOL, TheLoonyBin uses the same blobs, so it's a placebo. :D
[HTC Sensation] LordNerevar:
Argh! Well, I diff'd the folders and you appear to be correct. Other than the libhtc_ril.so, the htc blobs are the same. There are diffs with a number of other .so files that aren't proprietary though. Now I'm really curious as to what fixed my camera focusing. It's never focused this well on a KK ROM.

EDIT: P.S. What type of tethering did your radish addition fix? Wifi tethering with WPA2 PSK seems to work fine w/o the radish blob. Google mentions ipv6. Is that the only reason it's needed?
[HTC Sensation] ivanich:
I can't actually remember for which type of tethering it required, perhaps for bt, but previously it complains about missing radish binary in logcat. Anyway, I've tried all type of tethering except mobile internet as input. wifi, usb, bt tether between all interfaces works fine.

Edit: Maybe it's just some upstream changes improves camera focus for you? :)
[HTC Sensation] wieman01:
And there was a massive amount of upstream changes when I looked at the log files the other day, including this one:

"CameraWrapper: increase size of scene-mode buffer"
[HTC Sensation] ivanich:
Where did you find this? Doubt this was for our device
[HTC Sensation] wieman01:
Not sure if this relates to our device, but you can check the log files on Slimkat's website.

http://slimroms.net/index.php/downloads/dlsearch/viewcategory/1256-pyramid

Simply open the latest change log.
[HTC Sensation] ivanich:
CameraWrapper: increase size of scene-mode buffer [Chirayu Desai]2014-10-05 | rhine: Use Sony camera workaround hack (HEAD, m/kk4.4-caf, github/kk4.4) [Chirayu Desai]

This is for sony devices
[HTC Sensation] wieman01:
Are you sure? Because the line that mentions Sony is missing a line break. I think these are two separate lines outlining two separate issues.

Anyway, who knows... doesn't matter.
[HTC Sensation] ivanich:
Yes, I am sure, there are no changes were made to pyramid device tree github repos.
[HTC Sensation] gc2712:
8.4 CPU/Governor settings

I updated to 8.4 without reset/wipe. No problems so far. But using Kernel Tuner I have been unable to get minimum CPU frequency to stick. (same in 8.2). I can configure each core separately using the app, but have set them to be the same. However after a short time the minimum CPU setting reverts to a much higher state. eg 384MHz rises to 1128Mhz (roughly). I change it again and within a minute it has reverted. Is there some way of making the settings stick?

Also, does anyone know what the best governor setting is for a smooth response and good battery life. I use the Sensation for a little web surfing and mostly just as a phone.
[HTC Sensation] LordNerevar:
I have input boost enabled in the kernel. This essentially allows mpdecision to set the minimum frequency as it sees fit based on usage. I was thinking about creating a kernel w/o input boost as a separate flashable, but I've been getting really good performance/battery life with badass so I haven't seen the need for it.

EDIT: When the screen is off and the kernel enters sleep mode, mpdecision will "unboost" the CPU.

That or my camera is just feeling good today. :)
[HTC Sensation] ThatsABigOne:
Thank you for your release, LordNerevar! I also want to say Spasibo to ivanich for continuing development on an an old device!
[HTC Sensation] lutyjj:
LOL:good:
[HTC Sensation] ThatsABigOne:
"Спасибо" лучше? :p
[HTC Sensation] lutyjj:
Конечно лучше:sly: Кстати, оба из Минска ;) Ладно, давай будет все-таки придерживаться темы :)
[HTC Sensation] wieman01:
Back on topic, guys!!! Lol.
[HTC Sensation] zybach:
How's the performance for gaming?
[HTC Sensation] pathjes:
Downloadlink

Downloadlink is dead :(
[HTC Sensation] LordNerevar:
Fixed. Thanks!
[HTC Sensation] ckshah:
how to install google play thanks
[HTC Sensation] LordNerevar:
Download and install one of the Slim Gapps packages from here or the PA Gapps packages from here.

Note: I just added this to the OP as well.
[HTC Sensation] ckshah:
already downloaded slim normal gapps packages.. :)
[HTC Sensation] ckshah:
hi there!

anyone facing problem like me.,the rear camera not working but front camera working well any solution thanks
[HTC Sensation] gc2712:
FYI Just checked mine. Default install of 20/9/2014. Both cameras working fine.
[HTC Sensation] ckshah:
ok problem solved thanks
[HTC Sensation] LordNerevar:
This 8.6.1 release starts us down the road to an up-to-date kernel. I plan to do these incremental updates slowly (a handful a week or so). This will allow me to revert updates more easily if necessary.

I read ivanich's praise of the smartmax governor on his CM thread. I have to say that I am likewise impressed and have included it in this release. It may just become the default governor. Definitely worth trying out.

You can read about the other updates in the second post. Cheers!
[HTC Sensation] wieman01:
Thank you, LordNerevar! Keep up the good work!

Where can I can read more about the Smartmax governor?
[HTC Sensation] eymas:
Small and possibly stupid question, but since I am already using the other SlimKat ROM, would it be smart to "dirty-flash" this over the existing one? Or would it be recommended to perform a clean installation.
[HTC Sensation] wieman01:
My dirty flash worked just fine. My experience.
[HTC Sensation] LordNerevar:
Read about it from the man who made it here.

Update: That post mentions "touch poke". This is similar to the input boost of mpdecision. This means if you're using the smartmax governor, it would be best to have input boost disabled so that smartmax can govern the whole frequency range (min to max). I've updated the 89kernel script to have a toggle for this, but until then if you'd like to disable input boost here's how:

Add to /etc/init.d/89kernel (anywhere after the first line but before the frequencies are set):

echo 0 > /sys/kernel/msm_mpdecision/conf/boost_enabled
[HTC Sensation] LordNerevar:
New 8.8 build is up. This build gets us closer to an up-to-date kernel at 3.4.94. As discussed earlier, smartmax gets promoted to being the default governor. Great performance and better battery-life. What's not to like? I also made sure that Dexter93's optimized dalvik-cache settings were getting applied properly which seems to have sped things up a bit.

There's been a lot of bluetooth updates from upstream with 8.8, so if you've tried Slim in the past and had bluetooth issues you may want to try either the official build or this unofficial one again. I only have one bluetooth device so I can't really say much but my bluetooth headset seems to be working fine (calls/music/streaming).

Cheers!
[HTC Sensation] johnyfly1:
why my call recorder is not recording outgoing calls on kit kat? :(
[HTC Sensation] ThatsABigOne:
My camera is doing some strange things. After a reboot, it records fine. The second try will result in a force close of camera. Playing back videos also results in flickering green silhouette on top of my clip that I recorded. Any one else getting this glitching?
[HTC Sensation] LordNerevar:
I'm not seeing that. Did you try clearing app data for the camera and gallery? If that doesn't fix it, post a bug report and I will take a look.

Update: I tested the defaults. Back cam, 1080p, h264 and AAC. Is that what you're trying?
[HTC Sensation] ThatsABigOne:
Correct and I did try to clear data for the app. Next time the bug occurs, i will do a bug report.

I just tried recording short clips and it was fine. I will try with longer clips >7 min like i tried yesterday later today.

I just tried it now. After reboot, opened Camcorder shortcut app, recorded first recording for about 20 secs. Works fine. I played the recording via gallery video player and mxplayer with no ill effects.

I then go back into camcorder shortcut app, recorded for 1:43. After I pressed red record button to make it stop recording, camera and media server force closed. Playing back what I recorded results in green flickering.

If you need a video of how I am getting a bug, I can record it for you.

I also attached a bug report.
[HTC Sensation] LordNerevar:
Your log does show some disk IO errors. It could be a failing SDCARD or unclean contacts. I'd take it out and clean it first since that's the easiest fix. If that doesn't do it, you'll need to backup your data and then run an fsck (through recovery -> tools -> file system check). Alternatively, you can reformat it (through recovery -> wipe | format -> format sdcard) and then restore your backup.

Note that this ROM will make use of an SDCARD swap partition if found (you'll be prompted during sdcard formatting to create one if desired). I'm not going to get into the pros/cons of using swap as that will inevitably start a flame war. Just letting you know that it's available.
[HTC Sensation] ThatsABigOne:
I followed your steps and it seems to be working great now. :D Thank you!
[HTC Sensation] Anushan:
Great rom really smooth one! One question the dpi on really small is there any way to increase it a bit so text etc is a little bigger cos my eyes are rubbish :D
[HTC Sensation] Bastaerd:
Texdroider_dpi or a build.prop mod
[HTC Sensation] ThatsABigOne:
LordNerevar, after I made attempts to make a 3 min long clip, the camera force closed again. I tried using a spare SD card and there was no change. :/
[HTC Sensation] ThatsABigOne:
Bluetooth force close when connecting to Honda HandsFreeLink. I have attached bug report. Your older bluetooth drivers didn't force close my bluetooth, so I am suspecting that it's new drivers.

Regards to my SD card, it is currently being fully formatted as it has a bad data block sector. I will report back if fully formatting through HP format tool remedies my issue.
[HTC Sensation] LordNerevar:
It looks like you got a dalvik error right before everything went downhill. I'm going to revert the dalvik optimizations on the next build and we'll see if that fixes it. And the log shows all kinds of problems with that sdcard as you've figured out.
[HTC Sensation] ThatsABigOne:
I can flash test builds for you if you want. :)
[HTC Sensation] LordNerevar:
It'll be a little while (getting ready to test 3.4.104 now). I don't know if you're comfortable editing build.prop or not. If you are, here's the change to make:

Change in /system/build.prop:

dalvik.vm.dexopt-flags=m=y,o=v,u=y

To

dalvik.vm.dexopt-flags=m=y

Then wipe cache+dalvik-cache in recovery and reboot to have it rebuild.
[HTC Sensation] ibeqa:
I tried version 8.4 and it was a bit thirsty as it drained my battery bit faster than usual.

I just installed v8.8. I hope it has better battery optimization ;)

Thanks for the good work
[HTC Sensation] jorra:
Don't know if this help development but I tried the new governor for a couple of days and it drains the battery faster than ondemand. As soon I went back to ondemand I got about 20h with 3h onscreen. Ondemand also feels smoother.

Sent from my HTC Sensation with Tapatalk 2
[HTC Sensation] ThatsABigOne:
Bug report for failing bluetooth is exactly same as before. Dalvik optimizations were changed to what LordNerevar suggested.

If you need the file, let me know.
[HTC Sensation] ibeqa:
Strange to say that because I can see improvement on battery life, although only a day has passed.
[HTC Sensation] LordNerevar:
It absolutely does help. Thank you! I have to admit that I haven't tried ondemand for a year or so. I've just changed to it for testing and it does seem much improved from back then. I'll keep testing it for awhile and see how it does.

Good deal!

To everyone: I made this ROM public because I wanted to give something back to this great community that has supported this device way after the manufacturer gave up on it. Please do let me know what you think. Good or bad. I certainly do want to hear it. With that in mind, I've created a poll on the thread to get your opinion. Please vote. I've set it for 2 weeks in case you want to try out other governors.
[HTC Sensation] ibeqa:
For me, smartmax all the way. With ondemand, two hours after phone being unplugged from power source I had 80% of battery with less than minimum usage.

With Smartmax, I have almost 100%.

Just for info, I use this phone mostly for phone calls and SMS, data connection and wifi are on although I don't use them or use them very rarely, no gaming.

Cheers
[HTC Sensation] redoano:
Microphone and speaker issues are never going to be fixed ? I mean for ex. on line application during calls mic doesn't work. On the other hand for ex on Skype app my mic works well, but this time speaker doesn't work. All 4.4 roms have the same problem. I am stuck at ViperS because of this :S Any help or progress about that?
[HTC Sensation] LordNerevar:
I don't use either one of those apps. Please post a bugreport if you can (see the FAQ on the OP for how). Thanks!
[HTC Sensation] jorra:
Do you mean improvement from the default governor which I believe is set to Performance or have you actually tried ondemand with this rom?

Sent from my HTC Sensation with Tapatalk 2

---------- Post added at 05:55 AM ---------- Previous post was at 05:50 AM ----------

I know, it's a real bummer. I got used to tap rec when doing outgoing calls but its been bugging me ever since we got kitkat. I think it has something to do with how the system reports the outgoing call event. Would really appreciate if someone looked into it. Sorry for the OT.

Sent from my HTC Sensation with Tapatalk 2
[HTC Sensation] ibeqa:
I had v8.4 before 8.8 and which governor was default, I believe it was ondemand!
[HTC Sensation] nupity:
Great rom. Clean install, no problems :D

default dpi was terrible so I changed as it says in the OP.
[HTC Sensation] jorra:
I think performance was the default with slimkat 8.4, correct me if I'm wrong [MENTION=4507337]LordNerevar[/MENTION]

Sent from my HTC Sensation with Tapatalk 2
[HTC Sensation] Kiranb212:
[MENTION=4507337]LordNerevar[/MENTION], [MENTION=4329165]ivanich[/MENTION], [MENTION=5419797]Sajito[/MENTION]... you guys are doing wonderful work for our good old Senny.. that is struggling hard to keep up the speed in growing android market... appreciate if you guys work together & give new life to Senny.. I know... I'm asking too much... but nothing is impossible... no offense... just a thought...
[HTC Sensation] Sajito:
I'm using ivanich's kernel and device trees. I make some changes to device tree which ivanich merges into his source if he thinks that's good, also he tells me when he changes a commit. So I guess we're working together in some way already. Though I do not much, LordNerevar and ivanich are the ones really working on kernel side.

I'd like to learn about kernel and work on it too, but I don't have enough time to learn how that works.
[HTC Sensation] LordNerevar:
Yes, performance was the default until it was switched to smartmax. I tried out ondemand for a few days and will say that it's worth trying out if you haven't recently.
[HTC Sensation] LordNerevar:
I'm watching theirs and other repositories on github. I know ivanich has picked up a few of my commits as well. So, we are working together to bring you the best ROMs we can. We just have different ROM preferences. :)
[HTC Sensation] xWolf13:
Just a question, not a request. Any possibility that Android 5.0 will be brought to this device?
[HTC Sensation] LordNerevar:
I've been focused on KitKat so I'll have to defer that one to the other devs.
[HTC Sensation] LordNerevar:
8.9 is released. This update gets us a shiny up-to-date kernel (3.4.104). I've also brought in some framework_av updates from CM (see my github if interested) that will hopefully address some playback issues.

I added a known bugs section to the OP. Please post if you know of other issues plaguing KitKat or this ROM specifically. I'll repost here for everyone so you don't have to hunt for it:

Known Bugs

I've noticed that charging may stop at 89% after installing the ROM. After rebooting, this doesn't seem to happen.

It has been reported that some bluetooth devices will fail to connect.

It has been reported that some VOIP apps will not work (Line/Skype).

It has been reported that call recording apps will not work.
[HTC Sensation] wieman01:
I don't want to start a discussion in this thread, but I believe Android 5.0 will not be an option for this device. I guess our hardware will be a little too old to run LL, plus 4.4.4 is good enough for another two years or so.

I personally will continue to use my phone until it dies, but I will gladly replace it in two years from now after 5 years of usage. That's really long enough in my opinion...
[HTC Sensation] ivanich:
Problem is not in hardware, system requirements almost the same as in kitkat, but main problem is a storage size, android 5 uses art instead of dalvik and this mean a lot more space need for system partitions.
[HTC Sensation] lutyjj:
AFAIK, it is possible to replace partitions with scripts. It was disscussed in Sultan's CM11 thread.

So I dont think that KitKat is the last Android update to our senny.
[HTC Sensation] Sajito:
I think system partition shouldn't be that much of problem, while it might be more the data partition, but I might be wrong.
[HTC Sensation] francesco totti:
Yes! The problem is data partition! System partition is enough!
[HTC Sensation] Babyhustle:
I have a question, can the 114 MB cache partition be converted to act as the /data partition?
[HTC Sensation] lutyjj:
AFAIK, we can mount cache as data through scripts.
[HTC Sensation] Babyhustle:
Guess this should be done as we're having low internal memory when ART mode is enabled
[HTC Sensation] bluefender:
install over official

can i install this rome over the official slimkat, without wiping
[HTC Sensation] wieman01:
Yes, you can. I did so too.
[HTC Sensation] jorra:
Just to clarify: Call recording does work but for some reason you have to record outgoing calls manually, incoming calls records automatically as supposed to.

Sent from my HTC Sensation with Tapatalk 2
[HTC Sensation] hinxnz:
Are you using the latest version of this Callrecorder or the older v1.5.2?

Have you also tried the xposed modules that enable cm call recording, I know this is Slim but may have call recording already included just not enabled like in CM.
[HTC Sensation] jorra:
I use version 1.4, I can't remember why I stopped updating the app but there where something that I didn't like in the post 1.4 versions. I'll check that xposed module out, thanks!

Sent from my HTC Sensation with Tapatalk 2
[HTC Sensation] nupity:
Can I install Xposed on this rom?
[HTC Sensation] Bastaerd:
Yes, except if you use ART runtime.
[HTC Sensation] ThatsABigOne:
Bluetooth problems again. I tried to connect to HondaLink and 2 seconds later bluetooth.apk crashes.