Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#51
As promised, I've uploaded tool to fight swap fragmentation to extras-devel (in fact, doing more than that). For more info and/or discussion about it, see:
http://talk.maemo.org/showthread.php?t=84413

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 6 Users Say Thank You to Estel For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#52
Originally Posted by reinob View Post
I have swap on the SD card. I just pulled the cover and my SD partitions got unmounted EXCEPT for the swap (which is not really mounted).

I guess, but I cannot confirm, that when pulling out the cover any mounted partition (perhaps even only VFAT, but I don't know) gets unmounted, but that's all.

Swap is by definition not a mounted partition, so nothing happens.

Obviously, if you do pull the CARD with swap on it you get an instant crash.
I wanted to know for me (using swap file on vfat partition).
Even I may use lazy umount to make the partition unreadable to N900, I do not get USB mass mode available. So I need modified osso-mmc-umount (removing loop devices) to get the partition really accesible and mass storage mode available.
So I assumed same as reinob, that removing back cover will also work.
BUT, indeed I do get an instant crash.

So, Estel, here is one occurance.
Maybe I do need the magnet glued? But hey, I do know not to do so (and I will never throw it to the floor, so the back cover will spring open)
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#53
@peterleinchen,

Well you can't have everything in this world. There no way you can possibly allow a PC exclusive access to a partition while the N900 uses a chunk of that partition as memory.

So either you use SSH/NFS/CIFS/whatever or you create a separate partition for swap.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#54
Originally Posted by reinob View Post
@peterleinchen,

Well you can't have everything in this world.
But I do want and still trying ...


No serious, it is absolutely clear. Thanks for reply anyway.
But I just wanted to test it. And there are posts about people able to mount simultaneosly (mostly using ubuntu?).

I just wanted to check wether this mass-storage-not-possible possibly also made my back cover removing stable. But: no. For my HW the SD gets completely disabled, it seems.
And for SD unmounting I already have a script.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#55
Maybe just vfast partitions are cut-off? It seems, that people using native linux partition on SD and/or any ext, doesn't get it unmounted during cover removal.

as for glueing magnet, I'm using this for ages and haven't noticed any regressions. I'm just able to take cover out at any time, which suit me, as I've glued a cut-off part of microSD box (this one with small holder for SD) and I hold backup microSD inside cover.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#56
Originally Posted by vi_ View Post
It believe it is entirely possible to create a 'swapon SD/swapoff SD' entry in power menu 'systemui.xml' just by adding a few lines just like phone/tablet mode button thing.
Is there any more information on these few lines of code?
Thanks
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#57
Unfortunately not. |The workings of Systemui.xml is completely undocumented.

However if you study the code of tablet/phone mode button you will see it is entirely possible to run scripts/dbus calls directly from systemui.xml. Also you can relay the status of things with icons etc as per a file, again see tablet/phone mode button.

BIG FAT WARNING!!

If you screw up systemui.xml your N900 WILL become unbootable until you undo whatever you messed up. This can be done with backupmenu/rescue OS/rescue console.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following 4 Users Say Thank You to vi_ For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#58
Originally Posted by reinob View Post
I have swap on the SD card. I just pulled the cover and my SD partitions got unmounted EXCEPT for the swap (which is not really mounted).

I guess, but I cannot confirm, that when pulling out the cover any mounted partition (perhaps even only VFAT, but I don't know) gets unmounted, but that's all.

Swap is by definition not a mounted partition, so nothing happens.

Obviously, if you do pull the CARD with swap on it you get an instant crash.
Just one additional comment: just a few minutes ago I happened to pull the back over of my N900 and it instantly rebooted.

I'm seriously getting tired of a lot of Maemo-crap that happens to be loaded in our loved N900s. Thanks to @Estel I have my third N900 which I'm basically r4aping by removing lots of preinstalled stuff and cleaninng up the boot process a bit. I will see if I can completely get rid of ke-recv and related GNOMEish-Windows-ish-user-is-too-dumb-to-do-this-by-himself stuff.

My aim is to make a minimal Maemo (I might even remove hildon desktop) which I can then "easily" move to the eMMC (and use U-boot to boot it) and then pack everything in a flashable image.

Anyway, next step is ke-recv.
 

The Following 5 Users Say Thank You to reinob For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#59
Originally Posted by reinob View Post
Just one additional comment: just a few minutes ago I happened to pull the back over of my N900 and it instantly rebooted.

I'm seriously getting tired of a lot of Maemo-crap that happens to be loaded in our loved N900s. Thanks to @Estel I have my third N900 which I'm basically r4aping by removing lots of preinstalled stuff and cleaninng up the boot process a bit. I will see if I can completely get rid of ke-recv and related GNOMEish-Windows-ish-user-is-too-dumb-to-do-this-by-himself stuff.

My aim is to make a minimal Maemo (I might even remove hildon desktop) which I can then "easily" move to the eMMC (and use U-boot to boot it) and then pack everything in a flashable image.

Anyway, next step is ke-recv.
Very interesting! Please keep informing on your proceedings.
 
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#60
Would there be any benefits in having 2 swap spaces on Micro SD?
Leaving the standard swap space as backup (for no card inserted).
Maybe use cron to Swap between the SD Swaps at night?

Getting a 64GB card soon and going to partition it up to get stuff off the phones memory (mainly Music and Docs). Looking for best way to partition off and sizes.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 04:02.