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 (munisekhar...@gmail.com) 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

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

2024-02-14 Thread Lennart Poettering
On Mi, 14.02.24 15:03, Akshaya Maran (akshayamara...@gmail.com) 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

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(); if (r < 0) return; cnt = libusb_get_device_list(ctx, ); if (cnt < 0) return;

[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

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

[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

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

2024-02-14 Thread Lennart Poettering
On Mi, 07.02.24 20:42, Valentin David (m...@valentindavid.com) 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

[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