Author Topic: Nitrogen not restoring wallpaper  (Read 1053 times)

jedi

  • DEFCON 1
  • Posts: 1507
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
Nitrogen not restoring wallpaper
« 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...
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

PackRat

  • Posts: 1888
    • View Profile
Re: Nitrogen not restoring wallpaper
« Reply #1 on: December 24, 2016, 05:39:48 PM »
What's the order in your autostart - Who's on first, conky or nitrogen?
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 3918
    • View Profile
    • VSIDO Community
Re: Nitrogen not restoring wallpaper
« Reply #2 on: December 24, 2016, 10:07:04 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 
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 3918
    • View Profile
    • VSIDO Community
Re: Nitrogen not restoring wallpaper
« Reply #3 on: December 24, 2016, 10:19:02 PM »
ISO's now look like this

Code: [Select]
(sleep 3s && conky -c ~/.conkyrc) &
(sleep 6s && nitrogen --restore) &
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1888
    • View Profile
Re: Nitrogen not restoring wallpaper
« Reply #4 on: December 24, 2016, 10:42:29 PM »
I would also put nitrogen first - let it restore the wallpaper before conky starts.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 3918
    • View Profile
    • VSIDO Community
Re: Nitrogen not restoring wallpaper
« Reply #5 on: December 24, 2016, 10:43:49 PM »
^ that's how I originally had it and it failed..
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1888
    • View Profile
Re: Nitrogen not restoring wallpaper
« Reply #6 on: December 25, 2016, 12:41:46 AM »
This is what I pulled of the live VSIDO -

Code: [Select]
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 -

Code: [Select]
<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.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 3918
    • View Profile
    • VSIDO Community
Re: Nitrogen not restoring wallpaper
« Reply #7 on: December 25, 2016, 12:45:03 AM »
I just uploaded the new ISO's that has the following changes on it now

Code: [Select]
(sleep 3s && conky -c ~/.conkyrc) &
(sleep 6s && nitrogen --restore) &

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

VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

jedi

  • DEFCON 1
  • Posts: 1507
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
Re: Nitrogen not restoring wallpaper
« Reply #8 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.
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

VastOne

  •      v-ger
  • Posts: 3918
    • View Profile
    • VSIDO Community
Re: Nitrogen not restoring wallpaper
« Reply #9 on: December 25, 2016, 01:15:42 AM »
I'll redo the ISO's

Thanks
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 3918
    • View Profile
    • VSIDO Community
Re: Nitrogen not restoring wallpaper
« Reply #10 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
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1888
    • View Profile
Re: Nitrogen not restoring wallpaper
« Reply #11 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:

Code: [Select]
own_window = 'desktop',
to

Code: [Select]
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
Code: [Select]
# 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.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 3918
    • View Profile
    • VSIDO Community
Re: Nitrogen not restoring wallpaper
« Reply #12 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
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 3918
    • View Profile
    • VSIDO Community
Re: Nitrogen not restoring wallpaper
« Reply #13 on: December 26, 2016, 03:38:56 PM »

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
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO