You are not logged in.

#1 2017-03-17 19:47:40

hhh
That's it!
Registered: 2015-09-17
Posts: 6,603
Website

BL stretch BUG: nitrogen --restore fails

nitrogen stretch/sid version 1.6.0-1 won't restore the wallpaper if you don't use a recognized D.E.

https://github.com/l3ib/nitrogen/issues/86

It's fixed in the upstream version 1.6.1, but Debian nitrogen currently has no maintainer.

https://tracker.debian.org/pkg/nitrogen

I doubt that 1.6.1 will make it into stretch. Even if someone here was to adopt the maintenance, would they be accepted as a Debian packager in time for stretch?

Options...

  • We maintain the upstream version and make another exception to our "Debian stable only OOTB" policy, yad and obmenu are already exceptions (any others I'm forgetting?)

  • We go back to feh, which is working fine.

  • We include lxsession in BL, giving nitrogen something to recognize (I'm using lxsession on my main partition and it works).


Other options?

If we/someone adopts nitrogen, it's another step towards BL being an option in Debian tasksel, no?

Online

#2 2017-03-17 19:52:00

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: BL stretch BUG: nitrogen --restore fails

hhh wrote:

nitrogen stretch/sid version 1.6.0-1 won't restore the wallpaper if you don't use a recognized D.E.

BunsenLabs declares itself as XFCE:

Helium: ~ $ echo $XDG_CURRENT_DESKTOP                                                    
XFCE

smile


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#3 2017-03-17 20:06:50

hhh
That's it!
Registered: 2015-09-17
Posts: 6,603
Website

Re: BL stretch BUG: nitrogen --restore fails

Lol, you think I just found the issue and reported it? big_smile I'm posting from a brand new BL install, I just upgraded it to stretch and this is what I get...

hhh@BL-stretch64:~$ nitrogen
UNKNOWN ROOT WINDOW TYPE DETECTED, will attempt to set via normal X procedure

The wallpaper gets set, but no wallpaper restoration after logging out. BL can declare all it wants, something ain't right.

It's not the conky issue referenced in the GitHub issue either, I disabled conky and still no joy. feh works, or using nothing works (lightdm sets the wallpaper), but neither is particularly user friendly.

Online

#4 2017-03-17 20:16:50

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: BL stretch BUG: nitrogen --restore fails

hhh wrote:

Lol, you think I just found the issue and reported it?

Erm, no, sorry, I got excited and posted without thinking (again) ops

However, I cannot reproduce this issue in my Helium system — the wallpaper is set correctly on first boot and if I change it then log out & back in again the new wallpaper shows up.

I get no error messages if I run it from a terminal.

Helium: ~ $ apt-cache policy nitrogen
nitrogen:
  Installed: 1.6.0-1
  Candidate: 1.6.0-1
  Version table:
 *** 1.6.0-1 500
        500 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status

EDIT: this system started out as stretch, no `dist-upgrade` was used.

Last edited by Head_on_a_Stick (2017-03-17 20:17:56)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#5 2017-03-17 20:36:02

hhh
That's it!
Registered: 2015-09-17
Posts: 6,603
Website

Re: BL stretch BUG: nitrogen --restore fails

My apologies too. It's not the desktop detection, because I just ran nitrogen in a terminal on my main stretch setup (also dist-upgraded from jessie, I'll call this OS "Debian" as opposed to "BL") and I get the same warning. But the wallpaper gets restored, and it's not due to lxsession, that's ridiculous now that I think about it. I'm not running lxdesktop.

The difference is that I'm starting nitrogen --restore in Debian via a *.desktop file in ~/.config/autostart, and via ~/.config/openbox/autostart in BL. I tried the *.desktop way in BL and it works.

Color me clueless.

Online

#6 2017-03-18 18:27:54

hhh
That's it!
Registered: 2015-09-17
Posts: 6,603
Website

Re: BL stretch BUG: nitrogen --restore fails

*cough* I hadn't run update-grub from my main OS, so this partition was still booting to the 3.16 kernel. nitrogen --restore is working from ~/.config/openbox/autostart now that the 4.9.* kernel is being used.  ops Consider this RESOLVED for now.
I'll leave the ops in, because I hadn't disabled the wallaper.desktop autostart file I created. Still an issue.

Last edited by hhh (2017-03-19 16:49:05)

Online

#7 2017-03-18 19:03:39

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: BL stretch BUG: nitrogen --restore fails

hhh wrote:

I hadn't run update-grub from my main OS, so this partition was still booting to the 3.16 kernel.

To prevent this, disable os-prober in your main OS and use /etc/grub.d/40_custom for the BunsenLabs menu entry.

For the custom entry, use the symlinks in the root directory that always point to the current kernel image & initramfs.

Something like this should do it:

menuentry 'BunsenLabs' {
	set root=(hdX,Y)
	linux /vmlinuz root=/dev/sdZY ro quiet
	initrd /initrd.img
}

Replace X with the GRUB allocation for your main drive, this will be 0 (zero) for /dev/sda, 1 (one) for /dev/sdb, etc.

Replace Y with the number assigned to the root partition and replace Z with the drive letter (ie, a for sda, b for sdb, and so on).

This method will survive kernel updates and does not require that the GRUB menu be constantly re-configured  glasses


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#8 2017-03-19 16:49:35

hhh
That's it!
Registered: 2015-09-17
Posts: 6,603
Website

Re: BL stretch BUG: nitrogen --restore fails

^ Thanks for this!

Online

#9 2017-03-20 10:42:58

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,667

Re: BL stretch BUG: nitrogen --restore fails

Slightly offtopic: A good nitrogen replacement would be something that can use svg properly, including vectorial upsizeing.

Offline

#10 2017-03-20 12:23:26

hhh
That's it!
Registered: 2015-09-17
Posts: 6,603
Website

Re: BL stretch BUG: nitrogen --restore fails

^I agree.

Online

#11 2017-03-21 08:46:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,953
Website

Re: BL stretch BUG: nitrogen --restore fails

hhh wrote:

Still an issue.

Sorry, I'm confused. What exactly doesn't work in a standard BL install? What wouldn't work if users tweaked their systems to use .desktop files instead of openbox/autostart?

Wallpaper selection works fine for me in a Stretch-netinstall>helium-dev install, and persists OK after logouts.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#12 2017-03-21 11:39:32

hhh
That's it!
Registered: 2015-09-17
Posts: 6,603
Website

Re: BL stretch BUG: nitrogen --restore fails

Sorry, I'm confused myself!

The OB autostart isn't WFM re: nitrogen on 2 systems that I've upgraded from jessie, one BL and one vanilla. Using a *.desktop file works fine, so ignore my other proposals.

We can revisit this when we're closer to Helium and have a somewhat-Official upgrade procedure. Thanks!

Online

#13 2017-03-22 06:10:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,953
Website

Re: BL stretch BUG: nitrogen --restore fails

We should certainly keep an eye on this. It's good to squash bugs as they appear rather than let a huge pile build up. OTOH if we just sit tight someone upstream might do it for us...

(Anyway, the OB autostart will quite likely need something of a rewrite for Helium.)


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#14 2017-09-01 12:59:05

damo
....moderator....
Registered: 2015-08-20
Posts: 4,592

Re: BL stretch BUG: nitrogen --restore fails

I just noticed the bug error message  while testing BLOB. It happens if nitrogen is restored after a conky with "own_window" has been started.

$ nitrogen --restore
UNKNOWN ROOT WINDOW TYPE DETECTED, will attempt to set via normal X procedure

This may cause an issue when restoring saved themes with BLOB, but at least it seems to be non-fatal.

The workaround (until nitrogen v1.6.1 is available) is to set the wallpaper before running conkys. I'll have to change the order of restoring the items in BLOB saved settings.cfg sad


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#15 2017-09-01 14:34:48

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,953
Website

Re: BL stretch BUG: nitrogen --restore fails

damo wrote:

The workaround (until nitrogen v1.6.1 is available) is to set the wallpaper before running conkys.

This already happens in our Helium openbox/autostart, luckily. nitrogen on line 56 and conky on 75.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#16 2017-09-01 14:38:53

damo
....moderator....
Registered: 2015-08-20
Posts: 4,592

Re: BL stretch BUG: nitrogen --restore fails

^ Yes; I was flagging it up for other readers.  Also we need to ensure that it happens with BLOB hmm

I'm testing this with helium-dev-blob ATM.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#17 2017-09-02 07:14:31

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: BL stretch BUG: nitrogen --restore fails

damo wrote:

^ Yes; I was flagging it up for other readers.

Thank you.  Now I know the reason for #3 in my post regarding my experience installing and using BL-Helium-Dev.

johnraff wrote:

This already happens in our Helium openbox/autostart, luckily. nitrogen on line 56 and conky on 75.

Whoops...I guess not.  hmm  Still happens sporadically here.

Last edited by KrunchTime (2017-09-02 07:20:00)

Offline

#18 2017-09-02 07:26:11

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: BL stretch BUG: nitrogen --restore fails

I noticed in my debian stretch install (not bunsenlabs helium dev) that the lightdm greeter background pic replaced the desktop wallpaper set by nitrogen. It happened intermittently a few times and went away.

Offline

#19 2017-09-16 04:53:24

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: BL stretch BUG: nitrogen --restore fails

hhh wrote:

nitrogen stretch/sid version 1.6.0-1 won't restore the wallpaper if you don't use a recognized D.E.

https://github.com/l3ib/nitrogen/issues/86

It's fixed in the upstream version 1.6.1,...

Sorry to break the news, but v1.6.1 doesn't fix the issue.  Exhibiting the same issue on my BL-Unstable installs with version 1.6.1.  I'm now going to try feh.

Last edited by KrunchTime (2017-09-16 04:53:52)

Offline

#20 2017-09-16 07:59:54

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,953
Website

Re: BL stretch BUG: nitrogen --restore fails

^Are you sure it's not the wrong syntax in ~/.config/nitrogen/bg-saved.cfg?
in Stretch it now begins with

[xin_-1]

not the former

[:0.0]

I've had no issues with restoring wallpaper in helium-dev since making that change.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#21 2017-09-16 14:44:47

DustyB
Member
Registered: 2017-07-02
Posts: 61

Re: BL stretch BUG: nitrogen --restore fails

I have found this bug as well and it somehow has something to do with "autostart" when I change the autostart order for different programs it is either nitrogen or tint2 that fails to start .. finally while experimenting i found that everything goes back to normal if "conky" is #ed out in autostart .. then again i am a lay man in the company of many great men here so there is quite a big possibility that i am wrong

## Openbox autostart
## ====================
## When you login to your BunsenLabs Openbox session, this autostart script
## will be executed to set-up your environment and launch any applications
## you want to run at startup.
##
## Note: some programs, such as 'nm-applet' are run via XDG autostart.
## Run
## /usr/lib/x86_64-linux-gnu/openbox-xdg-autostart --list
## to list any XDG autostarted programs.
##
## More information about this can be found at:
## http://openbox.org/wiki/Help:Autostart
##
## If you do something cool with your autostart script and you think others
## could benefit from your hack, please consider sharing it at:
## http://forums.bunsenlabs.org (registration required)
##

### SETTINGS START

## Turn on/off system beep.
xset b off

## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25

## Add keyboard mapping.
#xmodmap -e "keysym Insert = Multi_key"

## Disable CapsLock
setxkbmap -option ctrl:nocaps
# alternative: use as compose key
#setxkbmap -option compose:caps

## Group start:
## 1. nitrogen - restores wallpaper
## 2. compositor
## 3. sleep - give compositor time to start
## 4. conky conky -q && \
## 5. tint2 panel
(\
nitrogen --restore && \
bl-compositor --start && \
sleep 2s && \
tint2 \
) &

## Start PulseAudio
## (This replaces /etc/xdg/autostart/pulseaudio.desktop
## which is disabled by ~/.config/autostart/pulseaudio.desktop.)
## NOTE: PulseAudio must be started before volumeicon
bl-start-pulseaudio-x11

## Volume control for systray
(sleep 2s && volumeicon) &

## Volume keys daemon
xfce4-volumed &

## Enable power management
xfce4-power-manager &

## Start Thunar Daemon
thunar --daemon &

### TOUCHPAD: comment out the next two entries if you don't have one

## Configure touchpad. See 'man synaptics' for more info.
synclient VertEdgeScroll=1 HorizEdgeScroll=1 TapButton1=1 2>/dev/null

## Disable touchpad while typing
syndaemon -i .5 -K -t -R -d &

### TOUCHPAD END

## GNOME PolicyKit authentication
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &

## Start the battery applet
# fdpowermon &

## Start Clipboard manager
# clipit &

### SETTINGS END

Last edited by DustyB (2017-09-17 09:35:09)

Offline

#22 2017-09-16 14:48:52

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: BL stretch BUG: nitrogen --restore fails

Anybody who experiences this problem should probably post their entire openbox autostart file.

This will print out a de-commented version:

grep -v '^#' ~/.config/openbox/autostart

We changed that file a while ago to tidy it up and these problems sound like they may be caused by the old version.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#23 2017-09-16 17:11:20

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,029

Re: BL stretch BUG: nitrogen --restore fails

I am unable to replicate this. However, does rearranging ~/.config/openbox/autostart to look like this help?

## Set a wallpaper then start the Conky session (the default conkyrc will run if no sessions have been set)
nitrogen --restore; bl-conky-session --autostart &

This will ensure that bl-conky-session only runs once nitrogen has restored it's wallpaper.

Offline

#24 2017-09-17 00:01:38

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: BL stretch BUG: nitrogen --restore fails

johnraff wrote:

^Are you sure it's not the wrong syntax in ~/.config/nitrogen/bg-saved.cfg?
in Stretch it now begins with

[xin_-1]

not the former

[:0.0]

I've had no issues with restoring wallpaper in helium-dev since making that change.

That's a new one to me.  I wasn't aware of anything else being required other than adding the appropriate entry in ~/.config/openbox/autostart.

Head_on_a_Stick wrote:

Anybody who experiences this problem should probably post their entire openbox autostart file.
...
We changed that file a while ago to tidy it up and these problems sound like they may be caused by the old version.

I'm opting to include most of the comments for better readability.  This is from my BL-Unstable install on my desktop, installed in June 2017.

### SETTINGS START

## Turn on/off system beep.
xset b off &

## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25 &

## Set root window color
## hsetroot -solid "#2E3436" &

### SETTINGS END

## GNOME PolicyKit authentication
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &

## Set a wallpaper
nitrogen --restore &

## Compton
## NOTE: composition must be started before tint2
bl-compositor --start &

## Start the tint2 session (the default tint2 will run if no sessions have been set)
(sleep=2s && bl-tint2-session) &

## Start the Conky session (the default conkyrc will run if no sessions have been set)
bl-conky-session --autostart &

## Start PulseAudio
## (This replaces /etc/xdg/autostart/pulseaudio.desktop
## which is disabled by ~/.config/autostart/pulseaudio.desktop.)
## NOTE: PulseAudio must be started before volumeicon
bl-start-pulseaudio-x11 &

## Volume control for systray
(sleep 2s && pnmixer) &

## Start xscreensaver
xscreensaver -no-splash &

## Start redshift
redshift -l [redacted] &

## Conky Accuweather 10-day forecast
(sleep 60s && conky -c /home/<user>/bin/1_accuweather/.conkyrc_1_images_2016) &

## Conky Accuweather hourly forecast
(sleep 70s && conky -c /home/<user>/bin/1_accuweather/.conkyrc_1_hourly_2016) &

## Conky NWS 6-day forecast
(sleep 80s && conky -c /home/<user>/bin/3_conky_forecast_nws/.conkyrc_nws_Long_Messages_Wide) &

I've began using feh and it is working fine so far.  In fact, I think I now prefer feh over nitrogen.  Yeah, I know...you can't pick from a list in feh, but I have so many images to choose from that it is sometimes laborious to find the exact image I want when using nitrogen.

Last edited by KrunchTime (2017-09-17 00:13:40)

Offline

#25 2017-09-17 00:57:36

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: BL stretch BUG: nitrogen --restore fails

^ Yes, that's the old autostart file with all the unnecessary fork()s and potential conflicts in place.

Update to the new version, it's much better:

https://github.com/BunsenLabs/bunsen-co … /autostart

The changes will have to be merged manually, of course  glasses


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

Board footer

Powered by FluxBB