yashsingh1/xdaforums huggingface dataset:
[Xperia Arc Android Development] alexander-n8hgeg5e:
swap works

I did that with the swap. It's possible and easy to do with cm13 LX. I used a second partition, thats faster than a swapfile.

My latest discovery is the kernel parameter "extra_free_kbytes". I set this to 100000(caution, you need swap first!)

Than it frees aprox.100 mbyte to swap. This leads to fast memory allocation for the apps if some app needs this.

I set swapiness to 100 too.

Format swap partition:

mkswap /dev/block/mmcxxxpartionnumber

add swap:

swapon /dev/block/mmcxxxpartionnumber

and then watch the result with:

free -h

Set /proc/sys/vm/extra_free_kbytes to 50000 or 100000 like me:

echo 100000 > /proc/sys/vm/extra_free_kbytes

swapiness:

echo 100 > /proc/sys/vm/swappiness

These settings will get lost on reboot, for persistence add startscript files.

Better not touch min_free_kbytes, it the space that is for emergency i think, and therefore is waste of memory if set to high.

If much to high system stops working.

And I set the lowmemory killer to low values, so my apps will not be killed.

I can never run out of memory because of 1Gbyte swap partition.

It's true, maybe your sd-card could die soon(if it's big and a good card, maybe it will last long).

Further I disabled z-ram.

The most of the settings I did with the kernel adiutor app.

I don't care whether my sd-card will die someday. I will see how long it takes.

I added these files:

/data/local/userinit.d/50swapon

content:

swapon /dev/block/mmcblk0p2
echo 100 > /proc/sys/vm/swappiness

and this:

/data/local/userinit.sh

content:

#!/system/bin/sh
/data/local/userinit.d/90sshd&\
/data/local/userinit.d/50swapon

The line #/data/local/userinit.d/90sshd&\ has to be deleted unless you don't want to execute a sshd starting file.

Maybe it's better to add #!/system/bin/sh at the beginning of the file /data/local/userinit.d/50swapon too.

The rest of the settings you can do with the kernel adiutor app, or add them to the files.

Normaly the files in /data/local/userinit.d/ should be executed automatically, but this does not happen.

There is only an init script "/etc/init.d/90userinit" that calls /data/local/userinit.sh.

and from this file I called the other ones.

The files have to be executabel. I set the permissions to: "rwxr-x-r-x" (I dont know whether rwxr-x--- is better)

---------- Post added at 06:43 PM ---------- Previous post was at 06:02 PM ----------

Hi,

my phone had a similar problem with the cm LX 12.1.

After a crash or something like that it happened.

I took the sdcard into my cardreader and then i ran fsck.ext4 /dev/xxxx to check the filesystem.

You will need a linux machine.

It had errors and after fixing the filesystem LX booted.

To fix f2fs you can run fsck.f2fs.

i did this with f2fs never.

It's on your phone, but that does not help you...

Some Linux machine should do the job.

This is what option I get:

sudo fsck.f2fs
Error: Device not specified

Usage: fsck.f2fs [options] device
[options]:
-a check/fix potential corruption, reported by f2fs
-d debug level [default:0]
-f check/fix entire partition
-t show directory tree [-d -1]
[Xperia Arc Android Development] umaturman:
My urushi is ringing on incoming call.
[Xperia Arc Android Development] TomTomcrafter001:
This happened several times for me now. I could solve it by waiting. Just wait 3-5 min and it should boot up fine. Then its fixed until it happen again.
[Xperia Arc Android Development] umaturman:
In brand sd cards (like SanDisk, Kingston, Samsung) implemented simple wear leveling algorithms. So if you use swap on your poor sd card :crying: be sure to keep at least 50% of it's size free. It's needed for proper wear leveling. And here is the rule - the larger the size of your SD card the longer it will live.
[Xperia Arc Android Development] alexander-n8hgeg5e:
I have that issue too.
[Xperia Arc Android Development] plb-dev:
Im also experiencing this issue. But the quickest fix i know is to goto quick settings and expand the wifi toggle. Then it will get connected.
[Xperia Arc Android Development] Fabri_19:
in coconut bugs I found are:

* I can not move songs with the volume buttons.

* Bluetooth does not work properly with speakers / headphones.

* Icon "battery saver" does not appear in the quick settings, even adding it.

* the wifi does not automatically connect.

sorry for my english
[Xperia Arc Android Development] alexander-n8hgeg5e:
If I write one time all sectors of the card, how will the card know that I don't use them anymore, even if I partition only the half?

I know about some "TRIM" command that is uses for ssd to tell that an area is free, i think sdcards don't have such a trim command, but i don't really know.

Additionally it has to be supported by the filesystem, for f2fs that is true.

My card is a 32 Gbyte card. It unfortunately full with partition 1(31 Gbyte) and 2(1 Gbyte)

I assume it will last 5000 times full writing. This is 160 000Gb

Maybe if I open an app it will take 3 seconds of swapping. I think its less than 100mb. If I open 20 Apps per day this is 20G one day. I don't think it will be that much.

Think about your phone is sleeping most time in deep sleep and nothing happens with the swap.

I assume this as worst case.

So one year is 365*20= 7300Gb.

That means it will last 21 years. Thats ok for me.

Hopefully the wearlevel alg. works in some way despite of my full card.

What a luck I bought a phone in 2012 with sd-card slot, so I can change the card if it has worn out.

And hey, I can change the battery too!

I bought a really good new battery for my phone, apart from that i have aprox 6 more batteries.

I had another sdcard from samsung that switched to readonly, but i used no swap with it. I'm almost sure i used it only for takeing some pictures and all together the writing should not even be once the size of the card (32gb). I mean, I wrote less than 32 gbyte to the card.

I had warranty for the card. It was only few month old. They sent me a new one.
[Xperia Arc Android Development] plb-dev:
Bluetooth will not work properly in this build. Sometimes does, sometimes does not. It is a known bug.

And the battery saver feature. I really miss the option to manually enable it so that my battery lasts longer during nights.

I have specified a quick workaround for the Wifi connectivity problem above. Hope all these bugs will be fixed in the next build :fingers-crossed:
[Xperia Arc Android Development] SirBiggle:
I have the same Problem but not with all Wireless Networks. At home I have the Problem.

At a friends wireless that didn't show.

I will try to deactivate 5 GHz frequencies on my router. perhaps it is related to that.

I tried to deactivate 5 GHz. No effect. The LX13 smultron wireless connection is unstable.

I have a AVM Fritz Box 7490.
[Xperia Arc Android Development] ploµf:
Same here with no wifi autoconnect and high cpu and random reboots !

Also sms widget always charging conversations but not displayin it...
[Xperia Arc Android Development] alexander-n8hgeg5e:
Are you experiencing full reboots or only with the cyanogen boot logo(skipped the legacyXperia logo)?

I had uncomplete reboots everytime i did something, i think "heavy".

I guess only but I think this comes from out of memory conditions.

Since I added 1 G of swap this seems gone.

If you disable zram, i did this, than cpu usage is lower too.
[Xperia Arc Android Development] Raixer:
work great on my smultron. but have one issue with mobile network, data not connected after boot. I must togle airplane mode, or 2g/3g prefered to make device connected to mobile data. and some shortcut in status bar panel not shown.
[Xperia Arc Android Development] gocegi:
Offline charging doesn't seem to be working also. If you plug in a charger only with the kernel flashed, it goes into bootloop
[Xperia Arc Android Development] umaturman:
All the wear leveling work in a SD card is managed by an embedded controller, which doesn't care which file system you are using. It's job is to keep a track on a block lookup table, which maps requested blocks (logical blocks) to their actual on-chip blocks (physical blocks). When you "overwrite" some logical block in a file system the controller writes to a physical block from the erase pool and then returns the "dirty" block to the erase pool using GC. As long as you keep some free space on your SD card there will be no need to worry about buying a new one (unless you are using swap file/partition:)).

And you don't need to keep unallocated space :cool:

You need to flash a ROM and it will work.
[Xperia Arc Android Development] filjusz:
[MENTION=3839575]mikeioannina[/MENTION] You have an idea to create AOSP Marshmallow with your team or not? Only my curiosity :o
[Xperia Arc Android Development] alexander-n8hgeg5e:
But how can I keep free space? If i wrote every logical block on the card.

For example,: 0 to half on monday, half to the end on thuesday.

Then the contoller has to keep every logical block.

There is no way back.

As you described, he can remap a block to another physical block if I write.

And for this a spare block is needed. I think there are some spare blocks.

Maybe it works like this:

write: write to spare block and then remap the logical block to the spare block.

After some writes to the same logical block there is a used spare block and another used block and the spareblock have to be exchanged with a fresher block.

Maybe the controller tracks the writes to the each block, and if a write would go to a spareblock with 100 writes on its counter, a random block is copied to the spareblock and then remapped to the spare block. The counter could be set to 0 for the new randomly choosen spareblock, because its random (probably fresh).

If the next 2 writes goes to the same logical block, then the logical block will go to the fresh spareblock first and then the write would go to a spareblock that has 100 on its counter too. This block would be filled with another random block and the next spareblock would be fresh. Then both the spareblock and the physical block that belongs to the logical block that is written multiple times in this assumption would be fresh. This would slow down the write speed only 1%.

With this algorythm it doesn't matter if i use the whole card or not. The card would be evenly worn out. Even a swap partition is possible, it depends one the size of the card and the use of the phone.

Actually i don't know how it is solved on the cards.

But this would be a good solution I think.
[Xperia Arc Android Development] Mardon:
Swap on sd is contraproductive, it slows down data access speed because /data partition is the Sd!

Gesendet von meinem LT18i mit Tapatalk
[Xperia Arc Android Development] Megaloado:
Thankq you [MENTION=5240326]blueman24[/MENTION] !

I have made a clean stock ics flash 5 times now... The sdCard (Class One SanDisk Ultra 32 GB) is new and I bought it specially for this Phone and this Mod ;_____; It is also normaly recognized in stock rom and twrp, only in the cyanogen recovery are those problems...

is there a different solution? a different recovery or sth?

what are the exact steps to make a clean install?

Format System = Wipe System?

Format data = Full Factory reset ?

Wipe cache is clear...

When i want to install a zip I press on 'apply update' -> 'choose from emulated', correct?

EDIT: What exactly does

E: failed to mount /data (invalid argument)

Installation aborted

mean?

EDIT: is it possible to install from adb sideload?
[Xperia Arc Android Development] blueman24:
The error means that there is a problem with data partition on the SD card.

Download minitool partition wizard on windows (or gparted for Linux) and delete existing partition(s)? Now you can either leave it unformatted (will be done by recovery later) or create a new F2FS partition inside minitool partition wizard itself.

Here's a indepth guide https://github.com/LegacyXperia/Wiki/wiki/Installing-Marshmallow
[Xperia Arc Android Development] Megaloado:
I GOT IT!!!

ADB Sideload did it! I was just not able to install from sd... whyever

The only "issue" i have now is the lighting between the navigation buttons (Home, Menu, Back). On the xperia pro they have leds between the gaps. Now they light up every time i touch the screen (very annoying and distracting). Normaly they just light up when a button is pressed. Is there a way to fix this?

