Find the answer to your Linux question:
Results 1 to 10 of 10
So what started as a very simple process is now frustrating me more than it ever should. whenever I started fluxbox it used to load the wrong background and I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133

    fluxbox seems to load twice.


    So what started as a very simple process is now frustrating me more than it ever should.

    whenever I started fluxbox it used to load the wrong background and I would manually change it. I started going through my fluxbox configuration files looking for the offending picture, and found it in a few places including .fluxbox/lastwallpaper, .fluxbox/startup, and .fluxbox/styles. It may be worth mentioning that lastwallpaper had both the correct and incorrect backgrounds in it.

    So naturally i change all of the above to the proper wallpaper and then kill fluxbox and restart it. Well now instead of the wallpaper the background is just black, and conky is not rendering properly to the screen. Everything was also running extremely slowly. Seemed odd, so I decided to kill fluxbox again. When I exit fluxbox via the flux menu, my background appears and conky shows up on the desktop. everything works as usual, and it seems to run faster. When I exit again, it drops down to the console. I've tried reversing what I did in the first place, but I cant stop it from doing this.

    When I drop back down to the console, there are 2 messages that look interesting. Firstly i get: "Fluxbox: there is no background option specified in the style" and secondly: "XIO: fatal error 11 (resource temporarily unavailable) on xserver :0.0 after 487 requests (487 known processed) with 0 remaining"

    This is some pretty odd behaviour, and I dont know whats causing it, let alone how to fix it.
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

  2. #2
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    bump? The solution is still escaping me.
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    It sounds like you might have multiple issues going on here.

    Fluxbox recently changed the way it sets backgrounds, so the "Fluxbox: there is no background option specified in the style" error message is normal. I'm not sure what's causing the other error message, but I get that sometimes when I run FVWM, and have never figured out what's causing it. I don't get it in Fluxbox, however.

    What background setting app are you using?

    What file are you using to set your background?

    What file do you use to actually start Fluxbox?
    oz

  4. #4
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    to initialize fluxbox I just pull a 'startx'. Don't know if that answers your third question, but as far as I know X sorts all the WM stuff out.

    'fbsetbg -i' tells me its using Esetroot to set the background. Nothing unusual there as far as I know.

    as for what file I'm using to set the background, that was the only thing I changed since I screwed things up. So far I've been trying to get _anything_ to work, so long as it works properly, but no matter how much I toy with .fluxbox/init, .fluxbox/startup, and my fluxbox styles I'm still having this issue.
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Is startx looking in your .xinitrc file for exec fluxbox?

    If so, make sure you aren't starting any background apps from there, too. Just starting the background from the ~/.fluxbox/init file should be enough.
    oz

  6. #6
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    my xinitrc:

    #!/bin/sh
    # $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

    userresources=$HOME/.Xresources
    usermodmap=$HOME/.Xmodmap
    sysresources=/usr/lib/X11/xinit/.Xresources
    sysmodmap=/usr/lib/X11/xinit/.Xmodmap

    # merge in defaults and keymaps

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

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

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

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

    # Start the window manager:
    exec /usr/bin/startfluxbox

    seems to be checking out. Besides, I didnt even know where this file was until i looked for it right now. I doubt its part of the problem. I didnt modify it, at least.

    Everything points to it being a problem with my background, but even then I am really curious why I have to exit fluxbox twice to actually exit. That dosnt seem consistent with a background issue. On the other hand, the background is all I changed before this started.
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

  7. #7
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Yes, the .xinitrc file looks good.

    How about posting the contents of your ~/.fluxbox/init and theme file?
    oz

  8. #8
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    init:

    Code:
    session.screen0.toolbar.visible:	true
    session.screen0.toolbar.alpha:	100
    session.screen0.toolbar.onhead:	0
    session.screen0.toolbar.placement:	BottomLeft
    session.screen0.toolbar.widthPercent:	50
    session.screen0.toolbar.maxOver:	false
    session.screen0.toolbar.tools:	workspacename, prevworkspace, nextworkspace, iconbar, systemtray, prevwindow, nextwindow, clock
    session.screen0.toolbar.layer:	Top
    session.screen0.toolbar.onTop:	False
    session.screen0.toolbar.height:	0
    session.screen0.toolbar.autoHide:	false
    session.screen0.tabs.intitlebar:	true
    session.screen0.tabs.maxOver:	false
    session.screen0.menu.alpha:	100
    session.screen0.overlay.lineWidth:	1
    session.screen0.overlay.lineStyle:	LineSolid
    session.screen0.overlay.joinStyle:	JoinMiter
    session.screen0.overlay.capStyle:	CapNotLast
    session.screen0.iconbar.wheelMode:	Screen
    session.screen0.iconbar.deiconifyMode:	Follow
    session.screen0.iconbar.iconWidth:	70
    session.screen0.iconbar.iconTextPadding:	10l
    session.screen0.iconbar.usePixmap:	true
    session.screen0.iconbar.alignment:	Relative
    session.screen0.iconbar.mode:	Workspace
    session.screen0.slit.placement:	BottomRight
    session.screen0.slit.onhead:	0
    session.screen0.slit.maxOver:	false
    session.screen0.slit.layer:	Dock
    session.screen0.slit.alpha:	255
    session.screen0.slit.direction:	Vertical
    session.screen0.slit.onTop:	False
    session.screen0.slit.autoHide:	false
    session.screen0.window.focus.alpha:	100
    session.screen0.window.unfocus.alpha:	60
    session.screen0.titlebar.left:	Stick 
    session.screen0.titlebar.right:	Minimize Maximize Close 
    session.screen0.tab.placement:	TopLeft
    session.screen0.tab.width:	64
    session.screen0.edgeSnapThreshold:	0
    session.screen0.followModel:	Ignore
    session.screen0.menuMode:	Delay
    session.screen0.menuDelayClose:	0
    session.screen0.opaqueMove:	false
    session.screen0.strftimeFormat:	%l:%M
    session.screen0.focusNewWindows:	true
    session.screen0.workspaces:	1
    session.screen0.workspacewarping:	true
    session.screen0.windowScrollAction:	
    session.screen0.rowPlacementDirection:	LeftToRight
    session.screen0.defaultDeco:	NORMAL
    session.screen0.demandsAttentionTimeout:	500
    session.screen0.focusLastWindow:	true
    session.screen0.decorateTransient:	false
    session.screen0.autoRaise:	false
    session.screen0.reversewheeling:	false
    session.screen0.clickRaises:	true
    session.screen0.menuDelay:	0
    session.screen0.antialias:	false
    session.screen0.showwindowposition:	true
    session.screen0.userFollowModel:	Follow
    session.screen0.desktopwheeling:	true
    session.screen0.imageDither:	false
    session.screen0.windowMenu:	
    session.screen0.tabFocusModel:	ClickToTabFocus
    session.screen0.fullMaximization:	false
    session.screen0.rootCommand:	
    session.screen0.colPlacementDirection:	TopToBottom
    session.screen0.workspaceNames:	Desktop,
    session.screen0.resizeMode:	Bottom
    session.screen0.windowPlacement:	RowSmartPlacement
    session.screen0.focusModel:	ClickFocus
    session.screen0.windowScrollReverse:	false
    session.tabs:	true
    session.ignoreBorder:	false
    session.tabsAttachArea:	Window
    session.numLayers:	13
    session.forcePseudoTransparency:	false
    session.modKey:	Mod1
    session.configVersion:	1
    session.styleOverlay:	~/.fluxbox/overlay
    session.tabPadding:	0
    session.opaqueMove:	False
    session.slitlistFile:	~/.fluxbox/slitlist
    session.colorsPerChannel:	4
    session.keyFile:	~/.fluxbox/keys
    session.imageDither:	True
    session.doubleClickInterval:	250
    session.cacheMax:	200l
    session.styleFile:	/home/kage/.fluxbox/styles/monochromatic
    session.groupFile:	~/.fluxbox/groups
    session.focusTabMinWidth:	0
    session.autoRaiseDelay:	250
    session.cacheLife:	5l
    session.appsFile:	~/.fluxbox/apps
    session.menuFile:	~/.fluxbox/menu
    style:

    Code:
    ! Monochromatic style for fluxbox
    ! Autor: Dark_Savant (warl0ck) <warl0ck@eml.cc>
    
    
    style.name:	monochromatic
    style.author:	warl0ck
    style.date:	04/10/05
    style.credits:	
    style.comments:		
    
    toolbar.button.color:	#000000
    toolbar.button.picColor:	#008000
    toolbar.button:	Raised Bevel1 Solid Horizontal
    
    toolbar.button.pressed.color:	#000000
    toolbar.button.pressed.colorTo:	#001500
    toolbar.button.pressed:	Flat Solid Diagonal
    
    toolbar.clock.color:	#000000
    toolbar.clock.colorTo:	#001500
    toolbar.clock.textColor:	#006000
    toolbar.clock:	Raised Bevel2 Solid Vertical
    
    toolbar.color:	#000000
    toolbar.colorTo:	#008000
    toolbar.textColor:	#000000
    toolbar.font:	snap
    toolbar.justify:	Center
    toolbar:	Raised Bevel2 Solid Vertical
    toolbar.borderWidth:	0
    
    toolbar.label.color:	#000000
    toolbar.label.colorTo:	#001500
    toolbar.label.textColor:	#008000
    toolbar.label:	Raised Bevel1 Solid Horizontal
    
    toolbar.workspace:  Raised Bevel1 Solid Horizontal
    toolbar.workspace.color: #000000
    toolbar.workspace.colorTo:  #001500
    toolbar.workspace.textColor: #006000
    
    toolbar.windowLabel.color:	#000000
    toolbar.windowLabel.colorTo:	#001500
    toolbar.windowLabel.textColor:	#00A000
    toolbar.windowLabel:	Raised Bevel1 Solid Horizontal
    
    window.button.pressed.color:	#008000
    window.button.pressed.colorTo:	#001500
    window.button.pressed:	parentrelative
    
    window.button.focus.color:	#000000
    window.button.focus.picColor:	#008000
    window.button.focus:	flat solid
    
    window.button.unfocus.color:	#008000
    window.button.unfocus.colorTo:	#001500
    window.button.unfocus.picColor:	#004000
    window.button.unfocus:	parentrelative
    
    window.frame.focus.color:	#000000
    window.frame.focus:	flat solid
    
    window.frame.unfocus.color:	#008000
    window.frame.unfocus.colorTo:	#000000
    window.frame.unfocus:	parentrelative
    
    window.grip.focus.color:	#008000
    window.grip.focus.colorTo:	#001500
    window.grip.focus:	parentrelative
    
    window.grip.unfocus.color:	#008000
    window.grip.unfocus.colorTo:	#008000
    window.grip.unfocus:	parentrelative
    
    window.handle.focus.color:	#008000
    window.handle.focus:	flat solid
    
    window.handle.unfocus.color:	#008000
    window.handle.unfocus.colorTo:	#001500
    window.handle.unfocus:	parentrelative
    
    window.handleWidth: 2
    
    window.font:	snap
    window.justify:	Right
    
    window.label.focus.color:	#000000
    window.label.focus.textColor:	#009000
    window.label.focus:	flat
    
    window.label.unfocus.color:	#000000
    window.label.unfocus.colorTo:	#001500
    window.label.unfocus.textColor:	#005000
    window.label.unfocus:	parentrelative
    
    window.title.focus.color:	#000000
    window.title.focus.colorTo:	#001500
    window.title.focus:  flat
    
    window.title.unfocus.color:	#000000
    window.title.unfocus.colorTo:	#001500
    window.title.unfocus:	Raised Bevel1 Solid Vertical
    
    
    menu.title:			raised interlaced rectangle gradient
    menu.title.color:		rgb:0/0/0
    menu.title.colorTo:		rgb:00/55/00
    menu.title.textColor:		rgb:3/A/3
    menu.title.font:		anorexia
    menu.title.justify:		center
    
    menu.frame:			elliptic gradient
    menu.frame.color:		rgb:0/0/0
    menu.frame.colorTo:		rgb:0/1/0
    menu.frame.textColor:		rgb:0/6/0
    menu.frame.disableColor:	rgb:4/2/2
    menu.frame.font:	        anorexia
    menu.frame.justify:		center
    
    menu.bullet.position:		right
    menu.bullet:			triangle
    
    menu.hilite:			raised interlaced rectangle gradient
    menu.hilite.color:		rgb:00/00/00
    menu.hilite.colorTo:		rgb:00/55/00
    menu.hilite.textColor:		rgb:3/A/3
    
    borderColor:	#005000
    
    bevelWidth:	1
    handleWidth:	0
    borderWidth:	1
    frameWidth:	1
    
    menu.bullet:	Triangle
    menu.frame.disableColor:	#000000
    menu.bullet.position:	Right
    
    *Font: Anorexia
    after toying with both these and the .fluxbox/startup file I took out all background definitions in hopes of having it just not try anything at all. Unfortunately its still bogging down on anything that has transparency (my terminal) or anything that draws to the background (conky, which actually wont show unless I close fluxbox once or specifically open it, even though it _is_ indeed running)

    So I really dont know I guess worst-case scenario I could backup a few files, remove my .fluxbox folder, and then re-install fluxbox. But the scientist in me wants to know WHY! lol
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

  9. #9
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    I don't see anything wrong with either of those files.

    Rather than removing your .fluxbox folder, maybe you could log out of X, go to a terminal and "rename" your .fluxbox folder in case you want it later, then start X again to let the .fluxbox folder rebuild itself.

    If things work properly, there was clearly something wrong in the folder. Otherwise, I'm thinking it might be something to do with your xsession files.
    oz

  10. #10
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    that worked. I have fluxbox running properly. I started adding my old files one by one, and the first one killed it.

    my startup file seems to be the problem. I commented out all background declarations a long while ago, so those arent the problem afaik.

    it might be my conky -d... it says to end all running processes with an &, but the -d throws it into daemon mode, so its worked like that for a long time without issue
    Code:
    fluxbox startup-script:
    #
    # Lines starting with a '#' are ignored.
    
    # You can set your favourite wallpaper here if you don't want
    # to do it from your style.
    #
    # fbsetbg -f /home/kage/Pictures/wallpapers/widescreen/femme.png
    #
    # This sets a black background
    
    #/usr/X11R6/bin/fbsetroot -solid black
    
    # This shows the fluxbox-splash-screen
    # fbsetbg -C /usr/X11R6/share/fluxbox/splash.jpg
    
    # Other examples. Check man xset for details.
    #
    # Turn off beeps:
    # xset -b
    #
    # Increase the keyboard repeat-rate:
    # xset r rate 195 35
    #
    # Your own fonts-dir:
    # xset +fp "/home/kage/.fonts"
    #
    # Your favourite mouse cursor:
    # xsetroot -cursor_name right_ptr
    #
    # Change your keymap:
    # xmodmap "/home/kage/.Xmodmap"
    
    
    
    # Applications you want to run with fluxbox.
    # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
    #
    # unclutter -idle 2 &
    # wmnd &
    # wmsmixer -w &
    # idesk &
    conky -d
    xmms &
    xscreensaver -no-splash &
    # And last but not least we start fluxbox.
    # Because it is the last app you have to run it with ''exec'' before it.
    
    exec /usr/X11R6/bin/fluxbox
    # or if you want to keep a log:
    # exec /usr/X11R6/bin/fluxbox -log "/home/kage/.fluxbox/log"
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •