wulf7 / libudev-devd Goto Github PK
View Code? Open in Web Editor NEWlibudev-compatible interface for devd
libudev-compatible interface for devd
In wlroots#3541 the hardcoded list of EDID manufacturers was replaced by udev_hwdb_new
which is not implemented on FreeBSD:
Lines 33 to 39 in a91c357
$ pkg install sway-devel
$ vidcontrol -s 1 </dev/ttyv0 # aka Ctrl+Alt+F1
$ if [ -z "$XDG_RUNTIME_DIR" ]; then export XDG_RUNTIME_DIR=/tmp; fi
$ seatd-launch sway
[...]
00:00:00.003 [ERROR] [wlr] [backend/drm/backend.c:187] udev_hwdb_new failed
[...]
#include <libudev.h>
int main() {
int res;
struct udev * context;
struct udev_device * device;
char const * sys_name;
char const * subsystem;
context = udev_new();
device = udev_device_new_from_syspath(
context,
"/dev/input/event0"
);
if (device == NULL) {
return 1;
}
printf("%d",udev_device_has_tag(device,"TAG"));
return 0;
}
cc udev.c -I /usr/local/include/ -L/usr/local/lib -ludev
udev_new
udev_device_new_from_syspath(/dev/input/event0)
udev_device_get_syspath(0xbd83f41b000) /dev/input/event0
udev_device_get_sysname(0xbd83f41b000(/dev/input/event0)) event0
udev_device_get_udev(0xbd83f41b000(/dev/input/event0))
udev_device_get_syspath(0xbd83f419100) kbdmux0
udev_device_has_tag(0xbd83f41b000, TAG)
Segmentation fault (core dumped)
Program terminated with signal SIGSEGV, Segmentation fault.
Address not mapped to object.
#0 0x00000008216c13e6 in udev_list_entry_get_by_name (ule=0x0, name=0x200620 "TAG") at ../udev-list.c:170
170 ret = RB_FIND(udev_list, ule->list, find);
(gdb) bt
#0 0x00000008216c13e6 in udev_list_entry_get_by_name (ule=0x0, name=0x200620 "TAG") at ../udev-list.c:170
#1 0x00000008216be853 in udev_device_has_tag (ud=0xbd83f41b000, tag=0x200620 "TAG") at ../udev-device.c:185
#2 0x0000000000201829 in main ()
This causes kwin_wayland to segfault since it uses has_tag here https://invent.kde.org/plasma/kwin/-/blob/784d48ef/src/tabletmodemanager.cpp#L38
For example, muffin 5.4 (from Cinnamon desktop environment) specifies a minimum version requirement of 228.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.