Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.10.1 Flickers Every 5-10 Seconds #170

Closed
ghost opened this issue Nov 21, 2015 · 20 comments
Closed

1.10.1 Flickers Every 5-10 Seconds #170

ghost opened this issue Nov 21, 2015 · 20 comments

Comments

@ghost
Copy link

ghost commented Nov 21, 2015

Running 1.10.1 I noticed it flickers every few seconds, like maybe every 5-10 seconds.

1.9.0 runs great, ever since the 1.10x versions came out, nothing but trouble for me, I'd really like to figure out what is going on here?

These are some of system specs;

Slackware 14.1 x86_64
Openbox 3.6.1
compton
xorg-server-1.14.3
nvidia-driver-352.41

I'm not sure what would be casuing this, here is what my config looks like;

conky.config = {
override_utf8_locale = false,
background = true,
use_xft = true,
font = 'aller:size=9',
xftalpha = 0.8,
out_to_console = false,
update_interval = 3.0,
total_run_times = 0,
draw_shades = false,

own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop', -- normal /override /desktop /dock
own_window_transparent = true,
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

-- Prevent Conky refresh over itslef in tile wms
-- true - true transparency with compton
-- false - pseudo-transparency without compton
own_window_argb_visual = true,

minimum_size = 1920,
maximum_width = 1920,

double_buffer = true,
default_color = 'e3412c',
color1 = 'e0cdc3',

alignment = 'top_middle',
gap_y = 5, --vertical
-- gap_x = 0, --horizontal
no_buffers = true
}

conky.text = [[
${alignc}${color}CPU1: ${color1}${cpu cpu0}%
${color}CPU2: ${color1}${cpu cpu1}%
${color}CPU3: ${color1}${cpu cpu2}%
${color}CPU4: ${color1}${cpu cpu3}% - ${freq}MHz - ${hwmon 0 temp 1} °C
${color}GPU: ${color1}${execi 100 nvidia-settings -q gpucoretemp -t | head -1} °C
${color}RAM: ${color1}${mem} - $memperc%
${color}SSD: ${color1}${fs_free /} free
${color}LAN: ${color1}${addr eth0} - ${downspeed eth0} kb/s down - ${upspeed eth0} kb/s up
${color}POWER: ${color1}${acpiacadapter AC0} - ${color}BATTERY: ${color1}${battery_percent BAT0}% ${battery_time BAT0} ${color}UP: ${color1}$uptime_short
${execi 70 ~/.conky/scripts/battery_notify.sh}
]]

@plikhari
Copy link

Try adding text_buffer_size = 512, - the rest of the lines look fine.

@ghost
Copy link
Author

ghost commented Nov 27, 2015

I'll give it a try when I have time and report back.

By the way, I forgot, but some of lines I put single quotes around some things. Are these actually needed?

Thanks

@plikhari
Copy link

Yes the quotes are required - unless they are digits or reserved words like true etc - basically following lua conventions for a lua script/program

@ghost
Copy link
Author

ghost commented Nov 28, 2015

Ok can't say I know much about lua conventions...

Well it's still flickering and I changed it to 256, and 1024 and still the same.

Also I noticed at the CLI; conky: Unknown setting 'minimum_size' so what would I change these two lines to now, or I just use only the max width one?

minimum_size = 1920,
maximum_width = 1920,

thanks

@ghost
Copy link
Author

ghost commented Nov 28, 2015

AHHH I changed the config to;

minimum_width = 1920,
maximum_width = 1920,

And it's not flickering anymore LOL...

Looks like the problem was the minimum_size = :)

To be honest, not sure why I made these the same numbers, hmm which doesn't seem correct, but it's a look that sits in the top middle of the screen centered, and I noticed if I make the minimum_width = a smaller size it flickers again, hmm odd...

@plikhari
Copy link

You would change it the new format

maximum_width = 1920,
minimum_width = 1920, minimum_height = 1080,

The best way to convert your older format to newer 1.10x format of rc files is to use the utility 'convert.lua'. This is located in the conky folder under /usr/share/doc/conky
You can perhaps copy to a folder in your $HOME location - make it executable sudo chmod +x convert.lua and then start of and see the new file and compare the changes.

OK appears you solved it - but convert comment and other stuff should help you on your way forward ;-)
cheers

@ghost
Copy link
Author

ghost commented Nov 28, 2015

Why minimum_height = 1080? That seems like to fill up the entire screen?

Well this is what my config looks like now, do you think I really need to use convert.lua?

conky.config = {
override_utf8_locale = false,
background = true,
use_xft = true,
font = 'aller:size=9.5',
xftalpha = 0.8,
out_to_console = false,
out_to_stderr = false,
update_interval = 3.0,
total_run_times = 0,
draw_shades = false,

own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
own_window_transparent = true,
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

own_window_argb_visual = true,

minimum_width = 1920,
maximum_width = 1920,

double_buffer = true,
default_color = 'e3412c',
color1 = 'e0cdc3',

alignment = 'top_middle',
gap_y = 5,
no_buffers = true
}

