yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] riemervdzee:
And yet another day of debugging :-/

Have tracked down a bit which part is bugging us, I've added some information at the camera_bug file:

https://github.com/riemervdzee/cm-kernel/commit/388ed246ed09ad96994dd0c620f876beef07b12c

It seems the problem is at either at the qdsp5_comp code somewhere, or all smd related ones (modem code which is below qdsp5).

Is anyone able to take a look at it as well? Got a few school-tests coming up which I should learn a bit.
[Hero, G2 Touch Android Development] ChosSimbaOne:
When this rom get final will it then solve the problems with sense 2.2 roms? e.g. lacking camera etc?
[Hero, G2 Touch Android Development] erasmux:
Been meaning to get around to this anyway, but will take me a few days. Hopefully this weekend might have some time for this.
[Hero, G2 Touch Android Development] rdejager:
This is a kernel and not a complete rom.
[Hero, G2 Touch Android Development] Bieniu:
Elelinux 1.7.1 and Las Venturas Kernel 0.4.1 and camera is working great (691/352 OnDemand). Excellent work.
[Hero, G2 Touch Android Development] bluepinkpanther:
After 7 hours my battery is almost empty ;/

No wifi, gps etc. Only few txt messages and 5 min on tapatalk.

Not cool:(
[Hero, G2 Touch Android Development] riemervdzee:
I'll start investigating after the camera has been fixed. You sure you have an off-screen profile? Or you got problems with the cam then? (probably yes...).

Currently debugging the cam once again.
[Hero, G2 Touch Android Development] bluepinkpanther:
No, I don't have screen-off profile. I'm on stock freqs and I'm not using any oc app now for working camera ;) I tried to do some photos today and only once failed.

I can't wait to see fully working camera :D I'm keeping my fingers crossed :D
[Hero, G2 Touch Android Development] keyra74:
exactly the same... battery hunger but i have computers almost everytime :)
[Hero, G2 Touch Android Development] ChosSimbaOne:
Yeah I know but I thougt that camera issues I froyo was kernel related.
[Hero, G2 Touch Android Development] bonesy:
Riemer im a pain in the ass! If i built this from source can i compile as a boot.img then do a wlan .ko? or is it only as a zImage?
[Hero, G2 Touch Android Development] pskin132:
This kernel is soo quick between transition's from screen to screen app to app etc - Amazed - Honestly !
[Hero, G2 Touch Android Development] riemervdzee:
Unfortunately I don't think this kernel will make any new chances for a working cam on sense Froyo :-/

When you compile this kernel you will get a zImage (found at kernel/arch/arm/boot/zImage) and some modules depending on your config (they are hidden all over the place).

This is due the fact that a boot.img also sets some ROM dependant values.

If you need more info, let me know :)

Thanks :) yea animations are quite fast, hopefully it gets better ;)
[Hero, G2 Touch Android Development] riemervdzee:
Think I found the hack why the camera is an arse... It was one I made to get qdsp going under hero, seems it backfired on the cam.

Will revert it and fix it properly :)
[Hero, G2 Touch Android Development] gavtaylor:
I dont have any issues with the camera on 04.1, am I missing something? whats it doing wrong?
[Hero, G2 Touch Android Development] riemervdzee:
Well there is a general timing issue on the qdsp it seems. Depending on the workload, frequencies etc. it could overflow the arm9 when taking a camerashot. I can reproduce it quite quickly when changing the frequencies a little.

Consider yourself lucky if you haven't encountered it yet ;) Think I have fixed it properly now, just some general testing as qdsp is quite important (mic, sound-output etc.)

edit: Seems things still aren't perfect...

edit2: no ball at all. Doesn't seem more stable or whatso-ever. guess I was lucky it worked at a freq I use for testing.
[Hero, G2 Touch Android Development] bluepinkpanther:
Somethink wrong(?) is with colors on screen. Sometimes colors are abnormal... White color is different than on others kernel. When I turn screen off and on all looks good. When I take screenshot this effect is invisible.
[Hero, G2 Touch Android Development] mljjlm:
it happened when the sleeping frequency was too low on other kernels too :)
[Hero, G2 Touch Android Development] tomekk_nt:
On which ROM do you have this issue? I had sth like that on RCMix with Flykernel 12, so it might be ROM dependent bug.
[Hero, G2 Touch Android Development] bluepinkpanther:
I never had this on other kernels. I can use 19-xxx mhz on other kernels and all is ok.

I will try other freqs and will see.

On all roms which I've tested this kernel. Cronos Gingerbread, Sense 2.3.3 by bonesy, Elelinux RC4 and more.
[Hero, G2 Touch Android Development] riemervdzee:
Sometimes the screen wakes up a bit bad, see it as a bad morning-temper ;) I never had the time to look into it, as it doesn't occur as much anymore and it is easy to "fix" (just put it into sleep and wake it up again).

Maybe try another governor which increases the freq faster?
[Hero, G2 Touch Android Development] bluepinkpanther:
I'm using interavtive. What do you recommend?
[Hero, G2 Touch Android Development] riemervdzee:
on-demand. Next release will contain Erasmux' smartass thanks to Ivlis :) seems to work quite well for me
[Hero, G2 Touch Android Development] JieeHD:
loving this kernel, its improved on many things, hopefully the next few builds will decrease the "warm" up time, haha :P. Great work riemer ;)

Hero with Sense 2.3 ;)
[Hero, G2 Touch Android Development] bluepinkpanther:
It's possible to have these color for all the time? :D lol I liked it :p
[Hero, G2 Touch Android Development] riemervdzee:
Fixed a battery-problem we had. Seems there was a switch-case statement written a bit badly in the smd, waking up the radio a little (and kernel, as it manages the beast). Probably will come with a new build soon, just have to test whether camera is stable (I all of the sudden can't take any pictures at all :P)
[Hero, G2 Touch Android Development] riemervdzee:
A new version is available!

Changes for version 0.4.2:

Updated SMD-code again. Fixed a battery-drain problem and some optimisations/stability

Smartass governor added, thanks to Ivan and Erasmux :)

Some camera fixes. Colour correction and focus settings are reverted to normal Hero.29 sources. Now correct FPS calculation/settings, preview should be a tad faster

Some qdsp optimisations

And more small stuff. WiFi-tether could be working or not, same for VPN (haven't tested both)

Download link is available at the opening post. Enjoy! :)
[Hero, G2 Touch Android Development] keyra74:
installed, gonna give a shot at camera :)

huge lag on app drawer ... it freeze almost
[Hero, G2 Touch Android Development] riemervdzee:
It is probably not anything better than before. A new tip though: try putting the camera at 3mp pixels or 4mp. They work way more stabler for me
[Hero, G2 Touch Android Development] Wupper:
Mirrored LV 0.4.2 here :).
[Hero, G2 Touch Android Development] gavtaylor:
camera is broken completely for me now... unable to take pictures at any resolution :(

and it was doing so well on 0.4.1, have grabbed a chunk from the logcat in case it helps... http://pastebin.com/V95KLs8Y
[Hero, G2 Touch Android Development] bluepinkpanther:
New version is very very fast. :D
[Hero, G2 Touch Android Development] gavtaylor:
config-revert:

can take pictures fine at any resolution, any number of times and it seems to run exactly the same as with 0.4.1, except that if I try to change resolution settings, the camera fails with http://pastebin.com/Znp4E0gR

the layout also goes a bit wonkey, the settings menu moved off to the right, and slightly off screen.

smd-revert:

now this is back to how it was in 0.4.1, maybe even slightly quicker, but that could be because the config-revert build was a bit slow taking the picture.

didnt notice any issues with this version at all, can change settings/resolution and take pictures fine.

took a snapshot of the logcat just in case you want a look http://pastebin.com/x1xYzkwg
[Hero, G2 Touch Android Development] pskin132:
Both 0.41 & 0.4.2 drain my battery like mad !!!! - Any recommendation for frequencies & governor people !!! Cheers :D
[Hero, G2 Touch Android Development] riemervdzee:
Maybe your battery-calibration is broke after 0.4.1. with the latest I had 20 hours uptime with 6 hours of music on (still not perfect, but it is going ok). Does it keep degrading very fast? or does it stabilize it after some moment?

Note that there is still a battery problem when the screen is on.

__________________________________________

For all others, could you please test the following build whether the camera is fixed? I have it stable at every freq so far I tested (2.2 froyo rom though).

http://www.multiupload.com/XQ9ICNI6TF

md5: 7d26181bb29eae1488f251e2598f31df
[Hero, G2 Touch Android Development] elig11:
No, camera still not working for me. On CM7 nightly 39
[Hero, G2 Touch Android Development] gavtaylor:
doesnt work for me - http://pastebin.com/AHxd97QJ (Im still running the "stable" build)
[Hero, G2 Touch Android Development] schlehdorn:
camera works like a charm here.

Cronos Ginger 2.0.1 with MIUI camera, camera360 ultimate and barcode scanner

cpu smartass 672/352

wakeup is better with 0.4.2 than 0.4.1 :)
[Hero, G2 Touch Android Development] :
Right. I managed to take a picture, and I was like "OMG! IT WORKS! :D" but then I realized it was in VGA... I tried to take a 5MP picture and the camera froze after pressing the shutter button. Now the camera app won't even open.

