Closed naps62 closed 1 year ago
Can you check what's on systemctl status v4l2-relayd
?
v4l2-relayd.service - v4l2-relay daemon service
Loaded: loaded (/usr/lib/systemd/system/v4l2-relayd.service; enabled; preset: disabled)
Drop-In: /etc/systemd/system/v4l2-relayd.service.d
└─override.conf
Active: active (running) since Fri 2023-06-30 09:32:54 WEST; 1h 44min ago
Process: 591 ExecCondition=/usr/bin/test -n ${VIDEOSRC} (code=exited, status=0/SUCCESS)
Process: 630 ExecCondition=/usr/bin/test -n $FORMAT (code=exited, status=0/SUCCESS)
Process: 633 ExecCondition=/usr/bin/test -n $WIDTH (code=exited, status=0/SUCCESS)
Process: 635 ExecCondition=/usr/bin/test -n $HEIGHT (code=exited, status=0/SUCCESS)
Process: 641 ExecCondition=/usr/bin/test -n $FRAMERATE (code=exited, status=0/SUCCESS)
Process: 643 ExecCondition=/usr/bin/test -n ${CARD_LABEL} (code=exited, status=0/SUCCESS)
Main PID: 645 (v4l2-relayd)
Tasks: 3 (limit: 38015)
Memory: 12.1M
CPU: 46ms
CGroup: /system.slice/v4l2-relayd.service
└─645 /usr/bin/v4l2-relayd -i icamerasrc -o "appsrc name=appsrc caps=video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! videoconvert ! video/x-raw,format=YUY2 ! v4l2sink name=v4l2sink device=/dev/video0
jun 30 09:32:53 arrakis systemd[1]: Starting v4l2-relay daemon service...
jun 30 09:32:54 arrakis systemd[1]: Started v4l2-relay daemon service.
jun 30 09:32:54 arrakis v4l2-relayd[645]: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
That's literally the same error I get when I first ran the script but didn't restart. I'd say restart your PC but I assume you've done that already lol
Give me a day or two so I can install Manjaro to my XPS 13 Plus and see what's what
@naps62 Out of topic: how did you install Manjaro to your laptop? I used dd to copy Manjaro ISO to my flash drive as directed by Manjaro Wiki but it's not showing up on my UEFI boot options :/
@striczkof i used to have similar issues. Nowadays I have a usb stick with Ventoy installed (https://www.ventoy.net/en/index.html)
It makes it so you can just copy iso files into it, and it handles all the boot complexities (and gives you a menu, so you can keep multiple distros ready to boot)
And yes, I did restart :)
@naps62 so ye I just gave up and used ventoy because idk why ISO won't work with cp nor dd.
Funny thing now though, my webcam is working after installing and restarting, no tinkering done other than install git and linux61-header (using linux61 since it came with manjaro fresh install) so now I am totally clueless what happened to both @hinricht 's (#21 ) and your setup. GIve me a bit and I will try with Linux 6.3.
Edit: works on 6.3.5-2-MANJARO
too so yeah...
I'm wondering, are you using 12th gen or 13th gen XPS 13 Plus? Highly doubt that should matter but dunno
My environment:
XPS 13 Plus 9320 with i7-1260P
Manjaro 22.1.1
Xfce 4.18
6.1.31-2-MANJARO
linux61
linux61-headers
Working on Firefox and Discord after restart Apologies for the German outputs. I forgor again :skull: Logs:
@striczkof I just realized I failed to mention a probably important detail. I use manjaro-sway, with wayland instead of x11 (this is so natural to me nowadays that I forgot to mention). not sure what the default desktop is in manjaro nowadays
I'm also using hyprland as wm instead of sway, although I tested booting with sway again with the same result
Same for me, I'm also using manajro-sway with Wayland (Kernel 6.3.5-2-MANJARO). Manjaro-sway is a rolling release so I don't have any version number for it.
Never used a tiling DE before, give me a bit lol
But this installer works on my GNOME and KDE Wayland DEs so wayland part should be irrelevant
So uh, @hinricht think I might need more details from you lol like the full install logs even if it is successful (don't forget to run uninstall.sh, delete, then clone the repo again) since i manage to get test.sh working. Also do you happen to have your webcam enabled in your BIOS?
Funny thing now though, I am experiencing exactly the same problem as @naps62 with Firefox not detecting my camera and v4l2-relayd showing "gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed" Might be missing some plugins or so that somehow present on most Arch installation but not for manjaro-sway. Doing some more testing.
YOOO @naps62 I managed to fix it! Thanks to @stefanpartheym post in https://bbs.archlinux.org/viewtopic.php?id=277462&p=3 (hey if you see this can you merge our PRs xd) Adding the missing dependencies in an hour then the current PR is ready.
sudo pacman -S gst-plugins-good gst-plugins-bad
sudo modprobe -r v4l2loopback && sudo modprobe v4l2loopback
sudo systemctl restart v4l2-relayd
Confirmed working on Discord and Firefox with --workaround. The kernel is 6.4.1-5-MANJARO
Also thank you both for forcing me to try out a tiling DE. Sway's actually nice
@striczkof 🎊 🎊 🎊
gst-plugins-good
did it for me. I installed only that one
webcam tested on Chrome / Slack / Discord / Firefox. --workaround
was only needed for Firefox, as far as I can tell
is it useful to remove the workaround considering I mainly use chrome? not sure if there are performance benefits
this next part is offtopic, but other people may end up here through google:
my last hanging fruit was the microphone, which also worked on Ubuntu, but only recorded white noise in Arch. Just found the solution here: https://bbs.archlinux.org/viewtopic.php?pid=2058151#p2058151
In the not working case, can you restore it by running
sudo alsactl init
prevent it from breaking in the first place by running
sudo alsactl store
Great! That means one fewer dependency to install. Updated the PR already.
I guess conversion might affect the latency a bit? The only way to find out is to compare them quality-wise really. Remove it if you don't need the work around I guess. It now works without the workaround for Firefox 115 so it's not even needed for that.
Problem is my Discord clients (Regular, Arch Electron, and Canary) are still not working without the workaround. @naps62 what client are you using?
I use he regular one, just with this config change (but I'm pretty sure it's irrelevant for this)
Exec=/usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
I use he regular one, just with this config change (but I'm pretty sure it's irrelevant for this)
`Exec=/usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
Not working on both Arch and Manjaro and with and without options :(
kernel:
6.3.5-2-MANJARO
laptop:Dell XPS 13 Plus
After going through the setup in this repo, the
test.sh
script works, but everything else seems to fail (chrome, firefox, obs). This is both before and after trying the--workaround
v4l2 shows me the devices:
and ffmpeg: