libera/#devuan/ Wednesday, 2025-01-08

onefangSilly season is over, back to "work" for me.  You lot didn't break anything?06:29
freaxehjust the world07:25
onefangFixing that isn't my responsibility.  Phew.07:25
dbbsame09:13
freemangordonHi there, I am one of maemo leste maintainers. We are in process of rebasing lest on top of daedalus from chimaera and we face some issues with starting Xorg as user20:03
freemangordondo we need anything else on top of elogind?20:04
freemangordonIs there any information about those 'libseat' patches?20:04
freemangordonsome detail on the issue: on OMAP devices we use our own fork of xf86-video-omap, however, its core wasn't changed20:09
freemangordonwhat happens is that the call of drmSetInterfaceVersion() fails20:09
freemangordonthe same call works fine with Xorg from debian20:10
fsmithredfreemangordon, maybe you need to add seatd.21:36
freemangordonit is added21:38
freemangordon[ 5556.003234] omapdrm omapdrm.0: [drm:drm_ioctl [drm]] comm="seatd" pid=4275, dev=0xe201, auth=1, DRM_IOCTL_SET_MASTER21:38
freemangordonso, seatd becomes DRM master21:39
freemangordonand that's why Xorg fails to do drmSetInterfaceVersion() , IIUC21:39
gnarfacehey freemangordon, great to see you over here finally. just fyi, i'm running daedalus on my desktop, and i don't actually need seatd or elogind to start it. i do need my user to be in the "video" and "input" groups though for anything to work right (and "audio" too incidentally, but that's immaterial to Xorg itself)21:51
gnarfaceafaik most the video drivers as of this release will work as a normal user except NVidia's official ones, which still require the legacy suid-root wrapper to work.21:52
gnarfacethe phone hardware you're poking at could be an exception though...21:52
gnarfacei don't know21:52
gnarfaceand it's also possible for that legacy suid root wrapper to be in use unnecessarily, as it is possible for vestiges of its configuration to be left behind, clogging up the works21:53
freemangordongnarface: hi! the issue is that seatd makes itself DRM master, so xorg DDX driver cannot issue some IOCTLs. But, the same code works nicely in chimaera21:53
gnarfacebut you should be able to just get startx to run Xorg without elogind or seatd running (the Xorg log will start out with a bunch of complaints about missing seatd but it doesn't appear to actually impact functionality)21:53
freemangordonXorg works as root21:54
freemangordonbut not rootless21:54
freemangordonwell...21:54
gnarfacejust out of curiosity, have you tried it without seatd?21:54
freemangordonyes21:54
gnarfacehmmm21:54
gnarfacewhich video driver is this?21:54
freemangordonwait, libseat says it will run embedded seatd if no other one is found21:55
freemangordonthat one https://github.com/maemo-leste/xf86-video-omap21:55
gnarfacenot really a kernel developer or a maintainer, so i'm out of my area of expertise here, but it seems likely to me that the problematic change could be to the video driver itself21:55
gnarfacecould be/could have been21:56
freemangordonfails here https://github.com/maemo-leste/xf86-video-omap/blob/master/src/omap_driver.c#L15721:56
freemangordonno, we use exactly the same kernel and DDX driver on chimaera21:56
gnarfaceoh, hmmm21:56
freemangordon6.6.y21:56
gnarfaceis there any xorg.conf in place or are you relying on full auto-detect?21:56
freemangordonthere is xorg21:56
freemangordondriver gets probed21:57
freemangordonsee, it works as root21:57
freemangordonalso, by mistake we took xorg from bookworm and it worked too (as user) :)21:57
gnarfaceyea, i hear ya, i'm just trying to frame this problem in reference to problems i've had to make custom xorg.conf fixes for in the past, to do things like force certain DRM versions21:58
gnarfaceDRM/DRI?21:58
freemangordonDRM I guess21:58
freemangordonit also issues one more call later on, to detect the OMAP it runs on21:58
freemangordonwhich also fails21:58
gnarfacei had a problem a while back with some hardware that didn't handle DRI3 well and it was like... i dunno failing down completely unless i forced DRI2 or something like that...21:59
freemangordonit is DRI221:59
gnarfacevaguely recall seeing some issue with DRI auto-detect basically shooting itself in the foot on certain intel embedded graphics21:59
freemangordonmodesetting refuse to start on SGX ;)21:59
freemangordonok, but then we will have the same issue on chimaera22:00
gnarfacebut it was the type of thing where it started happening only after they added the feature to xorg in the first place22:00
gnarfaceif you're using the same xorg in both then i guess that blows that theory though...22:00
freemangordonxorg DDX is the same22:00
freemangordonxorg itself not, obviously22:01
gnarfacehmm, that issue i recall might have been actually before chimaera anyway22:01
gnarfacewell, stick around here, it's a slow channel but someone actually knows what's going on22:01
freemangordonbut bookworm Xorg works, which should be more or less teh same as the one in daedalus, minus libseat22:01
freemangordonyeah, sure22:02
gnarfaceyea, that's weird... so i agree that seems to make the devuan patches suspect22:02
freemangordonwe are not on a hurry22:02
gnarfacei'm not the one who did them though22:02
freemangordonwell, I don't look for who's to blame either :)22:02
gnarfacebut i'm not having a problem starting it with bare startx and no elogind or seatd on other hardware either, so there's that22:02
gnarfacebut you said modesetting fails? it's not supposed to fail on framebuffer devices either right?22:03
freemangordoneh...22:03
freemangordondo you really think we shall run hildon-desktop without GPU?22:03
freemangordonok, glamor fails, not modesetting22:03
freemangordonnot to say modesetting is not ideal, when it comes to rotation support22:04
gnarfaceoh, ok, so i was gonna just say that i think it would fail here too if i didn't have grub to do an initial video setup automatically or hardcoded by grub config... but glamor failing specifically makes this sound a lot like the problem i recall from some release earlier on that intel graphics22:04
freemangordonglamor fails because it looks for GL extansions that SGX driver does not support22:05
gnarfaceSGX?22:05
freemangordonPVR22:05
gnarfacehmmm22:05
freemangordonpowervr22:05
gnarfacegot it22:05
freemangordonbut anyway, DDX we use is close to perfect22:06
freemangordonit does ~50 on glmark when run in window under hildon-desktop (so compositing). this is on omap4 (motorola droid 4)22:08
freemangordonok, lets wait to see if anyone has an idea. if not, we'll either use bookwork xorg or disable libseat support22:09
gnarfacewell, this is probably well beyond the reach of basic troubleshooting strategies, but it might help if you drop a xorg log example of the failure case at paste.debian.net and leave the link here22:10
gnarfacemaybe someone will see a clue22:10
gnarfaceeven if indirectly22:10
freemangordonI am not sure that will be of any use, as I know where and why the issue.22:10
freemangordonwhat I don;t understand/know is how to tell seatd to drop DRM master22:11
gnarfacejust thinking about pattern matching, someone might see a pattern that relates it to another older bug that's been fixed already elsewhere22:11
freemangordonyeah, I ee22:11
freemangordon*see22:11
freemangordonBTW, I also asked on the libseat IRC channel22:12
gnarfacelike i said the glamor failure makes this sound very much like a repeat of an older bug on other hardware, but i admit that at the time i saw that bug i think i dodged it by just switching to a different driver22:12
freemangordonah, glamor22:12
freemangordonbut, I am not really interested in  running glamor on OMAP22:12
gnarface(i saw it on an intel embedded gpu iirc, which can use either the "modesetting" or "intel" driver and the new default had become "modesetting" and i just changed it back to "intel" iirc)22:13
freemangordonnot until modesetting is supporting HW rotation (not through GPU)22:13
freemangordonwhich I guess will never happen22:13
fsmithredjoerg, do you know anything about this? ^^^22:14
freemangordonin case someone wants to look at kernel side logs https://pastebin.com/DZZJiXED22:16
joergsorry no. Hi fmg22:18
freemangordonhi doc22:18
joergcgroups?22:25
freemangordonno, maybe I will have to find another way to issue those ioctls22:26
onefangYou keep mentioning it runs as root fine, did you check your non root user is in those groups gnarface mentioned?22:27
freemangordonyes, user is member if video group22:28
freemangordononefang: the issue is that seatd is DRM master22:28
freemangordonthere can be only one DRM master22:28
* onefang goes back to waking up.22:29
joergget rid of seatd22:29
freemangordonthat's why DRM_IOCTL_SET_VERSION issued by Xorg fails with EACCESS22:29
gnarfacejoerg: that was one of my suggestions too, but apparently that's also been tried22:29
freemangordonjoerg: yeah, might happen22:29
gnarfaceor at least, disabling it has been tried... would it have to be patched out completely to work?22:30
freemangordonbut i want to first see if I can fix it properly22:30
freemangordongnarface: using Xorg from bookwork == patched out completely, no? and it works22:30
freemangordon*bookworm22:30
gnarfaceuh... no, i don't think?22:31
gnarfaceafaik bookworm also has the seatd thing, or so i thought...22:31
freemangordonI don't think so22:31
* freemangordon chacks22:31
gnarfacei thought seatd was a change that came along to daedalus from bookworm22:31
freemangordon*checks22:31
gnarfacethough some change to how xorg handles it might have been made so it could work without systemd22:32
freemangordonnope https://salsa.debian.org/xorg-team/xserver/xorg-server/-/tree/debian-bookworm/debian/patches?ref_type=heads22:32
gnarfacedisabling seatd works fine here other than the log noise, but maybe that's just because i'm not using a framebuffer display?22:32
freemangordonanyway, lets wait22:33
gnarfacei almost follow what's going wrong up to the concept of there needing to be a "DRM master" sorry22:33
freemangordonthanks, ttyl22:33
freemangordongnarface: there can be only one DRM master at a time22:33
freemangordonand only DRM master is allowed to issue some IOCTLs22:33
gnarfacehmmm22:34
freemangordonseatd sets itself as DRM master22:34
gnarfacebut if it's disabled then what happens?22:34
freemangordonseatd? it can't be disabled as it is compiled-in in Xorg22:34
gnarfacei didn't patch anything, i just stopped the seatd daemon and changed the rc*.d symlinks22:34
freemangordonseatd was not even instaleld initially22:35
gnarfacexorg bitches at startup that it can't find seatd but aside from that everything moves along as if nothing happened22:35
freemangordonbut here fails with the same error22:35
freemangordonno matter seatd or not22:35
gnarfacehmm22:35
freemangordonhmm,... lemme confirm22:35
freemangordonyep, uninstalled seatd, still the same error22:39
gnarfacefreemangordon: just out of curiosity, that's with elogind running and a graphical login being started, or have you tested by just starting xorg bare with startx?22:50
rrq"seatd" is one of two solutions to mediate device access for non-root user running xorg, which was something introduced some four years ago or so.23:17
rrqthe first solution involves logind and dbus23:17
rrqthe libseat addition for Xorg was then added to allow either logind or seatd for that mediation23:19
rrqbeing drm_master (or not) wouldn't be something introduced by seatd23:19
rrqthere is that (new?) vga_arbiter device .. does that do something useful here?23:21
rrq(mediation" means to open the device and pass back the opened file descriptor)23:22
rrqand the mediators also set themseles up to receive VT release/acquire interrupts from the kernel, to associate device access with VT activation23:30
gnarfaceah, it occurs to me that i do have dbus here, because enlightenment needs it, maybe that's why i'm not seeing this...23:32
gnarfacefreemangordon: does your setup exclude dbus?23:32
rrqmmm I have a vague memory that mediation resulted in Xorg losing a linux capability that is needed for certain drm ioctls, and that this can be changed by binding that capability as a file attribute... can't recall specifics23:43

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!