Author Topic: OpenBox Autostart and tint2  (Read 5393 times)

sqlpython

  • Posts: 70
    • View Profile
OpenBox Autostart and tint2
« on: August 24, 2013, 09:57:46 PM »
 I suppose this is the correct sub forum for this topic & post.
If not please move.
  After my recent  Sid
Code: [Select]
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]
## 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]
## Openbox autostart.sh
## ====================
## ====================
## Start session manager
lxsession &

## Start Panel Taskbar Tray
(sleep 3 && 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) &

Stretch, Siduction-15.1,  Slackware 14.1, LMDE, Calculate 15.7

VastOne

  •      v-ger
  • Posts: 3841
    • View Profile
    • VSIDO Community
Re: OpenBox Autostart and tint2
« Reply #1 on: August 24, 2013, 10:02:51 PM »
Great info sqlpython...

I am curious, what kernel are you running that this is happening on?  I ask because I have recently seen bizarre memory issues with the recent kernels
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

sqlpython

  • Posts: 70
    • View Profile
Re: OpenBox Autostart and tint2
« Reply #2 on: August 24, 2013, 10:09:55 PM »
This is happening on a Modified Siduction Installl with one of towo's kernels which are quite good.
Modified as Siduction does not offer an OpenBox

Code: [Select]
sqlpython@siductionbox:~$ uname -a
Linux siductionbox 3.10-4.towo-siduction-686 #1 SMP PREEMPT Sat Aug 3 17:08:05 UTC 2013 i686 GNU/Linux
Stretch, Siduction-15.1,  Slackware 14.1, LMDE, Calculate 15.7

sqlpython

  • Posts: 70
    • View Profile
Re: OpenBox Autostart and tint2
« Reply #3 on: August 24, 2013, 11:44:29 PM »
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]
tint2 &to
Code: [Select]
(sleep 3 && tint2) &
I have adjusted the after Script in the first post to reflect this............
Stretch, Siduction-15.1,  Slackware 14.1, LMDE, Calculate 15.7

sqlpython

  • Posts: 70
    • View Profile
Re: OpenBox Autostart and tint2
« Reply #4 on: August 27, 2013, 06:24:26 PM »
Apparently, I don't have this problem fully in hand.
Again (with hack) tint2 may crash in OpenBox as I switch Desktops.
This will not occur in FluxBox on the same Sid Install. Will keep posted as to solution.
Stretch, Siduction-15.1,  Slackware 14.1, LMDE, Calculate 15.7

sqlpython

  • Posts: 70
    • View Profile
Re: OpenBox Autostart and tint2
« Reply #5 on: September 06, 2013, 05:03:39 AM »
 Ok, Latest Update to my tint2 problem as outlined above....
Seems while the sleep 3 before launching tint2 helped the problem crash would occur although less immediate.
 As I pointed out above I was looking at Openbox as the problem/cause..
So, I have updated to Openbox 3.5.2
 Now, I am able to for go the sleep 3 and simply run tint2 in the /home/sqlpython/.config/openbox/autostart.
 And No errors no crashes... So Go for OB 3.5.2
 Meanwhile I also ..heh heh .. began substituting fbpanel in both the Fluxbox and Openbox DEs ..
Looks pretty kool..
I will post a SCROT of both with the same BGround..
Stretch, Siduction-15.1,  Slackware 14.1, LMDE, Calculate 15.7

VastOne

  •      v-ger
  • Posts: 3841
    • View Profile
    • VSIDO Community
Re: OpenBox Autostart and tint2
« Reply #6 on: September 06, 2013, 05:07:01 AM »
Nice work sqlpython...  8)

On the next builds this Sunday, OB 3.5.2 will be the default. 

Also send me your fbpanel setup so I can see it and get a feel for why you prefer it
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

sqlpython

  • Posts: 70
    • View Profile
Re: OpenBox Autostart and tint2
« Reply #7 on: September 06, 2013, 03:42:58 PM »
 Actually, I still do prefer the tint2 panel but the fbpanel does look like a Kool alternative as configured.
I will post my fbpanel config with it's minor changes to another thread.
Stretch, Siduction-15.1,  Slackware 14.1, LMDE, Calculate 15.7