PDA

View Full Version : [SOLVED] Conky + xfce 4.8 = EITHER black conky window OR slow refresh



s-p-constantine
March 16th, 2014, 07:45 PM
Bizarre,

Until a few days ago, conky ran perfectly on my netbook. Then I noticed that the conky window was now black, instead of transparent.

Tweaking: Settings > Settings Manager > Window Manager Tweaks > Compositor > ENABLE display compositing DOES fix things - I now have a transparent conky window again.

BUT, the conky text now refreshes as if it's in slow motion...

Anyone come across this - and has an idea how to fix it.

Cheers - Steven.

deadflowr
March 17th, 2014, 07:07 AM
What's the output of everything above the TEXT line?

s-p-constantine
March 18th, 2014, 07:35 PM
background no
update_interval 1


cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius


double_buffer yes
no_buffers yes
text_buffer_size 2048


gap_x 40
gap_y 50
minimum_size 500 200
maximum_width 800
own_window yes
own_window_class conky
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tr


draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no


override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=9
xftalpha 0.5
uppercase no


default_color FFFFFF
color1 ffffff
color2 ffffff
color3 ffffff


lua_load ~/.conky/conky_grey.lua
lua_draw_hook_post main

deadflowr
March 19th, 2014, 04:48 AM
You should be able to add transparency with this line

own_window_argb_value 255
you already have the other line

own_window_argb_visual yes

the 255 will give it full transparency.
You should be able to adjust that value up or down, if you want.
(0= no transparency, 255=full transparency)
I would add that new line directly above or below the one that exists.
Not necessary, but the two lines go good together.
See if that helps out.

s-p-constantine
March 19th, 2014, 07:11 PM
@deadflowr

Thanks for this - but still no good, with any value... :-(

http://i1009.photobucket.com/albums/af211/__spc__/xubuntu/Screenshot-190314-180857.png (http://s1009.photobucket.com/user/__spc__/media/xubuntu/Screenshot-190314-180857.png.html)

grumblebum2
March 21st, 2014, 12:22 AM
Your pic shows compositing not enabled.
You need compositing.
Just need to work out why the slow refresh.
Run conky in terminal to check for errors.

Test some other conky configs.
You can run any config with

conky -c /path/to/config

deadflowr
March 21st, 2014, 02:54 AM
I'd say do what the above stated, but probably go through the list of enabled effects and slowly disable stuff, like shadowing.
Most compositors, like compiz or kwin, will make the changes immediately, so no need to restart things like X.
So you should be able to see the changes made and whether they are good or bad rather quickly, giving you a chance to revert them if bad.

s-p-constantine
March 21st, 2014, 08:40 AM
Right, thanks for the continued suggestions.

Starting conky from the command line, with conky -c ~/.conkyrc [& own_window_argb_visual yes (not own_window_argb_value 255)] works fine!

I usually start conky from Application Autostart (control panel).... with conky -c ~/.conkyrc &

Running conky from a .sh script fixes things, and the conky refresh is a it should be.

My script is:
#!/bin/bash
sleep 20
conky -c ~/.conky/conkyrc
exit 0

Thanks again for your help!

grumblebum2
March 21st, 2014, 09:26 AM
There are 2 ways to set transparency

own_window_transparent yes
own_window_argb_visual yes with an own_window_argb_value



The own_window_argb_value has a range of 0-255
0=fully transparent
255=fully opaque
If you set own_window_transparent no you can then use a degree of transparency.
eg...

own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 180

Perhaps conky is starting before compositing kicks in.
You could also try giving conky a start delay if you only experience problems at login
conky -p 10
Pauses start for 10 secs.

or in your case you could use

conky -p 10 -c ~/.conky/conkyrc

deadflowr
March 21st, 2014, 05:21 PM
The own_window_argb_value has a range of 0-255
0=fully transparent
255=fully opaque
If you set own_window_transparent no you can then use a degree of transparency.


I'm not sure about that, as setting it to zero makes the background black for me.

Edit: Didn't see the no settings for own_window transparent.
Interesting.

grumblebum2
March 22nd, 2014, 01:10 AM
From man conky....

own_window_argb_visual
Boolean, use ARGB visual? ARGB can be used for real transparency, note that a composite manager is required for real transparency. This option will not work as desired (in most cases) in conjunction with 'own_window_type override'.

own_window_argb_value
When ARGB visuals are enabled, this use this to modify the alpha value used. Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.

own_window_transparent
Boolean, set transparency? If ARGB visual is enabled, sets background opacity to 0%.

Yeah it's a bit confusing but if you use own_window_transparent yes the window remains transparent no matter the own_window_argb_value

s-p-constantine
May 2nd, 2014, 08:19 PM
Solved (and how to mark the thread as such?)

The issue was with two instances of conky running simultaneously, overlapping each and looking like a 'laggy' refresh...:oops:

deadflowr
May 2nd, 2014, 10:59 PM
Solved (and how to mark the thread as such?)


Go to the top of the page right above the first post.Click on Thread Tools.
Marked as Solved is at the bottom area.