Comments (9)
I will try to port my code to rust and open a open ;-)
from wluma.
Unfortunately, the commitment with XFCE has been way too long for me ;) . Thanks for suggesting my divorce though, will think of it when I start having fights with it.
from wluma.
Sounds good, we even had @cyrinux implement it in the past, when it was a C project with python extensions 😜
We both really ended up using time based ALS simulation on laptops without ALS, but there is definitely room for webcam based simulation if you or someone else wants.
from wluma.
Hi @manorit2001 ,
We implement the new als.webcam
in #13 . 🥳
You can check the README.md if you need more details about the configuration of this one, but basically you need to enable the new ALS, and so disable the others:
[als.webcam]
video = 0
thresholds = [ 15, 30, 45, 60, 75 ]
Can you please try it and give us a feedback ?
from wluma.
Hi, I am getting this error while running. Can you help me out
$ RUST_BACKTRACE=full sudo -E wluma [14:25:30]
Using config: Config { frame: Frame { capturer: Wlroots, processor: Vulkan }, als: Webcam { video: 0, thresholds: [15, 30, 45, 60, 75] }, output_by_type: OutputByType { backlight: {}, ddcutil: {} }, keyboard: None, output: {"eDP-1": Backlight(BacklightOutput { path: "/sys/class/backlight/intel_backlight", use_contents: false })} }
thread 'main' panicked at 'Unable to initialize Vulkan: ERROR_EXTENSION_NOT_PRESENT', src/main.rs:38:56
stack backtrace:
0: 0x563775e60f7c - <unknown>
1: 0x563775e82b6c - <unknown>
2: 0x563775e5dce5 - <unknown>
3: 0x563775e62b00 - <unknown>
4: 0x563775e626b5 - <unknown>
5: 0x563775e631b4 - <unknown>
6: 0x563775e62c90 - <unknown>
7: 0x563775e61424 - <unknown>
8: 0x563775e62bf9 - <unknown>
9: 0x563775daa0e1 - <unknown>
10: 0x563775daa1d3 - <unknown>
11: 0x563775dde418 - <unknown>
12: 0x563775dd84a3 - <unknown>
13: 0x563775dedfa9 - <unknown>
14: 0x563775e60c5b - <unknown>
15: 0x563775dde7b2 - <unknown>
16: 0x7f085a66ab25 - __libc_start_main
17: 0x563775daa89e - <unknown>
18: 0x0 - <unknown>
I installed the latest version from AUR package named wluma-git
from wluma.
I installed my vulkan drivers for intel ( assuming that the AUR package didn't have updated dependencies ). Now I am getting this error
$ sudo -E wluma [14:31:08]
Using config: Config { frame: Frame { capturer: Wlroots, processor: Vulkan }, als: Webcam { video: 0, thresholds: [15, 30, 45, 60, 75] }, output_by_type: OutputByType { backlight: {}, ddcutil: {} }, keyboard: None, output: {"eDP-1": Backlight(BacklightOutput { path: "/sys/class/backlight/intel_backlight", use_contents: false })} }
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NoCompositorListening', src/frame/capturer/wlroots.rs:39:56
EDIT: I installed wlroots
package but it still showed the same error. For the meanwhile, to check webcam support, I set capturer=none
in the config, I can see the webcam is used periodically. Thank you for the prompt implementation!
It would be great if wlroots
problem can also be solved.
from wluma.
Hi @manorit2001 ,
I was glade to train my rust with your request 😉
If your webcam blink, its nice. 👍
I think @maximbaz will prefer we open another issue if you got the first error while using wayland.
According to the Unable to initialize Vulkan: ERROR_EXTENSION_NOT_PRESENT
error, I can guess you are maybe not using a wayland session but X11 ? wlroots
is a compositor library for wayland only. In this case we got this issue #5 about the same problem.
For example I run sway under wayland on archlinux.
Also, you don't need to use sudo but better, add you in video group.
Can you give use more informations about your distro and session used and maybe ?
from wluma.
I think @maximbaz will prefer we open another issue if you got the first error while using wayland.
According to the
Unable to initialize Vulkan: ERROR_EXTENSION_NOT_PRESENT
error, I can guess you are maybe not using a wayland session but X11 ?wlroots
is a compositor library for wayland only. In this case we got this issue #5 about the same problem.
Yes, you guessed it right. I am using X11
. I saw that wlroots
was the default capturer in the configs so I tried installing and using it when I got that error. Does X11 have some different capturer? If not, I'll open another issue to keep track of this bug
Also, you don't need to use sudo but better, add you in video group.
Oh, will do so
Can you give use more informations about your distro and session used and maybe ?
I am using xfce under X11. My distro is Manjaro Linux with kernel 5.15.12-1-MANJARO #1
from wluma.
Ok well, yes, for the moment, until issue #5 only wayland is supported. Not needed to open another issue.
The main stuff for the capturer wlrools
is related to wayland and so there is still some work to make this working with X11 but it's not a priority TBH.
With archlinux I can read you can easily make use of wayland with sway, gnome or KDE, XFCE don't support wayland also. If you are not married with XFCE, you can maybe give a try ? Good luck 😉
from wluma.
Related Issues (20)
- [Bug]: ALS data not parsed/calculated correctly HOT 2
- [Bug]: Can't find display, but shows up in ddcutil detect HOT 8
- [Bug]: Cargo failling to compile v4l-sys HOT 5
- [Bug]: Unable to start wluma from the command line HOT 3
- [Feature request]: gracefully disable capture when not wlroots HOT 2
- [Feature request]: be lenient with config file and assume defaults HOT 1
- [Feature request]: print more debug info HOT 3
- [Bug]: No such file or directory HOT 3
- Possibily modify target of wluma.service HOT 5
- [Bug]: Crash on PC with AMD GPU (capturer = wlroots) HOT 10
- [Bug]: Panicked when running both with sudo and not HOT 6
- 'predictor-eDP-1' panicked at 'Did not receive initial ALS value in time' on Microsoft Surface Pro 8 HOT 3
- [Feature request]: Support monitor disconnect HOT 6
- [Bug]: Unable to initialize Vulkan: ERROR_EXTENSION_NOT_PRESENT HOT 4
- [Bug]: wluma refuses to read my config file HOT 2
- configuration question HOT 6
- [Feature request]: Add gamma control HOT 9
- [Bug]: `Backlight::new` returns early instead of using dbus
- [Bug]: No binary in Github artifacts HOT 3
- [Feature request]: Support custom external sources for luminance value HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wluma.