yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 General] Zatta:
this is definitely the wrong thread for this. Answer in the q&a thread.

Edit: link to that is in my sig.

Taptalked u see
[Galaxy S I9000 General] jose.celestino:
No, that's the screen timeout.

You need this patch to get BACKLIGHT_TIMEOUT from userspace as it is hardcoded to 1600 (ms). Then you need another patch to set the value in CMParts or, in this case, AriesParts.

Don't know if 0 would turn it off though.

void means you don't care for the function return

EDIT: "Then you need another patch to set the value in CMParts", failed to see that that was the one you posted and included the arrays.xml. Disregard everything I said before that.
[Galaxy S I9000 General] Daneshm90:
Yes if you edit that array, you will control the led backlight timer. Lowest you can go is 1. (0 is always on)

To test values do : echo 1 > /sys/class/misc/notification/bl_timeout

To turn it off however, some kernel "hacking" will be required :D
[Galaxy S I9000 General] jose.celestino:
Oh, so that array is actually for the touchkeys backlight timeout. My bad.

And that's were it is read from userspace then, nice.
[Galaxy S I9000 General] beekay201:
I'm confused. If 0 is always on, what's -1?

edit: Or did you mean -1 is always on?

edit2: (follow up on the next page) actually anything below 1 (since bl_timeout needs to be greater but not equal to 0) will make touchkey bl stay on forever.
[Galaxy S I9000 General] beekay201:
it's 7:23am here, also trying to sleep. :p

you already started and took first steps, but know this: we all have something more to learn, so that puts us in the same team :)

/me sent this from a i9250 using Tapatalk
[Galaxy S I9000 General] GJSmith3rd:
Here's a quick link to the CyanogenMod Android Virtual Device setup:

http://wiki.cyanogenmod.com/wiki/Android_SDK_Emulator:_Compile_CyanogenMod_(Linux)

Might be useful for those who don't want to flash a real device to test something. Also can I build for the AVD and my Ideos U8150 at the same time and will it take twice as long?

-- VM Cruz T105/PT701 XDA Premium --
[Galaxy S I9000 General] dracumere:
Hello again

Got up earlier and came right back on the forum. Ty for the replies, can't post the link to koush's git were i got the libtvout_jni.so file cause i am to green to post outside links :). But it was posted by pawitp there i think so i manualy downloaded it and moved it to aries/common and it all worked out.

As for the building enviroment i decided to not dual boot or setup a wm enviroment but just phisicaly remove the drives with windows 7 and everything there, and just put in a dedicated ssd for ubuntu to run on. Had to use Ubuntu 11.04 cause it is a little friendlier on ssd TRIM-wize (eazier to setup, for some reason 10.04 still holds on to the data after you RM a file).

Would love to use ubuntu as my default system but my wife would go nuts :)....plus still have problems with dual screen in twinview (flash fullscreens only on my default monitor and i don;t remeber how i could fix it).

Am doing a little reading on cherry picking and will try to adb logcat to see what the problem is with aries.parts being accessed, but am going to be yanked from my pc to go see a movie out with some friends so that will have to w8 a bit more.

As always appreciate your input guys/girls. Talk later tonight after cofein buzz starts kicking in :)

PS: bk201doesntexist ...ty for the kind words and patience :)

PS2: oh almost forgot.... i edited the udev file cause that's what it said in the build guide and i have no problem till now. can post the final version if anyone needs if anyone needs it
[Galaxy S I9000 General] beekay201:
thanks, AVD can be useful indeed.

I think there's a way to build several targets at "the same time", but I'm not sure how. Will search more, i'll let you guys know if i find anything useful on this. Please do the same :D

wb. no problem, you have shared enough to get people going.

this is a bit offtopic, but:

i'd say either try another browser, and check if you have Xinerama active or not. can't help you much further, not a ubuntu user. Twinview.. you have Nvidia graphics? Can't recall if radeon (for amd/ati cards) has twinview or not. Oh also, try changing from proprietary drivers to opensource ones, might help, depending on the status of development.

caffeine. ;)

thanks :) have a nice movie.
[Galaxy S I9000 General] GJSmith3rd:
Based on the suggestion and link higher in the topic to improve build times, I'm attempting to implement CCache, a compiler cache, and DistCC, a distributed compiler, for CyanogenMod Kang builds. Anyone have any experience or suggestions?
[Galaxy S I9000 General] nrg:
Ccache is already setup. Make sure you have it installed and the buildenv should pick it up.
[Galaxy S I9000 General] dracumere:
Hello again ppl, didn't have time to play some more with my Kang build but found something on GSMArena about this : http://xdaforums.com/showthread.php?t=1415661 seams preaty cool. gonna try it when i have more free time, and i'll watch it for new versions.