I couldn't find anything to do with the mobile hotspot over Wi-Fi.
[Hero, G2 Touch Android Development] riemervdzee:
Well this will be my last attempt for a little while I think:

http://www.multiupload.com/KP6AZ15NXG

I nicked some spinlocking code (shiny little things which hopefully do their job and sync everything) from the legend.32 code.

Initial tests look ok, but you know how these things go... after a little while it starts to complain. Could you all please test this version and see how it goes?

edit: frustrationmode = on... it doesn't work perfect either
[Hero, G2 Touch Android Development] riemervdzee:
When it fails for a single time, it won't work again untill rebooted :-/

For WiFi-hotspot, already got a report it ain't working aye. No clue why (but have only spent 10 minutes at it)
[Hero, G2 Touch Android Development] swatsbiz:
@96th - Nice to see you over here from the CM Forums :-)
[Hero, G2 Touch Android Development] iHero96:
any updates?
[Hero, G2 Touch Android Development] riemervdzee:
0.4.3 has been released at:

http://www.multiupload.com/U1IMC94B0A

for elelinux 7.0.0 rom. however I will post it up on the opening post soon. I first need to clean up the room, party was a bit too big yesterday haha :)

This week I got vacation so I hope I got more time for this project. I will try to rebase to perfshoot 2.6.38 kernel soon
[Hero, G2 Touch Android Development] Wupper:
I've mirrored 0.4.3 :). here
[Hero, G2 Touch Android Development] iHero96:
where's the changelog?
[Hero, G2 Touch Android Development] riemervdzee:
Comming soon ;) Most changes are regarding USB, making it more stable and suitable for newer ROMs (elelinux android 2.3.4 version or so by example).

Also some SMD changes have been made, which might degrade camera experience (haven't solved it yet, sorry lads :()
[Hero, G2 Touch Android Development] elelinux:
What rom do you use ?

Edit : Camera works fine in Elelinux-7.1.0-Hero-v2.1 (sneakpeak),one of the differences between my rom and nightly's is the camera,use same settings as heroc when I compile the camera,if I remember right riemer took his camera driver from heroc's 35 kernel (or the settings anyway)
[Hero, G2 Touch Android Development] swatsbiz:
I can't get BT to work, not seen this as a problem previously in this thread ...
[Hero, G2 Touch Android Development] elelinux:
Testing it today,android 2.3.4 and Las_Venturas-0.4.3 NP :D
[Hero, G2 Touch Android Development] swatsbiz:
I'm using your CM7 2.1beta and LasVenturas-0.4.3beta.

Will that be an update on your CM7 to 2.2 or have a flashed badly?
[Hero, G2 Touch Android Development] elelinux:
Hmm I use the same rom,what kind of BT headset do you use,testing today at the office with a Flex bizz

Edit: No update for the moment but a public release of 2.1 with riemer's kernel instaed :D
[Hero, G2 Touch Android Development] swatsbiz:
BT won't even switch on just grays out the boxes after switching it on

I wiped cache and dalvik before flashing the kernel too
[Hero, G2 Touch Android Development] dpjohnston:
I'm using Ele 2.1 with this too and have no issues with bluetooth. Not sure what your problem is. I have a G2 touch if this helps for a comparison if it is a possible hardware issue.
[Hero, G2 Touch Android Development] riemervdzee:
Unfortunately this isn't true :( I wish we had the same sensor-setup, as our sensor is abandoned by htc it seems, while heroC's also was used by Desire/bravo or something similar.

The current camera-driver is a modded variant from the auroracode kernels.
[Hero, G2 Touch Android Development] swatsbiz:
As far I knew, apart from the variations in htc's supplies, we were all using the same hardware otherwise this kernel and rom would not work at all ;-)
[Hero, G2 Touch Android Development] swatsbiz:
Another reboot later and it seems to be working now ... Android is becoming like Windows for reboots ;-)
[Hero, G2 Touch Android Development] elelinux:
Hmm ****, where I got it from? bad memory :-) WTF now we go on can only get better :D
[Hero, G2 Touch Android Development] dkelley:
not android - hacked android... ;-)

android itself is solid as a rock. don't forget that these developers are doing things that aren't supposed to be possible - porting roms that aren't supposed to work, building kernels that aren't supposed to be compatible.

the reboots are from those situations. But it's worth every (very rare) reboot to push the limits of our beloved little heros!
[Hero, G2 Touch Android Development] swatsbiz:
I did have a little tongue stuck in my cheek when typing ;-)

Booting into Windose is frightful these days, I get 10 mins into doing something and it wants to reboot ...

Wish that OpenOffice ran on Android ... anyone for a full fledged Hackdroid desktop machine?

Edit: I use Ubuntu for mostly everything
[Hero, G2 Touch Android Development] dkelley:
chrome os? but yea, I'd like to use android for my desktop also.

documentstogo 3 is pretty amazing (full version) as are a couple of the other office suites for android. just saying...
[Hero, G2 Touch Android Development] Habarug:
Ubuntu isn't Crome OS but Linux :-)
[Hero, G2 Touch Android Development] bluepinkpanther:
Chrome Os is linux too.
[Hero, G2 Touch Android Development] Habarug:
Yes, but still, Ubuntu isn't Crome OS
[Hero, G2 Touch Android Development] byr2:
Guys, can we focus on hero kernel port instead of flaming the topic with linux not linux bull****?

Thanks.
[Hero, G2 Touch Android Development] riemervdzee:
Tried to get pershoot's 2.6.38 working on the hero for the last few days, no luck yet. Can't get it even to boot it yet (which is actually quite important I guess)

Think I will try CM's 2.6.37 soon, maybe I got some more luck with it.

Don't understand why in the linux kernel they overthrow the GPIO code every version though... Have to port some parts with it every time it seems.

_____

Btw, how do people like the LV 0.4.3 kernel? Sometimes it sucks battery it seems, but after wakingup/sleeping a few times it is gone. That and the cam is ofc always an issue...

But for the rest I'm getting quite fond of it :)
[Hero, G2 Touch Android Development] CSL00:
Go Riemer you can do it! My only issue is on Sense ROMs it breaks bluetooth and keeps the music player from playing more than 3 songs straight (all but herolatte) a lesser issue camera is limited to 3 MP (but is so much faster that it's worth it). Everything else is better with your kernel.
[Hero, G2 Touch Android Development] sniperde:
I really enjoy the kernel, it is blasing fast and has a fantastic battery life!

And last but not least music playing on Elelinux' roms does not suck the battery anymore :)

Thanks a lot for this kernel, unbelievable that the hero has working GB :)
[Hero, G2 Touch Android Development] erasmux:
I see you have gotten hooked on kernel porting ;) This **** is addicting :D
[Hero, G2 Touch Android Development] riemervdzee:
It is quite fascinating aye. Too bad it is quite time-intensive though. Can't get .37 to work either it seems. Might be something small :-/
[Hero, G2 Touch Android Development] taffypride:
found this update and installed it into my Hero.

