yashsingh1/xdaforums huggingface dataset:
[Gen8 Android Development] LeoNg628:
Hi all,

First, sorry for my english since english is not my mother language.:o

I think is enough for my speak...main part coming..

From my own test, SWAP is works and faster than put the file onto the HDD.

--Step1--

Download the SWAP file from below, thanks marclh1992

http://xdaforums.com/showthread.php?t=872697

--Step2--

Unzip the file to the desktop, and choose the suitable swapXXX for your Archos 70 IT, I use swap256 for demo.

--Step3--

put the SWAP file into the root of your Archos

--Step4--

Download 'GScript Lite' from Market, and install RootExplorer from !?

--Step5--

Open RootExplorer, and point to your HDD as '/mnt/storage'

--Step6--

Long click on the SWAP file and choose 'copy'

--Step7--

point to the internal memory as '/data' and paste it

**this folder is your whole internal memory (have 1.6G spaces) that you store apps data here, don't touch anything unless you know what it is!!

--Step8--

jobs done with RootExplorer, now open GScript Lite

--Step9--

Type below code to Enable SWAP:

cd /data
swapon swap256
free

or

type this for Disable SWAP:

cd /data
swapoff swap256
free

then press save, then click on it, RUN!

*Or you can download my gscript to run it

--Step10--

Work done! Now you can see you have a lot of swap ram.

This trick will not affect you HDD at all time, you no need to Disable the SWAP to mount your HDD to your PC anymore!!

--extra Step--

Add auto-run script

http://xdaforums.com/showpost.php?p=11669637&postcount=11

by Leo
[Gen8 Android Development] cocto:
SWAP 2596

Tested, work like a charme.

did you try with swap bigger than 256?
[Gen8 Android Development] LeoNg628:
yes, I've downloaded all 3 swap files and tried by myself.

but I've choose 256 since Android System seems will not use SWAP until it feels free RAM is close to zero...:confused:
[Gen8 Android Development] thefunkaygibbon:
If I understand correctly, thats fairly normal for Linux.

However, I have put the 512 file onto mine for the swap (I don't use many apps on the Archos, I use an Android phone so use apps on there mostly, so the internal memory is free to use here instead) and it does seem to fly.

Thanks for the guide!!
[Gen8 Android Development] woti23:
you can change swappiness behavior by increasing or decreasing the value (60 in the example below) to more or less:

in terminal (or in a startscript to make it permanent)

# sysctl -w vm.swappiness=60

sets it to 60

to see what you have currently set, do command

# cat /proc/sys/vm/swappiness

higher values: the kernel swaps out memory pages earlier

best to test the optimal value by loading a lot of memory sucker programms like flash .... and see how the swap is used

more for example here: http://www.cyberciti.biz/faq/linux-kernel-tuning-virtual-memory-subsystem/
[Gen8 Android Development] -NRG-:
Thank you for this guide!

Seems like i have to enable the swap file each time i reboot, is that correct?
[Gen8 Android Development] LeoNg628:
I've just use this to change:

echo 60 > /proc/sys/vm/swappiness
[Gen8 Android Development] LeoNg628:
yup, need re-swap every time when you boot up the device:)
[Gen8 Android Development] wdl1908:
A question about the swap.

What is the maximum swap usage you have seen?
[Gen8 Android Development] LeoNg628:
I've set swappiness to 60 and use autokiller memory optimizer to set Optimum(40 50 60), usually the devices will use up to 60MB into swap, if I playing music and web surfing, the devices will use up to 90MB into swap.
[Gen8 Android Development] -NRG-:
Has anyone found a way to keep it permanent or load it at startup?

I can't get it to work with init.d, looks like init.d isn't working on oc kernal.

autostart doesn't seem to work either...

I will be verry thankfull if anyone would be able to provide a solution!

EDIT : After a lot of trial and error >

SOLVED!: (CAUTION I AM NOT RESPONSIBLE IF ANYTHING STOPS WORKING, ON YOUR OWN RISK)

