You are not logged in.
Pages: 1
I have troubles with webcam on my laptop, it works very randomly (e.g, it can work for ~10 minutes and then stops for 1-2 days).
Hardware Model: Lenovo IdeaPad S340-14IIL
Kernel: Linux 6.7.4-arch1-1
$ lsusb
Bus 001 Device 010: ID 04f2:b61e Chicony Electronics Co., Ltd Integrated Camera
Also, it is constantly appearing and disappearing when I try to use it (e.g, through Google Meet or Telegram).
$ journalctl -b
...
Feb 11 00:01:19 hyperion kernel: usb 1-6: USB disconnect, device number 9
Feb 11 00:01:19 hyperion kernel: usb 1-6: new high-speed USB device number 10 using xhci_hcd
Feb 11 00:01:19 hyperion kernel: usb 1-6: New USB device found, idVendor=04f2, idProduct=b61e, bcdDevice= 4.25
Feb 11 00:01:19 hyperion kernel: usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2
Feb 11 00:01:19 hyperion kernel: usb 1-6: Product: Integrated Camera
Feb 11 00:01:19 hyperion kernel: usb 1-6: Manufacturer: Chicony Electronics Co.,Ltd.
Feb 11 00:01:19 hyperion kernel: usb 1-6: SerialNumber: 0001
Feb 11 00:01:19 hyperion kernel: usb 1-6: Found UVC 1.00 device Integrated Camera (04f2:b61e)
Feb 11 00:01:19 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:19 hyperion pipewire[624]: [0:00:47.810514709] [624] ERROR IPAModule ipa_module.cpp:172 Symbol ipaModuleInfo not found
Feb 11 00:01:19 hyperion pipewire[624]: [0:00:47.810533706] [624] ERROR IPAModule ipa_module.cpp:292 v4l2-compat.so: IPA module has no valid info
Feb 11 00:01:19 hyperion pipewire[624]: [0:00:47.810566455] [624] INFO Camera camera_manager.cpp:284 libcamera v0.2.0
Feb 11 00:01:19 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
I tried to blacklist USB autosuspend for webcam but it hasn't worked (it was adviced in similar topic https://bbs.archlinux.org/viewtopic.php?id=260354)
/etc/udev/rules.d/50-usb_power_save.rules
# blacklist for usb autosuspend
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04f2", ATTR{idProduct}=="b61e", GOTO="power_usb_rules_end"
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"
LABEL="power_usb_rules_end"
I am desperate and would appreciate any help.
Last edited by elintendo (2024-02-12 06:00:14)
Offline
Please don't post random journal excerpts - the segment shows the webcam to flicker (disappears from the bus and immediately re-appears) but no context and especially not what leads up to the disappearance.
Do you use userspace powermanagement tools like TLP?
Ftr, similar system with similar-ish sounding symptoms:
https://bbs.archlinux.org/viewtopic.php?id=280966
Offline
Please don't post random journal excerpts - the segment shows the webcam to flicker (disappears from the bus and immediately re-appears) but no context and especially not what leads up to the disappearance.
When I try to use webcam (click camera button in Google Meet or Telegram), my camera LED blinks for a moment and stops. Then these logs appear in journal.
Do you use userspace powermanagement tools like TLP?
No.
Ftr, similar system with similar-ish sounding symptoms:
https://bbs.archlinux.org/viewtopic.php?id=280966
My CPU, memory, audio are completely fine, unlike in this topic.
Actually, i have some strange logs of Wireplumber:
● wireplumber.service - Multimedia Service Session Manager
Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
Active: active (running) since Sun 2024-02-11 00:00:47 MSK; 11h ago
Main PID: 626 (wireplumber)
Tasks: 7 (limit: 9129)
Memory: 30.4M (peak: 32.4M)
CPU: 322ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
└─626 /usr/bin/wireplumber
Feb 11 00:00:59 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:00:59 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:08 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:08 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:11 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:11 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:17 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:17 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:19 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 11 00:01:19 hyperion wireplumber[626]: <WpPortalPermissionStorePlugin:0x6320cd31a010> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Last edited by elintendo (2024-02-11 08:59:20)
Offline
Then these logs appear in journal.
Yes, but what is in the journal *BEFORE*?
CPU and RAM load in the other thread are about wireplumbers response to the webcam trashing the USB - they're not the cause of the problem but symptoms.
WP complains that you don't have xdg-desktop-portal (resp. an implementation like https://archlinux.org/packages/extra/x8 … portal-gtk ) - that might prevent you from using the camera but not explain why it's apparently falling off the bus.
Offline
The journal has the WP/portal issues, but not the webcam dropping off the bus.
Was that a red herring? Is the journal supposed to cover a webcam failure?
Install an xdg-desktop-portal implementation, in doubt the gtk one.
Offline
I use xorg+awesome wm. Installing xdg-desktop-portal-gtk shows:
(actually, now, webcam is working )
× xdg-desktop-portal-gtk.service - Portal service (GTK/GNOME implementation)
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
Active: failed (Result: exit-code) since Sun 2024-02-11 18:50:30 MSK; 11min ago
Process: 1572 ExecStart=/usr/lib/xdg-desktop-portal-gtk (code=exited, status=1/FAILURE)
Main PID: 1572 (code=exited, status=1/FAILURE)
CPU: 17ms
Feb 11 18:50:30 hyperion systemd[630]: Starting Portal service (GTK/GNOME implementation)...
Feb 11 18:50:30 hyperion xdg-desktop-por[1572]: cannot open display:
Feb 11 18:50:30 hyperion systemd[630]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Feb 11 18:50:30 hyperion systemd[630]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Feb 11 18:50:30 hyperion systemd[630]: Failed to start Portal service (GTK/GNOME implementation).
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
Active: active (running) since Sun 2024-02-11 18:48:07 MSK; 14min ago
Main PID: 734 (xdg-desktop-por)
Tasks: 6 (limit: 9129)
Memory: 22.7M (peak: 24.7M)
CPU: 59ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
└─734 /usr/lib/xdg-desktop-portal
Feb 11 18:48:07 hyperion xdg-desktop-por[734]: Choosing gtk.portal for org.freedesktop.impl.portal.Inhibit as a last-resort fallback
Feb 11 18:48:07 hyperion xdg-desktop-por[734]: Choosing gtk.portal for org.freedesktop.impl.portal.Access as a last-resort fallback
Feb 11 18:48:07 hyperion xdg-desktop-por[734]: Choosing gtk.portal for org.freedesktop.impl.portal.Account as a last-resort fallback
Feb 11 18:48:07 hyperion xdg-desktop-por[734]: Choosing gtk.portal for org.freedesktop.impl.portal.Email as a last-resort fallback
Feb 11 18:48:07 hyperion xdg-desktop-por[734]: Choosing gtk.portal for org.freedesktop.impl.portal.DynamicLauncher as a last-resort fallback
Feb 11 18:48:07 hyperion systemd[630]: Started Portal service.
Feb 11 18:49:05 hyperion xdg-desktop-por[734]: A backend call failed: Could not activate remote peer: startup job failed.
Feb 11 18:49:05 hyperion xdg-desktop-por[734]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: startup job failed.
Feb 11 18:50:30 hyperion xdg-desktop-por[734]: A backend call failed: Could not activate remote peer: startup job failed.
Feb 11 18:50:30 hyperion xdg-desktop-por[734]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: startup job failed.
Offline
Feb 11 18:50:30 hyperion xdg-desktop-por[1572]: cannot open display:
You're also using xinit/startx? Last link below (likely)
However, if wireplumper is happy xdg-desktop-portal.service you can also ditch the implmentation again.
Nevertheless you want to look into your xinitrc (hint: second blue note, you're probably not importing the session environment)
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
You're also using xinit/startx? Last link below (likely)
My .xinitrc:
#!/bin/bash
parcellite &
flameshot &
exec awesome
I have read articles that you pinned down. My xinitrc seems to be ok?
However, if wireplumper is happy xdg-desktop-portal.service you can also ditch the implmentation again.
I do not understand what do you mean by "ditch the implmentation again".
Offline
My xinitrc seems to be ok?
No?
hint: second blue note, you're probably not importing the session environment
I do not understand…
You can technically remove xdg-desktop-portal-gtk again, wireplumbum seems ok with xdg-desktop-portal alone.
Offline
My xinitrc seems to be ok?
No?
seth wrote:hint: second blue note, you're probably not importing the session environment
I do not understand…
You can technically remove xdg-desktop-portal-gtk again, wireplumbum seems ok with xdg-desktop-portal alone.
You're right! I removed xdg-desktop-portal-gtk and installed plain xdg-desktop-portal, webcam is working now.
But this log (last 2 lines) stresses me a bit..
● wireplumber.service - Multimedia Service Session Manager
Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
Active: active (running) since Sun 2024-02-11 22:32:27 MSK; 8min ago
Main PID: 638 (wireplumber)
Tasks: 7 (limit: 9129)
Memory: 30.2M (peak: 32.2M)
CPU: 176ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
└─638 /usr/bin/wireplumber
Feb 11 22:32:27 hyperion systemd[629]: Started Multimedia Service Session Manager.
Feb 11 22:32:28 hyperion wireplumber[638]: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
Feb 11 22:32:28 hyperion wireplumber[638]: [0:00:15.958196284] [638] ERROR IPAModule ipa_module.cpp:172 Symbol ipaModuleInfo not found
Feb 11 22:32:28 hyperion wireplumber[638]: [0:00:15.958397104] [638] ERROR IPAModule ipa_module.cpp:292 v4l2-compat.so: IPA module has no valid info
Feb 11 22:32:28 hyperion wireplumber[638]: [0:00:15.958429598] [638] INFO Camera camera_manager.cpp:284 libcamera v0.2.0
Feb 11 22:32:28 hyperion wireplumber[638]: <WpPortalPermissionStorePlugin:0x647bae205b60> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Feb 11 22:32:28 hyperion wireplumber[638]: <WpPortalPermissionStorePlugin:0x647bae205b60> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Offline
The error is extremely common and is perhaps(?) related to "IPA module has no valid info", https://gitlab.freedesktop.org/pipewire … te_2184715
Offline
The error is extremely common and is perhaps(?) related to "IPA module has no valid info", https://gitlab.freedesktop.org/pipewire … te_2184715
Thank you!
For future generations:
pacman -S xdg-desktop-portal
solves the issue.
Last edited by elintendo (2024-02-12 05:59:50)
Offline
Pages: 1