wluma: [Bug]: Unable to compute luma percent: ERROR_INVALID_EXTERNAL_HANDLE
Steps for reproducing the issue
- start wluma
- Logs show: Unable to compute luma percent: ERROR_INVALID_EXTERNAL_HANDLE
What is the buggy behavior?
App chashes
What is the expected behavior?
Wluma should be fully functional
Logs
RUST_LOG=debug wluma
[2024-10-18T19:31:34Z DEBUG wluma] Using Config {
als: Iio {
path: "/sys/bus/iio/devices",
thresholds: {
250: "normal",
0: "night",
800: "outdoors",
80: "dim",
500: "bright",
20: "dark",
},
},
output: [
Backlight(
BacklightOutput {
name: "eDP-1",
path: "/sys/class/backlight/intel_backlight",
capturer: Wlroots,
min_brightness: 1,
},
),
Backlight(
BacklightOutput {
name: "keyboard-dell",
path: "/sys/bus/platform/devices/dell-laptop/leds/dell::kbd_backlight",
capturer: None,
min_brightness: 0,
},
),
],
}
[2024-10-18T19:31:34Z WARN wluma] Skipping 'keyboard-dell' as it might be disconnected: No such file or directory (os error 2)
[2024-10-18T19:31:34Z INFO wluma] Continue adjusting brightness and wluma will learn your preference over time.
[2024-10-18T19:31:34Z DEBUG wluma::frame::capturer::wlroots] Using output 'Samsung Display Corp. 0x419D (eDP-1)' for config 'eDP-1'
thread 'predictor-eDP-1' panicked at src/frame/capturer/wlroots.rs:128:26:
Unable to compute luma percent: ERROR_INVALID_EXTERNAL_HANDLE
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)"
zsh: command not found: lsb_release
Linux nitrotol-zenbook 6.11.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 10 Oct 2024 20:11:06 +0000 x86_64 GNU/Linux
1809 sway
1830 swaybg
1865 swayidle
egrep: warning: egrep is obsolescent; using grep -E
clang 18.1.8-3
rust 1:1.81.0-1
swaybg 1.2.1-1
swayfx 0.4-3
swayfx-debug 0.4-3
swayidle 1.8.0-2
swaylock 1.8.0-1
vulkan-headers 1:1.3.295-1
vulkan-icd-loader 1.3.295-1
vulkan-intel 1:24.2.4-1
vulkan-tools 1.3.269-1
wlroots 0.18.1-1
wlroots0.17 0.17.4-3
zsh: command not found: dpkg
egrep: warning: egrep is obsolescent; using grep -E
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (15 by maintainers)
In fact I was getting weird colors on lcdtech.info/en/tests/dead.pixel.htm, but on the website you found I am getting correct colors reported! So I think the fix is good after all, I was just confused somewhere during my earlier tests.
The final fix for this issue report is very pleasantly short, just 3 lines of code, and actually makes sense 😃
https://github.com/maximbaz/wluma/commit/caf9da6fb23e9005aab4dc7eba0e6624f17c60fd
I’m going to make a release in a moment!
Many thanks again for all your help! 🙏 🇺🇦
OMG this fixed wluma on my hardware too!!! Big thank you for reporting, without this I would have thought that the issue is with Vulkan driver! 🎉 🚀
Sure! Enjoy your weekend
I’m not sure yet, because I also don’t get any formats supported, but as I mentioned wluma doesn’t work on my laptop as well. I’ll try to find someone who can run this branch on a laptop where it definitely works, to see if they get any format that is reported as “supported”. I’m still hoping it’s a bug in the test code, but I can’t see right now what could be wrong - this probably can first happen on Monday.