yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] Elemag:
To all people that post here -- know that I am reading, even if I am not responding!

I decided to strip off some unneeded things in the kernel before officially releasing a non-BFS kernel. The result is a much more lighter kernel, lighter in almost 0.2 megabytes! It looks like HTC are overcautious :)

Of course there is a problem with that -- the system is much more defragmented (32% in my case) after the flash so it will take a lot of a lot of time to flash it -- at least 15 minutes. It will be included by default in the next release, but for everyone that just wants to flash it over, know that you will really need a lot of patience.
[Hero, G2 Touch Android Development] sysids:
Bluetooth problems

1. It tells me it fails to pair but I have not completed inputing the pin.

2. obexftp -b X:X:X:X:X:X -p file, fail with the message "The user may have rejected the transfer: Connection refused" but I have not seen any notification.

I try many times to successfully pair my hero to laptop but file transfer fails.

NOTE: I use a custom kernel I compiled for my needs (It is a non-BFS kernel).
[Hero, G2 Touch Android Development] lukesky:
Looking forward to your non-BFS kernel. Looks like devs are slowly moving away from BFS cos in it's current version, it's not that great.
[Hero, G2 Touch Android Development] krispijn_s:
Found a bug:

GPS signal is lost after about 30 sec. - 1 minutes of navigation (with google maps for example). Haven't logcat it as I was driving, but I'll see if I can catch it later today.
[Hero, G2 Touch Android Development] tishovo:
Same with me (IGO)
[Hero, G2 Touch Android Development] Elemag:
A new non-BFS kernel is being uploaded right now :)
[Hero, G2 Touch Android Development] krispijn_s:
total n00b question, but BFS = scheduler?
[Hero, G2 Touch Android Development] :
Yeah, Brain **** Scheduler. The normal scheduler is Totally Fair Scheduler, I believe.
[Hero, G2 Touch Android Development] kosmiq:
Where is the new kernel? I can barely wait to try it out! :D
[Hero, G2 Touch Android Development] Elemag:
Check first post!
[Hero, G2 Touch Android Development] :
On my Battery test I got exactly 30 hours of battery, and my run included flashing the update and the boot animation. :)

Needless to say, I'm very happy with the battery life, as I use my phone quite a lot.

EDIT: Flashing the non-bfs kernel now. Is it a low-clocked kernel as well? I've the old Hero which has the occasional wakeup issue with the low clock speed.

EDIT2: Booting up after the non-bfs kernel wasn't any slower than usual for me.
[Hero, G2 Touch Android Development] dipje:
why a non-BFS kernel, is my question :)
[Hero, G2 Touch Android Development] kosmiq:
Sweet, thanks! Will test later with wired-tether as well :)
[Hero, G2 Touch Android Development] kyods:
The Non-BFS kernel works like a charm, thanks, Elemag. Also the first boot after flashing took me no more than 3-4 minutes, even though I wiped Dalvik cache.

The phone made a nasty surprise and crashed this morning, exactly the moment when the alarm was supposed to sound at 6 am, I had to pull the battery out to get it going again. Fortunately my biological clock worked fine.
[Hero, G2 Touch Android Development] joaann:
Can you add some frequencies in non-BFS Kernel like 19, 518 or 614 MHz?
[Hero, G2 Touch Android Development] Elemag:
I had a hard day at work and didn't write much, but will try to summarize issues...

I will see what I can do with the GPS bug, but tried it today and I only lost signal when the screen went off.

Regarding wired tethering, I made some tests and it seems that the app can't disable adb and mass storage. It can be done manually with this command:

echo 4 > /sys/devices/platform/msm_hsusb/usb_function_switch

The new kernel has only 3 frequencies enabled to reduce switching, which greatly improves battery life. And it is a non-BFS one, cause there are a lot of people who wanted that. It is also easier to apply the BFS patch than to remove it :)
[Hero, G2 Touch Android Development] Elemag:
Umm, I won't add 518 and 614. 19 -- will have to do some tests with this one.
[Hero, G2 Touch Android Development] rakig:
from my experience with other kernels/roms, 19Mhz will likely cause problems waking up, I normally limit my lowest to 176 and even then it occasionally lags coming out of sleep.

I do REALLY want the stock frequency (518/528 or w/e it is). I'd like to be able to limit it to stock max in certain situations instead of being forced to OC to 614 or downclock to 354
[Hero, G2 Touch Android Development] Gawis:
I really like this rom, thanks for your work!

I do experience some issues:

1. GPS signal drops after about 30 seconds (tested with CoPilot and GeOrg)