Btw bk201doesntexist ... seams the my problems with aries parts and device settings returning FC's comes form the damn libtvout_jni.so i used or at least that's what i can understand from logcat. But if i ever understand how to use the git system am going to try to import everything from koush's and pawitp's git relevant to aries common and put it into a new branch see what happends then, that is if i actually understand how to do that :) (git is a bit more taxing than i thought, need more time to understand it).

Anyway check back here when i can, have a nice New Year's Eve people.
[Galaxy S I9000 General] kasper_h:
Did someone try to run a build for AVD? In made a build which resulted in the expected .img files. But if I try to load them using AVD nothing happens (AVD works on stock images)...
[Galaxy S I9000 General] GJSmith3rd:
You need to build for CyanogenMod generic device to test in AVD.

-- VM Cruz T105/PT701 XDA Premium --
[Galaxy S I9000 General] kasper_h:
Maybe I should be a bit more specific on what I did. I ran:

. ./build/envsetup.sh && lunch device=cyanogen_generic-eng && mka

This first didn't work (error), but after a "make update-api" and running the above command again, it worked. I got three img files in the out/target/product/generic folder. I then downloaded api9 & api10 in AVD/SDK manager. I made a copy of the platform-folders (both for android-9&10), renamed them to android-9/10-cyanogenmod7 and replaced the img-files in these folders with the three I build myself. In both cases (both api9 & api10), I did not get a booting system.

I tried both api 9&10 because api9 is the one mentioned in the instruction, but as it is obsolete, I also tried api level 10.
[Galaxy S I9000 General] GJSmith3rd:
I got an error on my first attempt so I am trying your suggestion to 'make update-api'.

I'm trying to deploy Distcc and as soon as I get that working I'll do generic build and report .

-- VM Cruz T105/PT701 XDA Premium --
[Galaxy S I9000 General] kasper_h:
Update, I got the CM7.2 running! After some googling I combined some things and got it running.

$export PATH=$PATH:~/android-sdk-linux/tools
$export ANDROID_PRODUCT_OUT=~/android/system/out/target/product/generic/
$cd ~/android/system/out/target/product/generic/
$mksdcard -l SD 100M sdcard.img
$emulator -verbose

So, I made a script to run the emulator:

#!/bin/bash
#

export PATH=$PATH:~/android-sdk-linux/tools
export ANDROID_PRODUCT_OUT=~/android/system/out/target/product/generic/
emulator -verbose

I don't know yet why it works now. But I do see that it's running a different kernel (~/android/system/prebuilt/android-arm/kernel/kernel-qemu-armv7).
[Galaxy S I9000 General] GJSmith3rd:
Cool.

~~ VM Micro Cruz PT701/T105 Tapatalk ~~
[Galaxy S I9000 General] kasper_h:
For about 3 days, my repo sync doesn't finish, it always hangs at:

Fetching projects: 94% (295/313) fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

error: Cannot fetch CyanogenMod/android_prebuilt
[Galaxy S I9000 General] nrg:
Its a known issue. Check cyanogenmod twitter page.

I made it work by switching to https instead of git, but still errors sometimes...
[Galaxy S I9000 General] kasper_h:
Thanks for the reply! I'll try to be patient. Building works anyway :)
[Galaxy S I9000 General] GJSmith3rd:
Yes, I've been having problems too. I thought it was a local problem because I moved my repository to another directory. I deleted the repository and created a new one and still had problems. I changed to https as well but still having problems.

~~ VM Micro Cruz PT701/T105 Tapatalk ~~
[Galaxy S I9000 General] kasper_h:
There is a patch proposed to solve this problem:

http://review.cyanogenmod.com/#change,11428

It doesn't work for me however...

Using repo sync -f makes the syncing finishing to the end, just skips the prebuilt folder. And you could download the prebuilt folder from github directly. That way you at least have all files present locally to build a KANG...
[Galaxy S I9000 General] Turtuga:
someone provide latest kernel ??

big thanks
[Galaxy S I9000 General] Zatta:
You didn't read this thread, did you? Maybe better luck at the "kangaroo" thread.

Taptalked u see
[Galaxy S I9000 General] malcho:
I saw camera framework changes in nighty changelog.

Does anyone knows what are the changes?
[Galaxy S I9000 General] kasper_h:
Can you be more specific?

