You are not logged in.

#51 2015-07-03 13:05:24

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: [SOLVED] Problem with conky after update

deadlight wrote:

when i use the old conkyrc
i got a error

conky: std::bad_alloc

when i transport the old version conkyrc to new version,i work well for a while.

There's already a relevant issue on the GitHub concerning this kind of problem.

Offline

#52 2015-07-03 13:50:30

mwillems
Member
Registered: 2014-08-09
Posts: 91

Re: [SOLVED] Problem with conky after update

Does anyone have cpugraphs or net up/down graphs functioning?  I've tried the new format and the old format and can't get them to draw correctly either way.  I get the box where the graph should be, but no contents.  Numerical output from, say, the cpu call still works so it's not a generic sensors issue. 

If everyone else's graphs are working, I'll spend more time troubleshooting, but if they're just broken, I'd like to file a bug.

Offline

#53 2015-07-03 15:22:24

se7enElven
Member
Registered: 2015-07-03
Posts: 1

Re: [SOLVED] Problem with conky after update

seven@NucNuc ~]$ conky
conky: Syntax error (/home/seven/.conkyrc:2: unexpected symbol near '#') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:150: [string "converted config"]:34: '}' expected (to close '{' at line 1) near 'x230'


[seven@NucNuc ~]$ . convert.lua .conkyrc
bash: local: can only be used in a function
bash: Usage:: command not found
bash: Tries: command not found
bash: Keep: command not found
bash: with: command not found
bash: should: command not found
bash: Altough: command not found
bash: convert.lua: line 22: unexpected EOF while looking for matching `"'
bash: convert.lua: line 152: syntax error: unexpected end of file

not sure what the problem is.

Offline

#54 2015-07-03 16:35:12

julesm
Member
Registered: 2014-07-29
Posts: 70

Re: [SOLVED] Problem with conky after update

I managed to convert my conky config and got it working. EXCEPT it now doesn't like any of the wireless variables.  What I mean is that it works fine until I add the following line and with this line the whole conky window goes blank - no error message - it just doesn't display anything.

Upload speed:${alignr}${upspeed wlp0s26u1u4}kb/s

wlp0s26u1u4 is my wireless interface.  And I can test using the following to show whether it's up or down.

${color white}Network    :$color  ${if_up wlp0s26u1u4}Up${else}Down$endif

That works - BUT as soon as I try to use any of the variables like "wireless_essid", or "upspeed", it just goes blank.

I looked at "conky -v" and it appeared to me that it has been compiled with wireless enabled.

Any ideas?

Cheers,
Jules

Offline

#55 2015-07-03 21:23:09

infoslaw
Member
From: Poland, Warsaw
Registered: 2013-05-06
Posts: 159

Re: [SOLVED] Problem with conky after update

Which GUI are use?

julesm wrote:

I managed to convert my conky config and got it working. EXCEPT it now doesn't like any of the wireless variables.  What I mean is that it works fine until I add the following line and with this line the whole conky window goes blank - no error message - it just doesn't display anything.

Upload speed:${alignr}${upspeed wlp0s26u1u4}kb/s

wlp0s26u1u4 is my wireless interface.  And I can test using the following to show whether it's up or down.

${color white}Network    :$color  ${if_up wlp0s26u1u4}Up${else}Down$endif

That works - BUT as soon as I try to use any of the variables like "wireless_essid", or "upspeed", it just goes blank.

I looked at "conky -v" and it appeared to me that it has been compiled with wireless enabled.

Any ideas?

Cheers,
Jules

Offline

#56 2015-07-03 21:39:19

julesm
Member
Registered: 2014-07-29
Posts: 70

Re: [SOLVED] Problem with conky after update

Hi infoslaw,  I use xfce.

Cheers,
Jules

Offline

#57 2015-07-03 22:19:10

infoslaw
Member
From: Poland, Warsaw
Registered: 2013-05-06
Posts: 159

Re: [SOLVED] Problem with conky after update

Thanks thought that KDE as mine, just fixed minute ago mine conkyrc and everything working fine now including wlan

julesm wrote:

Hi infoslaw,  I use xfce.

Cheers,
Jules

Offline

#58 2015-07-03 22:35:50

infoslaw
Member
From: Poland, Warsaw
Registered: 2013-05-06
Posts: 159

Re: [SOLVED] Problem with conky after update

Solved mine conkyrc issue. Just followed guide to convert conkyrc.

here is quick solution how to do it:
1. make executable /usr/share/doc/conky-1.10.0/convert.lua
2. convert your conky file ./convert.lua ~/.conkyrc

my after conversion start works smoothly

Offline

#59 2015-07-04 07:01:10

julesm
Member
Registered: 2014-07-29
Posts: 70

Re: [SOLVED] Problem with conky after update

Turns out it's because I have ipv6 disabled.  I believe this is a known bug and will wait to see if/when it's resolved.

Cheers,
Jules

Offline

#60 2015-07-04 07:51:38

BlueYoshi
Member
Registered: 2015-03-14
Posts: 62

Re: [SOLVED] Problem with conky after update

julesm wrote:

Turns out it's because I have ipv6 disabled.  I believe this is a known bug and will wait to see if/when it's resolved.

Cheers,
Jules

Looks like that's it. I've been trying alternatives, but I guess I'll just wait until conky 2 is updated to work correctly.

Offline

#61 2015-07-04 09:54:54

infiniteh
Member
Registered: 2010-08-12
Posts: 13

Re: [SOLVED] Problem with conky after update

There is a very simple fix to this ipv6 problem that's been submitted upstream for review. Until it gets merged, I've made a package with the necessary patch. Please feel free to try it out and see if it works for you guys. As this is an "unofficial" package, please read through the PKGBUILD and ipv6.patch to see exactly what has changed.

Here is the package (on Dropbox).

$ tar xvf conky.tar.xz
$ cd conky
$ makepkg
$ sudo pacman -U <package name>

Hope this helps, and if I've made some mistake in my packaging or instructions, please let me know!

Edit: Of course, this won't compile if you have ipv6 disabled... I'll just report a bug in the Arch tracker and see if I can get the patch pushed through.

Last edited by infiniteh (2015-07-04 10:09:50)

Offline

#62 2015-07-04 12:13:04

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: [SOLVED] Problem with conky after update

infoslaw wrote:

Solved mine conkyrc issue. Just followed guide to convert conkyrc.

here is quick solution how to do it:
1. make executable /usr/share/doc/conky-1.10.0/convert.lua
2. convert your conky file ./convert.lua ~/.conkyrc

my after conversion start works smoothly

Thanks, this worked for me.

One thing though... I was still starting with "conky -b" as I always had and couldn't work out why I was getting flicker on "update_interval". Simply starting without any command line options fixed this! User error strikes again wink


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#63 2015-07-04 18:49:47

anthrit
Member
Registered: 2015-06-02
Posts: 1

Re: [SOLVED] Problem with conky after update

infoslaw wrote:

Solved mine conkyrc issue. Just followed guide to convert conkyrc.

here is quick solution how to do it:
1. make executable /usr/share/doc/conky-1.10.0/convert.lua
2. convert your conky file ./convert.lua ~/.conkyrc

my after conversion start works smoothly

Thanks this worked for me. Only change after conversion that I had to change was:
    minimum_width = 365x500 to     minimum_width = 365,
And then it ran back as normal.

Offline

#64 2015-07-04 23:02:52

mangus
Member
From: Bologna, Italy
Registered: 2007-04-07
Posts: 289

Re: [SOLVED] Problem with conky after update

No offense to archlinux packagers, but this is pure bullshit.
Learn kids, this is how you DON'T do things, or you'll be instantly fired.

yes , Im getting old.

Last edited by mangus (2015-07-04 23:05:51)

Offline

#65 2015-07-04 23:28:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Problem with conky after update

mangus wrote:

No offense to archlinux packagers, but this is pure bullshit.
Learn kids, this is how you DON'T do things, or you'll be instantly fired.

yes , Im getting old.

Too old to adapt to upstream changes, obviously... https://wiki.archlinux.org/index.php/Fo … cs.2Frants


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#66 2015-07-05 01:18:10

mangus
Member
From: Bologna, Italy
Registered: 2007-04-07
Posts: 289

Re: [SOLVED] Problem with conky after update

jasonwryan wrote:
mangus wrote:

No offense to archlinux packagers, but this is pure bullshit.
Learn kids, this is how you DON'T do things, or you'll be instantly fired.

yes , Im getting old.

Too old to adapt to upstream changes, obviously... https://wiki.archlinux.org/index.php/Fo … cs.2Frants

Cmon jason let me vent a bit tongue

No harm intended to archlinux sure, just not so good breaking things completely like that for me

Offline

#67 2015-07-05 01:41:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Problem with conky after update

Venting a bit is fine; suggesting that somehow the Arch devs are responsible is totally not fine.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#68 2015-07-05 16:51:50

mangus
Member
From: Bologna, Italy
Registered: 2007-04-07
Posts: 289

Re: [SOLVED] Problem with conky after update

jasonwryan wrote:

Venting a bit is fine; suggesting that somehow the Arch devs are responsible is totally not fine.

Sorry Jason , I never meant bashing Arch devs
Im running arch since 2006 and I'm well aware of Arch policies,  my mini rant was about the massive upstream changes
Arch devs following upgrade arch policy are totally fine to me
cheers

Offline

#69 2015-07-06 05:39:33

coruun
Member
Registered: 2014-10-23
Posts: 26

Re: [SOLVED] Problem with conky after update

Did anyone get the RSS reader working? My configuration segfaults after a few minutes.

conky.config = {
    -- work in background (disabled for testing)
    background = false,

    -- better fonts
    use_xft = true,
    --xftalpha = 1,

    -- update interval
    update_interval = 60.0,
    total_run_times = 0,

    -- window settings
    own_window = true,
    own_window_transparent = true,
    own_window_type = 'normal',
    own_window_hints = 'undecorated, below, sticky, skip_taskbar, skip_pager',
    own_window_argb_visual = true,
    --own_window_argb_value = 0,

    -- anti-flickering
    double_buffer = true,

    -- size
    minimum_width = 200,
    minimum_height = 1000,
    maximum_width = 200,

    -- shadows
    draw_shades = true,
    default_shade_color = 'black',

    -- borders
    draw_outline = false,
    default_outline_color = 'red',
    draw_graph_borders = true,

    -- frame
    draw_borders = false,

    -- color
    default_color = 'white',

    -- position
    alignment = 'top_left',
    gap_x = 1920,
    gap_y = 0,

    -- misc
    no_buffers = true,
    uppercase = false,
    cpu_avg_samples = 2,
    if_up_strictness = 'address',

    show_graph_range = false,
    show_graph_scale = false,
    --default_bar_height = 6,
    --default_bar_width = 200,
    text_buffer_size = 1000,
    override_utf8_locale = true,

    font = 'Liberation Sans:bold:size=9', --important for shades
    template0 = 'Liberation Sans:bold:size=9',
    template1 = 'Liberation Mono:bold:size=7',
}

conky.text = [[
${font $template0}ARCH-News ${hr 2}
${font $template1}#
${rss https://www.archlinux.org/feeds/news/ 15 item_title 0}
${rss https://www.archlinux.org/feeds/news/ 15 item_title 1}
${rss https://www.archlinux.org/feeds/news/ 15 item_title 2}
${rss https://www.archlinux.org/feeds/news/ 15 item_title 3}
${rss https://www.archlinux.org/feeds/news/ 15 item_title 4}
]]

Offline

#70 2015-07-06 09:39:31

infiniteh
Member
Registered: 2010-08-12
Posts: 13

Re: [SOLVED] Problem with conky after update

coruun wrote:

Did anyone get the RSS reader working? My configuration segfaults after a few minutes.

I also get a segfault with your config after a few minutes. Seems we have yet another bug to report upstream! I suppose this can be expected from such a massive rewrite. It's frustrating, but I'm still happy to see some activity from conky after such a long time.

Offline

#71 2015-07-06 11:32:57

MaxKh
Member
Registered: 2013-02-08
Posts: 7

Re: [SOLVED] Problem with conky after update

infiniteh wrote:
coruun wrote:

Did anyone get the RSS reader working? My configuration segfaults after a few minutes.

I also get a segfault with your config after a few minutes. Seems we have yet another bug to report upstream! I suppose this can be expected from such a massive rewrite. It's frustrating, but I'm still happy to see some activity from conky after such a long time.

Yeah, same for me. I'll post on github.

Offline

#72 2015-07-06 11:53:26

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: [SOLVED] Problem with conky after update

Just wanna pipe in, i too had problems on 3 arch machines w/ conky  none of the pacman/aur update code worked ie:

TEXT
    ${image ~/.icons/pacman2.png -p 14,0} Pacman Updates ${color1} ${execi 7200 checkupdates | wc -l}  ${color}   AUR Updates${color1} ${execi 7200 cower -u | wc -l}  ${color #CCFF99}${image ~/.icons/arch6.png -p 164,-5} ★

i rolled back in the meantime.

Offline

#73 2015-07-06 16:20:31

onexused
Member
Registered: 2009-10-07
Posts: 115

Re: [SOLVED] Problem with conky after update

mwillems wrote:

Does anyone have cpugraphs or net up/down graphs functioning?  I've tried the new format and the old format and can't get them to draw correctly either way.  I get the box where the graph should be, but no contents.  Numerical output from, say, the cpu call still works so it's not a generic sensors issue. 

If everyone else's graphs are working, I'll spend more time troubleshooting, but if they're just broken, I'd like to file a bug.

The cpugraphs work fine for me.
My issue with conky 1.10.0 is that it quietly fails to run with network up/down speed lines (probably the ipv6 thing: I have it disabled, too).
Interestingly, except for the network issue, my old config works fine. I just get a message about it being converted when I start conky.

Since I like seeing my network up/down speeds, I'm downgrading to 1.9.0 until this is fixed.

Offline

#74 2015-07-07 05:18:44

coruun
Member
Registered: 2014-10-23
Posts: 26

Re: [SOLVED] Problem with conky after update

MaxKh wrote:
infiniteh wrote:

I also get a segfault with your config after a few minutes. Seems we have yet another bug to report upstream! I suppose this can be expected from such a massive rewrite. It's frustrating, but I'm still happy to see some activity from conky after such a long time.

Yeah, same for me. I'll post on github.

Thanks for feedback and reporting upstream!

Offline

#75 2015-07-16 20:40:27

lol10801lol
Member
Registered: 2015-07-16
Posts: 1

Re: [SOLVED] Problem with conky after update

What do I do if my .conkyrc has ']]' in it and new lua format looks at it like the text section ended?
conky just tells me "unexpected symbol when reading config file"

conky.text = [[${if_existing /sys/class/power_supply/ADP1/online 0}${if_match ${battery_percent BAT1}<15}${if_match ${battery_percent BAT1}<4}${if_match ${battery_percent BAT1}!=0}${exec shutdown now}${endif}${else}${execi 120 notify-send -u critical "$(acpi -b)" -t 5000}${endif}${endif}${endif}${if_mpd_playing}${mpd_file}${endif}${alignr}${fs_used /}/${fs_size /} | ${exec amixer get Master -c 1 -M| grep -oE "[[:digit:]]*%"} | ${battery_short BAT1},${battery_time BAT1} | ${time %d.%m.%y %H:%M:%S}]]

Offline

Board footer

Powered by FluxBB