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

[Bug]: image variable doesn't work on wayland #2158

Open
Galcian79 opened this issue Feb 15, 2025 · 8 comments
Open

[Bug]: image variable doesn't work on wayland #2158

Galcian79 opened this issue Feb 15, 2025 · 8 comments
Assignees
Labels
bug related to incorrect existing implementation of some functionality display: wayland related to Wayland backend rendering related to code that handles rendering, excluding the used graphics API text related to `conky.text` variables, their parsing or implementation

Comments

@Galcian79
Copy link

What happened?

It's fine into the X11 session.

Version

1.22

Which OS/distro are you seeing the problem on?

Arch Linux

Conky config

--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2019 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]
conky.config = {
    alignment = 'top_right',
    background = true,
    border_width = 1,
    use_spacer = 'left',
    pad_percents = 2,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'Dejavu Sans Mono:size=10',
    gap_x = 60,
    gap_y = 60,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'normal',
    own_window_hints = 'undecorated,below',
    own_window_transparent = true,
    own_window_argb_visual = true,
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_xft = true,
}

conky.text = [[

${image $HOME/.archlogo.png -p 0,0 -n -s 150x150}








${color grey}Info:$color $sysname $kernel $machine
$hr
${color grey}Tempo di Attività: ${color green}$uptime

${color grey}Utilizzo CPU:${color green}$cpu% ${color grey}Temp:${color red}${hwmon 0 temp 1}°C ${color grey}Freq: ${color yellow}$freq MHz

${color #EB00FF}AMD RX 6700XT ${color grey}Utilizzo GPU: ${color green}${exec cat /sys/class/drm/card1/device/gpu_busy_percent}% ${color grey}Temp: ${color red}${exec cut -c 1,2 /sys/class/drm/card1/device/hwmon/hwmon*/temp1_input}°C

${color grey}Utilizzo RAM: ${color yellow}$mem${color grey}/${color yellow}$memmax

${color grey}Processi Abilitati: ${color green}$processes  ${color grey}In Esecuzione: ${color yellow}$running_processes
${color grey}$hr
${color grey}Nome                PID    CPU%   MEM%
 $color${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
 ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
 ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
 ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
 ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
 ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
 ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
 ${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}
 ${top name 9} ${top pid 9} ${top cpu 9} ${top mem 9}
 ${top name 10} ${top pid 10} ${top cpu 10} ${top mem 10}
$hr
${color grey}Utilizzo Disco:
${color yellow}${fs_used /}${color grey}/${color yellow}${fs_size /} ${color red}${fs_bar 6 /}
${color yellow}${fs_used /run/media/fulvio/GIOCHI}${color grey}/${color yellow}${fs_size /run/media/fulvio/GIOCHI} ${color red}${fs_bar 6 /run/media/fulvio/GIOCHI}
]]

Stack trace

Relevant log output

eb 15 17:44:27 ArchPC systemd[10878]: Started conky.
feb 15 17:44:28 ArchPC conky[17377]: conky: desktop window (0x350) is root window
feb 15 17:44:28 ArchPC conky[17377]: conky: window type - normal
feb 15 17:44:28 ArchPC conky[17377]: conky: drawing to created window (0x1000002)
feb 15 17:44:28 ArchPC conky[17377]: conky: drawing to double buffer
feb 15 17:44:28 ArchPC conky[17377]: conky: forked to background, pid is 17379
feb 15 17:44:28 ArchPC conky[17379]: conky: FOUND: wayland
feb 15 17:44:28 ArchPC conky[17379]: conky: FOUND: x11
feb 15 17:44:28 ArchPC conky[17379]: conky: FOUND: file
feb 15 17:44:28 ArchPC conky[17379]: conky: FOUND: ncurses
feb 15 17:44:28 ArchPC conky[17379]: conky: FOUND: console
feb 15 17:44:28 ArchPC conky[17379]: conky: '(null)' wayland session running 'KDE' desktop
@Galcian79 Galcian79 added bug related to incorrect existing implementation of some functionality triage issue that hasn't been verified, categorized or acknowledged yet labels Feb 15, 2025
@Caellian Caellian added display: wayland related to Wayland backend rendering related to code that handles rendering, excluding the used graphics API text related to `conky.text` variables, their parsing or implementation and removed triage issue that hasn't been verified, categorized or acknowledged yet labels Feb 17, 2025
@Caellian Caellian changed the title [Bug]: Booted today into Plasma Wayland 6 and my logo image disappeared from Conky. [Bug]: image variable doesn't work on wayland Feb 17, 2025
@Caellian Caellian added this to the Wayland Support milestone Feb 17, 2025
@Galcian79
Copy link
Author

Just a little update on my side.
I've just found that if i disable transparency own_window_transparent = false the image variable works as it should.

@Galcian79
Copy link
Author

Image
Desktop

Image
Desktop Overview

@evgeniy-harchenko
Copy link

evgeniy-harchenko commented Feb 25, 2025

Same here. But in my case I can do this for fix (KDE systemsettings -> Display & Monitor):
Image
Any other option causes the problem.

BTW, own_window_transparent = false fixes problem for me, but conky's window loses transparency at all.

@Galcian79
Copy link
Author

Fixed after a recent update.

@Caellian
Copy link
Collaborator

@evgeniy-harchenko let me know whether the issue persists for you after updating. I'm assuming it had something to do with KDE, and closing as wont-fix for now.

If you still have the same problem, I'll reopen the issue.

@Caellian Caellian closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2025
@Caellian Caellian added the wontfix not a conky bug, unreasonable effort required to fix or can't be fixed due to external limitations label Feb 25, 2025
@evgeniy-harchenko
Copy link

evgeniy-harchenko commented Feb 26, 2025

@Caellian unfortunately, updating (conky 1.22.1-pre-97b4ec7d compiled for Linux x86_64)
did not help. But I found interesting behavior: images appear when the screen orientation (in KDE settings) is changing.

For testing:
Mintaka.tar.gz

@Caellian Caellian reopened this Feb 27, 2025
@Caellian
Copy link
Collaborator

Sounds like buffer isn't being committed at the right time then.

@Caellian Caellian removed the wontfix not a conky bug, unreasonable effort required to fix or can't be fixed due to external limitations label Feb 27, 2025
@Caellian Caellian self-assigned this Mar 5, 2025
@evgeniy-harchenko
Copy link

BTW, night light breaks it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug related to incorrect existing implementation of some functionality display: wayland related to Wayland backend rendering related to code that handles rendering, excluding the used graphics API text related to `conky.text` variables, their parsing or implementation
Projects
None yet
Development

No branches or pull requests

3 participants