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]: out_to_wayland not respected anymore #1898

Closed
proycon opened this issue May 3, 2024 · 6 comments
Closed

[Bug]: out_to_wayland not respected anymore #1898

proycon opened this issue May 3, 2024 · 6 comments
Labels
display: wayland related to Wayland backend display: x11 related to X11 backend lua related to Lua integration in conky regression something that worked previously but was broken at some point by some commit

Comments

@proycon
Copy link

proycon commented May 3, 2024

What happened?

In a configuration with out_to_wayland = true conky 1.20.2 attempts to use X11 regardless and therefore no output appears at all.
A workaround is to set out_to_x = false, but this was not needed in earlier versions of conky where this worked fine.

Reproduced on sway on Alpine Linux edge and on hyprland 0.39.1 on Arch Linux.

Version

1.20.2

Which OS/distro are you seeing the problem on?

Linux (other)

Conky config

conky.config = {
    out_to_wayland = true,
    alignment = 'middle_middle',
    own_window_argb_value = 0,
    own_window_type = 'desktop',
    default_shade_color = 'grey',
    draw_shades = true,
    font = 'Sxmo:size=13',
    use_xft = true,
    update_interval = 15,
}

conky.text = [[
${alignc}${font Sxmo:size=50:style=Bold}${exec date +"%H"}${font Sxmo:size=50}:${exec date +"%M"}${font}

${font Sxmo:size=20}${exec date +"%a %d %b %Y"}${font}
]]

Stack trace

No response

Relevant log output

$ conky -D -c configs/appcfg/conky.conf
DEBUG(0) [/usr/src/debug/conky/conky/src/conky.cc:1953]: reading contents from config file 'configs/appcfg/conky.conf'
DEBUG(0) [/usr/src/debug/conky/conky/src/x11.cc:312]: enter init_x11()
DEBUG(0) [/usr/src/debug/conky/conky/src/x11.cc:410]: Fixed xinerama area to: 0 0 2160 3840
DEBUG(0) [/usr/src/debug/conky/conky/src/x11.cc:359]: leave init_x11()
DEBUG(0) [/usr/src/debug/conky/conky/src/x11.cc:578]: enter x11_init_window()
DEBUG(0) [/usr/src/debug/conky/conky/src/x11.cc:410]: Fixed xinerama area to: 0 0 2160 3840
conky: desktop window (3db) is root window
conky: drawing to desktop window
DEBUG(0) [/usr/src/debug/conky/conky/src/x11.cc:986]: leave x11_init_window()
DEBUG(0) [/usr/src/debug/conky/conky/src/display-output.cc:138]: Initialized display output 'x11'... 
^Cconky: received SIGHUP, SIGINT, or SIGTERM to terminate. bye!
DEBUG(0) [/usr/src/debug/conky/conky/src/x11.cc:364]: deinit_x11()
@proycon proycon added bug related to incorrect existing implementation of some functionality triage issue that hasn't been verified, categorized or acknowledged yet labels May 3, 2024
@Caellian Caellian added display: x11 related to X11 backend display: wayland related to Wayland backend lua related to Lua integration in conky and removed triage issue that hasn't been verified, categorized or acknowledged yet labels May 4, 2024
@Caellian Caellian added this to the Wayland Support milestone May 4, 2024
@magdesign
Copy link

magdesign commented May 14, 2024

with 1.21 there is now no output at all in sway.

DEBUG(0) [/home/buildozer/aports/main/conky/src/conky-1.21.0/src/conky.cc:1965]: reading contents from config file '/home/me/.config/sxmo/conky.conf'
DEBUG(0) [/home/buildozer/aports/main/conky/src/conky-1.21.0/src/display-output.cc:39]: HTTP display output disabled. Enable by recompiling with 'BUILD_HTTP' flag enabled.
conky: FOUND: console
conky: FOUND: ncurses
conky: FOUND: file
conky: FOUND: x11
conky: FOUND: wayland
DEBUG(0) [/home/buildozer/aports/main/conky/src/conky-1.21.0/src/display-output.cc:109]: Initialized display output 'wayland'... 
conky: '(null)' wayland session running 'sway' destop
DEBUG(0) [/home/buildozer/aports/main/conky/src/conky-1.21.0/src/display-wayland.cc:692]: conky: defining struts

in -DD mode, following output get looped:

DEBUG(1) [/home/buildozer/aports/main/conky/src/conky-1.21.0/src/fonts.cc:84]: loading fonts

@olm52
Copy link

olm52 commented May 22, 2024

Here on KDE Plasma 6 wayland no output at all. I have downgraded to 1.20 now

conky.config = {
	gap_x = 30,
	gap_y = 1360,
	minimum_width = 410, minimum_height = 105,
	maximum_width = 410,
	alignment = 'top_right',
	update_interval = 5,
	use_xft = true,
    font = 'Noto Sans Mono:size=12',
	own_window = true,
	own_window_type = 'desktop',
	own_window_colour = '#FFFFFF',
	background = true,
	own_window_transparent = false,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 255,
	double_buffer = true,
	draw_shades = false,
	out_to_x = false,
	out_to_wayland = true,
	border_inner_margin = 16,
};

@simonwiles
Copy link

simonwiles commented May 23, 2024

I'm having the same issue as @magdesign and @olm52 (Hyprland on Arch, for my part, downgrading to 1.20 has been my temporary resolution too) -- but I don't think this is the same issue as the OP. Should be a new issue?

@Caellian
Copy link
Collaborator

@simonwiles no need, you'll get a notification when this issue is addressed, so you can just create a new issue if it's not fixed for you then. There's a lot of Wayland support missing so creating a separate issue won't really help.

Gelbpunkt pushed a commit to sm7150-mainline/pmaports that referenced this issue Jun 6, 2024
Conky got an issue on Wayland since 1.20.2:

brndnmtthws/conky#1898
Kreyren pushed a commit to Kreyren/pmaports-kreyren that referenced this issue Aug 18, 2024
Conky got an issue on Wayland since 1.20.2:

brndnmtthws/conky#1898
(cherry picked from commit 8e5597a)
@Caellian
Copy link
Collaborator

Caellian commented Dec 7, 2024

#2103 was merged. Can you verify whether this issue persists?

@Caellian Caellian added need details waiting for more details from reporter or community and removed need details waiting for more details from reporter or community labels Dec 7, 2024
@Caellian
Copy link
Collaborator

Caellian commented Dec 7, 2024

Tested on hyprland, regardless of out_to_x value, if out_to_wayland is true, conky will be shown correctly.

@Caellian Caellian closed this as completed Dec 7, 2024
@Caellian Caellian changed the title [Bug]: out_to_wayland not respected anymore (regression) [Bug]: out_to_wayland not respected anymore Jan 3, 2025
@Caellian Caellian added regression something that worked previously but was broken at some point by some commit and removed bug related to incorrect existing implementation of some functionality labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display: wayland related to Wayland backend display: x11 related to X11 backend lua related to Lua integration in conky regression something that worked previously but was broken at some point by some commit
Projects
None yet
Development

No branches or pull requests

5 participants