If you refer to the sd card option, this adds a checkbox in the camera preferences where to save photos and videos: internal or external sd. I'm using it for quite some time and it works well for me.

Sent from my CM7 galaxy
[Galaxy S I9000 General] malcho:
Something regarding camera autofocus.

Also some kernel changes.

Butt i cannot find what is changed.
[Galaxy S I9000 General] kasper_h:
If you click on the change in the changelog, you get to the cyanogenmod-review website which contains more info on the change...
[Galaxy S I9000 General] malcho:
Ok thanks.

I'm still learning how things around cyanogen works:)
[Galaxy S I9000 General] scherliberli:
Maps/Navigation hangs on Galaxy S

This is my first post to xda so please be indulgent ;-)

As CM7 buildbot is down for nearly 2 month, I managed to set up a successful build env for CM7 gingerbread but my problem is, that both navigation and maps sometimes do hang. navigation shows the intro (the blue google maps navigation text and never continues), sometimes the ringer is continuously on (in silent mode), and sometimes I even have to take out the batteries to reboot.

btw. the source for the build was synced ~ Jan 8 2012, but the problem was also with a build synced on Jan 6. with the latest nightly compiled by the buildbot (cm_galaxysmtd_full-181.zip) I didn't encounter this problem.

I already reflashed gapps (gapps-gb-20110828-signed.zip) but still no change.

My impression is, that the phone needs some time to "recover" after rebooting when the error occurs. Starting navigation/maps immediately after restarting results in a hang. Waiting for some time and then starting navigation/maps seems to solve the problem, even though in some later state the hang might as well occur.

Is there a problem with my build setup or does anyone else see this behaviour ?

regards

Gerhard
[Galaxy S I9000 General] kasper_h:
I would first reflash both ROM and gapps to rule out a bad flash.

Did you check MD5 of the zip?

I did not have any of the problems you mention. You had no error message during repo sync/build/compile? Maybe resync you repo and rebuild (and do "make clobber" in between to get rid of all the existing stuff from your previous build).
[Galaxy S I9000 General] scherliberli:
Did not check MD5, will do for next build, but I think as long as the recovery does not complain while flashing, things should be OK ?

The only problem during build was the lack of "libtvout_jni.so", fetched it from someones git repository (can't check exactly from where, not at the build machine right now), but after downloading libtvout_jni.so my build was OK.

The "make clobber" is a good hint, will check this tomorrow. This really should be on the wiki page (the cyanogenmod wiki, cannot post link due to newbie restrictions ;-) )
[Galaxy S I9000 General] malcho:
Regarding HD recording

Currently running ICS build 13.

HD recording and playback work pretty good.

I know that this is related to pawitp's kernel changes.

My question is can these changes be aplied to cm7 kernels?

Many regards
[Galaxy S I9000 General] scherliberli:
Did as suggested, but with no luck :-( Will try to wipe cache etc., even though I never had to do this when applying nightlies from the build bot. Maybe the differences are too big for one upgrade ;-)

Reading the compile wiki page over and over again and noticed libwxgtk2.6-dev. Is really version 2.6 required, or would 2.8 be fine also ? In gentoo 2.6 is'nt in portage tree any more ?

BTW: I could'nt find a resource for required gentoo packages (preferable with required version) for building CM. The CM wiki only mentions ubuntu :-(. As my described hangs/FC's are not present at other KANG's, this seems to be a build problem at my side.
[Galaxy S I9000 General] scherliberli:
Maps/Navigation hangs on Galaxy S

I finally found anonther post confirming this problem, seems to be related to recent google maps versions (see forum.cyanogenmod.com/topic/38645-google-maps-navigator-crash-phone/), sticking to maps 5.11 and deactivating autoupdate is suggested there (I have the problems with maps 6.0.3)
[Galaxy S I9000 General] dracumere:
error syncing

Hello, anyone getting this error?

syokang@syokang:~/android/system$ repo sync

Fetching projects: 94% (294/312) fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

error: Cannot fetch CyanogenMod/android_prebuilt

syokang@syokang:~/android/system$ repo sync -j16

Fetching projects: 92% (288/312) fatal: The remote end hung up unexpectedly

Fetching projects: 99% (309/312) fatal: The remote end hung up unexpectedly

error: Cannot fetch CyanogenMod/android_prebuilt

error: Exited sync due to fetch errors
[Galaxy S I9000 General] GJSmith3rd:
I think a lot of people are having problems. I just use the '-f' switch to force completion in spite of errors.

~~ VM Micro Cruz PT701/T105 Tapatalk ~~
[Galaxy S I9000 General] beekay201:
'repo sync -j4'

Try to go easy on github.
[Galaxy S I9000 General] kasper_h:
+1

And with the prebuilt repo having no recent changes, it's not very worrying that it can't be sync'ed.

Sent from my CM7 galaxy
[Galaxy S I9000 General] zacharias.maladroit:
first of all thanks to Zatta for leading me here :)

sorry for digging this up bk201doesntexist,

but is the resulting kernel able to boot into recovery ? (most preferrably via 3-button combo)

to get the full functionality (recovery included) I'll need ramdisk-recovery.img & ramdisk.img

to me it looks like only the latter is being extracted & thus will be usable

Many thanks in advance !
[Galaxy S I9000 General] Zatta:
More than a month after the last post here, are we going to allow the death of this thread?

Hell no! Has someone here already figured out how to build cm9?

Taptalked u see
[Galaxy S I9000 General] siky_dude:
:(

(10chars)
[Galaxy S I9000 General] jose.celestino:
Is the CM9 source already available?
[Galaxy S I9000 General] siky_dude:
afaik, nope..

:) not yet
[Galaxy S I9000 General] jose.celestino:
Hard to build anything out of thin air :)
[Galaxy S I9000 General] kasper_h:
I'm still building my personal CM7 multiple times per week :)

CM7 is working great, so I don't feel the need to upgrade to ICS before CM9 is officially supported!
[Galaxy S I9000 General] lownoise:
how to build Teamhacksung ICS rom

But you can already build the teamhacksung builds;)

I've successfully build the sources for the first time about 2 weeks ago.

short steps to build the TH ics rom.

a) repo init cyanogenmod branch ics

b) add a local_manifest with the device_samsung_galaxysmtd and the device_samsung_aries_common from the teamhackung github

c) repo sync

d) clone the kernel source from teamhacksung

e) clone the build script from teamhacksung

f) run extract_files.sh from de device_samsung_galaxysmtd

g) add TARGET_RECOVERY_PRE_COMMAND="echo 1 > /cache/.startrecovery; sync;" to the boardconfig.mk

g) run the build script

e) Enjoy

All credits goes to pawitp for the great releases
[Galaxy S I9000 General] Zatta:
Good to see the same names still supporting this thread. To me it has been the most interesting in my tapatalk favorites although it has been on the bottom of it for to long..

But, as far as i know all bits and pieces are out there, the main party in the CyanogenMod repositories, and the device parts in the teamhacksung ones. I just don't know how to collect all parts so that i could build them together..

Edit: but hey, the answer is just above this post, freaking great! Thanks a ton, when i get home I'll try :)

Taptalked u see
[Galaxy S I9000 General] nrg:
Any idea why this still needs to be added manually?
[Galaxy S I9000 General] malcho:
Hej,thank you for guide.

I'm trying to figure out this.

http://review.cyanogenmod.com/#q,status:open,n,z

On this page are all cyanogen code reviews.When code or patch are aproved here does this changes are in sync with teamhacksung git?

After that if i compile rom from source i will get all that changes and patches right?
[Galaxy S I9000 General] lownoise:
Nop, perhaps pawitp have some reasons for it:confused:

As long the patches are not for the device tree you get all the changes yes;)
[Galaxy S I9000 General] malcho:
Thanks for answer
[Galaxy S I9000 General] jpbranco:
hello guys, i want connect my SGS with samsung TV by WPS connection (directly without router) in stock rom we have this option when we try connect with tv, but in kang rom we don't have, can anyone help me on this? :D
[Galaxy S I9000 General] kasper_h:
I build & flashed a new cm7 today (first time in about 2 weeks). I actually got something weird: a grey bar with a + on top of the lockscreen. It cannot be pressed or anything. I then build a emulator image to check whether it was a general thing or something related to my phone, but the emalator has the same problem....

Happens both with cherry-picks as well as when building from plain sources. Anyone knows what it is?

Edit: solved the issue: seems to be related to the /frameworks/base/api/current.xml file. This file is update when running make update-api (which is necessary to build emulator images), but this causes problems when building a regular CM7.
[Galaxy S I9000 General] nrg:
@siky_dude, can you remove CM7 from the title of this thread? I think it should be open to discus any version of CM
[Galaxy S I9000 General] dark_knight35:
He was banned. Again :D:(.
[Galaxy S I9000 General] backhead92:
He is banned for a month (as far as I know), so probably will take some time ;)

Maybe a moderator is willing to help
[Galaxy S I9000 General] kasper_h:
Anyone already build CM9 here?!?!

I'm still building/running CM7, but now that galaxysmtd has gone mainstream cyanogenmod, I think about taking the huge step to CM9 :)
[Galaxy S I9000 General] nrg:
My kangaroo jumped from CM7 to CM9...

Lets just presume its already done.
[Galaxy S I9000 General] aladin6:
kasper is switching to CM9 too? :( We have to say goodbye for CM7 builds now i guess :(
[Galaxy S I9000 General] nrg:
Tell us one interesting new commit, and we could think about it. CM7 development is very slow at this time. No need for nightly builds.
[Galaxy S I9000 General] tishfire:
bk201doesntexist, this is a great write out! I've build crespo cm9 a few times and am thinking of exploring into adding more items in (not sure if it's cherry pick / checkout) Now with the lead coming from you a kesper. I can start doing it. It would be great if you could give some real examples from your side on how you did the branching and ?? not sure how it's done. But I agree after reading on your posts, i too would like to keep things clean.

Also hope you could finish the guide you had started here on d,e,3,4,5 :)
[Galaxy S I9000 General] nrg:
Remember that patch sets are updated all the time. So if you branch and keep the patch set, this could mean its already old.

I always verify my cherries before i pick them :)

my2cents
[Galaxy S I9000 General] kasper_h:
I have an account on review.cyanogenmod.com and subscribe to all commits I cherry-picked. I then automatically get emails when a patch set is updated....
[Galaxy S I9000 General] tishfire:
Don't mind me asking about the methods but for me is ICS - Maguro. Should be similar to this thread's topic right?

Thanks for sharing your methods. I'm trying to use a branch "icscp" for ics cherrypicks on maguro. So I'll take a lead from you. But this is very new to me, 3 months old ubuntu user.

Before I attempt to create a new branch, is there any specific master branch i need to identify first before creating a branch under it? If there is, assuming it is the branch "ics" taken from this line "repo init -u git://github.com/CyanogenMod/android.git -b ics" ?

Assuming I'm trying to pick an ID and by default i should be in the master branch ics already. choosing this id I1f118f1c I need to go to location

>cd ~/android/system/packages/apps/Settings/ (go to cheery pick refered location)

>git branch --track icscp github/ics (not sure what this does, linking my branch "icscp" to github/ics?)

>git checkout icscp (go to branch icscp)

>git fetch http://review.cyanogenmod.com/p/CyanogenMod/android_packages_apps_Settings refs/changes/79/11279/2 && git cherry-pick FETCH_HEAD (picking to location /android/system/packages/apps/Settings/ and tagging branch icscp)

After that do i need to merge my picks with the main before a build?

>git checkout ics (go to master branch?)

>git merge icscp (merge my picking branch to master branch?)

>source build/envsetup.sh && brunch maguro (build with cherry pick?)

When do I need to do a commit to changes? >git commit -a . A little confuse on this part.

once a pick is done this way, the pick will not be messed up with the master branch "ics" which I always do a repo sync right? And every time I build, the picks will automatically be build together in the process?
[Galaxy S I9000 General] kasper_h:
This is indeed the way to set up a ics repo. That was something I assumed already happened before cherry picking commits :)

Yes, you create a new local branch icscp here, which follows the github/ics master branch (which means that if you repo sync in future your local branch gets updated if things change in the remote master branch).

What happens if you follow your own guide is that you would merge the cherry picks in the master branch: I wouldn't do that! I would keep your cherry-picks in a separate branch and build with your local branch (in your example icscp) checkouted.
[Galaxy S I9000 General] tishfire:
Thanks for your guide up till now, I spent almost half a day trying out and encounter many obstacles, after trying to solve each and every one..... well keep it short:

Messed up the first attempt, i was lost on reverting back and deleted the entire ~/android/system/ because a message keep coming up that local manifest has error many times when I try to build

2nd attempt(cherry picked but building later), I've created 1 branch for each pick. Picked 7 cherries, because the 1st attempt, I've picked i think 20, fetch a few picks in single branch and a lot of conflicts along the way and I was lost in solving it.

Will only build the 2nd attempt later when I can leave my laptop on for 6-7 hours. (built maguro 2 days ago took 338 minutes)

Now, let say if I encounter plenty of conflict and wants to remove each branch and remove a cherry pick. Do i go into the folder checkout the branch eg:abc then >git branch -d abc ? Read some guilds but it wont allow me to remove a branch.

And removing a cherry pick after that by your method

when i've reach >git rebase -i copied-change-ID no editor turns up but instead a remark something invalid variable. Do i need to manually open and editor to edit something?