yashsingh1/xdaforums huggingface dataset:
[Gen8 Android Development] Mikerla:
Anyone else having battery drain issues? Lost 30% last night with WiFi turned off and one app left running.

WPA security here.

Biz awesome work on this ROM.
[Gen8 Android Development] Mavasilisk:
At first I didnt delete anything just replaced system.img but I had too many crashes and I decided to make a clean install and I fully re-installed it. It's not causing the issues.
[Gen8 Android Development] bizcuite:
I don't know because since I have made a clean install, I have no problem.

But a user confirm me since he has passed is network security in wep, he has no problem. I wait a new confirmation tomorrow.

Bizcuite
[Gen8 Android Development] Mavasilisk:
I made a clean install with 512 MB data image and my wifi is set to WPA. My tab crashes very often.
[Gen8 Android Development] someone755:
Getting some crashes here too, WPA...

I haven't tried turning off WiFi; my mom borrowed the tab (no, she didn't expect a 'high-end device' to lag and crash :P); hence I cannot confirm whether WiFi was causing the lag and crashes...

I did a clean install, 1 gig data.

Weird, these crashes weren't present in the alpha builds... Just another thing showing us we need a 3.0 kernel :(
[Gen8 Android Development] Bingoig11:
Clean install

WPA

One crash for the moment (too much stress I think since I opened many apps to see if the tab is able to manage it).
[Gen8 Android Development] bizcuite:
Is it true that the tab hasn't any crash before this update? V1.8 was stable for you.

I hope that many users will post an answer, it's very important forme. I don't use the tab than you (lots of wipe for me, 1 by day)

I try ATM with the old kernel config but with GPU code update and netstat code include into.

Since many hours, after a full recompilation of ROM and a new config kernel based with 2.0 kernel works well for me.

Kernel 3.0 is not necessary to have ICS, defy/i9003 had a 2.6.3x, not many different like us (I have backport GPU driver with "little" modifications into the original code and same for including of xt_qtguid.c for netstat, look my git to see the last commit in 1.8 version).

We have ICS with a kernel 2.6.29 no?

I am ok, there are a little pb of stability now, but it's not a big problem, i hope that netfilter driver make this crash.

Bizcuite
[Gen8 Android Development] Mavasilisk:
I have always had system crashes. I've mentioned it a loooong time ago. Everytime I do a clean install. Biz, if u have something in mind bring it here and we are gonna test it for you.
[Gen8 Android Development] Bingoig11:
In my case, before 2.0 the tab wasn't usable.

Now I use it everyday and if I don't stress it, it is rock stable.
[Gen8 Android Development] bizcuite:
I know this ;)

I have a new image with a new kernel to try :)

I will make my rom&kernel cooking and i share it, not tomorrow, i am not at home but Tuesday evening.

I have changed many things in build.prop.

My tab seems stable with the new release that i use ATM.

But a wipe will be required to be test it and have a good report.

The lack of memory doesn't helped the tab with lots of apps in background.

Thanks :good:

Bizcuite
[Gen8 Android Development] qmha:
I like this ROM.

But why my tablet can not turn back screen after turn off the screen?

Previously, my tablet usually boot loop after some minute. From version 2.0 that problem had fixed.
[Gen8 Android Development] Mavasilisk:
Why do you report it if its already fixed?
[Gen8 Android Development] someone755:
@Bizcuite:

Well, I never tried 1.8; 1.7 was the last alpha version I tried, and it seemed stable. Now, more things work, but man are they slow...

No matter what I do with the WiFi, I get reboots and crashes... Tried changing security; WEP, WPA, WPA2, nothing makes it better...
[Gen8 Android Development] Bingoig11:
Are your crashes occuring with specific apps or no matter which app you are using?
[Gen8 Android Development] qmha:
Oh no, in version 2.0 fixed my tablet usually boot loop after some minute. But my tablet can't turn back screen after turn off the screen. It the problem
[Gen8 Android Development] bizcuite:
Mava and someone, can you try to rename tun.ko in /lib/modules and reboot. can you make me a report please?

