Active Topics

 


Reply
Thread Tools
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#71
I do not have this recovery console, I prefer the one in backup menu.

According to /sbin/preinit:

'ACT-DEAD' (charging while 'off' mode) is init run level 5
start up, 'USER/BOOT' is init run level 2

If you put the modprobe fbcon in /sbin/preinit at ANY point it will always modprobe fbcon even if you are just plugging it in while it is off. (act dead mode) This is kinda cool however I am seeing some odd behavior with this. (however this may just be related to me rebooting while plugged into power, n900 goes into act dead mode as oppose to reboot (ancient kernel power bug))

If you put modprobe fbcon into /bootmenu.sh you will only see console output when you boot into backup menu and if you don't modify BM to hide battery charging output it really fecks up BM.

This leaves the last place being a short script (think 1 liner) in /etc/rcS.d or rc2.d. I think putting a short init script to modprobe fbcon would be best there.


1 more thing....

Why the hell does the LED not function when fbcon module is loaded? I mean not function at all. modprobing fbcon==no notification led...

mmm, seems I am talking from my *****. After a hard reset (battery out) my LED is back! I guess forced rmmod'ding fbcon then resetting due to dsme crash really screws the system up!
__________________
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.

Last edited by vi_; 2011-11-21 at 16:19.
 

The Following User Says Thank You to vi_ For This Useful Post:
Posts: 1,163 | Thanked: 1,873 times | Joined on Feb 2011 @ The Netherlands
#72
Last time I tried BM it didn't had an console, where did I miss something? :P

Well I guess your issue with act-dead is probably the reboot bug with charger inserted. If my battery died and plugging in the charger I am having a hard time booting normally, I accepted it... ;p



My question stands, where do I need to put modprobe fbcon. Messing with these scripts is some serious business and I don't want to reflash as I did it 2 weeks ago ;p Just to be sure
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#73
Well I have put it in /sbin/preinit on line 341, just after:

Code:
 prepare_core

 enter_state
And yes this IS serious business, if you balls this up you have brorken in a way not even backup menu can fix...

(to be fair only a total nobber could and would balls this up)
__________________
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 3 Users Say Thank You to vi_ For This Useful Post:
Posts: 1,163 | Thanked: 1,873 times | Joined on Feb 2011 @ The Netherlands
#74
everything is working fine I switched off the device for the first time => Power on=> dim nokia and dim framebuffer, till enter you lock code popped up and it was alright. (dim: the same dim as when you flash ur device)

Did a second power cycle and everything was as it should: Big blue bright Nokia followed by framebuffer and ending with the 5 dots.

So I had the sort of the same strange thing like you the first time... Strange, couldn't reproduce it.
 

The Following User Says Thank You to mr_pingu For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#75
Originally Posted by mr_pingu View Post
everything is working fine I switched off the device for the first time => Power on=> dim nokia and dim framebuffer, till enter you lock code popped up and it was alright. (dim: the same dim as when you flash ur device)

Did a second power cycle and everything was as it should: Big blue bright Nokia followed by framebuffer and ending with the 5 dots.

So I had the sort of the same strange thing like you the first time... Strange, couldn't reproduce it.
Ignore ~50% of what I am saying, I am in the midst of a babbling, caffeine induced hack frenzy.
__________________
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 3 Users Say Thank You to vi_ For This Useful Post:
Posts: 3,074 | Thanked: 12,964 times | Joined on Mar 2010 @ Sofia,Bulgaria
#76
Originally Posted by vi_ View Post
Ignore ~50% of what I am saying, I am in the midst of a babbling, caffeine induced hack frenzy.
adding
modprobe fbcon
just before
init_system

in /sbin/preinit works here.
 

The Following 4 Users Say Thank You to freemangordon For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#77
For the record, while putting modprobe fbcon at the beginning of /sbin/preinit does make framebuffer console load even when plugging in a turned off N900 to charge, I find that to be just fine. vi_'s post a couple posts above mine, though, is probably the right way to do it if you want a recovery shell only during 'normal' boots.

- Edit -
By just fine, I mean to say that even with kernel-power, it loads\oots/charges correctly in all situations I've dealt with (I might be wrong on that, of course, but I don't notice any issues.

Last edited by Mentalist Traceur; 2011-11-21 at 18:12.
 

The Following 2 Users Say Thank You to Mentalist Traceur For This Useful Post:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#78
Good news!

Maemo Community can modify & redistribute shell script /sbin/preinit for open source community projects. See Quim Gil post: https://bugs.maemo.org/show_bug.cgi?id=12228#c9
 

The Following 10 Users Say Thank You to pali For This Useful Post:
explit's Avatar
Posts: 592 | Thanked: 1,603 times | Joined on Apr 2010 @ Berlin / Germany
#79
Originally Posted by vi_ View Post
The line:

Code:
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
Does not appear in /sbin/preinit...
The line
export PATH=/usr/sbin:/usr/bin:/sbin:/bin

exist only in /sbin/preinit if you have multiboot installed.

If You don't have multiboot, You will have another /sbin/preinit.
Importand is to set modprobe fbcon very early.

If You have bootmenu - use the script bootmenu.sh to put
modprobe fbcon in.

Best regards

ExPLIT
 

The Following 2 Users Say Thank You to explit For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#80
Originally Posted by reinob View Post
I don't know where to look, but something is messing up the date/time. However given that at least my zone settings are being kept, I might just activate the "update automatically" (I've never wanted to use that, it seems to randomly mess-up calendar events and alarms, just like in Symbian).
I just edited /recovery.sh to do minishutdown instead of minireboot (reboot wasn't working anyway), but the date and time are still being reset.
 

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

Tags
console, console-mode, framebuffer, recovery, recovery-mode


 
Forum Jump


All times are GMT. The time now is 18:37.