2. I get no blinking led or trackball when I receive a message or a notification

the GPS is something I will miss in the weekend when I go Geocaching so I hope you find the time for a fix :)

also the default Android camera doesn't seem to have geotagging function which also miss..

can I push the camera app from a sense rom and install that or will it give problems?
[Hero, G2 Touch Android Development] dipje:
I had the same GPS issue today. I had to 'emergency flash' some other ROM I had laying around on my SD card.

The same issue appeared a while back on robin04's Androbin ROM R4. Before he went to Cyanogen / Darkstar ports. He managed to fix it somehow though.

I've got another issue to report. My 3g is working fine. I switch on WiFi, which works fine. But if I turn WiFi off again, I get no 3g (or even good ol' gprs) whatever I do. Turning off and on airplane mode, rechecking / readding my APN info. The only method to get 3g back after turning off WiFi for me is rebooting my phone. Then it automaticly works again.

About frequencies: Reducing the amount of frequencies helps... but it helps more if you limit the samplerate at which the kernel checks. It defaults to 20000, some set it to 60000.. which means ever 60ms. I set it (with SetCPU advanced, but also possible in /sys) to 200000 or 500000. 200ms (1/5th of a second) seems more than enough for me for the phone to respond. If I turn the screen on, and I start a program it takes 1/5th of a second to clock to 691mhz... seems fine to me. The 'up_threshold' I lower a bit with this to 60 or 70 or something. To make sure that even if a program 'only' uses 60% cpu, it causes a frequency-raise.

It also helps to set the 'ignore nice load' value to 1. That means that if a program / process is set to low priority / idle priority, it will never cause the freqencies to raise. This will make sure background services like syncing and such will not raise the frequency while your screen is off.

the 19mhz is useless to me. The power it saves is questionable, and it can only cause issues. My hero _really_ has problems with <150mhz to wake up OK (no mather what some of the kernel hackers say, I did my own fair share in kernel dev'ing), and 19mhz has no gain and only causes problems IMHO.

As a little side note, +/- 140mhz (don't know, one step below the 176mhz one) would cause the music to skip every 3 or 4 seconds. Apparently my config has some sort of program that does just a little check every 3 / 4 seconds, and together with music playing and the ultra-low frequency just means there is too little power. So if the samplerate is high (>= 200000), it doesn't even change up. And if the samplerate is low ( < 100000) it means it's _constantly_ switching between low and high frequency which causes the battery to drain quickly. If this happens with my Hero connected to the charger, it drains faster than it can charge causing the battery to heat up to > 55C (I burned my fingers actually). Dangerous stuff.

Anyway, you could always enable the 19mhz frequency, and just set your default

'scaling_min_freq' to 176000. That way normal users get a minimum of 176 and have no issues, but the 19mhz is enabled for people who want to play with it using setcpu or OC-widget.

Summary :): GPS issue reported. wifi / 3g issue reported. And advice on frequency settings. :).

Would be nice if the issues could be sorted, 'cause I really want to get back to this ROM.
[Hero, G2 Touch Android Development] Elemag:
It seems that I have included an old libgps.so in the rom, thus the problems with GPS

The wifi/3g issue is not present on my device btw, so give me more details about it. Or if someone else is having it, please tell me.

As for the kernel things you're telling me -- I had them all in mind while I compiled it. However, I have never tested the 19 MHz frequency after discovering how to wake up my Hero from less than 264 MHz, cause it didn't want to, no matter what kernel I used :)
[Hero, G2 Touch Android Development] Gawis:
glad you found it!

will you provide a patch for it or instructions on how to fix?

thanks!

3G seems to work fine with me

even when I switch between wifi and 3G (I do disable 3G when I turn on wifi)

I do remember having some problems re-connecting to my carrier's 3G when I have changed my apn with MarketEnabler or Market Access, this indeed needs a reboot for me.

This is not rom related.

don't know if it's related to dipje's issue but thought I should mention it anyway :)
[Hero, G2 Touch Android Development] krispijn_s:
Glad you found the issue.. as for the frequencies... my hero's the same as yours.. anything < 250 I have issues with (I've set it to 352 now).
[Hero, G2 Touch Android Development] Elemag:
I will when I test it and confirm it is the source of the problem :)

Blah, an OTA updater will fit very well here, I may try to port the cmupdater if I have enough time...
[Hero, G2 Touch Android Development] Elemag:
You mean that you can't get out of sleep mode with the default kernel? Or with the non-BFS one?
[Hero, G2 Touch Android Development] krispijn_s:
Default kernel gives issues when it's set to 176 I think... It wakes, but it has a lot of trouble doing so. Luckily SetCPU allows the minimum freq to be set to 352, which works fine.