Crash again for me...i try again. I thank that it was ok, but i had a reboot caused by a kernel panic.

Look if the image data is installed correctly. data_ICS.img can be on the root in the internal memory.

Bizcuite
[Gen8 Android Development] qmha:
My image data locate in:

/storage/data_ICS.img

/storage/CYANOBIZ_BETA2.0_A70.img

/storage/menu.lst
[Gen8 Android Development] bizcuite:
Try to install another clean system image file.

After see if you have 256/512/1024MB in app manager. to be sure that the data_ICS is used.

FOR ALL USERS WHO HAS A PROBLEM OF RANDOMS REBOOT/CRASH/KERNEL PANIC:

please try to change this line in /init.rc

write /proc/cpu/alignment 2

4 is the original value.

Oops seems to be an error with CPU memory alignment.

Report if it's better after this change.

If, and only IF it doesn't worked, try this

change in the init.rc

Originale value is 1

Description of this option:

/proc/sys/kernel/panic_on_oops

(since kernel 2.5.68)

This file controls the kernel’s behavior when an oops or BUG is encountered. If this file contains 0, then the system tries to continue operation. If it contains 1, then the system delays a few seconds and then panics. If the /proc/sys/kernel/panic file is also non-zero then the machine will be rebooted.

PLEASE REPORT!! :)

With those values i haven't any reboot/crash after 7 normal reboots...

Bizcuite
[Gen8 Android Development] Mavasilisk:
I will try it when my tab is recharged. Got it exhausted til u posted it. I hope it will solve our issue, it gonna be a giant leap.

EDIT: Where is this **** line? Or maybe I have to add it?

EDIT#2: I found it!!!

EDIT#3: Duuuuuuuuuuuude I cant make it crash. Its the first time I want it to crash and it doesnt. I have 20% battery and I will test it til it goes off. My report is not 100% cuz it didnt crash at the start of the test. I will keep reporting.

EDIT#4: Let me tell you something I;ve noticed in the last builds. The sound when I tab on the screen is veeeery low. I tried to change "Effect_Tick.oog" with my phone's one but it didnt work. Also, the system volume and every other volume is set to the max.

EDIT#6: The tab crashed.... It crashes less often but stil crashes. I've tried the 1st option only.
[Gen8 Android Development] bizcuite:
What have you done to crash the tab?

I use always same apps to try, and no crash.

Can you try again with logcat extrem app, and record a logcat/dmesg during your test. (for Mava or others users)

Can you retry with 1 like value if it crashes please?

If you have a crash, try with 0 to disable the "user faults"

Bizcuite
[Gen8 Android Development] Mavasilisk:
The tab is charging now. The things I did were to download some apps and open many apps. Wifi was turned on and I opened apps like "System Tuner, Angry Birds, YouTube, RootExplorer, PlayStore" and I was switching between them so I could make it crash and I crashed it. Gonna try with value to 0.

EDIT: The system is lagging soooooo bad with "write /proc/sys/kernel/panic_on_oops 0" so I actually prefer the crash instead of this lag.
[Gen8 Android Development] bizcuite:
A little logcat/dmesg during the crash please, it will be very useful!!

If it continues to crash try the second value to change:

/proc/sys/kernel/panic_on_oops to 0

Many thanks Mava

Bizcuite
[Gen8 Android Development] Mavasilisk:
Read the edit of the previous post. I set vm.heapsize to 196 and I'm gonna set "write /proc/sys/kernel/panic_on_oops 0" again to check it out.
[Gen8 Android Development] bizcuite:
Ok sorry, i haven't see the edit.

Heapsize was set to 128 before?

Bizcuite
[Gen8 Android Development] Mavasilisk:
BIZ!!! I cant make it crash! I've tried everything to crash it but it refuses. I downloaded many apps but no, it didnt crash. I dont remember the original heapsize but I think it was set to 256MB. Anyway, there is some kind of slowness since the last build. Browser is VERY fluent I cant believe my eyes. I think you found the problem!

EDIT: The settings in init.rc were set like you adviced with vm.heapsize to 196MB. Also, I entered Developer Tools under Settings and disabled background processes so the device will be more responsive to foreground processes cuz we have only 256 ram. You should check the performance of the previous build cuz it was way faster then this one. Also, "mediascanner" does not detect my songs and movies (if there is media scanner, of course).
[Gen8 Android Development] bizcuite:
Ok :D it's great ^^

Well to resume you have:

-write /proc/cpu/alignment 1 in init.rc

-set to 192m the vm.heapsize in build.prop

Am i right? I will upload a new image file with a new kernel (i have modified a little error in GPU driver).

Bizcuite
[Gen8 Android Development] Mavasilisk:
Thats right, seems like I edited the post after your post. Yes, the settings are these. ^^

EDIT#1: I even ran Skype which is very RAM hungry. There was a massage telling me that Skype has stopped working "Wait" or "Close" something like that and when I pressed wait and waited for a while Skype loaded.
[Gen8 Android Development] bizcuite:
When angry birds make this, i press closed and restart the app without any problem.

I have post the fix in general section and will upload this evening a 2.1 of the beta version.

Bizcuite
[Gen8 Android Development] Mavasilisk:
Angry birds has no problems yet.

EDIT#1: Biz, can you include HWA settings so we can disable HWA (hardware acceleration) for apps that dont need it.
[Gen8 Android Development] qmha:
I had change as:

write /proc/cpu/alignment 1

write /proc/sys/kernel/panic_on_oops 0

set to 192m the vm.heapsize

I entered Developer Tools under Settings and disabled background processes

panic is 0, so machine can't reboot and can wakeup. But after wakeup, tablet can't use except button on/off
[Gen8 Android Development] bizcuite:
No because there is a bug with shaders.

Hwa cannot be supported by our gpu (see omap wiki).

Don't put the panic on oops at 0. Let the original value please like mava has said. This create lags.

I have no pb with back to sleep mode

Bizcuite
[Gen8 Android Development] Mavasilisk:
Actually I turned it to 0 and its working too after a while. Gonna check what did I put cuz I dont remember and I will tell u.
[Gen8 Android Development] bizcuite:
Ok thanks. To publish the rom i must be sure of values. ;)

Edit. For me just change the alignment value to 2 is enough. I don't understand why you have again a pb and others has no pb like bingoig.

Bizcuite
[Gen8 Android Development] Bingoig11:
Can confirm that I have no issues but these days I don't use the tab that much since I have a lot of work ;)
[Gen8 Android Development] Mavasilisk:
When I set it to 1 and restart wifi for a several times the systeb crashes when I open a heavy app. Anyway, the lag goes away after a while maybe it drops the caches cuz PlayStore is fully reloading after I change this setting.

EDIT: I added Seeder but dunno if it helps or not. Added swap of 512 MB but the multitask is not that good. Overall performance looks good after a minute or two with "write /proc/sys/kernel/panic_on_oops 0" dunno how but the lag goes away.
[Gen8 Android Development] bizcuite:
The tab lags because it must crash atm :) . To set to 0 this option deactivates the kernel panic like answer.

I will try to set alignment to 4 the original value.

The update will be for tomorrow, I need to test the tab before.

It's good news for us, the crash is really fix I think :)

Edit just for new readers, to fix crash, just edit init.rc and set to 0 the parameters: write /proc/sys/kernel/panic_on_oops 0

Bizcuite
[Gen8 Android Development] Bingoig11:
To be clear, which values should I try on my tab?

Alignment to 1?

Heapsize to 192 ( currently default)?

Oops to 0?