Seems to have no real difference to the old kernel.

Radio: 63.18.55.06PU_6.35.15.14

Kernel: 2.6.35.11-Las_Venturas-0.4.3

Rom: Elelinux_Special_Edition_2.2.1_Final

Haven't noticed any speed decrease or camera instability or anything at all.....
[Hero, G2 Touch Android Development] bluepinkpanther:
This kernel is working fine with honeycomb port =)
[Hero, G2 Touch Android Development] sjknight413:
Honeycomb port?!?
[Hero, G2 Touch Android Development] cartman333:
lol :D what port ?! (link plz)
[Hero, G2 Touch Android Development] bluepinkpanther:
I'm working on a port for my use... I can release it on xda if you want guys. :)
[Hero, G2 Touch Android Development] cartman333:
OF COURSE WE WANT IT :D please realese it when its ready/or when you want it :D
[Hero, G2 Touch Android Development] Ciprilik:
please do :D
[Hero, G2 Touch Android Development] bluepinkpanther:
I think it won't be ready :D It's booting now but... you know :D

No calls, no sound etc.
[Hero, G2 Touch Android Development] cartman333:
ok :D keep up the good work :P if you need a tester just pm me :D
[Hero, G2 Touch Android Development] sjknight413:
ohhhh man! please release it :) would be more than happy to test/help!
[Hero, G2 Touch Android Development] riemervdzee:
Good to see it works out well :) Probably it is quite worthless for a phone I guess? (no calling function I suppose?)

Currently dropping the .37 port for now. Will continue my efforts on a more stable .35. Currently focussing on a newer headset driver, the current one seems to be eating a few cpu cycles here and there. Or in better terms: it is a bit racy.
[Hero, G2 Touch Android Development] mljjlm:
Can see you have done a bit of a backport from .37-kernel today.. Is it working as supposed? :)
[Hero, G2 Touch Android Development] riemervdzee:
I was attempting to get a very minor problem fixed, as sometimes the usb reconnects itself to the pc. Unfortunately it isn't fixed yet, but it looks like it is a bit smoother (which you probably hardly notice at all though).
[Hero, G2 Touch Android Development] elelinux:
Have the same post on my thread to,but post here to.

@riemervdzee

Looked a bit briefly USB tethering in your source, where can I find reference for addressing. "functions = usb_functions_rndis,"in the board hero.c, should it not be addressing with numbers instead type = 0x00000004

Here a log when try to connect

D/Tethering( 246): MasterInitialState.processMessage what=1
D/Tethering( 246): Tether Mode requested by usb0 - TetheredState - Tethered - lastError =0
D/NetworkManagmentService( 246): rsp <213 ce:5c:09:81:6d:df 79.102.139.81 255.255.255.252 [up broadcast running multicast]>
D/NetworkManagmentService( 246): flags <[up broadcast running multicast]>
D/Tethering( 246): chooseUpstreamType(false), dunRequired =false, iface=rmnet0
D/Tethering( 246): checking if hipri brought us this connection
D/Tethering( 246): notifying tethered with iface =rmnet0
D/TetherController( 195): Setting IP forward enable = 1
D/TetherController( 195): Starting tethering services
D/TetherController( 195): Tethering services running
D/TetherController( 195): setDnsForwarders(0 = '8.8.8.8')
D/TetherController( 195): setDnsForwarders(1 = '4.2.2.2')
D/TetherController( 195): Sending update msg to dnsmasq [update_dns:8.8.8.8:4.2.2.2]
D/Tethering( 246): TetheredState.processMessage what=12
I/dnsmasq ( 1368): started, version 2.51 cachesize 150
I//system/bin/iptables( 195): ACCEPT 0 opt -- in rmnet0 out usb0 0.0.0.0/0 -> 0.0.0.0/0 state RELATED,ESTABLISHED
I/dnsmasq ( 1368): compile time options: no-IPv6 GNU-getopt no-DBus no-I18N DHCP no-scripts no-TFTP
W/dnsmasq ( 1368): warning: no upstream servers configured
I/dnsmasq ( 1368): DHCP, IP range 192.168.43.2 -- 192.168.43.254, lease time 1h
I/dnsmasq ( 1368): DHCP, IP range 192.168.42.2 -- 192.168.42.254, lease time 1h
I/dnsmasq ( 1368): read /etc/hosts - 1 addresses
I/dnsmasq ( 1368): using nameserver 4.2.2.2#53
I/dnsmasq ( 1368): using nameserver 8.8.8.8#53
I//system/bin/iptables( 195): ACCEPT 0 opt -- in usb0 out rmnet0 0.0.0.0/0 -> 0.0.0.0/0
I//system/bin/iptables( 195): MASQUERADE 0 opt -- in * out rmnet0 0.0.0.0/0 -> 0.0.0.0/0