I tried 264 once on a VillainRom (I think) and that worked too, but 246 is too slow too, giving me the same wake up issues.

EDIT: haven't tried the non-bfs kernel
[Hero, G2 Touch Android Development] Elemag:
Are you sure that it doesn't want to wake within a second or maybe two with the default settings, with no overclocking tools running? If you are, then that's some fourth kind of a hero... That is being able to overclock to 691 MHz but unable to wake up at 176...
[Hero, G2 Touch Android Development] krispijn_s:
:o Yeah.. pretty sure.. tried out about every frequency config I could come up with (the freekernel of RaduG's vanilla eclair works really well towards that end). When I want to wake it up it displays the lock screen, but you can't do anything and the button lights just stay on. The only way to wake up the handset then is to turn the screen off using the power button and then using the power button again to wake it up and then the lock screen responds.. on average I'd say this process takes about 5 - 10 seconds (though I haven't timed it with a stopwatch)
[Hero, G2 Touch Android Development] kosmiq:
First off; wired tether. If I create a script to run with GScript Lite that executes that line in order to make wired tether work, would I then need to reboot the phone when done tethering in order to return to a normal state?

If so, what would I need to echo instead of 4 in order to return to normal operation?

Also regarding frequencies and wake-up issues. My phone can handle 691MHz as well but have had problems waking up at 176Mhz. However I did notice that when RaduG included fewer frequencies into his kernel the problem occured less often. So fewer freqs = faster wake-up and less issues for me at least.
[Hero, G2 Touch Android Development] mljjlm:
I don't think there's anything to port really.. you just have to point it at your own .json-file and of course, have that file somewhere with your updates :)

that's at least how I understood it :)
[Hero, G2 Touch Android Development] Maharifu:
+1 here! I also would like this stock freq very much. I like to keep it in a minimum freq which provides a good enough usability. I think it will work well enough at 518, so I feel no need to put it at 614.

If you add this and the GPS problem is solved (as I believe it is now!) I change to this rom for good!! ;)
[Hero, G2 Touch Android Development] dipje:
right, crap.. so I'm the only one with the no-3g-after-wifi issue here.

I can confirm that it's not present on other ROM's and I only encountered first with yours. I set my APN (just one, mms can't be bothered with) manually with every ROM (as my provider KPN's settings are just plain wrong in every apn-list apparently).

How can I give more detail? It seems that if I turn Wifi off my 3g network driver is turned off and never on again (ifconfig <blabla> down), that's my feeling.

There's no 'on and off' for mobile-internet anymore (while holding power button: gone, in the wireless settings submenu: gone). Only 'airplane' mode which kills the entire radio, and not only the 3g-interface.

Do you have any modifications or scripts that are being run after the wlan interface is turned down and the driver unloaded?

I'll poke around in the adb shell before and after wifi.
[Hero, G2 Touch Android Development] tookewl4skewl:
I updated with the new version today and now I can't get my bluetooth to turn on. It tries to turn on, then the box returns to being unchecked.
[Hero, G2 Touch Android Development] krispijn_s:
Mine does this just fine: I can log onto my wifi net and then switch back to 3g effortlessly. I am using the newest radio though (the PU one). Sounds like a really odd issue though. :o

I think no vanilla-style rom has this. Sense-roms do, but I think that's an HTC extention or something. You could try widgets like APN Droid (free) or Extended Controls (paid) though.
[Hero, G2 Touch Android Development] lukesky:
I do get the 'no internet connection' sometimes and occasionally this happens after I enable wifi at home and then go out and I wana continue surfing so I turn off wifi and turn on 3g and there's no internet connection. But whether or not this is strictly a 'no internet connection' only problem or a 'no internet connection after wifi is turned off', I can't really tell.

But even on 2.1 sense roms, I still get this 'no internet connection' problem and I've got the latest radio too.. but it doesn't happen as often as AOSP roms. The only saving grace of AOSP roms is that the reboot is way faster than sense roms so rebooting is a minor annoyance and not a big pain in the arse.
[Hero, G2 Touch Android Development] Elemag:
The Cyanogen OTA updater is working superbly :) I will start using it soon, just looking for some way to force it using my server by default.

Edit: I will probably rebuild it. :P
[Hero, G2 Touch Android Development] vido.ardes:
i've seen this issue on several ROM's and it was actually a friend with a Nexus One who pointed it out to me originally. It appears to be a bug with vanilla Android but I only get it on rare occasions and only after wi-fi has been on a long time
[Hero, G2 Touch Android Development] Lox_Dev:
Hi,

Can you send me your kernel source?

Thanks
[Hero, G2 Touch Android Development] Jaco90:
i just updated the facebook app and now i cant seem to sync? any solutions?
[Hero, G2 Touch Android Development] Maharifu:
OK, I really want to love this rom, but unfortunately I find it unusable in my hero... :s

I must be one of the unlucky hero owners, because I find that it freezes randomly when running at 691MHz. As the next available freq is just 352, this is unusable... :s

I tried wiping everything, and even repartitioning the sd card, but it just keeps freezing randomly and making me pull out the battery. I tried both kernels available.

Elemag, can you please add a new kernel with the 518 and 614 freqs available? Maybe with 614 being the highest one by default, cuz if 691 is the default I have a really hard time trying to install setCPU just to lower it, as it keeps freezing...
[Hero, G2 Touch Android Development] Emeric_:
Same problem here, my hero can run at 672MHz rock stable, but at 691 it freeze within a minute.

The solution is to flash the kernel from aHero (jz01.1 if I remember well). After that you can overclock with setcpu, and choose inside a wide range of frequency.

Elemag you have to think that a lot of user cannot go to 691MHz (and maybe not even 650). A kernel with only 3 fixed frequency is a pretty bad idea for the "official" kernel of this rom.
[Hero, G2 Touch Android Development] Elemag:
@LoX

I will upload it soon to github. Stay tuned

@Jaco

I haven't looked yet into the problem, just don't have enough time recently

@everyone

I am building a 264/518/576 kernel right now which should suit everyones needs

And finally is there anyone who wants to theme the OTA updater or I should keep it Cyanogenish?
[Hero, G2 Touch Android Development] bduvel:
In this rom is the Dutch language and keyboard included? multi language?

Im flashing it atm, rest i dont care if it is english.. but i want a dutch dictionary ;)
[Hero, G2 Touch Android Development] Elemag:
It is multilanguage, but I don't know if Dutch is included
[Hero, G2 Touch Android Development] bduvel:
Seems it ain't, menu's are dutch tho but not the dictornary is there anyway i can import it myself?

I tried MoreLocale2 but that dind't work, what about HTC_IME mod?
[Hero, G2 Touch Android Development] Maharifu:
And I am testing it right now. :)

Great work. Thanks, man!! :D
[Hero, G2 Touch Android Development] kosmiq:
That did work (did it through ADB). Had to reboot phone to restore normal operation to the USB though.

If I would create a script to launch on the phone to do this, what would I need to do? Set the filesystem as rw?

Also would there be a similar number to echo after tethering to restore normal operation without a reboot of the phone?
[Hero, G2 Touch Android Development] Elemag:
Echo 1 for mass storage, 2 for adb, 3 for mass storage plus adb.
[Hero, G2 Touch Android Development] :
I'm having some trouble with MMS, or more like I can't send MMS.

I've got my APNs configured right, although my APN list is empty (data still works fine).

On sending MMS it just shows the waiting icon forever.

Here is something I found in the logcat:

D/ConnectivityService( 121): startUsingNetworkFeature for net 0: enableMMS
D/ConnectivityService( 121): special network already active
E/SendTransaction( 261): java.lang.NullPointerException
E/SendTransaction( 261):	at com.google.android.mms.pdu.EncodedStringValue.<init>(EncodedStringValue.java:76)
E/SendTransaction( 261):	at com.android.mms.transaction.SendTransaction.run(SendTransaction.java:111)
E/SendTransaction( 261):	at java.lang.Thread.run(Thread.java:1096)
E/SendTransaction( 261): Delivery failed.
D/ConnectivityService( 121): stopUsingNetworkFeature for net 0: enableMMS
D/ConnectivityService( 121): reassessPidDns for pid 261
D/DataConnectionTracker( 173): disableApnType(mms)
D/DataConnectionTracker( 173): setEnabled(1, false) with old state = true and enabledCount = 2
D/DataConnectionTracker( 173): EVENT_APN_ENABLE_REQUEST 1, 0
D/DataConnectionTracker( 173): dataEnabled = true, enabledCount = 2, isApnTypeActive = true
D/NetworkLocationProvider( 121): onDataConnectionStateChanged 1
D/MobileDataStateTracker( 121): mms Received state= DISCONNECTED, old= CONNECTED, reason= apnSwitched, apnTypeList= mms
D/NetworkStateTracker( 121): setDetailed state, old =CONNECTED and new state=DISCONNECTED
D/ConnectivityService( 121): ConnectivityChange for MOBILE_MMS: DISCONNECTED/DISCONNECTED
D/NetworkStateTracker( 121): removePrivateDnsRoutes for MOBILE_MMS (rmnet0)

EDIT: I also have 941 APNs in my configuration file when making a backup with APN Backup & Restore. Still, my list is empty.

Also, I just noticed this in the logcat:

D/SyncManager( 121): failed sync operation authority: com.android.contacts account: Account {name=iiro, type=com.twitter.android.auth.login} extras: [] syncSource: 0 when: 607973 delay: 252392 key: {authority: com.android.contacts account: Account {name=iiro, type=com.twitter.android.auth.login} extras: []} pendingOperation: android.content.SyncStorageEngine$PendingOperation@43fd6ab0

It seems that my Twitter is failing for contact sync, used to work great on VanillaElair.
[Hero, G2 Touch Android Development] Gawis:
correction, the trackball blinks very shortly so you can't really see it unless you hold your hand over the trackball so no light comes through

it blinks like it should only the led should stay on longer so it is more visible

with notifications from the calendar it works normal but with Seesmic and K9 it works as described above

I used the HTC Camera update.zip from the VillainROM kitchen which installs fine but doesn't start (force closes)

any tips?

thanks!
[Hero, G2 Touch Android Development] Elemag:
@iiro

I will see what I can do with that, but I don't promise the resolution will come soon. Btw I will include your bootanimation as default in the next version.

@Gawis

I will check for updates at the lights library but if there ain't any I will either have to edit that or wait for the author to do so. As I really don't have too much spare time recently, I doubt there will be a change in the next version.

The HTC camera won't work, cause it uses HTC framework, which is available only on Sense roms, or in the SuperVillain rom, which is highly stripped Sense too. But if you wait for the next version of CMH (yep, that's the name I choose for this rom), it will include new Camera app. And the geotagging feature is an issue of libgps, not of the Camera...

So to summarize, the next update will feature:

-- iiro's bootanimation as default

-- the 264/576 kernel as default

-- updated gps functions

-- updated camera

-- and most important OTA updater, so you won't bother to check manually for updates :)
[Hero, G2 Touch Android Development] :
Yeah, no problem. I have never been able to send or receive MMS using 2.1 Android anyway. Looking forward to the OTA updater!
[Hero, G2 Touch Android Development] Maharifu:
Elemag, are you using the latest version of jogball lights from here http://xdaforums.com/showthread.php?t=705940, on page 4?

That version solved some of my issues like the ones being described here, while I was on another rom (Androbin CR4)... Haven't tested it in this one yet.
[Hero, G2 Touch Android Development] Elemag:
Having seen the time that was posted, I really don't know if I am using the latest version, cause I was busy setting up the CM vendor tree. But I will surely use it in the next release.
[Hero, G2 Touch Android Development] Elemag:
Yeah, I really want to push the OTA updater, It will solve a lot of my problems (and hopefully yours, by saving me a lot of time) :)

Looking at your bootanimation, do you want to make a theme for the updater? :P
[Hero, G2 Touch Android Development] :
I sent you a private message on that. ;)
[Hero, G2 Touch Android Development] Gawis:
thanks for your reply!

It seems that the GPS functions is the most interesting part for me as it fixes the navigation and geotag issue.

Thanks for clearing that out!
[Hero, G2 Touch Android Development] krispijn_s:
OTA updater and gps.. well.. that makes it very very useable then :)
[Hero, G2 Touch Android Development] Elemag:
The OTA updater will really be a killer feature... and it is working superbly, I downloaded and flashed my last test update :) I just want to pack it together with a bit more fixes and I need to know what will be the ROM name that you chose. So far it seems "CMH", despite my preference to "Black Flower"
[Hero, G2 Touch Android Development] Miister-Ot:
Really looking forward to the update! :) any eta?
[Hero, G2 Touch Android Development] Gawis:
was wondering the same but didn't dare to ask :D
[Hero, G2 Touch Android Development] krispijn_s:
"CMH" means "Central Military Hospital" to me, but I do kinda like it (prolly due to my military nature :D ). Clean short simple, easy on the dramatics.
[Hero, G2 Touch Android Development] Maharifu:
I was torn between the two, but ended voting for CMH as it is simpler, which fits nicely in yout no-clutter-vanilla rom!! But I like Black Flower also.

And it is your rom, so your own personal vote must count more than one of ours!! ;)