conky.text = [[
${alignc}${color}CPU1: ${color1}${cpu cpu0}%
${color}CPU2: ${color1}${cpu cpu1}%
${color}CPU3: ${color1}${cpu cpu2}%
${color}CPU4: ${color1}${cpu cpu3}% - ${freq}MHz - ${hwmon 0 temp 1} °C
${color}GPU: ${color1}${execi 100 nvidia-settings -q gpucoretemp -t | head -1} °C
${color}RAM: ${color1}${mem} - $memperc%
${color}SSD: ${color1}${fs_free /} free
${color}LAN: ${color1}${addr eth0} - ${downspeed eth0} kb/s down - ${upspeed eth0} kb/s up
${color}POWER: ${color1}${acpiacadapter AC0} - ${color}BATTERY: ${color1}${battery_percent BAT0}% ${battery_time BAT0} ${color}UP: ${color1}$uptime_short
${execi 70 ~/.conky/scripts/battery_notify.sh}
]]

thanks

@ghost
Copy link
Author

ghost commented Nov 28, 2015

By the way in the doc folder for the conky.conf what does the $hr stand for?

thanks

@ghost
Copy link
Author

ghost commented Nov 28, 2015

I forgot to mention if I run conky from the CLI I get no errors, so my config must be good?

conky: desktop window (289) is root window
conky: window type - desktop
conky: drawing to created window (0x2400002)
conky: drawing to double buffer
conky: forked to background, pid is 7921

@ghost
Copy link
Author

ghost commented Nov 28, 2015

One last thing for now, I noticed in the variables and new config there doesn't seem to be this option anymore...

total_run_times = is this still being used?

thanks

@plikhari
Copy link

That 1080 was an example :)
Yes - if you are not getting errors and it is working fine - no worries
total_run_times is being used and there are some recent issues being reported - I have it set to zero and it is working fine.

@plikhari
Copy link

$hr is horizontal line

@ghost
Copy link
Author

ghost commented Nov 28, 2015

Ok I'll leave the total_run_times = 0 and thanks for every thing, it runs great now!

Cheers

@plikhari
Copy link

Can you please close this issue as it stands resolved - cheers

@lasers
Copy link
Contributor

lasers commented Aug 3, 2018

Resolved. Nice work, mister. Closing.

@lasers lasers closed this as completed Aug 3, 2018
@WinEunuuchs2Unix
Copy link

Just installed 1.10 because 1.9 is no longer available in Ubuntu and notice conky screen flickering frequently with skylake processor. Also pre-exec command no longer supported and must resort to exec instead. Although converting 1.9 scripts to 1.10 is an option it should not be necessary for users. That said earlier versions of 1.10 couldn't run my 1.9 conkyrc at all so I had to pin / mark hold an earlier version.

@lasers
Copy link
Contributor

lasers commented Aug 4, 2018

Just installed 1.10 because 1.9 is no longer available in Ubuntu and notice conky screen flickering frequently with skylake processor

If you receive conky screen flickering frequently on 1.10, but not 1.9, then you should try and git bisect this... so you can find the bad commit. You would have to compile conky between commits tho.

@lasers lasers reopened this Aug 4, 2018
@WinEunuuchs2Unix
Copy link

WinEunuuchs2Unix commented Aug 4, 2018

My luck with compiling grub for UEFI left a bad taste in my mouth. Compiling for i386-pc was ok... Anyway changing maximum_width 400 to maximum_width 1920 and adding a new line maximum_height 1080 made the flicker go away. The opaqueness (right word?) got darker though but I can adjust that later. Thanks for quick response :)

@lasers
Copy link
Contributor

lasers commented Aug 7, 2018

Just installed 1.10 because 1.9 is no longer available

1.10.0? I would like for you to tell me if this is still happening on 1.10.9_pre (git). We're using cmake now since 1.10.8 or so... Compiling conky should be relatively painless now.

Depending on what variables/object you have in your conky.conf, you may have to enable some flags first (eg cmake -DBUILD_JOURNAL ../) to use {journal}. NVIDIA variables does not work right now.

You could start pointing out some other issues with conky that we don't know anything about. :-)

@lasers
Copy link
Contributor

lasers commented Aug 14, 2018

I tried the configs posted by ghost. No flickering here.
I tried minimal_width = 100 too to see if it would flicker. Nothing.

2018-08-13-204258_513x745_scrot

If you're having this problem on 1.10.9 or above (git), comment here with the config.
The older versions are not trustworthy due to too many changes that can be hard to track.

@lasers lasers closed this as completed Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants