Archive for January, 2011

Beta Kernel 21 Jan 11

Posted January 21, 2011 By Ziggy471

NOTE: I’m taking this weekend off from working on kernels.  I also will not be checking the site as much as normal.  Same goes for next week during the day, since I’ll be in a training class w/o internet access.  So if you have any issues, please post them, and I will check in when I can.

NOTES on AOSP: It appears that my kernels work for the most part on Froyo based AOSP ROMs.  However, Gingerbread is a totally different issue.  So it may or may not work, best way to find out is to try.  I do have plans to start working on newer kernel sources soon, but I really need some time off, I’ve spent most of my free time since Thanksgiving on this current source tree.

Changelog (since 15 Jan 11):
Hybrid Adaptive Voltage Scaling (HAVS) with sysfs vdd interface working 100%

SVS sysfs interface file for VDD: /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
HAVS sysfs interface file for VDD: /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs
It’s mostly the same code, but for scripting purposes I named them different
Only one will appear, not both

Sped up lock screen on ALL, damn HTC and Android fdearlysuspend
Fixed some earlysuspend issues
Fixed some wakelock issues
Updated WiMax drivers, ooops, forgot that in the EVO-MR3 update
Fixed a findbit problem

I had updated this to the glacier tree, which doesn’t work as well on our phones

Downloads:
Beta Kernel BRAVO BFS 21 Jan 11 (618 downloads)
Beta Kernel BRAVO BFS HAVS 21 Jan 11 (597 downloads)
Beta Kernel BRAVO CFS 21 Jan 11 (431 downloads)
Beta Kernel BRAVO CFS HAVS 21 Jan 11 (479 downloads)
Beta Kernel EVO BFS 21 Jan 11 (599 downloads)
Beta Kernel EVO BFS HAVS 21 Jan 11 (982 downloads)
Beta Kernel EVO CFS 21 Jan 11 (831 downloads)
Beta Kernel EVO CFS HAVS 21 Jan 11 (2293 downloads)
Beta Kernel INC BFS 21 Jan 11 (561 downloads)
Beta Kernel INC BFS HAVS 21 Jan 11 (1255 downloads)
Beta Kernel INC CFS 21 Jan 11 (450 downloads)
Beta Kernel INC CFS HAVS 21 Jan 11 (672 downloads)

md5sums:

6283179cd2d5e4559a59cd5866aa2d7c  ztest-BRAVO-BFS-012111.zip
396bfb9313dce36ba20b685217c29f8b  ztest-BRAVO-BFS-HAVS-012111.zip
3fe2560738cd833e3312278071bea053  ztest-BRAVO-CFS-012111.zip
2524920e6d3bdd3d2ca38207076dcf38  ztest-BRAVO-CFS-HAVS-012111.zip
34b5ec866e797e0001de058aaae29b84  ztest-EVO-BFS-012111.zip
26983586ea56c271b5316b2c64f2667a  ztest-EVO-BFS-HAVS-012111.zip
7ac5a9cd548422ce62fc963f805a5042  ztest-EVO-CFS-012111.zip
907053cf124895b4f2b2f0d2546d55fc  ztest-EVO-CFS-HAVS-012111.zip
c9be090daf13dc53c2441ec8b3e66c15  ztest-INC-BFS-012111.zip
2af1ea5038f5f4182f669d20dfc22193  ztest-INC-BFS-HAVS-012111.zip
d9ec89f6e317143081487d2f5f79d0b2  ztest-INC-CFS-012111.zip
5f28f9f14d9d3135396baf59466ab932  ztest-INC-CFS-HAVS-012111.zip

syfs VDD Interface Usage:
Static Voltage Scaling (SVS):”<freq> <vdd>”

echo “128000 875″ > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

Hybrid Adaptive Voltage Scaling (HAVS):”<freq> <min_vdd> <max_vdd>”
echo “128000 850 900” > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels_havs

94 Comments so far. Join the Conversation

Beta Kernel 15 Jan 11

Posted January 15, 2011 By Ziggy471

NOTE1: If you’re having problems, please uninstall/disable SetCPU and any init scripts first. A lot of the issues are OC related. If everything works fine after doing that, slowly start over-clocking, if not, please post. Once the problem speed is found, report it, but most likely, it’s a voltage issue, not all phones/processors are equal. Since these kernels have snq-‘s VDD sysfs interface, you can modify the VDD levels yourself. If there are any Java developers that would like to tackle the task of writing a program to assist, please do, I’ll help as much as I can.

NOTE2: If you post a problem, please include a valid email address, only myself and Mr. X can see them. For those that have had issues in the past, you can attest to the fact that I’m pretty good about emailing people to help work the issues out. Also when posting, please include the following: platform (Bravo/Evo/Inc), hardware revision if known, ROM and whether it’s Sense/Desire Z port/AOSP Froyo/AOSP Gingerbread, and OC settings. This just makes my job easier when attempting to help.

Change Log:
Updated to 2.6.32.28
Tweaked smartass some more
Broadcom bluetooth low power driver
Lowered minimum vdd to 825 for further testing
Fixed Bravo camera, now 5MP
Audio Boost for all
Updated BFS to version 363
Fixed out of memory problem when copying large files to a mounted SD card
Hopefully fixed CFS issues
More code clean-up

Full Feature List:(Or as close to it as this old guy can get)
Frankenstein of Inc-MR3/Bravo/Evo-MR3/Glacier/Legend/Vision/Ace source trees
Moved source tree as close to Mainline as possible
Updated to 2.6.32.28
Evo/Inc Atmel 3/5 Multi-point Touch
Evo WiMax support – see sturmen, I added it to the list
LZMA Kernel compression
Automatic Process Group scheduling
GPU+
BFQ IO Scheduler
Interactive Governor
Smartass Governor (Default)

fixed sysfs interface
added Kconfig options for all settings
Defaults to 128-245Mhz screen off
Defaults to profile max when screen turns on, reduces lag

Overclockable to 1.22Ghz, default 128-998Mhz
ck2 patchset
snq-‘s VDD sysfs interface

modified for all platforms, vice just the Bravo
Moved the min/max settings to Kconfig options
825-1400mV VDD range, 925mV(128Mhz)-1400mV(1.22Ghz) in acpu table

50K Sampling for conservative governor
AOSP support, yeah I know doesn’t work on all yet
Enabled and fixed rndis for wired tether
disabled HTC’s perflock
SLUB Unqueued allocator
CIFS
TUN
EXT4
NILFS2
All debugging turned off
All tracing turned off
Swap turned on
Static voltage scaling, no HAVS, not until I modify the VDD sysfs interface to work nicely with it
Absolutely no modifications to htc_battery, other than HTC updates

Quadrant scores (since some think that’s important, lol)
My phone (Inc/Uber-Z 2.0/998Mhz/BFS kernel)

Custom (CPU/Memory) 1475
Full 1675

My phone (Inc/Uber-Z 2.0/1.152Ghz/BFS kernel)

Custom (CPU/Memory) 1575
Full 1875

Downloads:
BETA Kernel Bravo BFS 15 Jan 11 (407 downloads)
BETA Kernel Bravo CFS 15 Jan 11 (383 downloads)
BETA Kernel Evo BFS 15 Jan 11 (677 downloads)
BETA Kernel EVO CFS 15 Jan 11 (796 downloads)
BETA Kernel Inc BFS 15 Jan 11 (633 downloads)
BETA Kernel Inc CFS 15 Jan 11 (382 downloads)

md5sums:

99adb0393ece330025b32bca2d728368  ztest-BRAVO-BFS-011511.zip
7c4e60e3397a563b2a003c772bb85cd6  ztest-BRAVO-CFS-011511.zip
896e25b7af3a7c9fddf60cc3ca653820  ztest-EVO-BFS-011511.zip
de5ff05e7c0aed43dc20175ab1b62ec8  ztest-EVO-CFS-011511.zip
b57a17b0e51f13cef7f65b30c915c8c5  ztest-INC-BFS-011511.zip
40ff9493c38bfdb1c00d9ebaf075902e  ztest-INC-CFS-011511.zip

Modifications I’ve done to my phone
Setup and Enable Swap partition
I used gparted to re-partition my SD card to @ 15G FAT/1G ext3/100MB swap.

/system/etc/fstab

/dev/block/mmcblk1p3    none    swap    sw    0    0

/system/etc/init.d/10swapon

#!/system/bin/sh
swapon -a

Drop caches on screen off
I know, not always a good idea, but I discovered this while working on the out of memory when copying files to a mounted SD card. vfs_cache_pressure wasn’t cleaning the caches as quickly as it should, hence drop_caches method.

I still recommend using QtADB or Droid Explorer instead of mounting the SD card to the computer.

/system/etc/init.d/90dropcache

#!/system/bin/sh
(while [ 1 ]
do
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ $AWAKE = "awake" ]; then
AWAKE=
fi
SLEEPING=`cat /sys/power/wait_for_fb_sleep`
if [ $SLEEPING = "sleeping" ]; then
sync
echo 3 > /proc/sys/vm/drop_caches
SLEEPING=
fi
done &)

Example of an init script to set VDD levels on boot
Note: Make sure you test the voltages extensively prior to setting up an init script. If you are using the kernel as default, and not changing the governor, then 128 and 245 are the important ones to play with, since your screen is off more than on. Finding the sweet spot for those will save alot of power in the long run. My phone does great at 875 for both.