Create a file in /data/opt/autostart.sh

Edit "autostart.sh" and add swapon /data/swap256 (asuming you placed a 256mb swap file in the /data directory)

Goto /etc/init

Edit init.A70H.rc for Hardisk based A70 (for 8gb use init.A70S.rc)

Scroll down (botom) to "service omx_pm /system/bin/OMXPolicyManager"

Type directly below this line:

"service enable_swap /system/bin/sh /data/opt/autostart.sh

Done, reboot en use terminal/gscript command "free" to check if swap file is enabled, now swapfile is permanent and enabled each time you boot!
[Gen8 Android Development] LeoNg628:
Nice trick!

But is it a "must" to create 'autostart.sh'? can I create another sh file and just change to location in lower part?
[Gen8 Android Development] -NRG-:
Yes that should work fine. You can also add other optimizations like setting the swapiness and such in the "autostart.sh" (or whatever you like to call it) file.

I'm currently testing out some optimizations from the galaxy tab, will report back soon.

I also saw a setting usb_charging = no in the "init.A70H.rc" file, i wonder if anyone tried changing it to yes?

I'm a little bit scared to change it since i'm not sure it might do damage..
[Gen8 Android Development] LeoNg628:
Nice! Waiting your great news from Galaxy Tab, but what setting from it have you saw?

usb charging is not work on my 70H, it just show up usb charging on MSC mount screen but not really charging..

*can I add multiple line in the SH file? and what is 'enable_swap' stand for? is it internal function from froyo?
[Gen8 Android Development] LeoNg628:
double post...please del..
[Gen8 Android Development] -NRG-:
Yes, you can add multiple lines in the SH file.

"Enable_swap" was just a name i gave to the service, might as well be "optimize_performance" or whatever name you like so you easily recognize it.

The following settings from the galaxy tab i'm testing, came from a topic in the galaxy tab section. I came across it while searching for solutions.

# Lower the amount of unwritten write cache to reduce lags when a huge write is required.
# DEF 20
echo_ "10" "/proc/sys/vm" "/dirty_ratio"

# Increase minimum free memory, in theory this should make the kernel less likely to suddenly run out of memory.

# DEF 3102
echo_ "4096" "/proc/sys/vm" "/min_free_kbytes"

# Increase tendency of kernel to keep block-cache to help with slower RFS filesystem.

# DEF 100
echo_ "1000" "/proc/sys/vm" "/vfs_cache_pressure"

# Increase the write flush timeouts to save some battery life.

# DEF 250
echo_ "2000" "/proc/sys/vm" "/dirty_writeback_centisecs"

# DEF 200
echo_ "1000" "/proc/sys/vm" "/dirty_expire_centisecs"

# Make the task scheduler more 'fair' when multiple tasks are running,
# which improves user-interface and application responsiveness.

# DEF 10000000
echo_ "20000000" "/proc/sys/kernel" "/sched_latency_ns"

# DEF 2000000
echo_ "2000000" "/proc/sys/kernel" "/sched_wakeup_granularity_ns"

# DEF 1000000
echo_ "1000000" "/proc/sys/kernel" "/sched_min_granularity_ns"

The defaults are from the galaxy tab, not the archos.

Format should be in the sh or gscript : echo 1000000 > /proc/sys/kernel/shed_min_granularity_ns

To check current setting: cat /proc/sys/kernel/shed_min_granularity_ns
[Gen8 Android Development] LeoNg628:
it almost same setting in my A70H....but it didn't have sched_XXX in vm folder.
[Gen8 Android Development] LeoNg628:
Do you know what happen if I turn on Laptop-mode in proc/sys/vm/laptop-mode?

Thx=]
[Gen8 Android Development] LeoNg628:
to -NRG-:

the auto script is work!! Thanks!

I've putted an "enableswap.sh" into /data, then edit the A70H.rc to add "service enable_swap /system/bin/sh /data/swap256"

the body of sh file:

swapon /data/swap256

echo 60 > /proc/sys/vm/swappiness
[Gen8 Android Development] LeoNg628:
-NRG-, have you find any side effect after doing this?

my archos seems a little laggy after add that line..:o
[Nexus One Themes and Apps] xOneSainTx:
I very rarely post, I'm just here for ROMs and apps and what not but I thought I would post this. http://www.digitalaria.com/

They have a creative UI called FX UI for Android and I have no clue if its ever been released but with MIUI out there now, I'm curious if this will ever see the light of day. Also here's the YouTube video.

[YOUTUBE][/YOUTUBE]http://www.youtube.com/watch?v=Sr7x7zDYRzI

And if this has already been post I apologize...and I just realized I linked the wrong YouTube video.
[Nexus One Themes and Apps] willverduzco:
Thread moved to Themes/Apps. Nice find, though for me, the UI looks a bit too cumbersome. This may be useful for others though!
[Nexus One Themes and Apps] sergioalvarezmac:
It's pretty good looking, but it seems like TAT Home, a really good UI that will never be published. :(
[Nexus One Themes and Apps] galaxys:
Always good to have another UI. Looks intersting...but might be just too much for me.
[Nexus One Themes and Apps] martin0285:
The picture widget is total WIN!! all I can say about it... Who's porting it? Lmao
[Nexus One Themes and Apps] thanzm:
When is a port coming out???
[Nexus One Themes and Apps] martin0285:
Really? #fail
[Nexus One Themes and Apps] katiepea:
hahahahahahahaa
[Nexus One Themes and Apps] martin0285:
I didn't mean to be so blunt (was drinking when I posted)... but I'm a noob and I can tell just by looking at the video that this would take a ton of work from the ground up... This has got to be highly entangled with framework....
[Nexus One Themes and Apps] [-o']:
this and TAT, why are they just showboating?!? They do look great tho, wonder how the battery holds up with em
[Hero CDMA General] hakujin:
Delete, delete
[Vibrant Q&A, Help & Troubleshooting] Crankycoder:
Is there an actual release date for the 2.2 source?
[Vibrant Q&A, Help & Troubleshooting] eminembdg:
No date. They have up to 60 days after they released the update to actually release the source code. They've been releasing source around 30 days or so usually for other builds
[Vibrant Q&A, Help & Troubleshooting] treyvaporizer:
Awesome so its coming soon? Ish

Sent from Bionix powered vibrant! If I helped, hit the thanks button!
[Vibrant Q&A, Help & Troubleshooting] Exel:
Hm, hopefully.
[Vibrant Q&A, Help & Troubleshooting] tc7276:
Yea I wouldn't hold my breath.
[Vibrant Q&A, Help & Troubleshooting] thegreatcity:
Well they're bound by the GPL to release it within 60 days after the update goes public (I believe)....but yeah I wouldn't recommend holding your breath that long either. :P
[Vibrant Q&A, Help & Troubleshooting] tc7276:
Lol....I didn't know they had to.
[Vibrant Q&A, Help & Troubleshooting] s15274n:
fyi, March 23rd is 60 days.
[Vibrant Q&A, Help & Troubleshooting] xriderx66:
That's not too bad... I can wait with miui :)
[Vibrant Q&A, Help & Troubleshooting] jzun223:
So is the source Eugene posted not the "official " source? ?
[Vibrant Q&A, Help & Troubleshooting] treyvaporizer:
I think it wad T959D (captivate) but correct me if im wrong

Sent from Bionix powered vibrant! If I helped, hit the thanks button!
[Vibrant Q&A, Help & Troubleshooting] Crankycoder:
Theres no such thing as a 60 day limit with the gpl v 2. I'm not sure why this rumor exists.

The gpl is pretty explicit, if you get compiled code, you also get rights to the source. At most, you have to ask for it and you have to pay cost of media.

Google for gpl 2 license, and just read it. I can't seem to post a link.

I thought the delay was just samsung being slow, not that they were in violation of the license.

If you've installed a kernel and you didn't get a copy of the gpl license agreement, that's also a violation.

If you haven't yet made a request, go to opensource dot samsung dot com and put in a formal request for the android 2.2 kernel source for your vibrant.

Vic
[Vibrant Q&A, Help & Troubleshooting] eunkipark92:
Uhhhhh....I'm not going to say you're wrong since I don't know out for sure...

bionix 1.2.1 with adw launcher ex
[Vibrant Q&A, Help & Troubleshooting] Praetorian011:
Has anyone received an OTA update?
[Vibrant Q&A, Help & Troubleshooting] treyvaporizer:
They are talking about the source of froyo that the devs use to compile kernels and such (which samsung has not given us... yet). The OTA was released on january 21

Sent from Bionix powered vibrant! If I helped, hit the thanks button!
[EVO 4G General] -Apollo-:
When cooking a Sense ROM is it possible to force it load a custom scene on first boot, rather than the default "sprint scene"? For example I would like it to load 3D digital weather clock which I have in /system/app rather than HtcClockWidget.apk. Or maybe redirect to to the 3D clock. Any help would be greatly appreciated!
[Optimus One, P500, V General] morx:
Okay, im trying to flash custom recovery on my Optimus one [Stock 2.2] Rooted with Z4root [permanent].

First step is to donload 3 files

Kernel and the 2 files from this thread.

http://androidforums.com/getitnowma...ry-optimus-one-p500-thunderg.html#post1896517

I've unzipped flash_image.zip and recovery-RA-GNM-thunderg-1.1.0.img.zip at the root of my SDcard [empty one, 2GB] And put there the kernel.zip [as it was!]

I opened a terminal on my Optimus one and writed down the commands from the topic i've found above.

Now im stuck at

mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak

after typing this command i get a message over and over again that says "cannot read from location" or ""no such file or directory"" or something like that.

Anyone can guide me step by step ? I dont get it how the whole procedure must be done :/
[Optimus One, P500, V General] NikolaMK:
That step is not required,it has something to do with "sticking" the recovery so it won't revert to the original.You can safely continue on to the next step:)
[Optimus One, P500, V General] morx:
So i just ignore it, right?

Is there a risk on bricking my phone on flashing as far as i know.

Except my mistake, on what else does it depend that?
[Optimus One, P500, V General] morx:
I did all theese steps and my phone restarted on Stock Rom settings with everything wiped out :S

[i have a backup of apps with titanium backup and vcf contacts etc etc..]

... but... WTF! :S

any help?
[Optimus One, P500, V General] owunstorf:
Please tell us in more detail what steps you have done.

Also, if you only want to install custom recovery, what do you need a "kernel.zip" for?

Which kernel is it, where did you get it from?
[Optimus One, P500, V General] morx:
Ι did exactly the steps from this topic

http://androidforums.com/getitnowma...ry-optimus-one-p500-thunderg.html#post1896517

i ignoring as i said on my first post the message "no such file or directory"

after typing a command as NikolaMK told me to just ignore that.

After typing EXACTLY theese commands, phone restarted as i expected but with fresh stock rom!

[the kernel is the one with the cpu on touch fix.]
[Optimus One, P500, V General] Jaylapeno:
It restarted, but were you able to enter the custom recovery? When the phone is off, press vol down + home + power until you see the LG Splash screen.
[Optimus One, P500, V General] ccdreadcc:
Copy the flashimage.zip and extracted flashimage both to sd and do the steps again.

Also do the same with thunder zip.
[Optimus One, P500, V General] morx:
It restarted but i didnt keep them off as far as i remember or didnt hold them for so long as it needed.

So in conclusion, if i dont keep them pressed, i lose chance on going onto custom recovery? Or not?

by the way, for safety i had zips extracted [except the one having the kernel i wanted to flash afterwards.]

Need as simple instructions as you can guys, im very conservative this time because i just have 1 week my phone right after repaired from last bricking.
[Optimus One, P500, V General] owunstorf:
I find it strange that your phone had the settings wiped after flashing the custom recovery.

I flashed it myself last Saturday, and all went well. Here's what I did:

Root phone using z4root

Install Terminal Emulator

Copy flash_image and recovery-RA-GNM-thunderg-1.1.0.img to SD

Perform the steps in the androidforums thread.

Now, I also expected the phone to boot into the recovery when issuing the command "reboot recovery", but it didn't. It booted normally, but there was no wipe, all my settings were still there. On we go:

Turn off phone

Press Vol-Down, Home and Power at the same time and don't let go until the recovery has booted. If you've done that and only thing happening was the settings wipe, something has gone wrong while flashing the custom recovery, and you're still on stock recovery.

Maybe you should MD5 check the recovery.zip you downloaded and try flashing it again.
[Optimus One, P500, V General] ccdreadcc:
Try placing flashimage.zip, extracted folder of flashimage.zip, and also contents from extracted folder, all on to the sd along with thunderg zip and start typing the commands on terminal emulator.

Also make sure u have rooted the phone first.

This should do the trick.
[Optimus One, P500, V General] AsherChua:
There is a video on YouTube showing the steps.I've never seen the whole video before,but I think it will be of much help:) Try it!
[Optimus One, P500, V General] morx:
1) Phone is z4root-rooted.