Thhanks!
[Xperia Arc Android Development] blueman24:
Sorry mate, my smultron is dead and I don't remember various settings. Try digging in the display settings or similar. Maybe search on forums.
[Xperia Arc Android Development] vildevilde:
I would like to have a deodexed version of this rom, is that possible? I have searched for a guide to do this but not really found any that I believe is fitting for this. Maybe someone have a deodexed version? or maybe can point me to a tutorial how to do it?
[Xperia Arc Android Development] azakosath:
If you have Linux you could use tools like SuperR Kitchen (search in XDA) or something similar, I think that now there is a version for Windows too, but it's not free.
[Xperia Arc Android Development] vildevilde:
I have been on Linux more than 20 years, windowz is a gaming platform :)

Oh, and thank you, I shall have a look on SuperR Kitchen

Edit: No, couldn't make SuperR Kitchen work with this rom :(
[Xperia Arc Android Development] hackintosh5:
Great ROM, upgraded from Gingerbread ? Truly breathed new life into this phone!
[Xperia Arc Android Development] azakosath:
Strange! It had worked for me last year on Ubuntu 16.04. I guess you can get some help in SuperR's kitchen thread.

Good luck!
[Xperia Arc Android Development] hackintosh5:
Deleted
[Xperia Arc Android Development] ploµf:
No sim issue personally ! Is it a known bug ?
[Xperia Arc Android Development] hackintosh5:
It was my mistake. Edited post just now - i saw that someone had sim issue, ages ago, but for me it was just bad SIM Card!?
[Xperia Arc Android Development] bamtan2:
Still the phone call lag?
[Xperia Arc Android Development] ploµf:
Is it a NFC sim card ?
[Xperia Arc Android Development] hackintosh5:
What's that? The sim card had metal contacts, if that's what you mean?
[Xperia Arc Android Development] winesh:
Which one do you think is more stable, cm13 or los14.1? Considering your experience ofcourse.
[Xperia Arc Android Development] Farooq95:
https://www.xda-developers.com/unofficial-lineageos-built-in-microg-avoid-google-services/

This...
[Xperia Arc Android Development] blutor:
Unable to unlock SIM with lineage-14.1-20170514 on mango

With lineage-14.1-20170514-UNOFFICIAL-LegacyXperia-mango build I am not able to unlock SIM card. Every time after entering SIM PIN the rild crashes and PIN prompt screen is shown again after a while; over and over.

I did clean install and I have tried also "half-dirty" install which means: clean install CM13 (to ensure that SIM is working) then wipe /system and caches and flash to lineage-14.1.

Is anybody using Mini Pro with 14.1-20170514 build and with SIM card successfully?

The logcat:

