yashsingh1/xdaforums huggingface dataset:
[T-Mobile myTouch 4G Slide] tbalden:
Well, i've got some good news for you. I've tweaked the lightsensor on kernel side, to return lower values to userspace. Now the keyboard light is only off when i switch the lamp on near the phone. ;)

Soon i'm gonna put together a flashable...

---

Ok, here it is, tweaked lightsensor kernel for more keyboard backlight :

fix-8

http://solidfiles.com/d/7a5f55d5d8/

(finally found out that init.rc parts left in while tweaking usb gadget were causing reboot trouble, fixed, reuploaded)
[T-Mobile myTouch 4G Slide] tbalden:
I'm just checking beats audio addon with HTCMusic app, done by RMK found here:

http://xdaforums.com/showpost.php?p=20630492&postcount=3

It theoretically might apply to our device and ROM..

Gonna report back.

It wont install with the default zip, i'll create a flashable for doubleshot assertion...

Seems like installing it triggered an Android upgradeing popup (deodex check)...

Checking further...

---

Ok, it works, but on first boot with it, SetCPU started to crash :-o

Also I cant hear any difference... Most probably requires something more?? Kernel side...in theory the /system/etc BT csv and soundimage txt files are all there... gonna check logcat now...

---

Ok, tweaked the install script, and added some stuff to new /system/etc/soundimage as Music apk used that location.

In music app, you can select between two different Enhancement settings, one Beats and one HTC enhancement. They differ...well, this update lives now well with the other music apps, so check out, even SetCPU is working (with the original package some superuser stuff was messed up..but fixed it)

Courtesy of RMK40 and Virtuous team:

VirtuousInquisition-htcmusic-v1-doubleshot-pyroice.zip:

http://solidfiles.com/d/a5780b3da7/
[T-Mobile myTouch 4G Slide] Litesorrows:
Why not ask Undeadk9 how he got Beats working on his Bulletproof Port.
[T-Mobile myTouch 4G Slide] tbalden:
As far as i know this addon makes it work.

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] dillalade:
His Bulletproof PORT... Lol. That guy is such a chief!

That would be a Bulletproof Rip, he didn't have to port a thing.

No disrespect to you Litesorrows, but what a chief master, no wonder he got kicked from here. Proper jokes.

Also, tbaldans flash does enable beats (allbeit on the old school music app & not into ICS music app.) Works though ;)

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] dillalade:
Great job just tested. And this is enabling h/w backlights with good effect. Hope I was of help in diagnosing somehow.

Thanks for this fix8.

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] tbalden:
The interesting thing is that, to test the MPU3050 sensors' way, I (as in pyramid kernel defconfig is), switched OFF the other alternative sensor drivers that were on in the defconfig of doubleshot.

This means rigth now that I don't have lightsensor working, keyboard lights are not switching on....

BUT interestingly that way the Screen stopped to be the Number 1 power consumption in the Battery screen... overnight with just GSM network on (no wifi or mobile data), the screen was BELOW the cell standby the first time I fiddle with this ROM and kernel. So I put down the phone with 100% battery and in the morning it was still 100%.

I have to look at this more, to see what exactly triggered this, but this means a kernel that keeps the drain lower! Somehow the sensor are related to the screen's drainage....

Anyway in the worst case - if I cannot find a way to have the sensors eat less - I'll add an alternative kernel flashable with less drainage but no lightsensor and thus no keyboard light... that's something in the meantime! Also i'll tell Kornyone about this finding.
[T-Mobile myTouch 4G Slide] dillalade:
Duuuude, that sounds very promising.

100% in the morining after sleep - blimeyyyyyy, that's exciting.

SO having disengaged the light sensor to test the MPU3050 you've resulted in the screen not munching the battery!

Having noticed the lightsensor was working in an erratic/failed fashion - could it be that the light sensor was in constant turmoil causing some form of battery drain (associated to screen.)

Seems like a connection between the 2 (screen & light sensor.)

Perhaps your fix8 in somewhat fixing the light sensor may turn around better battery results - I'm fixed upto your fix-8 - gonna insert a fully charged Anker and see if drain is better or not.... just for clarifications on what it might or might not be that causes drain - worth a test either way - report back later IF any good news.

Great strides, loving this particular thread!
[T-Mobile myTouch 4G Slide] Blue6IX:
That is a real interesting observation - I know that I watch a lot of light sensor activity when I sit here and just have a device running on ddms.
[T-Mobile myTouch 4G Slide] dillalade:
Blue my man!

Good to see you back around ;)

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] dillalade:
ddms?... Enlighten me if you would ;)

(Intrigued)

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] Blue6IX:
Dalvik Debug Monitor - in the Android SDK it should be in your Tools folder, ddms.bat - double click it and it pops open a gui window from a DOS prompt. I've only ever used it in windows.

Open it and plug your phone in, then select it from the list and you can watch it's activity, can also take screenshots - that's how I get 'em in recovery mode.

Watching the output of your device while it's just being itself will familiarize you with it, and it's a handy tool to troubleshoot with. I sit here quite often with one phone or the other just feeding output to screen if i'm not doing anything with it.
[T-Mobile myTouch 4G Slide] tbalden:
im working on creating an event daemon to read keyboard changes and trigger backlight on/off from that daemon. I'll create a kernel + daemon flash combo, to let you test soon. Basically the light conditions wont matter, but if you want the keyboard you'll just have to pull it or push a button... and on screen off it will switch off, or if there's an event for the lid closing... the daemon is half done in C, very simple...need to add the echo "1" part yet :)

---

Nice, i could identify the event of the LID ON/OFF, so it will depend on pulling/pushing the keyboard...

---

Ok, as the button backlights are handled differently, im adding this:

if you press Menu button, it will light the buttons.

Any power button press will set it off.

It's working now. I'm goint to add it to a boot.img init.rc script, to let it start up early.
[T-Mobile myTouch 4G Slide] Litesorrows:
That's weird to me, it's not Bulletproof 1.1 from here. Its bulletproof 1.5 from the Sensation. Xo I'm still confussed on the whole Chef vs Baker vs Dev thing Xo
[T-Mobile myTouch 4G Slide] tbalden:
Okay, im testing this stuff a bit. Seems it works nicely.

A kernel with no lightsensor plus a service executable running in background, and lights keyboard up when its opened, and switches light off when kb is closed, and button light on when menu button pressed, off when power pressed.

If its working ok, ill upload a flashable power consumption lowering test package for those who want some test. Mind it seems to save power when screen is not on, while standby!

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] dillalade:
That sounds like a nice flashable to test for sure!

Will it revert/cancel the fix8.

Btw: The fix8 has resolved the keyboard lighting issue in low light extremely well.

Your new idea makes for a great idea in order to save battery like you mention when light sensor is deactivated.

So the understanding is as the below?

1) will disable/deem the light sensor unavailable. Which in turn will provide for better battery (in screen off mode)?

2) And have built a necessary script to enable (regardless of lighting levels) h/w keybaord backlights based on IF h/w keyboard open/closed

Looking forward to trying.

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] tbalden:
Exactly, a little app written in c will do the trick. Seems stable so far. Im creating a flashable now...

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] dillalade:
Sickkkkk!

Edit:

***************

However, how about when in call, and the screen appropriately goes off depending on how close it gets to your cheek/ear... Which does help prevent holding/muting/ending call with your facce unintentially.... Question being is it the light sensor that does this trick?

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] Etrick:
Something ive noticed on many roms, when screen has munched on the battery, slide the keyboard shut and then pry it away from the screen slightly, and notice the lights are staying on. Need to shut off the lights in the room to notice. Im not saying thats why they eat battery on this rom, but the sensors could be staying lit in the same way. And my friend who has the new nexus yanks it from his pocket and the screen comes on. Assuming it uses the motion to trigger the screen, while none of that is functional, it may be broken in this rom, hence the issue...
[T-Mobile myTouch 4G Slide] tbalden:
Thanks for the tip!

I've pried under the keyboard when the keyboard light was fixed back a week ago, and it seemed to work appropriately at least that few times i've tried prying in between.

With this no-lightsensor flashable, i've tested/pried the same way too.
[T-Mobile myTouch 4G Slide] tbalden:
No that one is Proximity sensor!

---

Damned, those two are on the same device in the kernel as well..... so now that doesnt work either....

Now i'lll patch the kernel to disable just the light sensor, and see if the power saving will remain...
[T-Mobile myTouch 4G Slide] dillalade:
Cool

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] tbalden:
Well, here is something that might be a placebo effect or not, but if someone feels like testing this kernel, and report back if standby times of the phone are better or not, that would be helpful!

It's a kernel with the otherwise unuseful sensors configured off (as they are not functioning with the pyramid libraries unfortunately), but light sensor and proximity is still ON. For me it seems that overall the consumption is less now, but thought if someone wanted to test it, i'll upload it. It's stable, and with the Lightsensor still on!

New kernel flashable:

http://solidfiles.com/d/2ca8609c15/

It won't break anything, might help standby time or might not. Reports are much appreciated. I'm testing it too. :)
[T-Mobile myTouch 4G Slide] dillalade:
I'm testing it now - I performed a wipe of cache & dalvik hope that's good practice.. seems to have had no sour effect.

Noticing excellent light sensor usage.

1 When keyboard closed: wake device, the frontface h/w keys light up ONLY in low light levels appropriately**. These lights will stay on until device sleeps.

2 When keyboard opened similarly the keyboard lights up ONLY in low light levels appropriately**. These keyboard lights similarly will stay on until you either close the keyboard (which is nice) or until device sleeps.

** Tested by creating a shade spot with varying distances from 'phone/light sensor' to imitate levels of natural light on the cusp of barely being able to see the h/w key symobls/markings.)

Proximity still works for incallc so that's great too.

In thaperspective it seems to function very well.

Will report back as for any potential battery drainage efficiency.

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] tbalden:
This works with Pyr-O-Ice: https://market.android.com/details?id=com.protocol.x.USB&hl=en - mounting SDcard to PC and still can use it with the phone at the same time, and works flawlessly.... :eek:

It costs money tho.... :rolleyes: found it in another ICS AOSP thread for another device. Thought I'd share it. I can mount the SDCard on PC now...

BTW, another thing to try is Widgetsoid's USB sdcard toggle button. It's told to work for that other aosp ROM and sdcard mounting to PC...i'll try that myself too soon...

---

Damn, i cant try widgetsoid SDCard mount/umount if it works, as this new app somehow tweaked my phone to work in Dual mount all the time.... Well if someone could try Widgetsoid's widget , adding Sdcard toggle from 'Other', and see if it works when phone is connected to PC with usb, that would be very nice. Later i'll see this with a fresh install... (Also I'll decompile this dualmount app to see what it does later.)
[T-Mobile myTouch 4G Slide] CoNsPiRiSiZe:
I'll try widgetsoid.toggle. I use that app every day let me set up your ROM again as I'm pretty done with random rebooting on undead ROMs
[T-Mobile myTouch 4G Slide] d3athb4dishonor:
Found a couple of weird bugs... Phone will randomly call people and sometimes when I'm on a call it'll put that person on hold and call them again.
[T-Mobile myTouch 4G Slide] tbalden:
Hmmm...ok, tried widgetsoid's toggle after uninstalling dualmount service and restart... widgetsoid's sdcard toggle doesnt work :( Well, i'm gonna look into the dualmount app later, what it does.. I think it does something with the volume daemon, "vold". If it's simple enough i'll incorporate it in the init.rc later.
[T-Mobile myTouch 4G Slide] tbalden:
Thanks for reporting!

weird, truly O.o I've been doing some series of calls this week, but no issues with that.

Randomly call means that you have your phone in your pocket? Or when you would start to call someone, calls someone else instead?

Anyone else having similar? Since Proximity sensor is working well, i had no issues with calling.
[T-Mobile myTouch 4G Slide] Litesorrows:
Sometimes when the screen is off, its still active. Like I can use the screen, even tho' its "Off". This happens with the CPU UC when screens off. Also, when the CPU is UC(Screen Off) it disables the Lockscreen.
[T-Mobile myTouch 4G Slide] dillalade:
Light & prox sensors working great.

No such call problems for me

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] Litesorrows:
How's battery life with the new Kernel?
[T-Mobile myTouch 4G Slide] dung8604:
Would that kernel work with any rom? Or just this one
[T-Mobile myTouch 4G Slide] d3athb4dishonor:
May have just been me accidentally hitting the person name and it would dial them. The call the same person on hold issue definitely wasn't me though.

I also noticed the phone puts itself in silent mode frequently, I'm not sure if I'm accidentally doing that or not. Also has anyone else used their navigation? It showed me how to get to my destination, but it didn't speak it. Not sure if that was a direct result of the phone being in silent mode or not.
[T-Mobile myTouch 4G Slide] Blue6IX:
If using google navigation, then if the phone was in silent mode it should have also muted the speech for the directions.
[T-Mobile myTouch 4G Slide] infernodemon2005:
In most cases the tts data needs to be installed for navigation to read the directions.
[T-Mobile myTouch 4G Slide] tbalden:
So this happens when the proximity sensor switches the screen of while calling,and yet the touchscreen does work?

Well, inquisition 2.0 is out, with new sensation leak base. Going to check that later, and we will see if this bug still persists with that base.

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] tbalden:
Might,but you will lose gyro and accelerometer with the kernel i posted for battery testing.

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] CoNsPiRiSiZe:
New kernel ROCKS!!!!! AWESOME THANKS

[/IMG]
[T-Mobile myTouch 4G Slide] dung8604:
Tbalden, is there any way you could do the same patch on a stock doubleshot kernel? The only reason I ask is because I would rather have the battery life and lose the auto brightness setting. Also, having they keyboard light up always when slid out sounds really cool too.
[T-Mobile myTouch 4G Slide] dillalade:
New Kernel usage (while I was asleep - hence phone in sleep mode.)

The keyboard auto light up on slide-out was talked about - however Tbaldan had made success with the light/proximity sensors - they now work (work well too) and light up the h/w keys in very appropriate light levels now - so this seems fixed to me without him incorporating the auto backlit on keyboard slide (out/in.)

I tested it before going to sleep with a fully charged 1900mah Anker, and woke up to the attached screenshots - so it had been in sleep mode with 3g/4g ON (wifi off.)

That bug DOES NOT Exist in our current 0.3.0 Alpha - I have tested and when proximity appropriately puts screen to sleep when the phone is close to the face the Screen is DEEMED IN ACTIVE appropriately - there is no flaw on this use-case.

Not concrete evidence - BUT the new kernel maybe doing good in sleep mode - as per screenshots attached here.

I will come back with complete useage screenshots for when the battery seems to be on it's last legs/percents.
[T-Mobile myTouch 4G Slide] tbalden:
I'll be looking at some undervoltage patches next when i get there...i'm glad that you find new kernel less consuming on first sight, tho' it's always hard to tell what's placebo and what's real. Lot of stuff depends on signal quality, running apps and whatnot...

Anyway i've found a nice patchset of UV, i'll try to merge with my kernel tree and see if it's stable...
[T-Mobile myTouch 4G Slide] tbalden:
Currently the reporst are about a kernel that has the Gyroscope and Acceleration sensor OFF... The light and proximity are in the same driver, so finally i've decided to test this configuration instead and see if it helps any. Seems like it helped.

Otherwise I've not tested the kernel with any other ROM. I can upload the zImage and bcm4239.ko if you wish, to let anyone pack a boot.img for any ROM with the init scripts of that ROM and repack-bootimg.pl.
[T-Mobile myTouch 4G Slide] Litesorrows:
The bug that I was talking about was not that. It was that when the phones locked. Screen off. You can unlock the phone, and it does random things. Also, the lockscreen dies if you have it UC. It will only show if a sercurity setting is enabled. Ill reflash clean again to recheck the bug.
[T-Mobile myTouch 4G Slide] Litesorrows:
Could looking the UV Kernel by Rommanb be helpful?
[T-Mobile myTouch 4G Slide] tbalden:
Xactly that.

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] tbalden:
There are few issues with the new sensation 4.0.3 leak, and with inquisition 2.0.0. Unfortunately one is: calendar for exchange events doesnt show in most views. Thats a blocking issue yet for upgrading base...

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] tbalden:
Well, looks good here as well

View attachment 849262

View attachment 849263

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] tbalden:
Regarding (dual) sdcard mount, it can be fixed this way:

Ok, so here's the magic command, you can use GScript lite with root permission to run them...or you can use Terminal Emulator, type 'su' there and copy paste + ENTER. As long as this is ENABLED, plugging in the device will auto-mount the sdcard storage on PC, like a usb flashdrive.

This enables mass storage sdcard mounting (dual, you can use the sdcard on phone and PC same time, but BE VERY CAREFUL TO UNMOUNT ON PC, CORRUPTION CAN HAPPEN TO YOUR SDCARD IF YOU DON'T!)

ENABLE:

echo /dev/block/vold/179:65 > /sys/devices/platform/usb_mass_storage/lun0/file

DISABLE:

echo "" > /sys/devices/platform/usb_mass_storage/lun0/file

There you go... no fancy app in the notification bar, but that's it, now you can mount sdcard to pc without recovery.

Please if you try, report back. I'm assuming the device is 179:65 everywhere, but you can check it by a simple '# cat /proc/mounted' and look for "/mnt/sdcard" there and the first part (/dev/block/vold...) is the sdcard vold device.

Since pyroice version 0.9.0, you can do this for simplicity, if you have Terminal Emulator running:

~ su
# dualmountsd_on

and

# dualmountsd_off

These will switch automounting on and off.
[T-Mobile myTouch 4G Slide] dung8604:
so, what you're saying is there is no way to modify the stock kernel to only turn off the auto brightness sensor?
[T-Mobile myTouch 4G Slide] tbalden:
There's a way to add into the kernel driver code to return -1 on the lightsensor enable part... But that not necessarily would help the power consumption as the full device cant be turned off as it's the one adding the proximity sensor capability as well...

But seems like disabling the others mentioned (accel/gyro that are with this ROM unusable unfortunately) helped on battery somehow.

Anyway, I'm already done with patching all the ICS changes of kornyone and all the pyramid tweaks of this ROM to the OC/UV kerneltree of romanbb. (he sent me the link to his public repo https://github.com/romanbb/dobuleshot_kernel/ ).

I'll be testing that now, and tomorrow gonna give a pyroice flashable.

Running antutu ATM at 1.5Ghz...

scoring 5669...well that's predictable, i made ~5150 with the stock speed.

EDIT:

HEY WTF! I was making 5669 with the 1GHz profile set in setCPU profile..... Now checking with 1.5Ghz really!

THIS KERNEL IS FREAKING AWESOME! Boosted performance BELOW stock speed from ~5100 -> ~5667

And on 1.5Ghz it gives an AnTuTu score of 5910!
[T-Mobile myTouch 4G Slide] wiswis:
Hows the battery life and will u be realesing it soon
[T-Mobile myTouch 4G Slide] tbalden:
View attachment 849486

View attachment 849488

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] wiswis:
Dang that's pretty good which kernal is it
[T-Mobile myTouch 4G Slide] tbalden:
Ok, build v1 of OCUV Pyroice ICS kernel, max speed = 1.5ghz.

Undervolted in the higher frequencies only. Should be stable, as it is set just like the Kanged-v0.1 kernel on this forum by romanbb.

Flashable from recovery:

http://solidfiles.com/d/6d2a306929/

The unusable Gyroscope and accelerometer sensor drivers are OFF.

Pls Report back.

Scores 5900-6000 on my device, 1.5ghz.

(Sidenote: using this UV parameters found here http://rootzwiki.com/topic/4570-kernelcm7aosp263514v024roc173ghzuvslqbnov-19/ i've built a second kernel for testing, if all goes well tomorrow wit this another more seriously undervolted kernel (more undervolted than the romanbb UV kernel was by default), i'll give you now two version of alternative OC/UV kernels to test... Right now i'm doing another Antutu with on the extremely undervolted version...it didnt crash, a good sign! and it scored 6036 :D)

Thanks Romanbb, thanks faux123!
[T-Mobile myTouch 4G Slide] shady503403:
Its good to see progress everyday.. :) keep up the good work man. The new kernel, with sensors off works well..
[T-Mobile myTouch 4G Slide] wiswis:
This is stable as far as I know
[T-Mobile myTouch 4G Slide] Litesorrows:
Nice Job with the Kernel, it's amazing. Glad to see some new Kernel work. Undead has never released a OC Kernel. Starting to like you :D Can't wait till we get lights working again. :D
[T-Mobile myTouch 4G Slide] God_Lx:
Btw there are some apps to control keyboard light on/off I'm using Blacklight Off atm on the Sensation port but I'm guessing it would work here too...

Thanks tbalden for everything we definitly needed some dev with coding skills hopefully kornyone can help you and vice-versa so we can get a 100% working Kernel/AOSP build but these Sense based are pretty nice for now !
[T-Mobile myTouch 4G Slide] tbalden:
Lights are working with this.

sent from HTC Doubleshot pyroiced
[T-Mobile myTouch 4G Slide] CoNsPiRiSiZe:
+1

And bro I LOVE YOU...no homo. You're doing work for this device that I love to death. Thanks so much! Your so knowledgeable I appreciate it.
[T-Mobile myTouch 4G Slide] dillalade:
Lights are definately working with this.

New kernal is real smooth. Well done

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] dillalade:
With the new kernel, have used set cpu to max freq at 1512mhz.

However when I run Antutu the final summary tell me it only maxed it at 1134mhz.... Achieving only 5159 on Antutu.

Setcpu definatly shows me its reaching the 1512mhz.

But not Antutu..... any ideas?

Pyro ICS 4.0.1/0.3.0
[T-Mobile myTouch 4G Slide] tbalden:
you might have another profile with higher priority. The real Freq min/max is shown with the green letters, even if you set something else on the Main page. Check your priorities. I've had similar misconfiguration in my Profiles. :)