/system/etc/init.d/90vddlevels

#!/system/bin/sh
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels ]; then
echo ’128000 875′ > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo ’245000 875′ > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
fi

Programs I’ve installed to help
Tasker
Set to turn on airplane mode and silent mode between 2100-0425 weekdays and 2200-0655 weekends, alarm goes off at 0430 weekdays and 0700 weekends. All mail and messages are there when I wake up. If anyone needs to call me during those times, they can use my home phone. Also it’s setup to reboot the phone every morning at 3am, helps with that phantom hangup on the Desire Z ports.

Auto-wifi enable
Setup to turn on wifi as I approach home and work, since 3G coverage in both places SUCK!!!!!

ES Task Manager
Setup to kill most processes on screen off, set it to ignore the important ones.

System Panel
Setup to monitor. Great tool to help figure out what’s killing batteries or using all the resources.

Titanium Backup
Setup to backup all new and newer M/W/F, and everything T/Th/Sa. Figured the phone needs Sundays off.

QtADB
Awesome program to copy files to/from phone without having to mount the phone to the computer.

80 Comments so far. Join the Conversation

My thoughts on Over-charging Batteries

Posted January 2, 2011 By Ziggy471

For those that don’t know me personally, I work for the government on special projects, and we’ll just leave it at that. However, in the course of normal work, we talked in depth to a National Lab in regards to batteries. One of the discussions was charging. I can’t post the actual info I got from them, however, here is a good stand in:

This is an except from here:
No trickle charge is applied because lithium-ion is unable to absorb overcharge. A continuous trickle charge above 4.05V/cell would causes plating of metallic lithium that could lead to instabilities and compromise safety. Instead, a brief topping charge is provided to compensate for the small self-discharge the battery and its protective circuit consume. … Typically, the charge kicks in when the open terminal voltage drops to 4.05V/cell and turns off at a high 4.20V/cell.

There is a whole lot more info on that site, but I’ll sum up the excerpt, if you continually charge a Lithium Ion battery, it will degrade, and worst case explode, but hey, at least it looks cool when it does.

Just don’t end up like others have, for example, a Chinese man who took his phone off the charger, put it in his pocket, and then it exploded.  To read a little more about that, check out EnGadget, if you want to see the phone, Tech-Ex.  Here’s another one, no one was killed, but it burst into flames, over on PCWorld.

I’m not sure if those were good factory batteries or the cheap Chinese knock offs, but either way, if you decide to assume the risk, that’s your decision.  However, my decision is NOT to hack the battery code.

I hope this explains why I have not or WILL NOT modify the battery code.

Z

23 Comments so far. Join the Conversation

Beta Kernel 2 Jan 11

Posted January 2, 2011 By Ziggy471

Sorry this wasn’t released on New Years Eve, ran into some issues on the INC, and since that’s my phone, it delayed everything.

First off, thanks to my private beta testers, you guys are awesome.  Evo rev 4 hardware is now supported, both cameras work just fine, thanks to Virus for verifying that one.

Note:
Bravo has not been tested, my Canadian testers are MIA, probably celebrated the new year too much.

WARNING:
It has been reported that BFS DOES NOT WORK on EVO rev 4, so unless you have success with it, then don’t bother posting.

Changelog:
Evo MR3 updates, both cameras on HW rev 4 work
Sense and AOSP support in all kernels
Misc updates from the EVO MR3
TUN included in the kernel now, no module required
swap enabled
VDD levels expanded to 850-1400, Calkulin wanted to test min voltage at lower clock speeds
NILFS2 compiled in for those that wanted it
More updates from glacier

Downloads:
BETA Kernel Bravo BFS 2 Jan 11 (444 downloads)
BETA Kernel Bravo CFS 2 Jan 11 (544 downloads)
BETA Kernel Evo BFS 2 Jan 11 (543 downloads)
BETA Kernel Evo CFS 2 Jan 11 (1128 downloads)
BETA Kernel Inc BFS 2 Jan 11 (768 downloads)
BETA Kernel Inc CFS 2 Jan 11 (579 downloads)

md5sums

064c236e9c2b1f81912abe2c06761075  ztest-BRAVO-BFS-010211.zip
31e49ccfab737cee335a4cdbc380a747  ztest-BRAVO-CFS-010211.zip
dc6e634d45b150b19505393cd6554055  ztest-EVO-BFS-010211.zip
5575da7536be2491beeb73018182a425  ztest-EVO-CFS-010211.zip
ec6e656dc21b73791b8e5fcf876c744b  ztest-INC-BFS-010211.zip
10e526107effcd827d198906f781ddea  ztest-INC-CFS-010211.zip
83 Comments so far. Join the Conversation