2) i have all needed combination of files on my SD Card meaning: Folder contents of zip, root of card zips, unzipped on root, etc etc... so the commands can "See" the files no matter what.

3) it rebooted without custom recovery installed.

If i press the button combo without having installed custom recovery, what do i get?

I'd like to see the video AsherChua mentioned above.
[Optimus One, P500, V General] Jaylapeno:
I had a similar problem as you, I had to use the custom recovery from here

NOTE: THIS IS WHAT I USED, IT MAY OR MAY NOT WORK FOR YOUR PHONE
[Optimus One, P500, V General] morx:
Is it safe to flash it on a Greek Optimus ONE ? [not "T"].

asking again ...

???????
[Optimus One, P500, V General] Jaylapeno:
I believe you're supposed to go to the recovery for default android.. I went to it once possibly by accident and never figured out how to 'enter' while I was in it. up/down is still the volume key but I didn't know how to use confirmation.
[Optimus One, P500, V General] morx:
Let's suppose im doing the same steps again as on my 1st post

BUT ....

after phone freezes and right as soon as it gets black screen, i push the button combo, it will work, right?

Was my fault for not pushing theese keys after the reboot message of terminal?

Is it obligated to do this?
[Optimus One, P500, V General] owunstorf:
I think what you get when you press the 3-button combo without having custom recovery installed, is a memory wipe/factory reset/whatever you wanna call it.

