Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Play with the fake startup progress bar System 10.4
Tiger only hintOver on Daring Fireball, John Gruber has a great writeup on the "fake" startup progress bar in Tiger. Head over there to read all the details about it, but here's the interesting bit. Open a Terminal and type:
/usr/libexec/WaitingForLoginWindow
When you press Return, the "Starting Mac OS X" progress window appears (don't worry, nothing's actually happening). To make it go away, either wait for it to finish, or just type killall WaitingForLoginWindow in the Terminal window. Read John's writeup for more info, including details on how OS X guesstimates how long to make the progress bar last.
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[22,809 views]  

10.4: Play with the fake startup progress bar | 14 comments | Create New Account
Click here to return to the '10.4: Play with the fake startup progress bar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Play with the fake startup progress bar
Authored by: jzdziarski on Jun 28, '05 11:54:56AM

One thing this article failed to mention was that the OS writes the previous boot time to /var/db/loginwindow.boottime, which WaitingForLoginWindow uses to pace itself. Therefore, I wouldn't say it's "Fake", but it's rather time-oriented instead of process-oriented. My old Apple ][gs was the same way - the progress bar came up while the OS was still in la la land, bringing itself up. Apple is all about smoothness and elegance, and a process (or events) based progress bar is chunky, inaccurate, and one of the things we all hate about windows (sitting there at 99% for 10 minutes). By having a progress bar that bases itself on actual estimated boot time, you have a smoother and more accurate bar...I personally like it.

Yes it can be inaccurate if you make a sudden change to your OS (such as booting up a new service), but this corrects itself the next time it boots.



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: tobyc on Jun 28, '05 03:00:17PM

Perhaps fake isn't the correct term, instead one could call it a place holder. The fact that it writes it's previous time to a file and uses that to guage the speed of the progress bar upon the next boot implies that it is a place holder rather than a real progress bar. It isn't guaging how fast your computer is actually starting up nor is it giving you an indication of what is actually happening it is simply giving you an estimate based off of previous starts. This is nice if you regularly shut down your computer but if you only shut down infrequently of for software updates then the bar can be practically meningless.

At least with the previous startup bar it gave you some indication of which services were launching and how long they were actually taking.

One nice thing is that Tiger boots much faster than 10.3 did



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: gidds on Jun 28, '05 05:56:00PM

AIUI, it's not showing you how fast the computer's actually booting up, because it can no longer TELL how fast the computer's booting up. It has a list of services to start; in previous version, it would start one and then wait for it to complete before starting the next; so it was easy to tell how far it'd got. Now, though, it starts them all in parallel, which can be much faster, but means you don't get the nice linear progress measurement -- you just have to wait until they're all done.

---
Andy/



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: feyd on Jun 28, '05 12:47:50PM
If, like me, you feel that the progress bar is fairly pointless after learning of this, you can get rid of it. Simply type

sudo mv /usr/libexec/WaitingForLoginWindow /usr/libexec/old.WaitingForLoginWindow
Now, because I have my comp. set to verbose boot I simply get my boot msgs and then a second or two of plain blue screen before the login window appears. I have not seen any errors reported to the logs or other oddities because of this yet. But if your comp does become borked for some reason simply boot into single-user mode (Cmd + S) and type:

mv /usr/libexec/old.WaitingForLoginWindow /usr/libexec/WaitingForLoginWindow
and then

shutdown -r now
Cheers, ~feyd

[ Reply to This | # ]
Hack the startup progress bar
Authored by: Juneappal on Jun 28, '05 11:29:55PM

This is a great opportunity for someone to write a little hack that replaces the fake bar with a dancing moof or a set of chompers biting an apple or something like that. Any programmers out there with time and ideas?



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: GlowingApple on Jun 29, '05 11:46:23AM

Is there a way to always have your Mac boot in verbose mode? Or do you just use the key combo on every restart?

---
Jayson --When Microsoft asks you, "Where do you want to go today?" tell them "Apple."



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: Anonymous on Jun 29, '05 12:19:48PM
sudo nvram boot-args="-v"

[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: bdog on Jun 29, '05 10:21:26PM

This is great feyd! Disabling that and using verbose mode is the true geeky way to let OS X boot. I had to reboot just to see it, and it is slick.

Oh, and BTW, when security updates and OS updates are released, I'd download the package and look and see what files it updates. If it updates WaitingForLoginWindow, then you better rename the file before doing the update! But I bet they will never update it in Tiger.



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: bdog on Jun 28, '05 07:38:55PM

1 nice thing that I miss is the name of what service is loading. It can be handy seeing what service may be hanging the boot process. But it's half irrelivent now that all services start at the same time (although it would be sweet if the name of a service appeared of it failed loading, or was hung up)



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: jzdziarski on Jun 28, '05 08:01:47PM

In order to boot up so fast, I *suspect* that many services are started in the background, rather than the foreground. So it might not even start hanging until after you log in =)



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: bdog on Jun 29, '05 10:10:06PM

I'm referring to the items in /System/Library/StartupItems , which DO load before you log in.



[ Reply to This | # ]
10.4: Play with the fake startup progress bar
Authored by: geoffsaulnier on Sep 30, '05 08:41:45AM

And don't forget all the
[/Library]/System/LaunchDaemons/* and [/Library]/System/LaunchAgents/*

They start up as defined in the .plist files, so some will probably start at boot.

When you log in, all your ~/Library[StartupItems|LaunchDaemons|LaunchAgents]
start.

How the hell do you get linebreaks or carriage returns in text mode in this damn forum!!!!!!!

G.


---
___<br>
Geoff Saulnier - Mac, *NIX, perl, hack!!



[ Reply to This | # ]
How about "get real boot progress"?
Authored by: resuna on Jul 11, '05 01:54:08PM

I guess after I upgrade to Tiger I'll switch to verbose boot in Open Firmware. It's not as pretty, but not having real boot progress information is simply unacceptable.



[ Reply to This | # ]
How about "get real boot progress"?
Authored by: bdog on Aug 20, '05 11:34:07PM

No need to wait. Even after you update your system, verbose mode will still be on. If you reset PRAM, then it will be off.



[ Reply to This | # ]