soliwilos has quit [Remote host closed the connection]
progenyx has quit [Ping timeout: 260 seconds]
progenyx has joined #kisslinux
soliwilos has joined #kisslinux
progenyx has quit [Ping timeout: 256 seconds]
progenyx has joined #kisslinux
ella-0 has quit [Ping timeout: 252 seconds]
illiliti has joined #kisslinux
ella-0 has joined #kisslinux
mahmutov has joined #kisslinux
mahmutov has quit [Client Quit]
mahmutov has joined #kisslinux
dilyn has joined #kisslinux
<dilyn>
konimex: your icon on that artix link looks familiar
<dilyn>
were you old enough in 2008 to be on the internet
<testuser[m]>
2008?
<dilyn>
yeah you know
<dilyn>
the dark ages
<dilyn>
I knew a fellow on a forum way back when who always used a very similarly styled art
ioraff has joined #kisslinux
ejjdhfjsu has joined #kisslinux
illiliti has quit [Read error: Connection reset by peer]
illiliti_ has joined #kisslinux
ejjdhfjsu has quit [Remote host closed the connection]
greg904 has joined #kisslinux
<greg904>
illiliti_: I'm running your fork of wlroots that makes udev optional and I was wondering what NETLINK_BITMASK is? On my machine, the default value of 4 doesn't seem to work. I could not find documentation, but looking at some kernel code, I tried 1 and that works, but I don't know what I'm doing. Do you have any pointers?
mahmutov has quit [Ping timeout: 276 seconds]
<illiliti_>
NETLINK_BITMASK specifies which bitmask libudev-zero will use to receive uevents
<illiliti_>
by default, libudev-zero listens for uevents with 4 bitmask. you need to configure your device manager to send uevents to that bitmask for hotplugging
<illiliti_>
1 used by kernel, 2 used by udev for example
<illiliti_>
netlink is quite underdocumented, especially uevents
<greg904>
ok that makes sense, thanks
<illiliti_>
oh i think i misread your text a bit. what i said basically means same thing for udev-less libinput, so just replace libudev-zero with libinput in my messages
<illiliti_>
what enum-backend are you using for libinput? netlink or demi?
<greg904>
netlink
<illiliti_>
should be okay. if you use device manager, just make sure it is capable of rebroadcasting uevents to NETLINK_BITMASK in order to make input hotplugging(if you need one) work
<illiliti_>
for example, mdevd can do this natively via -O option
<illiliti_>
busybox mdev needs helper. check contrib/mdev.conf of libudev-zero project for more info
<illiliti_>
although, as you already discovered, it is possible to make input hotplugging work without device manager. just set NETLINK_BITMASK to 1
<illiliti_>
you will have to manually set proper permissions for /dev/input/* though
<greg904>
I think wlroots should be able to use seatd to open /dev/input/*
<greg904>
but yeah you're right I will have to set permissions if I don't use a device manager
<illiliti_>
i'm pretty sure you have these questions: why there's NETLINK_BITMASK? why libinput can't simply listen for kernel uevents with 1 bitmask?
<illiliti_>
well, because nasty race condition may occur when device manager hasn't had enough time to set permissions for /dev/input/* which can lead to breakage
<illiliti_>
in order to resolve this race bug we have to rebroadcast uevents: kernels uevents -> device manager -> application
<greg904>
yeah I didn't know that you could send netlink from userspace to userspace, I just thought libudev used a UNIX socket or something like that, but then now I wonder why they didn't make libudev more generic like libdemi
<greg904>
if it just reads uevent netlink that is the same from all device managers
<greg904>
so that it could work with every device manager
<illiliti_>
because they tend to over-engineer things and enforce architecture
<illiliti_>
systemd's libudev uses eBFP under the hood for example
<illiliti_>
systemd devs also plan to deprecate libudev in favor of libsystemd
<illiliti_>
which enforces architecture even more
an3223 has joined #kisslinux
an3223 has quit [Ping timeout: 240 seconds]
soliwilos_ has joined #kisslinux
an3223 has joined #kisslinux
soliwilos has quit [Remote host closed the connection]
soliwilos_ has quit [Remote host closed the connection]
soliwilos has joined #kisslinux
soliwilos has quit [Remote host closed the connection]
soliwilos has joined #kisslinux
soliwilos has quit [Remote host closed the connection]