VSIDO Community

VSIDO Support => General Support => Topic started by: jedi on December 24, 2016, 04:42:10 AM

Title: Nitrogen not restoring wallpaper
Post by: jedi on December 24, 2016, 04:42:10 AM
Just a heads up to let you know that there is a known bug that is causing Nitrogen to not replace your wallpaper on a logout or reboot.  It is because of Conky using the 'desktop' own_window_type. Nitrogen 'sees' that and thinks it is an overlay covering the whole desktop.  So, no wallpaper.  I've gotten around it by using the (sleep 10s && launch foo here) in my autostart file in ./.fluxbox directory.  YMMV...
Title: Re: Nitrogen not restoring wallpaper
Post by: PackRat on December 24, 2016, 05:39:48 PM
What's the order in your autostart - Who's on first, conky or nitrogen?
Title: Re: Nitrogen not restoring wallpaper
Post by: VastOne on December 24, 2016, 10:07:04 PM
Quote from: PackRat on December 24, 2016, 05:39:48 PM
What's the order in your autostart - Who's on first, conky or nitrogen?

Conky is first up... Just corrected this on the ISO's and tested it

I have nitrogen on a 10s pause and it all starts the way is should .. I am going to tweak the times a bit make conky 3s and nitrogen 6s delays

Edit - Settled on 3s and 6s respectively 
Title: Re: Nitrogen not restoring wallpaper
Post by: VastOne on December 24, 2016, 10:19:02 PM
ISO's now look like this

(sleep 3s && conky -c ~/.conkyrc) &
(sleep 6s && nitrogen --restore) &
Title: Re: Nitrogen not restoring wallpaper
Post by: PackRat on December 24, 2016, 10:42:29 PM
I would also put nitrogen first - let it restore the wallpaper before conky starts.
Title: Re: Nitrogen not restoring wallpaper
Post by: VastOne on December 24, 2016, 10:43:49 PM
^ that's how I originally had it and it failed..
Title: Re: Nitrogen not restoring wallpaper
Post by: PackRat on December 25, 2016, 12:41:46 AM
This is what I pulled of the live VSIDO -

sleep 1
{
compton --config ~/.compton.conf &
(sleep 3s && wicd-gtk --tray) &
(sleep 3s && conky -c ~/.conkyrc) &
nitrogen --restore &
## (sleep 3s && lxpanel) &
<snip>


I'd try it like -


<snip>

nitrogen --restore &

compton &
(sleep 3s && conky) &
(sleep 3s && tint2-bottom) &
(sleep 3s && tint2-top) &

< the apps like wicd --tray , no particular order >


Let nitrogen restore the wallpaper before anything else starts and keep it out of the sleep routines - maybe even add a sleep condition to compton. Then start up all those apps after the tint2 system tray is all set to go.

The startup file is read top-bottom and mixing the "sleep" and "&" may be causing some of the problem.

Edit - this doesn't always work - No problem with it on the desktop computer, wallpaper fails to restore on the laptop. Setup similar to what vastone previously posted works.
Title: Re: Nitrogen not restoring wallpaper
Post by: VastOne on December 25, 2016, 12:45:03 AM
I just uploaded the new ISO's that has the following changes on it now

(sleep 3s && conky -c ~/.conkyrc) &
(sleep 6s && nitrogen --restore) &


It works... is there any particular reason why it should not be done this way?

Title: Re: Nitrogen not restoring wallpaper
Post by: jedi on December 25, 2016, 01:14:24 AM
I'm sorry guys.  Been out of commission lately due to cavities.  I ended up starting Nitrogen first, then putting a 30 second pause on Conky.  30 seconds is extreme but I really don't care as long as it worked.  Mine is all set running Nitrogen first and delaying the Conky's.
Title: Re: Nitrogen not restoring wallpaper
Post by: VastOne on December 25, 2016, 01:15:42 AM
I'll redo the ISO's

Thanks
Title: Re: Nitrogen not restoring wallpaper
Post by: VastOne on December 25, 2016, 01:55:19 AM
I have traced the original bug and have asked the dev what the status of this is (https://github.com/l3ib/nitrogen/issues/86#issuecomment-262435755)
Title: Re: Nitrogen not restoring wallpaper
Post by: PackRat on December 25, 2016, 02:27:14 AM
from the nitrogen dev -

Quote<snip>
I've discovered an issue with Nitrogen and Conky (with own_window/own_window_type='desktop'
<snip>

based on that comment, I switched from:

own_window = 'desktop',

to

own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',


and everything seems to be working fine with running nitrogen before conky:

~/.fluxbox/startup
# set wallpaper
# fbsetbg -c -r "$HOME/wallpaper" &
nitrogen --restore &

(sleep 2s && compton) &
(sleep 2s && tint2) &
(sleep 2s && conky -dc $HOME/conky/conkyfboxrc) &
#(sleep 10s && conky -dc $HOME/conky/conkyfboxrc) &

(sleep 2s && wicd-gtk --tray) &
# (sleep 2s && nitrogen --restore) &


Maybe tintker with the own_window_type 'normal' and own_window_type = 'override' settings and see if you get some results you like.
Title: Re: Nitrogen not restoring wallpaper
Post by: VastOne on December 25, 2016, 02:30:40 AM
My personal one was always normal until Jedi brought this issue up  ...  :-[  and there is NO issue when it is normal

I cannot recall why the ISO's are set to desktop but I am sure there was a reason for it

:D

I do know that the fonts in the top conky bar looks better when it is set to desktop vs normal
Title: Re: Nitrogen not restoring wallpaper
Post by: VastOne on December 26, 2016, 03:38:56 PM
Quote from: PackRat on December 25, 2016, 12:41:46 AM

Edit - this doesn't always work - No problem with it on the desktop computer, wallpaper fails to restore on the laptop. Setup similar to what vastone previously posted works.


Just came on to say basically the same thing.. on my desktop, your proposal of putting nitrogen works perfectly but on the build machines (v-box setup) it will only work the way I now have it on the ISO's

Strange strange strange