Giter Site home page Giter Site logo

Comments (9)

cyrinux avatar cyrinux commented on August 18, 2024 1

I will try to port my code to rust and open a open ;-)

from wluma.

manorit2001 avatar manorit2001 commented on August 18, 2024 1

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.

maximbaz avatar maximbaz commented on August 18, 2024

Sounds good, we even had @cyrinux implement it in the past, when it was a C project with python extensions 😜

https://github.com/cyrinux/wluma-als-emulator/blob/master/wluma_als_emulator/strategies/webcam_strategy.py

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.

cyrinux avatar cyrinux commented on August 18, 2024

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.

manorit2001 avatar manorit2001 commented on August 18, 2024

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.

manorit2001 avatar manorit2001 commented on August 18, 2024

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.

cyrinux avatar cyrinux commented on August 18, 2024

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.

manorit2001 avatar manorit2001 commented on August 18, 2024

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.

cyrinux avatar cyrinux commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.