11-05 07:11:23.538 1460 1748 D PhoneInterfaceManager: wait for done
11-05 07:11:23.643 1460 3824 D PhoneInterfaceManager: SUPPLY_PIN_COMPLETE
11-05 07:11:23.643 1460 1748 D PhoneInterfaceManager: done
11-05 07:11:23.658 1561 1561 D CarrierText: onSimStateChanged: Normal
...
11-05 07:11:23.866 3713 3713 D CellBroadcastReceiver: onReceive Intent { act=android.intent.action.SIM_STATE_CHANGED flg=0x4000010 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver (has extras) }
...
11-05 07:11:24.089 1460 3826 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
...
11-05 07:11:25.265 3828 3828 D SimSelectNotification: no of slots 1 provision = true
11-05 07:11:25.274 1039 1236 I ActivityManager: Killing 3662:android.process.acore/u0a4 (adj 906): empty #5
11-05 07:11:25.284 1460 1460 E VvmSimChangeReceiver: Empty MCCMNC, possible modem crash. Ignoring carrier config changed event
11-05 07:11:25.359 1039 3385 D ActivityManager: cleanUpApplicationRecord -- 3662
11-05 07:11:25.877 3695 3698 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 3698 (rild)
11-05 07:11:25.891 157 157 W : debuggerd: handling request: pid=3695 uid=1001 gid=1001 tid=3698
11-05 07:11:25.945 1561 1561 D CarrierText: onSimStateChanged: Normal
11-05 07:11:25.970 3844 3844 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-05 07:11:25.971 3844 3844 F DEBUG : LineageOS Version: '14.1-20170514-UNOFFICIAL-LegacyXperia-mango'
11-05 07:11:25.971 3844 3844 F DEBUG : Build fingerprint: 'SEMC/SK17i_1254-2184/SK17i:4.0.4/4.1.B.0.587/tL1_3w:user/release-keys'
11-05 07:11:25.971 3844 3844 F DEBUG : Revision: '0'
11-05 07:11:25.971 3844 3844 F DEBUG : ABI: 'arm'
11-05 07:11:25.971 3844 3844 F DEBUG : pid: 3695, tid: 3698, name: rild >>> /system/bin/rild <<<
11-05 07:11:25.971 3844 3844 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
11-05 07:11:25.971 3844 3844 F DEBUG : r0 00000000 r1 414cfbb0 r2 01010101 r3 40a891f8
11-05 07:11:25.971 3844 3844 F DEBUG : r4 40c87720 r5 40c877d4 r6 ffffffff r7 00000000
11-05 07:11:25.972 3844 3844 F DEBUG : r8 40c87710 r9 40a8af90 sl 000000c0 fp 40c877d4
11-05 07:11:25.972 3844 3844 F DEBUG : ip 00000000 sp 40c876e8 lr 414c65c5 pc 4045cb66 cpsr 600b0030
11-05 07:11:25.974 3844 3844 F DEBUG :
11-05 07:11:25.974 3844 3844 F DEBUG : backtrace:
11-05 07:11:25.974 3844 3844 F DEBUG : #00 pc 00018b66 /system/lib/libc.so (strcmp+517)
11-05 07:11:25.974 3844 3844 F DEBUG : #01 pc 000075c1 /system/lib/libril.so
[Xperia Arc Android Development] ITomaz:
I had same problem with urushi, try 14.1 before March build.
[Xperia Arc Android Development] blutor:
They are not available anymore unfortunately. Both MEGA and Basketbuild folders contains only latest.

[MENTION=2233641]AdrianDC[/MENTION] any clue what might went wrong with this build?
[Xperia Arc Android Development] villus:
any "real live" experience with this rom for Urushi?

regards

villus
[Xperia Arc Android Development] nussbaum:
There is no download for urushi or any other xperia2011 device yet.
[Xperia Arc Android Development] p32929:
Installed LOS14.1 & using it for 2 days in my smultron. Everything is working so amazingly. Bluetooth doesn't start at first try but starts at second try. WiFi hotspot turning off results in OS freeze & restart. & To be honest, it is working faster than CM12.1 in my smultron. Battery life is also excellent. I have used the built in boot.img & I was so happy to see TWRP recovery too ^_^

Just one question: how to use multi window? I have turned on Force activities to be resizable but still can't do multi window...

Thanks to everyone of LegacyXperia for the amazing works :)
[Xperia Arc Android Development] ITomaz:
My urushi can't read sim card, how it can read sim card?
[Xperia Arc Android Development] p32929:
I took little more time to detect the SIM for the first 3-4 boots . But after that SIM is being detected almost instantly after every boot :)
[Xperia Arc Android Development] alternatebrige:
i had a problem which now im stuck at recovery. follow all the step given by the dev,when i flash boot.img it was flashed succesfully.clearing everything then tap adb sideload suddenly device detect as lt18i and the Pc making dound as not recognized device which result when i do sideload its written waiting device. can anyone helping me?
[Xperia Arc Android Development] hackintosh5:
Install sony usb adb drivers. Use a tut.
[Xperia Arc Android Development] winesh:
Search for your adb driver, restart windows while disabling signature verification. This allows you to install drivers properly.
[Xperia Arc Android Development] DeadXperiance:
What about delay wake up problem in incoming call.
[Xperia Arc Android Development] hackintosh5:
Still broken
[Xperia Arc Android Development] curiousde2002:
On my hallon I doubleclick the home button for multi window, which seems to be the default setting.

