Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Vadim Lebedev
This is what ChatGPT proposes: #include #include void scan_devices(const char* target_string) { libusb_device **devs; libusb_context *ctx = NULL; int r; ssize_t cnt; r = libusb_init(&ctx); if (r < 0) return; cnt = libusb_get_device_list(ctx, &devs); if (cnt < 0)

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Lennart Poettering
On Mi, 14.02.24 20:24, Muni Sekhar ([email protected]) wrote: > HI all, > > USB devices can have multiple interfaces (functional units) that serve > different purposes (e.g., data transfer, control, audio, etc.). > > Each interface can have an associated string descriptor (referred to > as i

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Greg KH
On Wed, Feb 14, 2024 at 08:24:25PM +0530, Muni Sekhar wrote: > HI all, > > USB devices can have multiple interfaces (functional units) that serve > different purposes (e.g., data transfer, control, audio, etc.). > > Each interface can have an associated string descriptor (referred to > as iInterf

[systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Muni Sekhar
HI all, USB devices can have multiple interfaces (functional units) that serve different purposes (e.g., data transfer, control, audio, etc.). Each interface can have an associated string descriptor (referred to as iInterface). The string descriptor provides a human-readable name or description f

Re: [systemd-devel] Issue with systemd-logind

2024-02-14 Thread Lennart Poettering
On Mi, 14.02.24 15:03, Akshaya Maran ([email protected]) wrote: > Hi, > > I am trying to run weston11.0.1 using systemd logind launcher but got this > error > " logind: failed to get session seat > logind: cannot setup systemd-logind helper error:" This looks like an error message from so

[systemd-devel] Issue with systemd-logind

2024-02-14 Thread Akshaya Maran
Hi, I am trying to run weston11.0.1 using systemd logind launcher but got this error " logind: failed to get session seat logind: cannot setup systemd-logind helper error:" I referred to yocto build . I added weston.service,weston.socket,weston-autologin,weston-start and other files attached and

Re: [systemd-devel] ConditionNeedsUpdate, read-only /usr, and sysext

2024-02-14 Thread Lennart Poettering
On Mi, 07.02.24 20:42, Valentin David ([email protected]) wrote: > Hello everybody, > > The behavior of ConditionNeedsUpdate is that if /etc/.updated is > older than /usr/, then it is true. > > I have some issues with this. But maybe I do not use it the right > way. > > First, when using a re

[systemd-devel] Wireguard routes only after connect

2024-02-14 Thread Julian Zielke
Hi, is there a possibility to only add the routes from allowed-ips to the kernel routing table after the peer has connected? Because since the tunnel itself is stateless, there is no way for me to make use of OSPF to route packets to a selective server running a tunnel to the same endpoint (for