yashsingh1/xdaforums huggingface dataset:
[Gen8 Android Development] Mod57:
Uruk Freezing

I haven’t had freezing problem since $aur0n mentioned he uses TaskPanel.

I chased my tail several days thinking it was Uruk related, turns out it was memory. My biggest issue was I had way too many widgets so I canned some. Before playing hard I just use TaskPanel, seems to be working.
[Gen8 Android Development] fisha21:
I agree with the general consensus here. Make 1.0 a stable release based on the current build, and create a fork for integrating 2.3/3.0 stuff
[Gen8 Android Development] woti23:
@$aur0n

in initramfs:

if you use

-f xyz

(xyz in pixel)

at the end of the aui commands in init

then you get a grey progressbar in the white bar under the uruk logo at startup

(while displaying maintaince, switching to rootfs etc)
[Gen8 Android Development] $aur0n:
And you are proposing to use it? I don't get exactly what are you writing about...

AUI has 2 progress bars, but using one excludes (or at least I did not managed to do it) using other one since it does not do clean screen properly.

ps. xyz in pixels? Archos does not have 3D... yet :D
[Gen8 Android Development] woti23:
i'm no talking about the messages in the white bar, i m talking about a moving

grey from left to right in the white bar that shows the progress.

xyz is the length of progress in pixel from left to right

# Sometimes it fails because there is no device "yet!"
$AUI -c bannerprogress -t "UrukDroid $URUKDROID_VERSION Boot: Waiting for internal devices..." [B]-f 100[/B]
wait_for_device "mmcblk1/mmcblk1p1"

$AUI -c bannerprogress -t "UrukDroid $URUKDROID_VERSION Boot: Waiting for external devices..." [B]-f 200[/B]
# Even there may be no sdcard - we have to give it a chance to show up...
wait_for_device "mmcblk2/mmcblk2p1" 3

so say the white bar is now about 1000px

and -f 500 after the -t message means 500px from 1000px from left on are grey
[Gen8 Android Development] woti23:
so it looks like, btw i have only one white bar, after that the bootanimation.zip starts

the green line show how long the grey bar goes, contrast on pictures is bad

the first lenght: about 600px -f 600

the second lenght: -f 975

i have 7 -f xyz defined for different existing messages, and its neat how the grey moves from left to right

xyz is not percent, but pixel, i use 100 for first and 975 for last of the seven leght of the grey bar
[Gen8 Android Development] CazH:
Any chance of Unison being compiled and built in to Uruk in the next release? It's just great for 2 way file sync :)
[Gen8 Android Development] $aur0n:
How would you use it on Archos? (I want to know if this can be done in simple - useful for novice - way) There is already "rsync" in 1.0 - not the same, but can probably do the same...
[Gen8 Android Development] woti23:
this is what it looks like

the second bar is only to show how "the progress" looks, they are NOT together on one screen
[Gen8 Android Development] CazH:
Main reason would be to sync my music.

A script runs on my router checking if my laptop is on the network and then starts Unison to do a 2 way sync of music pictures and other stuff. Would love to also have it sync music to my Archos :)
[Gen8 Android Development] cajl:
Great Idea

split urukdroid one for Archos one for app
[Gen8 Android Development] localh0rst:
i copied one of my images i send you to /system/media/gfx/UrukDroid.raw and the second stage picture works!
[Gen8 Android Development] $aur0n:
Edit: You can do it with what I've already written - I need someone to test it. If you need any help - just ask here.
[Gen8 Android Development] $aur0n:
Those con's are temporary - will be solved.

If you want - you can play with Uruk ;) - it's open :D

And what with this DVB support - have you check it? What DVB-T device is best now to buy for Linux/Archos (support/price)?

ps. I've just added SSHd server to 0.4 ;) please do tests on A70H and we good to go with release...

ps2. How to prevent Android from going sleep on system level (while ssh session - for example)
[Gen8 Android Development] xenicle:
Just to clarify you are talking about internal or external first partition HD ?
[Gen8 Android Development] $aur0n:
Internal is MMC/nand storage - you have only one HD ;) inside Archos
[Gen8 Android Development] HerrieMan:
I've managed to get the 0.4 release working on my A70H, below some info.

#df -h

Filesystem Size Used Avail Use% Mounted on

rootfs 1020M 353M 615M 37% /

/dev/sda1 1020M 353M 615M 37% /

