Page MenuHomeFreeBSD

sysutils/consolekit2: enable drm/evdev, fix drm device recognition
Needs ReviewPublic

Authored by on Jan 5 2019, 1:55 PM.


Group Reviewers

This makes it possible to launch a Wayland compositor using ConsoleKit2 as the session controller.

Test Plan

Tested a lot with patched wlroots (we should merge this patch in the wlroots port), a bit with patched weston, and even kwin sort of worked once

Diff Detail

rP FreeBSD ports repository
Lint Skipped
Unit Tests Skipped

Event Timeline

Cool, I'll try if I manage to start it.

+ fix re-plugging devices by checking if the found device is still alive

Submitted upstream, but the project isn't very active, there are three open PRs and they got no response

oh, it also didn't enable termios raw mode. That was causing Weston to crash when pressing Enter :D Fixed.

kwm added a subscriber: kwm.Jan 5 2019, 8:36 PM

This seems to look good, but I don't have a setup to test this.

Lets poke the KDE people :-)

looks like it would need a revision bump aswell.

Tryign to ck-launch-session /usr/local/bin/startplasmacompositor leads to a segfault ck.

Tryign to ck-launch-session /usr/local/bin/startplasmacompositor leads to a segfault ck.

huh. So I tried it, ck works fine, KWin however wasn't actually ported to FreeBSD…

I made an attempt: — it starts up, but

  • input devices aren't attached — I'm not seeing anywhere in the code where it would enumerate subsystem=input, how does KDE attach input devices?! o_0
  • doesn't like my GPU — after starting, there's the splash screen, then black screen for a long time (and amdgpu spam in dmesg), but after a couple minutes the lockscreen appeared! :)

Sorry for being so timeouty on this. , could you rebase the review to the current tree, so we can proceed with it? edited the summary of this revision. (Show Details) edited the test plan for this revision. (Show Details)

Sure. I've actually made a couple more changes recently btw. I hope PATCH_SITES is okay here

jbeich added a subscriber: jbeich.Aug 8 2019, 11:19 AM

What's blocking this? ck-launch-session sway works fine here after building x11-toolkits/wlroots with CONSOLEKIT=on and x11-wm/sway with SUID=off.

Ping! Now that xorg-server defaults to evdev (for FreeBSD 12.0+) this maybe useful even outside of Wayland.