Did you install Gapps?

Seems the built-in boot.img are different in the various 2011 LegacyXperia builds.

My hallon is presently on the march build with twrp recovery, with the may build there was no simcard detection and no twrp recovery.
[Xperia Arc Android Development] p32929:
Well, I'm using greenify & put all the phone call related services into the whitelist. So, now it doesn't delay at all :) Phone wakes up almost instantly in my smultron :)

---------- Post added at 12:50 PM ---------- Previous post was at 12:46 PM ----------

No, I've been using without Gapps sice 2013 :D & Now I've got used to of it...

I don't know why my smultron is running way better that the CM12.1 now :) I've been using LOS14.1 for 5 days now without any problem :)

& Double clicking home button crashes the system UI... I guess, I have to wait a little for the multi-window feature :)
[Xperia Arc Android Development] andromedar1977:
Hello guys i flashed this firmware a long while ago to my ARC S and i forgot about it as i have another phone as my daily device. Then one day i needed the microSD card for some thing else, so i fulled it out of my ArcS and formatted it.

Now i have to get my ArcS working again...but can not. I would line to flash some stock image again, but can not get it into fastboot mode to flash something. As i connect it with volume down pressed, the phone just powers on and starts loading the os (which isn't there anymore). In can get it into CM recovery to try sideload-flash something, but my computer does not see the phone (adb devices comes up empty).

Cam someone help me?

thank you
[Xperia Arc Android Development] hackintosh5:
Put an SD card back in, and run factory reset from cm recovery. Fastboot is home, not vol down (sony changed it after erricxson stopped)
[Xperia Arc Android Development] andromedar1977:
Thanks for your reply Hackintosh5, now the system is loading and optimizing apps.

Any idea how to proceed to flash , let say, Xperia Ultimate HD (stock based)?

Can i do it out of recovery? If i undestand correctly, i should fist flash the kernel from fastboot?

Thanks again for your quick reply
[Xperia Arc Android Development] UtokUser:
okay,i spent two days,bought new class 10 card,all for nothing!The thing just wont sideload!It reaches 47% and then disconnects!
[Xperia Arc Android Development] hackintosh5:
I think you didn't wipe system? Also, what is error message? We cannot help unless you follow instructions AND Tell us error.
[Xperia Arc Android Development] vildevilde:
Are you sure you followed the instruction, step 4 is important?

Steps required for correct installation (order is important):
1: Flash boot.img in fastboot & reboot into recovery
2 (optional): If the device is not booting, reboot to bootloader again and run:
fastboot erase system
3: Enter recovery
4: Format /system, then /data and then /cache (Important step!)
5: Flash update zip
6: Flash gapps
[Xperia Arc Android Development] UtokUser:
I cantt tell you what the error is,because the recovery wont show the logs.when i try to see them,it just returns me to the first screen.the android logo hides the screen while sideload is in progres,but what i did see is that it cant create /data.It does format my sd card to f2fs,but nothing else.I tried both cm 12 and 13,both of them reach 47% and then disconnect.cm13 recovery even destroys my sd card file partition table when i try sideloading the rom.I tried sideloading the formating tool,it sideloads but doesnt create the required directories.so far i managed to install cm 11,but it drained my battery overnight,even withoutsim card...
[Xperia Arc Android Development] vildevilde:
I'm not asking what the error is, I'm asking if you followed all the steps to install, because if not, you will probably mess things up.

I have worked around with this phone the last days and every time I mess up I do like this, quite simple. Don't ask me why or why it works, I don't know that.

Install (flash) this kernel arc/LuPuS_anzu_Stock-gB+iCsv16-full(4).img

boot to recovery

wipe system and data

wipe cache dalvik

switch off

start with first action described in my last post to install the rom, do it exactly.

That have rescued me from a messed up install/sdcard.
[Xperia Arc Android Development] UtokUser:
Thank you for your time!I will try it tomorrow, when I get back from night shift :D