My guess, that's what happened to you.

If you have sucessfully installed custom recovery you can enter it WHENEVER YOU WANT! Just turn the phone off, when it's off press the 3 buttons and keep them pressed. Works for me. If it doesnt for you, my only explanation would be that for some reason you didnt succeed in flashing the custom recovery and are still on stock one.

When you entered the line "flash_image recovery /sdcard/recovery-RA-GNM-thunderg-1.1.0.img", did it take a while before the cursor reappeard so you could enter the next line?
[Optimus One, P500, V General] morx:
i dont remember if it took a while for the cursor or it was instant.

If i press the key combo vol_down + home + power while turned off without custom recovery, nothing happens, right?

I dont want to risk for 3rd time of a wipe :/

It's boring to install again tbackup and restoring everything from scratch! :/
[Optimus One, P500, V General] bioan:
If you press it without Custom Recovery it will wipe again !
[Optimus One, P500, V General] morx:
Okay i'll gather up some courage again, making a fresh Titanium backup [full full full :D] and try my luck, this time i'll record it on a video and post it =P

The only reason i wanna do this custom recovery is to flash a touch screen cpu usage fix kernel. So far im 100% satisfied of my purchase and the only thing i want is to fix that problem. Nothing more nothing less ;)

I'll post again soon.

THANKS THANKS THAKS everyone who dedicated an ammount of time in this topic to help me out of this ;)
[Optimus One, P500, V General] orlox:
I had the same problem with you. BUT! I didnt put the second file into the phone :P

