Topic: [SOLVED] Momentary Gray Screen on OB Start

I'm now three, or is it four days into Openbox, and having a real big time.  I'd used it once before in late 2007 or early 2008, adding it on top of the default Xandros that came on my ASUS 701 4G 1GB RAM and I thought I was some kind of something, it being my first mod to my first computer.  Then one day someone told me I couldn't do that.  yikes  I'll bet someone told the Wright Brothers a time or two that man couldn't fly, I thought to myself.  wink

But enough nonesense.  I didn't know what to name my thread but a brief description may help.  I have a plain black Debian GRUB screen, a black #! pulsating logo screen, a black log-in screen, a Momentary Gray Screen on OB Start then my black desktop.  Needless to say that one or two second gray screen, a remnant of the default color scheme, looks bad.  And it irks me.

So my question is: how do I remove or recolor that Momentary Gray Screen on OB Start?  hmm


EDIT -- SOLVED --  http://crunchbanglinux.org/forums/post/164790/#p164790

Last edited by dubois (2011-11-24 22:09:50)

My formula for living is quite simple. I get up in the morning and I go to bed at night. In between, I occupy myself as best I can - Cary Grant

The Old Codger’s Lament

Re: [SOLVED] Momentary Gray Screen on OB Start

I think it is OB not reading your entry for Nitrogen (or whatever you set wallpaper with) quickly enough.

Where do you have this entry in autostart.sh? Try placing it at the top, so it's the first entry.

Could be completely wrong though

Let's do it and don't screw it.
      Github || Deviantart

Re: [SOLVED] Momentary Gray Screen on OB Start

Hmm.  I didn't put anything in autostart, I just clicked nitrogen, chose my black wallpaper, clickety-click.  Would you mind telling me what should go in the autostart file?

My formula for living is quite simple. I get up in the morning and I go to bed at night. In between, I occupy myself as best I can - Cary Grant

The Old Codger’s Lament

Re: [SOLVED] Momentary Gray Screen on OB Start

It should be there in ~/.config/openbox/autostart.sh. If it is, open it in your favorite text-editor. If it is not, copy it from /etc/xdg/openbox/autostart.sh

When you open it, look for any line that says nitrogen --restore. When you find it, move the entry to the top of the file so it is the first entry.

Last edited by Unia (2011-11-24 14:56:51)

Let's do it and don't screw it.
      Github || Deviantart

Re: [SOLVED] Momentary Gray Screen on OB Start

Hi Dubois,
This ...

# Set a background color
BG=""
if which hsetroot >/dev/null; then
    BG=hsetroot
else
    if which esetroot >/dev/null; then
    BG=esetroot
    else
    if which xsetroot >/dev/null; then
        BG=xsetroot
    fi
    fi
fi
test -z $BG || $BG -solid "#303030"

is a snippet of code from /etc/X11/openbox/autostart.sh
and it is reponsable for that gray background you see in a flash between starting the openbox window manager and then executing your $HOME/.scripts/openbox/autostart.sh

Change #303030 to #000000 to make that a solid black background.

hth

If you poke the bear it is going to come after you.

Re: [SOLVED] Momentary Gray Screen on OB Start

Unia, thanks for your comment.  It was easy enough to do, but nothing is changed -- um, except after log-in the was a command for a tty which appeared from nowhere -- it added an additional 8 seconds to boot time, then the gray screen, then my black wallpaper.  sad

For what's it's worth, I've made no changes to the Openbox  autostart script.  Xfce is another story...

Last edited by dubois (2011-11-24 15:17:57)

My formula for living is quite simple. I get up in the morning and I go to bed at night. In between, I occupy myself as best I can - Cary Grant

The Old Codger’s Lament

Re: [SOLVED] Momentary Gray Screen on OB Start

xaos52, I didn't have anything like that in my /etc/X11/openbox/autostart.sh so I added it to my ~/openbox/autostart.sh and it works.  It works but there's a flash or flicker where before there was the gray screen.  A marked improvement for sure.  smile 

When and if I'm able to resolve this completely it'll no doubt put an end to my noobie Openbox questions.  Thanks to both of you.


EDIT -- After making the changes posted by xaos52 this seems to be resolved.  There's still a little flicker but I'm sure I wont notice it by next weekend.  big_smile

The hang at tty1 prompt was the result of a partial line of code that needed to be deleted -- bad editing on my part and a lesson learned.  Thanks again for your help, guys.  This topic is [SOLVED]

Last edited by dubois (2011-11-24 22:05:41)

My formula for living is quite simple. I get up in the morning and I go to bed at night. In between, I occupy myself as best I can - Cary Grant

The Old Codger’s Lament