Wayland and opencl?

Your distro has nothing to do with it. As long as you have grim, slurp and wl-copy installed and are on wayland you can do: grim -g "$(slurp)" - | wl-copy to copy a selection. You can also do grim - | wl-copy to copy the entire screen.

1 Like

At the moment my darktable-pc uses Xubuntu with XFCE 4.18.1 with X11. I did a lot of changes with the standard-settings and it is for 90% ok for me, but sometimes is horrible, especially some websites I need. For instance sliders in geequie don’t work correctly, while it is ok with Kubuntu. So I want to switch to wayland with the next install in 2026 (Kubuntu 26.04) or maybe earlier. My test pc with Kubuntu 25.10 has some problems, eg with window rules, but this can be accepted. What is unacceptable, if darktable doesn’t work.

So I need and want wayland ASAP.

I am waiting until dt 5.4 is available from Opensuse Build Service. Looks like it is down at the moment.

~# apt-cache policy darktable
darktable:
  Installiert:           5.2.1-1.1+92.1
  Installationskandidat: 5.2.1-1.1+92.1
  Versionstabelle:
 *** 5.2.1-1.1+92.1 500
        500 http://download.opensuse.org/repositories/graphics:/darktable/xUbuntu_24.04  Packages
        100 /var/lib/dpkg/status
     4.6.1-2ubuntu1 500
        500 http://at.archive.ubuntu.com/ubuntu noble/universe amd64 Packages

I try to explain it in a few words.

I need fast screenshots, without being asked for a filename. I want to press a shortcut and that is all. I have to be ready for the next screenshot.

The filesize should be as small as possible. I am playing at the moment with different values.

I want the active window too. This can be a big challenge with wayland.

Here is an example as part of my script:

spectacle -fbn -o >(Convert - "$screenshot_file")

Note Convert is not the command convert.

Convert () {
    	local source=$1 dest=$2
    	convert "$source" -resize 70% -quality 20 "$dest"
	}

I didn’t find a way to do this with Gnome, because spectacle doesn’t work with gnome.

And that is the problem:

# apt install wl-copy 
Fehler: Paket wl-copy kann nicht gefunden werden.

Translated: wl-copy cannot be found, using Kubuntu 25.10

~# dpkg -l | grep grim
ii  grim                                                     1.4.0+ds-2build2                           amd64        command-line utility to make screenshots of Wayland desktops
ii  grimshot                                                 1.10.1-1                                   all          Easy to use screenshot tool for sway
~# dpkg -l | grep slurp
ii  slurp                                                    1.5.0-1                                    amd64        cli utility to select a region in a Wayland compositor
~# dpkg -l | grep sway
ii  grimshot                                                 1.10.1-1                                   all          Easy to use screenshot tool for sway
ii  sway                                                     1.10.1-2                                   amd64        i3-compatible Wayland compositor
ii  swaybg                                                   1.2.1-1                                    amd64        Wallpaper utility for Wayland compositors
ii  swayimg                                                  3.8-1build1                                amd64        image viewer for Sway/Wayland

The package might be called wl-clipboard. I don’t use it, so can’t say for sure.

1 Like

This is installed:

~# dpkg -l | grep wl-clipboard
ii  wl-clipboard                                             2.2.1-2                                    amd64        command line interface to the wayland clipboard

p   python3-cwl-utils               - Python Utilities and Autogenerated Classes
p   wl-beta                         - mail/news reader supporting IMAP for emacs
i A wl-clipboard                    - command line interface to the wayland clip
p   wl-mirror                       - output-mirroring tool for wlroots-based Wa
p   wl-present                      - command-line tool for managing wl-mirror p

I am swichting now to the test pc and see which errors I get with the recommended command above.

1 Like
~$ grim - | wl-copy
compositor doesn't support wlr-screencopy-unstable-v1

This is a well known error message.

1 Like

This thread is so confusing. Wayland has nothing to do with opencl.

1 Like

Thanks for clarifying this. So if you use wayland with dt before 5.4 and there are problems, it is not opencl related? The speed advantage of opencl with rendering should work in anycase with wayland?

Thanks to all for helping for my off-topic-problem.

What a problem are you trying to solve?

dt uses OpenCL to do basically math. OpenCL is not used for display rendering.

At the moment I use Xubuntu 24.04.3 LTS (no wayland) with darktable 5.2.1-1.1+92.1 and I don’t notice problems. For other reasons I would like to switch to wayland, but not if I get problems then with darktable. A good working darktable is a killer argument.

It looks like it is a good idea to wait for dt 5.4 or later, which is published very soon. I don’t want to change to another distro (from XFCE to Plasma) if I solve some problems and get other problems. The discussion here is about darktable. Other things I have tested and the problems are more or less ok.

What is the next version after 5.4 and when is it published?

Ive been using Wayland for a while on Fedora KDE, no issues. Compositor issues with Wayland were resolved in dt master. darktable 5.4 should be out in 2-3 days (released in GitHub). You will then need to wait for the packagers to update it in your distro of choice.

When people say Wayland issues, it is normally not a Wayland issue. It is a compositor using Wayland. You need to figure out what compositor Xubuntu is using.

I don’t know about other distros, but under OpenSUSe I can decide at login time whether to use wayland or XOrg. So no need to reinstall anything to test it (of course, backups are always a good idea when testing this kind of thing, if only to keep configs intact…)

Iirc, there were color managment issues with Wayland, which is why darktable did not want to support it (officially). I have no idea what the situation now is.

What I did see in one of your original posts was a reference to flatpak. That is known to cause some issues with openCL, but, as said by others, those have nothing to do with wayland.

Should be 5.6, and in about 6 months, if they maintain the schedule used in the past few years.

Just for information, Is that Wayland native or XWayland?

gnome’s builtin screenshot tool does all of this out of the box for me.

I just get a new ~/Pictures/Screenshots/Screenshot From 2025-12-09 03-49-56.png . and the popup from the screenshot keybind has the option to take a screenshot of a window/full screen/section of screen.

1 Like