tmpfs 120M 12K 120M 1% /dev

tmpfs 120M 0 120M 0% /mnt/asec

tmpfs 120M 200K 120M 1% /tmp

/dev/block/mmcblk0p1 32M 13M 20M 39% /mnt/rawfs

/dev/block/mmcblk0p2 119M 82M 31M 73% /mnt/system

/dev/block/mmcblk0p3 30M 3.3M 25M 12% /cache

tmpfs 120M 4.0K 120M 1% /dev/shm

so root is on my /dev/sda1 hd partition, looks good.

# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes

255 heads, 63 sectors/track, 30401 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 1 132 1060258+ 83 Linux

/dev/sda2 133 394 2104515 83 Linux

/dev/sda3 395 30401 241031227+ 83 Linux

All partitions I made are visible on my archos, also looks good.

But I'm unsure what to do with the last step (step 3, copy /data) of your original install description. Is that nessesary ? /data is now already on my hd, right ? Or should I copy /data to my /dev/sda2 and then modify the init.rc or so ?
[Gen8 Android Development] HerrieMan:
A bit more testing, what's not working:

I get a 'Damaged internal storage' notification, saying I need to reformat my hd.

When I plug in the usb on my linux box, and select 'mount' on my archos, nothing happens, I don't get any drives visible on my linux box and the round turning thingy keeps on spinning. I'm a bit at a loss how I should transfer content to my archos now.

My /dev/sda2 and /dev/sda3 partitions are not mounted, where can I enable them ?

And when I reboot the archos, it starts the stock kernel again, can this be switched so it always starts urukdroid ?
[Gen8 Android Development] $aur0n:
All this stuff has been described already. I've came to conclusion that it needs to be changed - to stop people whining so badly about not beeing able to mount stuff over USB (unless in stock OS).

Please reformat your HD

/dev/sda1 - vfat, all free space

/dev/sda2 - ext4, rootfs (512MB)

/dev/sda3 - ext4, /data (1GB)

Extract rootfs to second partition, update initramfs and zImage. Report please.

Data in your case it's not yet mounted - when we complete this step, i'll prepare proper init script to mount /data on A70H.
[Gen8 Android Development] cheefy:
I'm sorry i can't download from dropbox because its blocked. the script could be finished today but i'm not sure if its working without any complaints because we can only do it while system is running. Do you see any chances to call the script in the your startup so rootfs is mounted but most of the programs not yet started?

I will try to compile the interactive governor today, i think it should make the system much more snappy especially when waking form standby.

P.S: which gcc version did you use to compile the kernel?
[Gen8 Android Development] chrulri:
how will they get solved?

So I'll give it a try :)

not yet, but I think soon I have to test with urukdroid as more and more users switch to that rom

check out the linuxtv listing and decide on your own: DVB-T USB Devices

If you'd include all dvb-t drivers (including the two I've backmerged: kernel_*.patch + linux.config) and the firmware binaries (*.fw) everybody should be happy ;)
[Gen8 Android Development] $aur0n:
Try this urls:

http://adrian.siemieniak.net/UrukDroid/trunk/initramfs.cpio.gz

http://adrian.siemieniak.net/UrukDroid/trunk/zImage

Yes I do - I'll do some upgrade script and perhaps autoupdate during initramfs step. But that's not yet on my desk.

What is interactive governor? There is no such thing in kernel...

ps. gcc is cross compiler from Android - it's called ndk (as I recall)
[Gen8 Android Development] HerrieMan:
That partitioning makes sense, I guess the stock (and urukdroid's ?) usb-mounter piece of software is fixed to use the /dev/block/sda1 partition, am i right ?

About the mounting of /data, in my current setup I think this is mounted on my sda1 partition, since it's a normal sub-dir of my root partition.

In your init.rc i see you try to do this:

mount ext4 /dev/block/mmcblk2p2 /data noatime

But this block device is not present on my A70H so it fails.

Thinking about this, what is the use of making this a separate partition ? would a setup as follows:

/dev/block/sda1 vfat, 248G size, mounted as /mnt/storage

/dev/block/sda2 ext4, 2G size, mounted as / and including the /data dir

not also be a good solution ?
[Gen8 Android Development] chrulri:
I think your dropbox files has been downloaded too many times ;)

I always get a HTTP 509 Bandwidth Error

https://www.dropbox.com/help/45
[Gen8 Android Development] cheefy:
yes its not in the archos kernel yet. the governors are methods how to clock the cpu in different situations dynamically. The preinstalled ones (conservative,performance,ondemand) all depend on the cpu load. if the loads higher than the threshold its clocking up.

the interactive is a quite fresh thing built buy an android dev, adapted by nadlabak for Cyanogen and now standard in most cyanogen mods.

it depends on the workqueue and on some events as for example, when the device wakes up the cpufreq goes to max an then clocks down slowly depending on the workqueue. so it does not wait for cpu load to increase, i predicts the cpuload by looking at the workqueue. works great on my milestone and i love to try on the archos.

but i dont get the compiler working. my make tells me it has no rules to build a config and that theres nothing to do for job "all" i dont get it compiled..

the ndk is for compiling apk, but i need to compile a kernel module...
[Gen8 Android Development] HerrieMan:
One more question, when I reformat my hd and use /dev/block/sda2 as root, do I need to make any configuration changes ? or does the system automagically recognize my root is on another partition ?
[Gen8 Android Development] chrulri:
@$aur0n do you really use the NDK compiler but not the archos gen8 compiler? take a look: http://xdaforums.com/showthread.php?t=891056
[Gen8 Android Development] cheefy:
This was what i was searching for. Instructions how-to build a kernel module. you don't find it in the whole web. I'm working through it..
[Gen8 Android Development] Kashban:
Wasn't able to test this yet because my UrukDroid (0.3) is acting up again.

Froze right after the launcher came up, then I tried to renew rootfs which leads to no boot at all (black screen on boot). I flashed 0.4 and renewed rootfs again without formatting it -> same result.

After formatting rootfs and untar'ing on to it it'll boot again, but now is like fresh installation: All custom apps crash and it's doing the installation wizard again.

I'm going to switch over to the internal /data partition, I guess, the file system on the sd card /data is corrupt somehow.

Not sure why this always happens, overclocking or not.
[Gen8 Android Development] $aur0n:
I forgot to answer this ... I would like to release 1.0 before end of March. Currently I'm trying to solve A70H issue - but because of response it's sloooowwww. I've made adhoc ( smile ) so only NAT left - but there are problems with tiwlan_drv kernel module. I've recompiled this sucker yesterday (from froyo) but it hangs completely...

Anyway - how is new UrukConfig? :)
[Gen8 Android Development] craigacgomez:
Yes, couldn't agree with you more about the responses to help you solve the A70H issue... cuz well, I'm the one who keeps getting caught up in something or the other and I take a long time to respond with some good info :(... I will run you debug kernel and initramfs as soon as possible and send you an e-mail...
[Gen8 Android Development] $aur0n:
Thx - I'll wait of course. With "response" I was referring to few other people that "wanted" to help - but after I've spend some time to clarify what need to be done - I've got in return ... silence :/. So Craig - I'm already thankful for your respond and will patiently waiting for more :D
[Gen8 Android Development] woti23:
@$aur0n

creating a tmpfs of 5MB

and symlink from /data/data/.../cache/webviewCache of the browser

to the tmpfs

makes the browsing a lot faster

creating a tmpfs of e.g. 25MB for /cache

makes downloads/installs from google market much faster
[Gen8 Android Development] $aur0n:
Perhaps - but we have not RAM to spend for this. I currently tent to use Firefox (Fenec precisely) as a web browser (faster is Miriam, but not "smart" enough. Dolphin ... I don't like it somehow) with enabled disk swap memory. It's not as snappy, as with ramcache - but it works better with webpages and editors.

Anyway - 256MB is way to small to work freely
[Gen8 Android Development] woti23:
while its true that 256MB is far to small, creating tmpfs doesn't block RAM for other usage. it just reserves when market or browser running and frees memory from other progs instead. at least this is what top shows. the created tmpfs doesn't increase unfree memory.

but you could be right for users that do memory intensive games etc it could be not an option. i don't games so i stick with it.
[Gen8 Android Development] $aur0n:
I don't game either ;) (perhaps some angry...) - but recent webpages are huge (even plain google has java scripts that weights hundrets of kb) - so putting it to ram... not a best idea (and that's why i wrote about fenec - since it uses different cache mechanism).
[Gen8 Android Development] woti23:
well looking in the cache of the com.android.browser what is actually saved when browsing for example newspapers in mobile sight shows

1/3 < 1k

2/3 < 10k

thats a size that reading/writing to sdcard is slowest (very small files)

dolphin does get better too

will try fenec
[Gen8 Android Development] $aur0n:
I'll give it a try - but like I said - Fenec used different cache approach... (but when I did search for webviewCache - there's quite a lot of apps that has this directory).
[Gen8 Android Development] woti23:
look in /data/data/com.android.brower/cache/webviewCache

for default browser

dolphin has

/data/data/mobi.mgeek.TunnyBrowser/cache/webviewCache

so id expect fenec has the same in his /data/data directory
[Gen8 Android Development] sibere:
FYI HTC is using a 8mb tmpfs for browser cache (which is of 6mb max anyway)

It makes it fly!

This is implemented in init.bravo.rc.

on init
mount rootfs rootfs / remount
mkdir /app-cache 01777 system system
mount tmpfs tmpfs /app-cache size=8m

then the browser cache is created in this tmpfs and is simply simlinked to this tmpfs folder.

/data/data/com.android.browser/cache -> /app-cache/com.android.browser/cache

I ain't got my A70IT yet (due at the end of march) but I'll also have a look at the lowmemorykiller module to try to optimize the values to get enough free ram.

Interesting settings to play with are:

/sys/module/lowmemorykiller/parameters/adj

/sys/module/lowmemorykiller/parameters/minfree

(see here for details)

A nice free app is available on the market to play with those parameters. Look for MinFreeManager.

as root you cat try for instance:

echo "1536,2048,4096,5120,15360,23040" > /sys/module/lowmemorykiller/parameters/minfree

These settings are used on a HTC hero/G2 with 288mb of RAM.

defaults in uruk are 5120,5632,6144,9216,10240,11264

and see if the device runs smoother.

Don't worry about doing this, the parameters will be lost on reboot.
[Gen8 Android Development] woti23:
not to forget to set ownership with chownto (from toolbox)

chownto /app-cache/com.android.browser/cache /data/data/com.android.browser/cache
[Gen8 Android Development] sibere:
true!

here is the complete script used by HTC :

rm -r /data/data/com.android.browser/cache
mkdir /app-cache/com.android.browser
chmod 755 /app-cache/com.android.browser
chownto /app-cache/com.android.browser /data/data/com.android.browser
mkdir /app-cache/com.android.browser/cache
chmod 755 /app-cache/com.android.browser/cache
chownto /app-cache/com.android.browser/cache /data/data/com.android.browser
ln -s /app-cache/com.android.browser/cache /data/data/com.android.browser/cache
rm -r /data/app-cache
[Gen8 Android Development] stephen44:
Used my Archos on a flight yesterday - to watch films. Both on Uruk 0.7 and archos build - the volume through the headphones was very low. I did try two different sets. It was almost unusable - the 'plane' noise was just two great. I also tried different films, shows etc to eliminate a low record volume.

I have heard that archos possibly limit the headphone volume level - due to a European 'decibel' law - maybe's ?????

is it possible to override this level (just for headphones) in Uruk ?
[Gen8 Android Development] sweetypie:
@stephen44

I think there's something unusual about your setup. I don't use headphones much, so I just tried my headphones to check what you're saying.

First thing I noticed (maybe this is obvious to everybody, but I've not experienced it before), when I plugged in the headphones, "PowerAmp" started automatically and played the last track I selected. I wondered where the sound was coming from - I didn't have the earpieces in my ears, they were lying on the sofa.

Second thing I noticed - how loud it was, when I put the earpieces in my ears. The volume on the A101 was 100%, but the volume control on the earpiece cable was around 75%. when I turned it to 100% it almost blew my ears off.

Having said that, "PowerAmp" has a pre-amp, which I've set to about 75%, so that does increase the stock volume anyway.

Thanks for posting though, it made me check it out.

Oh, I'm in the UK, in case there is any regional difference in hardware, which I doubt.
[Gen8 Android Development] cjdalessio:
If you're trying to listen on an airplane without some way to mitigate ambient noise levels, you have to crank it up well beyond safe levels. Usable quality in-ear monitors are cheap these days and will cut 15-20dB. The better ones approach -30dB. Ear-buds or any on-ear headsets don't cut it - you need in-ear or over-ear.

That said - there is a secondary output level setting in Sound that may help you squeeze a bit more out of your system.

I've never found myself needing past half volume level as shipped from the factory, and that includes listening to well-recorded chamber music on the train or in the air (i.e. not cranked to max level on the album so it actually has some dynamic range - few instruments means it's not in-your-face sound either).

It's always possible some units have an unusually low output level. Could test this with a VM and a test track.
[Gen8 Android Development] naosu:
I just tried my earbuds with volume 100% with Angrybirds and a few other apps It was confortable, however Music and Videos seem to be much louder. I would say the sound volume is 15-20% less on apps than music and videos.

The Earbud's on my ipod and Lg Optimus give a very loud sound, but the Archos seems to not give as loud of a sound, Some apps have a volume setting default at 50% but as for movies I noticed its not as loud as it could be, but it would seem to be enough for an airplane.

Is there a chance you may have hurt the hardware for sound by inserting the power cord into your volume port?
[Gen8 Android Development] stephen44:
No -ty for the comment - but this is the developers thread - I was just asking $aur0n if there was a setting that i could adjust to give a boost ..

$aur0n - are there any ?
[Gen8 Android Development] $aur0n:
There are no limitation on OS level, they can be on java classes level (but somehow doubt it) - it's quite easy to to try, just use something that play directly from OS (terminal/ssh) using alsa - and then try the same song from Android/UI level.
[Gen8 Android Development] craigacgomez:
@$aur0n, didn't get any update from you about the A70 HDD issue... like I said, I saw no debug logs or debug info during the format with you debug kernel and initramfs... and my HDD partitions were completely deleted... let me know what else I could do...
[Gen8 Android Development] $aur0n:
UrukDroid 1.0RC1

Ok, here is first 1.0RC.

Changes like in this changelog, this is just update (nothing is erased, some configuration in /etc/uruk.conf/ may be overwritten)

http://sauron.pourix.com/UrukDroid/UrukDroid-1.0/UrukDroid-1.0RC1-update-rc.tbz2

78b446096a13da733d685e8a392c5118 UrukDroid-1.0RC1-update-rc.tbz2 28M

You may also want to update kernel

http://sauron.pourix.com/UrukDroid/UrukDroid-1.0/UrukDroid-1.0RC1-kernel.tbz2

36235800c0f6d7cd86fb6960cb053ff0 UrukDroid-1.0RC1-kernel.tbz2

Like always, just drop it to /data/UrukUpdate/ (if you want to upgrade both at a time - first drop kernel, then update) - device will reboot itself after applying update.
[Gen8 Android Development] Caste23:
Hi $aur0n

just downloaded !!!!!

Thank you for your work !!!!

:)
[Gen8 Android Development] lechuckthepirate:
Is there any link to the complete 1.0RC1 file? I don't have 0.7 installed atm
[Gen8 Android Development] $aur0n:
Full install will be with 1.0 - there will be no RC version for installation (unless there will be some grave error).
[Gen8 Android Development] Caste23:
Hi $aur0n,

No problem installing this update like usual....

but :

A little bug(?)

About : [NEW] Simple Animation during late phase of bootup

On A101IT, this is what I have :

It don't use all the screen size...

Is it normal ?
[Gen8 Android Development] lechuckthepirate:
Okies... will download 0.7 and then apply update... That should do it, right?
[Gen8 Android Development] tiki1217:
When I updated and the wifi cant connect to my AP.

And use tether by Bluetooth then all system freeze.
[Gen8 Android Development] nimrodity:
i updated to rc1,now wifi doesnt work anymore.

It keeps scanning but doesnt connect to my wifi
[Gen8 Android Development] $aur0n:
What are yours wifi settings? I've checked supplicant with wpa and wpa2 + no encryption, but there can be some other unsupported settings.
[Gen8 Android Development] nimrodity:
i have the same wifi settings for years now.

I also never had any problems with wifi connecting on any uruk.

i have wpa2 psk and tkip+aes

EDIT:i just checked,doesnt work on stock too.

Hm dont understand it,before the upgrade it always worked,too bad
[Gen8 Android Development] $aur0n:
Yes but now there is completely recompiled wpa_supplicant (to allow adhoc) - this makes the stuff completely different. I have also AP with this settings - and it's working. But wpa_supplicant (like entire wifi stack) is a big mystery with plenty of errors :(

If you don't use adhoc you can change to old supplicant (it's all there)

su
cd /system/bin
rm wpa_supplicant
ln -s wpa_supplicant-stock wpa_supplicant

But could you check what's in dmesg after connection failure?