Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fluxbox black screen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Tue Mar 11, 2003 10:37 pm    Post subject: fluxbox black screen Reply with quote

i emerged fluxbox , and it didn't work but it seemed like it has put the name "fluxbox" in the login menu( which is nice!), then i downloaded and recompile fluxbox 0.14 and it works fine now (only can be run from command line and not from the menu). if i try to login using the "fluxbox" session, it 'd just give black screen and does nothing (how do i fix this?).
i think i should set some path or something ..

then i just thought i might just overwrite the old setting by creating ~/.xinitrc with exec fluxbox,so that no matter what session i choose from the menu, it'll bring fluxbox. but that didn't work either.

anyone has ideas?
thx
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Wed Mar 12, 2003 8:33 am    Post subject: Reply with quote

Which loginmanager do you use ?
Examine the configs of your loginmanager.
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Wed Mar 12, 2003 3:17 pm    Post subject: Reply with quote

i'm not quite sure which one , i think it's the gentoo one...where do i examine it?
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Wed Mar 12, 2003 3:43 pm    Post subject: Reply with quote

it's probably xdm,kdm or gdm. Look in /etc/rc.conf
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
tyler
n00b
n00b


Joined: 28 Aug 2002
Posts: 59
Location: toronto, ontario, canada

PostPosted: Wed Mar 12, 2003 4:16 pm    Post subject: Reply with quote

lotusvale wrote:
i'm not quite sure which one , i think it's the gentoo one...where do i examine it?


you go to mac, i go to mac, cool.

did you emerge fluxbox, or download/compile it?
Back to top
View user's profile Send private message
easykill
Apprentice
Apprentice


Joined: 07 Dec 2002
Posts: 230

PostPosted: Wed Mar 12, 2003 4:55 pm    Post subject: Reply with quote

if you are starting X with xdm (as it sounds like) you can see which display manager you are using by looking at /etc/rc.conf
it sounds like you have either gdm or kdm, as you said you have a login menu.

/etc/X11/Sessions holds all the scripts that are in the "menu," you could check the fluxbox one to make sure it looks correct.

post that here and also your /var/log/XFree86.0.log
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Wed Mar 12, 2003 11:35 pm    Post subject: Reply with quote

alright...i have DISPLAY MANAGER=gdm
and here's my /etc/X11/Session/Gnome:


Code:
#!/bin/sh

# Great new Gnome2 feature, AA
# We enable this by default

export GDK_USE_XFT=1

for errfile in "$HOME/.gnomerc-errors" "${TMPDIR-/tmp}/gnomerc-$USER" "/tmp/gnomerc-$USER"
do
   if ( cp /dev/null "$errfile" 2> /dev/null )
   then
      chmod 600 "$errfile"
      exec > "$errfile" 2>&1
      break
   fi
done
#
#  Distributors:
#  You should modify the paths here to fit your distro
#  If you need to do so, send me (jirka@5z.com) a patch
#  and I'll try to make the script detect the distro stuff
#

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

rh6sysresources=/etc/X11/xinit/Xresources
rh6sysmodmap=/etc/X11/xinit/Xmodmap

if [ -x "$HOME/.gnomerc" ]; then
   command="$HOME/.gnomerc"
elif [ -x /etc/X11/gdm/gnomerc ]; then
   command="/etc/X11/gdm/gnomerc"
else
   # as fallback in case the config is screwed
   command=`which gnome-session`
fi

sshagent=`which ssh-agent`
if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
    command="$sshagent -- $command"
fi

# merge in defaults
if [ -f "$rh6sysresources" ]; then
    xrdb -merge "$rh6sysresources"
fi

if [ -f "$sysresources" ]; then
    xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
    setxkbmap `cat "$sysxkbmap"`
    XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
    setxkbmap `cat "$userxkbmap"`
    XKB_IN_USE=yes
fi