Sent from my Cyanobiz Archos
[Gen8 Android Development] Mavasilisk:
I checked it on my phone and the values are kept 4 and 1
[Gen8 Android Development] athankar75:
With this setings,my a70s is a rock stable tablet, best rom since stock rom i think! The last thing ,does swapper really helps with memory? If yes, which values do you suggest?
[Gen8 Android Development] bizcuite:
Oops to 0 is enough. Don't touch others values :)

just 0 to oops, if you think that another value for x commnd works, share the tips please. ;)

Many thanks :) I am really happy to have a stable ICS sytem for our tabs. But I have again lots of works!

Else I have 512mb of ram and I don't need swap :)

I have found how to configure yourself the size of the swap. I have just to see which parameters I must include in /etc/fstab to activate the swap by file and I will publish the how to :)

Bizcuite
[Gen8 Android Development] Mavasilisk:
I am using Ramexpander and I've set it to 512 swap but its stil for a trial now.
[Gen8 Android Development] bizcuite:
Wait my how to. The method used must be the same.

And you will be able to select the size and the partition where find it (in the system image file or internal/external sd or data image file)

You could used the most fast in read/write. When i had tried this method (i have deleted the test image file : / ) the performance was better :)

Bizcuite
[Gen8 Android Development] Mavasilisk:
I know that swap/in/partition it faster. I will/use this swap until you show us how to make the one you say.
[Gen8 Android Development] bizcuite:
How to have a swap like a file and define yourself the size and the path:

By adb or directly in a terminal under Android:

COPY LINE BY LINE TO BE SURE

swapoff -a
rm /swapfile
rm /system/etc/fstab
dd if=/dev/zero of=/swapfile bs=1024 count=50000
mkswap /swapfile
touch /system/etc/fstab
echo "/swapfile none swap sw 0 0" >> /system/etc/fstab
swapoff /dev/block/ramzswap0
swapon -a /swapfile

This activate a swap file of 50MB locate in the root of the system image file (in CYANOBIZ_xxxx.img)

DO NOT INCREASE THE SIZE (50MB) IF YOU LET THE SWAP IN THE IMAGE SYSTEM FILE - ELSE THE IMAGE FILE WILL BE FULL(bootloop)

For exemple, if you want to add the swap file of 128MB in the internal SDCard

Adapt the path if you change it.

When you create the swap file, the system can freeze, let it finish the creation of the file

swapoff -a
rm /mnt/storage/swapfile
rm /system/etc/fstab
dd if=/dev/zero of=/mnt/storage/swapfile bs=1024 count=128000
mkswap /mnt/storage/swapfile
touch /system/etc/fstab
echo "/mnt/storage/swapfile none swap sw 0 0" >> /system/etc/fstab
swapoff /dev/block/ramzswap0
swapon -a /mnt/storage/swapfile

If you want to see the result, just enter "cat /proc/swaps"

And you should see this:

cat /proc/swaps
Filename Type Size Used Priority
/mnt/storage/swapfile file 127972 0 -1

Bizcuite
[Gen8 Android Development] 4qu4rius:
Thanks for the tip ! will do that tonight !

I haven't my tab with me at the moment. Do you confirm the the swap is the only partition mounted by /system/etc/fstab ? I would rather edit the file by hand using a root explorer app.

I think there is a problem with this line:

cp /fileswap /mnt/storage/fileswap

We have just created a 128Mb file and now you overwrite it with /fileswap ? I don't understand.
[Gen8 Android Development] Mikerla:
Biz can you test these instructions I keep getting "Invalid argument" with the command swapon -a /mnt/storage/swapfile

Also you may want to look at your file names, you used fileswap and swapfile, did you want to do that?
[Gen8 Android Development] bizcuite:
I have tried it many times and it works well for me (just see the result).

Just see if you have an error before, and copy/paste each lines, one by one.

Retry, it works perfectly by adb, if you used a terminal application, don't forget the "su" command.

Bizcuite
[Gen8 Android Development] Mavasilisk:
I'm testing some OOM memory tweaks to see which one is the best for CM9 on Gen8.
[Gen8 Android Development] qmha:
My tablet still running can't well. Usually Turn off and can't wakeup. Some time can wake up.

I'm waiting new version to test.

Thanks for BIZ and other friends
[Gen8 Android Development] Mavasilisk:
You should wait for the next release. All the midifications will be included there. It's getting better and better every day.
[Gen8 Android Development] bizcuite:
Just change a parameter in init.rc to have a stable system. see my last post in general section. I must recompile the rom this evening.

Bizcuite
[Gen8 Android Development] Mavasilisk:
BIZ! Change OOM settings to:

Foreground 8

Visible 16

Secondary 32

Hidden 64

Content 96

Empty 128

This way the device seems very resposive.
[Gen8 Android Development] qmha:
In init.rc many many parameter. Show i can't see to know how can change to a stable system. Can you explain some parameter which i can change it?
[Gen8 Android Development] athankar75:
Biz, you are awesome! You have already did the unbelievable, you make our tablet works Ics fast and stable! But we are greedy, we want to make it better and specially some tweaks to get over with the unforgivable amount of 256 mb ram which struggle this beautiful device. A million thanks for your work so far...
[Gen8 Android Development] Mavasilisk:
Dude, can you please read carefully? He kindly told you to read his previous post. There is written which line you have to edit. You must find the line if u want it to become stable and nobody will do it for you. I suggest you to wait for the next build and stop spamming with useless posts its a Dev section. Scroll down the file and find it. Its easy once you've found it to edit it then reboot and it will be ok.
[Gen8 Android Development] Bingoig11:
I hesitated to set aggressive parameters on my tab. Will give it a try once I'm home!
[Gen8 Android Development] Mavasilisk:
These settings are "agressive".
[Gen8 Android Development] Bingoig11:
I know that's why I answered that I was hesitating ;)

But now you did it, I will try :D
[Gen8 Android Development] bizcuite:
I have update the first post to have the fix.

If you don't find it, try a doctor for your eyes :) ^^ ;)

Bizcuite
[Gen8 Android Development] 4qu4rius:
Hi there,

- creating swap partition on storage like Biz said works ok (I didn't repeat every command that was not needed) but it doesn't survive a reboot. I have /dev/block/ramzswap0 as the only swap after a reboot. (if I reapeat the swapoff / swapon commands, it works but still doesn't survive a reboot. How do I set that as permanent ?

- trying oops = 0 now
[Gen8 Android Development] Mikerla:
Biz

Is there a reason for the different file name for the swapfile here?

mkswap /mnt/storage/

swapfile

cp /fileswap /mnt/storage/

fileswap

copied from your first post...

That is was I was asking before.
[Gen8 Android Development] bizcuite:
lol i had smoked Ganja before, to have write this :)

You are right.

When i have tried it was with a copy/paste from a text editor, and have wrote an error.

This line is not necessary to have a swapfile activated. It must work with/without (this line try to copy a file who not exist, you have just an error, but not a fatal error).

This is a old method that i had used, i had forgotten to delete it.

All my apologizes, you was right :angel::good:

I edit the post, mava can you edit your first page please?

Bizcuite

Edit: first page edit.
[Gen8 Android Development] ArcSmurf:
On 2ns attempt seemed to get info - so top of file may be misleading. but output from my boot
[Gen8 Android Development] bizcuite:
Thanks a lot for this report!!

I can't find any information useful in this report, but i have seen that there are different version of the TS (V0 and V1 for A70 and A101)

I have make change on kernel to see the influence.

Can you try with this init.rc (same init.rc than last posted)?

If TS work like a mouse, report it (the change has been take in consideration, and post report) please!!

And change the name of IDC file in system/usr/idc:

for A70: Vendor_227d_Product_0a79.idc

ford A101: Vendor_227d_Product_0a19.idc

To return to original, just insert working kernel (first page) and rename idc file.

Thanks for yours minicom full logs!!

Another thing:

Can anybody make me a cat of timings file in:

/sys/devices/omapdss/display0/

Thanks!!!

Bizcuite
[Gen8 Android Development] wilsey:
Hey Bizcuite

Sorry been working all day, Thamks for the updates :)

Maybe silly question but which IDC file in system/usr/idc do i rename ?

Vendor_227d_Product_0a1a.idc

Vendor_227d_Product_070a.idc

Vendor_0e79_Product_1411.idc

UNITEC USB Touch (Win7).idc.idc

Is a few files so just making sure which one to rename to Vendor_227d_Product_0a19.idc

Thanks
[Gen8 Android Development] bizcuite:
It's an A101, you must change this name: Vendor_227d_Product_0a1a.idc, it's the configuration file read by your tab.

But before, see if your TS works like a mouse, if not, my change has not effect, i want to know it!! :)

If it works like a mouse, then, rename the file to have a TS (reboot after rename).

Bizcuite
[Gen8 Android Development] ArcSmurf:
Just getting VirtualBox setup on work laptop so will get a minicomlog shortly, but the timings file contains

41575,800/64/128/64,480/20/22/3,1/1
[Gen8 Android Development] wilsey:
Thats good to know thanks,

Flashing the new kernel, I get no touch screen response at all, mouse or touch, I then flashed the init.rc but still no response...

Will rename file now, then try and get a minicom dump

Thanks
[Gen8 Android Development] ArcSmurf:
I too get the same - with new kernel/init.rc there is no touchscreen control at all.

attached is log file
[Gen8 Android Development] bizcuite:
Ok no mouse, no TS!!

Back to working kernel and keep last init.rc please.

I don't know where is defined the working resolution of TS........if anybody has an idea? I begin to be lake of ideas.....

I don't think that i must change anything in CM9 code (framework/base/service/input/inputreader.cpp), but there must be an entry to change the TS size.

I have just this to help me.... "The device will be inoperable until the display size becomes available"

If I (you) find display resolution and change it, i find the solution

there is a entry in /sys/devices/ who gives the size of display. This size is wrong and make an offset on the TS........

Please help me to find an entry with 800x480 or 1024x600.........There is a value who have 1280x768.

Bizcuite
[Gen8 Android Development] wilsey:
Yea A101 Is the same, No input what so ever

Attached log
[Gen8 Android Development] wilsey:
looking through initramfs.cpio.gz /etc/scripts/openaos_lib.sh

All screen sizes and rotation etc is define here?
[Gen8 Android Development] bizcuite:
No,

The function who gives information is here in inputreader.cpp on CM9 code:

void InputReaderConfiguration::setDisplayInfo(int32_t displayId, bool external,
int32_t width, int32_t height, int32_t orientation) {
if (displayId == 0) {
DisplayInfo& info = external ? mExternalDisplay : mInternalDisplay;
info.width = width;
info.height = height;
info.orientation = orientation;
}
}

I must find where DisplayInfo takes inrformations (a path in sys/devices/ i think).

I see in this way, hope that i will find the path.

I am telling me, if the DPI make anything.

I have sen it on android Devwebsite:

Can you try:

1 - To return to original CM9 (kernel, initramfs and init.rc from first page)

2 - make a minicom log

3 - pull with adb the build.prop in /system/

4 - edit the file and insert this value:

at the end of the file (you can try if you want to put 190).

5 - reboot with another minicom log

6 - post all logs for me :)

Bizcuite
[Gen8 Android Development] ArcSmurf:
Apart from everythuing being much bigger - still seems to be same issue where screen size is wrong:

new log attached,
[Gen8 Android Development] bizcuite:
Please can you put me the top of the debug, i need to see the kernel message (there was an error about DPI, i would like to know if it disappear)

Just delete the line in build.prop to return to original screen size.

Bizcuite
[Gen8 Android Development] ArcSmurf:
Have removed line from build.prop - hopefully this is what you need.