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 (regression) #1898

Open
proycon opened this issue May 3, 2024 · 4 comments
Open

[Bug]: out_to_wayland not respected anymore (regression) #1898

proycon opened this issue May 3, 2024 · 4 comments
Labels
bug Bug report or bug fix PR display: wayland Issue related to Wayland backend display: x11 Issue related to X11 backend lua Issue or PR related to Lua code

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 Bug report or bug fix PR triage Issue that hasn't been verified labels May 3, 2024
@Caellian Caellian added display: x11 Issue related to X11 backend display: wayland Issue related to Wayland backend lua Issue or PR related to Lua code and removed triage Issue that hasn't been verified 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report or bug fix PR display: wayland Issue related to Wayland backend display: x11 Issue related to X11 backend lua Issue or PR related to Lua code
Projects
None yet
Development

No branches or pull requests

5 participants