After doing it correctly i had the same problem. The solution was to keep pressing the vol down + home + power till recovery comes not only till lg splash screen. Also keep in mind that capitalisation should matter as you are in a linux enviroment. So "thunder-SA-G" is diferent than "thunder-sa-g"

If you still have problems pm me in greek.
[Optimus One, P500, V General] morx:
I'll give it a try with exact capitalization of letters.

I cant remember if i used caps lock when needed or not, i think i wrote it down all in small letters. Almost 100% sure that i wrote everything on plain small letters. :/

I hope that this was my fault.

When i'm about to try it again i'll pm you in order to be sure what im doing.

Meanwhile i'll keep this thread updated for people who have the same problem in order to find a solution in here and avoid the problems i had.

Thanks a lot ;)
[Optimus One, P500, V General] Jaylapeno:
I applied custom recovery with all small letters and didn't have a problem. If you fail again this time, I would recommend using the custom recovery file I posted a few posts back: recovery-RA-GNM-OPT-T-test.img.zip

Optimus T is the US equivalent of Optimus One P500, I googled image + checked the specs and its exactly the same with different OT having T-mobile ROM.
[Optimus One, P500, V General] ccdreadcc:
I think you pasted all commands at once...
[Optimus One, P500, V General] morx:
THANKS REALLY THANKS A LOT everyone for their time to help me out !!!!

For the topic's history and solution, i had to use CAPS ON/OFF when needed to type EXACTLY the name of the .img file on terminal !!!!

Seems like it's case sensitive, so i'm back with a flashed "touch bug" kernel flashed :D

Thanks again everyone for your time ;)
[Optimus One, P500, V General] Omnichron:
just ignore the cmd error and keep going with the rest of the commands. remember to extract the files to the root of the SD card. Both flash_image and recovery-RA-GNM-thunderg-1.1.0
[Optimus One, P500, V General] morx:
Thanks for your information, just posted my feedback on topic, it's solved m8 ;)
[TG01 Accessories] alecoddlyiv:
Just found these on ebay 1900MAH PORTABLE BATTERY CHARGER FOR TOSHIBA K01 TG01

http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=130483885377&ssPageName=STRK:MEWAX:IT

Not bad for £11 delivered
[TG01 Accessories] olyloh6696:
Good find mate! I can use it for my TG01 and San Fransico - well worth it;)

hope you got your tg01repaired!
[TG01 Accessories] alecoddlyiv:
not yet, still trying to get some form of proof of purchase off original owner. Kind of galling to have to pay out to get it fixed when it's technically under warranty.

Will probably send it off this week.

Hope they still have some by the time I get it back :rolleyes:
[TG01 Accessories] alecoddlyiv:
just found this on scan today only

PowerFreakz Evolution 2500 Portable Charger for iPhone/iPOD/Mobiles/PDA's/MP3's/DS + More see list £9.59 or solar powered for £11.99

http://www.scan.co.uk/TodayOnly/Index.aspx - scroll to bottom of the page

I tried to buy one of each but cannot get my avforum postage discount to work

Maybe someone else will have better luck?
[TG01 Accessories] kanka124:
What makes this better than carrying a replacement battery?
[TG01 Accessories] olyloh6696:
you don't have to continually have to keep opening the battery back door cover which will become weaker and weaker and a inconvenience. is you look on amazon, I found a dedicated battery charger like this for the tg01. a quick search on amazon and you will find it. ;)
[TG01 Accessories] kanka124:
good point! gonna keep it in mind when i'm looking for something to extend the battery life of my tg01. right now i'm still figuring out how long it can last on one charge with the standard battery.