wluma icon indicating copy to clipboard operation
wluma copied to clipboard

[Feature request]: Support Hyprland screen capturing (after its transition away from wlroots)

Open Rishik-Y opened this issue 8 months ago • 31 comments

Steps for reproducing the issue

Running Wluma on Hyprland

There is no issue, and the wluma works perfectly fine when keeping capture = "none"

but doesn't really work when keeping capture = "wlroots"

I was till now stuck in finding out how to set it up exactly properly

but thanks to https://github.com/maximbaz/wluma/issues/40

It was way easier, but one thing I am stuck on is that https://github.com/vega-d had gnome installed which doesn't have wlroots

While I have hyprland installed which I am pretty sure is based on wlroots Compositor

I feel like I am missing something since everything works just right when keeping capture = "none" and using my webcam as sensor.

Can anybody tell me what exactly is the issue here.

What is the buggy behavior?

❯ wluma
[2024-06-13T13:54:27Z INFO  wluma] Continue adjusting brightness and wluma will learn your preference over time.
thread 'predictor-eDP-1' panicked at src/frame/capturer/wlroots.rs:80:14:
Unable to init export_dmabuf_manager: Missing
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

What is the expected behavior?

❯ wluma
[2024-06-13T13:51:29Z INFO  wluma] Continue adjusting brightness and wluma will learn your preference over time.

Logs

░▒▓   ~  
❯ RUST_LOG=debug wluma
[2024-06-13T13:58:18Z DEBUG wluma] Using Config {
        als: Webcam {
            video: 0,
            thresholds: {
                30: "dim",
                60: "bright",
                75: "outdoors",
                15: "dark",
                0: "night",
                45: "normal",
            },
        },
        output: [
            Backlight(
                BacklightOutput {
                    name: "eDP-1",
                    path: "/sys/devices/pci0000:00/0000:00:08.1/0000:07:00.0/drm/card2/card2-eDP-1/amdgpu_bl2",
                    capturer: Wlroots,
                    min_brightness: 1,
                },
            ),
            Backlight(
                BacklightOutput {
                    name: "keyboard-dell",
                    path: "/sys/class/net/enp4s0/enp4s0-2::lan",
                    capturer: None,
                    min_brightness: 0,
                },
            ),
        ],
    }
[2024-06-13T13:58:18Z INFO  wluma] Continue adjusting brightness and wluma will learn your preference over time.
thread 'predictor-eDP-1' panicked at src/frame/capturer/wlroots.rs:80:14:
Unable to init export_dmabuf_manager: Missing
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Version

4.4.0-1

Environment

░▒▓   ~  
❯ lsb_release -a; uname -a; pgrep -l sway; pacman -Q | egrep "(wlroots|vulkan|sway|clang|rust)"; dpkg -l | egrep "(wlroots|vulkan|sway|clang|rust)"
bash: lsb_release: command not found
Linux archlinux 6.9.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 31 May 2024 15:14:45 +0000 x86_64 GNU/Linux
egrep: warning: egrep is obsolescent; using grep -E
clang 17.0.6-2
rust 1:1.78.0-1
swaylock-effects 1.7.0.0-4
swaylock-effects-debug 1.7.0.0-4
vulkan-headers 1:1.3.285-1
vulkan-icd-loader 1.3.285-1
vulkan-intel 1:24.1.1-1
vulkan-radeon 1:24.1.1-1
vulkan-validation-layers 1.3.275-1
wlroots 0.17.3-1
bash: dpkg: command not found
egrep: warning: egrep is obsolescent; using grep -E

Rishik-Y avatar Jun 13 '24 14:06 Rishik-Y