Edit : One more question "D/Tethering( 246): notifying tethered with iface =rmnet0" interface rmnet where do i find that
[Hero, G2 Touch Android Development] riemervdzee:
Have you checked it out already?

Also currently checking out some random battery issues :-/ Sometimes it goes really ok (really really well actually), but sometimes it drops enourmessly.
[Hero, G2 Touch Android Development] elelinux:
Had unfortunately not have time last night, but will try tonight

Edit: Has a wife who thinks I sit too much at the computer :(
[Hero, G2 Touch Android Development] riemervdzee:
lol fair enough. Think this is it though :)

Also I'm about to tackle the battery problem. Just a few tests..

If this is working ok, I think the battery will be outstanding. Better than I've seen before actually
[Hero, G2 Touch Android Development] erasmux:
Not sure exactly where stand on this, but from what I remember the main thing that increased FlyKernel's standby battery life and is missing at least on your github is:

These configuration tweaks: https://github.com/erasmux/hero-2.6.29-flykernel/commit/3e48c89f94a0571d42aeac322bcf73980defedfb

Notice mainly:

-CONFIG_MSM7X00A_IDLE_SLEEP_MODE_POWER_COLLAPSE_SUSPEND=y
-# CONFIG_MSM7X00A_IDLE_SLEEP_MODE_POWER_COLLAPSE is not set
+# CONFIG_MSM7X00A_IDLE_SLEEP_MODE_POWER_COLLAPSE_SUSPEND is not set
+CONFIG_MSM7X00A_IDLE_SLEEP_MODE_POWER_COLLAPSE=y
...
-CONFIG_MSM7X00A_IDLE_SLEEP_MODE=0
+CONFIG_MSM7X00A_IDLE_SLEEP_MODE=1

If you haven't gave this a try, I highly suggest you do.

While we are on a similar subject, why are you using such an outdated version of smartass? I had done a major rewrite of the code since then and the version from my flykernel repo should be better. Let me know if you need any help with this.

EDIT: urg, got confused by the github web interface, it seems you did update to the latest version.

The only differences I still see are:

-#define DEFAULT_UP_RATE_US 24000;
+#define DEFAULT_UP_RATE_US 12000;
-#define DEFAULT_DOWN_RATE_US 49000;
+#define DEFAULT_DOWN_RATE_US 25000;

Which unless you are really sure of what you are doing, I would stick with my values. These specific values, at least for the hero, seem to work best. I played with this quite a lot and decreasing them may also have a negative effect on battery life.
[Hero, G2 Touch Android Development] riemervdzee:
For the config values, they are already like the way you proposed? Diffed it with your config to be sure, and these values are used in CM anyway (where I kinda based my config from anyway).

For smartass, I hope you mean the otherway around? eg, remove 25000 and replace with 49000?

The values/porting etc are done by "ivlis", not sure why he has taken these values.

But it seems that the current battery-problems are most likely to be blamed for the smd code I've been torturing too much to get the camera working. Current git reflects most of the fixes, but I got some at the localbranch as well (fine tuning).