OpenBox Autostart and tint2

Forum rules
Share your brain ;)
sqlpython
Virgin
Posts: 5
Joined: Mon Aug 19, 2013 6:33 am

OpenBox Autostart and tint2

Unread post by sqlpython » Sat Aug 24, 2013 11:02 pm

I suppose this is the correct sub forum for this topic & post.
If not please move.
After my recent Sid

Code: Select all

apt-get  update && apt-get dist-upgrade
I began to have problems not before experienced with my tint2 panel.
I had done nothing to change the panel and tint2 did not Upgrade in version either.
Symptoms
1. tint2 & very...v-e-r-y slow to appear on desktop
2. Once I switched to Desktop 2 or 3 or 4 then tint2 crashed
3. tint2 ..Even reloaded manually the issues persisted

I slowly began eliminating extra tray processes ..parcellite....voliti (VOLUME) ..battery (xfce4 PowerManager)
Nothing seemed to help
I then added tint2 to my Fluxbox DE on the same Sid install on which it ran perfectly.
This pointed away from tint2 and directly at OpenBox..
Solution: Although tint2 had been loaded at the same point by ~/.config/openbox/autostart for many months something had changed after the Update/Upgrade. The Solution was when loading an OpenBox DE to load tint2 high up in the autostart process.
Below are the top half (that is pertinent ) of the OpenBox autostart scripts Before and After.. After being the operative Solution..
Strange Days are These.. .The Doors

As you can see from the BEFORE shell that tint2 was experimented with by loading at the End, Middle and Beginning of the shell. The load at the very beginning in AFTER proved to work Best.

BEFORE

Code: Select all

## Openbox autostart.sh
## ====================
## ====================
## Start session manager
lxsession &

## Enable power management
xfce4-power-manager &

## Start Thunar Daemon
thunar --daemon &

## Set desktop wallpaper
nitrogen --restore &

## Start idesk
#idesk &

## Launch panel
##fbpanel &
tint2 &
##xfce4-panel &

## Enable Eyecandy - off by default, uncomment one of the commands below.
## Note: cairo-compmgr prefers a sleep delay, else it tends to produce
## odd shadows/quirks around tint2 & Conky.
##(sleep 10s && cb-compmgr --cairo-compmgr) &
##cb-compmgr --xcompmgr -c & 
xcompmgr -CcfF &

## Launch network manager applet
##(sleep 4s && wicd-gtk -t) &
(sleep 3s && nm-applet) &

## Launch panel
##tint2 &
##fbpanel &
## Detect and configure touchpad. See 'man synclient' for more info.
if egrep -iq 'touchpad' /proc/bus/input/devices; then
    synclient VertEdgeScroll=1 &
    synclient TapButton1=1 &
fi

## Start xscreensaver
xscreensaver -no-splash &

## Start Conky after a slight delay
#(sleep 3s && conky -q) &

## Start volumeicon after a slight delay
(sleep 2s && volti) &

## Start Clipboard manager
(sleep 3s && parcellite) &

AFTER

Code: Select all

## Openbox autostart.sh
## ====================
## ====================
## Start session manager
lxsession &

## Start Panel Taskbar Tray
(sleep && tint2) &

## Enable power management
xfce4-power-manager &

## Start Thunar Daemon
thunar --daemon &

## Set desktop wallpaper
nitrogen --restore &

## Start idesk
#idesk &

## Launch panel
##fbpanel &
##tint2 &
##xfce4-panel &

## Enable Eyecandy - off by default, uncomment one of the commands below.
## Note: cairo-compmgr prefers a sleep delay, else it tends to produce
## odd shadows/quirks around tint2 & Conky.
##(sleep 10s && cb-compmgr --cairo-compmgr) &
##cb-compmgr --xcompmgr -c & 
xcompmgr -CcfF &

## Launch network manager applet
##(sleep 4s && wicd-gtk -t) &
(sleep 3s && nm-applet) &
## Launch panel
##tint2 &
##fbpanel &
## Detect and configure touchpad. See 'man synclient' for more info.
if egrep -iq 'touchpad' /proc/bus/input/devices; then
    synclient VertEdgeScroll=1 &
    synclient TapButton1=1 &
fi

## Start xscreensaver
xscreensaver -no-splash &

## Start Conky after a slight delay
#(sleep 3s && conky -q) &

## Start volumeicon after a slight delay
(sleep 2s && volti) &

## Start Clipboard manager
(sleep 3s && parcellite) &
Last edited by sqlpython on Sun Aug 25, 2013 12:50 am, edited 1 time in total.

sqlpython
Virgin
Posts: 5
Joined: Mon Aug 19, 2013 6:33 am

Re: OpenBox Autostart and tint2

Unread post by sqlpython » Sun Aug 25, 2013 12:49 am

Augghh
Still having problems on Fresh Boot but not logout and login.
So I added a delay in the script as tint2 is to load allowing other processes to settle.
3 Seconds and seems to have worked.
Changed line

Code: Select all

tint2 &
to

Code: Select all

(sleep 3 && tint2) &
I have adjusted the after Script in the first post to reflect this............

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: OpenBox Autostart and tint2

Unread post by dkeg » Sun Aug 25, 2013 1:57 am

interesting, but if I read correctly, it seems it may not be the location in autostart, but that there was a need to delay the start. Have you experimented with returning tint2 to its original placement, but with the delay? Would be curious.

Really just seems there is some conflict happening and the delay helps to solve that.

Work hard; Complain less

sqlpython
Virgin
Posts: 5
Joined: Mon Aug 19, 2013 6:33 am

Re: OpenBox Autostart and tint2

Unread post by sqlpython » Sun Aug 25, 2013 5:37 am

^ Yes, I had tried the delay later in the script but that tactic failed.
Seems it must be launched both with a delay and early in the script.

Running

Code: Select all

sqlpython@siductionbox:~$ uname -a
Linux siductionbox 3.10-4.towo-siduction-686 #1 SMP PREEMPT 

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: OpenBox Autostart and tint2

Unread post by machinebacon » Sun Aug 25, 2013 6:12 am

Some general info, as it's related:

I'd like to point out another location for system-wide autostarted applications (like the keyring, policykit or the network-manager related services, if any) - that's in /etc/xdg/autostart (using .desktop files)

For window-manager agnostic startup, there are two other ways: one in ~/.config/autostart (using .desktop files) and a very handy one, via ~/.xinitrc or ~/.xsession
..gnutella..

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: OpenBox Autostart and tint2

Unread post by dkeg » Sun Aug 25, 2013 12:33 pm

yep good one. I generally have use a startup script called from /usr/share/xsessions/wmhere.destop file, usually in /usr/local/bin (if i remember correctly)

The best thing I did was bang out DM's and utilize .xinitrc for starting applications.

Work hard; Complain less

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: OpenBox Autostart and tint2

Unread post by DebianJoe » Sun Aug 25, 2013 12:41 pm

dkeg wrote:The best thing I did was bang out DM's and utilize .xinitrc for starting applications.
Where is our "+1" button again? ;)
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: OpenBox Autostart and tint2

Unread post by machinebacon » Sun Aug 25, 2013 1:12 pm

Real winners live without xinit ;) :flamewar:

DM's are wothless since there's systemd.
..gnutella..

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: OpenBox Autostart and tint2

Unread post by DebianJoe » Sun Aug 25, 2013 1:46 pm

how's your systemd --user configured Sir Bacon? ;) (..taking the bait)
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: OpenBox Autostart and tint2

Unread post by dkeg » Sun Aug 25, 2013 1:53 pm

yes, I'd be interested too.

Lots of good information here

Work hard; Complain less

sqlpython
Virgin
Posts: 5
Joined: Mon Aug 19, 2013 6:33 am

Re: OpenBox Autostart and tint2

Unread post by sqlpython » Sun Aug 25, 2013 4:30 pm

As would I ....errr As wood eye

Post Reply