Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initrd for fbsplash but tuxonice built-in - config problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Sat Jan 10, 2009 10:30 pm    Post subject: initrd for fbsplash but tuxonice built-in - config problem Reply with quote

If I let TuxOnIce load before initrd then hibernation works fine but for a while my fbsplash is not there during bootup. So I went to menuconfig and enabled the option that make TuxOnIce ignore the late system call and load after the initrd. Now my splash is great - all the way between grub and gdm, but TuxOnIce doesn't get loaded so I cannot resume from a hibernation (it just boots up and corrects file system errors ;/).

I found this:
http://www.gentoo-wiki.info/HOWTO_TuxOnIce#Initrd.2Finitramfs_with_TuxOnIce

But where should I put this:
Code:
echo 1 > /sys/power/tuxonice/do_resume

in Gentoo?

BTW I'm using the new tuxonice-sources-2.6.28 with tuxonice-userui-0.7.3 (actualy r1 because I had to modify the ebuild to enable the fbsplash - it's here https://bugs.gentoo.org/show_bug.cgi?id=254400)
Back to top
View user's profile Send private message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Sun Jan 11, 2009 12:30 am    Post subject: Reply with quote

what do you have in your initramfs? init from initramfs should make whatever is needed to make resume device accessible (decrypt or smth), then check /sys/power/tuxonice/image_exists and either echo 1 > /sys/power/tuxonice/do_resume or boot normally.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Sun Jan 11, 2009 12:41 am    Post subject: Reply with quote

My initrd is generated with splash_geninitramfs. I have really no idea what's in it. All I need to boot is in the kernel - I have a few other non-critical modules that I just load later on (wifi, fuse and vbox driver), so I can just boot without the initrd and the lack of bootsplash is the only difference.

My problem is, how do I make use of the advice I linked to? I don't know where in the Gentoo init scripts this should be...I don't actually know anything about those scripts aswell ;]
Back to top
View user's profile Send private message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Sun Jan 11, 2009 1:07 am    Post subject: Reply with quote

you don't put that line anywhere on / everything that is run from / means that it is too late to resume. your only chance is doing that inside initramfs. it is also possible that there is just something wrong with tuxonice and fbsplash setup, rc8 is kinda buggy w.r.t splash things according to mailing lists. could you try with .26 and rc7? if all else fails you can also try creating init in initramfs with that single resume line.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Sun Jan 11, 2009 8:58 pm    Post subject: Reply with quote

I'm still a total noob when it comes to linux startup procedure...

That's what in my initrd:
Code:
nomad szczerb # zcat /boot/fbsplash-gentoo-noia | cpio --list
.
dev
dev/null
dev/misc
dev/tty0
dev/console
dev/fb
dev/vc
lib
lib/splash
lib/splash/proc
lib/splash/sys
etc
etc/splash
etc/splash/gentoo-noia
etc/splash/gentoo-noia/images
etc/splash/gentoo-noia/images/verbose-1280x800.png
etc/splash/gentoo-noia/images/background-1280x800.png
etc/splash/gentoo-noia/1280x800.cfg
etc/splash/gentoo-noia/Vera.ttf
root
sbin
sbin/fbcondecor_helper
sbin/splash_helper
2682 blocks
Without the tuxonice patch that's how my boot looks:
1. Grub (configured to start my kernel right away with 0 delay and hidden menu) writes a few lines to the screen that I don't really get enough time to read.
2. The splash image appears with "Initializing kernel" for a few seconds.
3. The splash image gets those icons on the bottom which correspond to services staring.
4. The screen flickers and X starts with gdm.

Now that I configured TuxOnIce (in menuconfig) to use some late system call to run itself before the initrd:
1. Grub (configured to start my kernel right away with 0 delay and hidden menu) writes a few lines to the screen that I don't really get enough time to read.
2. The splash image appears with "Initializing kernel" for a much shorter time (almost just blinks).
2a. I See everything between the kernel init and mounting filesystems.

3. The splash image gets those icons on the bottom which correspond to services staring.
4. The screen flickers and X starts with gdm.

I can live with that, but I would be gratefull if you could explain whether I should file a bug somewhere or maybe there is something non-invasive that I can do to have my less-geeky-more-pretty boot back ;]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum