maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Problem with shutdown/reboot N900 (kernel-power) (https://talk.maemo.org/showthread.php?t=90112)

badazimer 2013-05-23 08:57

Re: Problem with shutdown/reboot N900 (kernel-power)
 
Quote:

Originally Posted by handaxe (Post 1345918)
Yes, it really does. It uses well-established 'nix swapon and swapoff that are meant to be used to turn swap on or off. I have not read any negative opinions about these approaches. No esoteric tunings of delicate variables here.

The evidence of improvemet for me was clear.

Here is the best guide:

Can You describe the process simply:
Simplest way that I find:
  • take GParted(use OpenSUSE & know what is it)
  • take microSD(have 64Gb)
  • format SD
  • delete partition
  • create 2 partitions(350-800 mb) & format this in LinuxSWAP fs
  • create partition for personal data from free space
  • use GUI FlopSWAP
It’s a right way?

handaxe 2013-05-23 10:01

Re: Problem with shutdown/reboot N900 (kernel-power)
 
Quote:

Originally Posted by badazimer (Post 1346173)
Can You describe the process simply:
Simplest way that I find:
  • take GParted(use OpenSUSE & know what is it)
  • take microSD(have 64Gb)
  • format SD
  • delete partition
  • create 2 partitions(350-800 mb) & format this in LinuxSWAP fs
  • create partition for personal data from free space
  • use GUI FlopSWAP
It’s a right way?

I can't do better than is in this wiki entry.

NB: Note the FAT first partition: "The easiest way is to use GParted on a desktop. Then make two equally sized "linux-swap" partitions, 800MB is fine. These partitions should be located after the first FAT partition.

The card will then have a FAT part (mmcblk1p1) swap1 (mmcblk1p2) and swap2 (mmcblk1p3)."



There is also this.

sixwheeledbeast 2013-05-23 18:22

Re: Problem with shutdown/reboot N900 (kernel-power)
 
Quote:

Originally Posted by Android_808 (Post 1345986)
Anyone running custom swappolube settings with swap on SD? Any optimizations here from swappolube recommendations.

Proposed settings here with Swampiness :D changed to "50".
I would say it's dependant on the uSD card so compiling others exact settings may not help.

misterc 2013-05-25 11:38

Re: Problem with shutdown/reboot N900 (kernel-power)
 
as the saying goes, recently, as far as partitioning of /dev/mmcblk1 goes, the sky is the limit :D :cool:

Code:

Nokia-N900:/# fdisk -l /dev/mmcblk1
      Device Boot      Start        End      Blocks  Id System
/dev/mmcblk1p1              33    1599968    51197952  b Win95 FAT32
Partition 1 does not end on cylinder boundary
/dev/mmcblk1p2        1599969    1726496    4048896  83 Linux
Partition 2 does not end on cylinder boundary
/dev/mmcblk1p3        1726497    1886464    5118976  83 Linux
Partition 3 does not end on cylinder boundary
/dev/mmcblk1p4        1886493    1948992    2000000  5 Extended
/dev/mmcblk1p5        1886493    1917743    1000024  82 Linux swap
/dev/mmcblk1p6        1917744    1948992      999960  82 Linux swap

i'm a command line junkie, so i don't mind
Code:

Nokia-N900:/# swapoff /dev/mmcblk1p5 &
Nokia-N900:/# swapoff /dev/mmcblk0p3 &

after starting up my N900 (which usually doesn't happen often)
and to use following command to clean out caches & all
Code:

Nokia-N900:/# sync
Nokia-N900:/# echo 3 > /proc/sys/vm/drop_caches

usually after doing

Code:

Nokia-N900:/# swapon /dev/mmcblk1p5 &
Nokia-N900:/# swapoff /dev/mmcblk1p6 &

(or vice-versa) every now & then.
call me a control freak if you like :D :rolleyes:

as the most important function of my N900 (for me) is getting (& making) phone calls i have
Code:

Nokia-N900:/# cat /proc/sys/vm/swappiness
100

but i don't use CSSU...
had that on my test device, but going to have to re-flash it :(
still can make phone calls, but that's about it :confused:

reinob 2013-05-29 13:32

Re: Problem with shutdown/reboot N900 (kernel-power)
 
Quote:

Originally Posted by handaxe (Post 1344810)
Verily; but we have here a slightly different case (amongst others): "the shutdown that reboots". Most of us had the "reboot that shutsdown" that you mention.

Funny. Yesterday I had a "shutdown that reboots" event, AFAIK for the first time in my life. Will see if I can investigate that.

spaak74 2013-05-29 14:15

Re: Problem with shutdown/reboot N900 (kernel-power)
 
When I connect the wall charger to the n900 with a flat battery and switched off, the phone boots itself. Not a big problem, except it makes calibrating the battery harder. Maemo7.2+thumb1 KP52 is installed.

freemangordon 2013-05-29 16:28

Re: Problem with shutdown/reboot N900 (kernel-power)
 
Quote:

Originally Posted by spaak74 (Post 1347738)
When I connect the wall charger to the n900 with a flat battery and switched off, the phone boots itself. Not a big problem, except it makes calibrating the battery harder. Maemo7.2+thumb1 KP52 is installed.

AFAIK It is supposed to be that way.

@reinob: Anything suspicious in /dev/mtd2?

handaxe 2013-05-29 21:14

Re: Problem with shutdown/reboot N900 (kernel-power)
 
Quote:

Originally Posted by freemangordon (Post 1347774)
AFAIK It is supposed to be that way.

I guess the issue is was it a full boot to desktop or the charger "mini-boot".

freemangordon 2013-05-29 22:00

Re: Problem with shutdown/reboot N900 (kernel-power)
 
Quote:

Originally Posted by handaxe (Post 1347871)
I guess the issue is was it a full boot to desktop or the charger "mini-boot".

Hmm, if the device powers off because of a flat battery, I *think* it is supposed to boot straight to Maemo after a charger is connected

badazimer 2013-05-30 15:24

Re: Problem with shutdown/reboot N900 (kernel-power)
 
Reinstall OS. Problem not disappear, but more rarely(2 reboots)


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

vBulletin® Version 3.8.8