#
# Eeek, this seems like too much magic here
#
if [ -z "$XKB_IN_USE" ] && [ ! -L /etc/X11/X ]; then
    if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
       xkbsymbols=`sed -n -e 's/^[     ]*XkbSymbols[   ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
       if [ -n "$xkbsymbols" ]; then
           setxkbmap -symbols "$xkbsymbols"
           XKB_IN_USE=yes
       fi
    fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
    if [ -f "$rh6sysmodmap" ]; then
       xmodmap "$rh6sysmodmap"
    fi

    if [ -f "$sysmodmap" ]; then
       xmodmap "$sysmodmap"
    fi

    if [ -f "$usermodmap" ]; then
       xmodmap "$usermodmap"
    fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for i in /etc/X11/xinit/xinitrc.d/* ; do
        if [ -x "$i" ]; then
       . "$i"
        fi
    done
fi

exec $command


where do i add the fluxbox command?
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Wed Mar 12, 2003 11:55 pm    Post subject: Reply with quote

tyler wrote:
lotusvale wrote:
i'm not quite sure which one , i think it's the gentoo one...where do i examine it?


you go to mac, i go to mac, cool.

did you emerge fluxbox, or download/compile it?

i first emerge it, then it didn't work for somewhat reason.
then i compiled from source and it works
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
easykill
Apprentice
Apprentice


Joined: 07 Dec 2002
Posts: 230

PostPosted: Thu Mar 13, 2003 1:03 am    Post subject: Reply with quote

well, for starters, Sessions/Gnome is for starting gnome, not starting fluxbox

there should be a fluxbox file in the Sessions directory...
You will want to select that from the xdm (gdm) menu...

X is starting up for you when you start your computer, correct?
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Thu Mar 13, 2003 1:20 am    Post subject: Reply with quote

yes x starts when booted up.

and this is /etc/X11/Session/fluxbox:


Code:
#!/bin/sh

exec /etc/X11/xdm/Xsession fluxbox


is there something wrong here?
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
easykill
Apprentice
Apprentice


Joined: 07 Dec 2002
Posts: 230

PostPosted: Thu Mar 13, 2003 2:11 am    Post subject: Reply with quote

my /etc/X11/Sessions/fluxbox is simply

/usr/bin/fluxbox

but i start with startx...i have quite the .xinitrc

Code:

stefan@beer stefan $ cat .xinitrc
xmodmap -e "pointer = 1 2 3 6 7 4 5" &
xmodmap -display :0.1 -e "pointer = 1 2 3 6 7 4 5" &
xmodmap -e "keycode 178=F14" &
xmodmap -e "keycode 236=F15" &
xmodmap -e "keycode 229=F16" &
xmodmap -display :0.1 -e "keycode 178=F14" &
xmodmap -display :0.1 -e "keycode 236=F15" &
xmodmap -display :0.1 -e "keycode 229=F16" &

imwheel -p -k -b "67" &
imwheel -p -k -b "67" -X :0.1 &
#set FSAA and other nvidia options
export __GL_FSAA_MODE="0"
export __GL_DEFAULT_LOG_ANISO="1"
export __GL_SYNC_TO_VBLANK="0"


xset s off
xset +dpms
xset dpms 1200 1200 1200

/usr/bin/fluxbox & wmpid=$!


#for Eterm
Esetroot /home/stefan/gentoo1280x1024.jpg
Esetroot -display :0.1 /home/stefan/gentoo-ice-light2-1024x768.jpg

xscreensaver -no-splash &

gkrellm2 -w &
fluxter -w &

numlockx

DISPLAY=:0.1 ksensors --nodock &

wait $wmpid

i prefer not to start X on bootup....partially cause i did that awesome bootsplash thing and i love seeing my console for a little bit at least
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Thu Mar 13, 2003 2:27 am    Post subject: Reply with quote

ok thanks...it works now...changing to /usr/bin/fluxbox
btw, what bootsplash thing you were talking about? :lol:
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
easykill
Apprentice
Apprentice


Joined: 07 Dec 2002
Posts: 230

PostPosted: Thu Mar 13, 2003 3:34 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=26494

it's great....kinda a project to set up correctly, although relatively easy if you ACCEPT_KEYWORDS="~x86" emerge bootsplash
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Thu Mar 13, 2003 7:01 am    Post subject: Reply with quote

wow...that's really nice actually...i might actually work on that soon..
would that mess up the system though (like eventually i need to reinstall the whole thing again? :lol: ) if say i screw it up ??
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
easykill
Apprentice
Apprentice


Joined: 07 Dec 2002
Posts: 230

PostPosted: Thu Mar 13, 2003 2:49 pm    Post subject: Reply with quote

no, worst case is it wouldn't boot or it would boot to a blank screen

just keep an entry in your grub or lilo configs that has an option called Gentoo Failsafe or something without any of the initrd or vga= video= lines...so it doesn't load the framebuffer.

[edit]if you do screw it up and can't boot, just boot off of the gentoo cd or a knoppix cd or something, and fix your system[/edit]
Back to top
View user's profile Send private message
zephyr1256
Apprentice
Apprentice


Joined: 10 Mar 2003
Posts: 170
Location: Kingsport, TN

PostPosted: Thu Mar 13, 2003 3:02 pm    Post subject: Reply with quote

All I had to do was put in my home directory .xinitrc file.
In my home directory:

Code:

echo "exec fluxbox" > .xinitrc


If you didn't already have .xinitrc, this will make startx start up fluxbox(assuming everything else is configured correctly).
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Thu Mar 13, 2003 3:35 pm    Post subject: Reply with quote

zephyr1256 wrote:
All I had to do was put in my home directory .xinitrc file.
In my home directory:

Code:

echo "exec fluxbox" > .xinitrc


If you didn't already have .xinitrc, this will make startx start up fluxbox(assuming everything else is configured correctly).


it works now without .xinitrc in home
i just have it /etc/X11/Session/fluxbox with exec /usr/bin/local/fluxbox
but i thought if you have .xinitrc in home, it'll overwrite the original setting right? but it didn't. maybe i should have .xsession in home?
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
lotusvale
Guru
Guru


Joined: 06 Mar 2003
Posts: 339
Location: Canada

PostPosted: Thu Mar 13, 2003 3:38 pm    Post subject: Reply with quote

easykill wrote:
no, worst case is it wouldn't boot or it would boot to a blank screen

just keep an entry in your grub or lilo configs that has an option called Gentoo Failsafe or something without any of the initrd or vga= video= lines...so it doesn't load the framebuffer.

[edit]if you do screw it up and can't boot, just boot off of the gentoo cd or a knoppix cd or something, and fix your system[/edit]


can i just have another option in grub that links to the old working image?
oh..but then can you have it with *.working?
_________________

-SuSe shot-
| -G shot-

Shadowrider's Lair
Back to top
View user's profile Send private message
easykill
Apprentice
Apprentice


Joined: 07 Dec 2002
Posts: 230

PostPosted: Thu Mar 13, 2003 4:39 pm    Post subject: Reply with quote

you can have as many entries in grub as you want, with as many old and differently enabled kernels as you want...modules can get screwy sometimes with this, but it's good for failsafe stuff...when you get a kernel that works, keep it as /boot/bzImage.failsafe and keep a grub entry for it, then you always have a fallback kernel to boot to.

Anyways, .xinitrc is used when you use startx to load your X, .xsession is used for xdm I believe. I used xdm for a week and decided i didn't like it...too often i just use command line root.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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