22:22 CheetahPixie: Morning.
22:22 CheetahPixie: How do I get 2D/3D acceleration working on Nouveau?
22:22 CheetahPixie: Specifically, on an nv50.
22:23 CheetahPixie: I have installed the supposedly required package, nouveau-firmware, in Kubuntu, yet I am still stuck on a modesetting driver.
22:23 CheetahPixie: Well, the GL renderer says Nouveau, but on KDE I still have terrible performance.
22:24 imirkin: nv50, like G80?
22:24 imirkin: or just nv50-era
22:24 CheetahPixie: G96, to be specific
22:25 imirkin: well, sounds like you have it working
22:25 imirkin: KDE on nouveau isn't great
22:25 CheetahPixie: Then why am I getting horrid screen tearing?
22:25 imirkin: you really don't want the modesetting driver, you want xf86-video-nouveau
22:25 CheetahPixie: I have that.
22:25 imirkin: pastebin xorg log?
22:25 CheetahPixie: But xrandr --listproviders shows modesetting.
22:25 imirkin: ok, so it's not getting used
22:26 imirkin: some distros are force-disabling xf86-video-nouveau
22:26 CheetahPixie: How do I check for this
22:26 CheetahPixie: And why is this being done?
22:26 imirkin: so you have to explicitly say Driver "nouveau"
22:26 CheetahPixie: Where at?
22:26 imirkin: check xorg log
22:26 imirkin: debian and redhat have patches for this, i believe
22:26 CheetahPixie: what am I looking for here?
22:26 imirkin: modeset(0) or NOUVEAU(0)
22:27 imirkin: but this won't necessarily help with tearing
22:28 CheetahPixie: i'm seeing a bunch of modeset(G0)
22:28 imirkin: can you just pastebin the log?
22:28 CheetahPixie: give me a moment or two
22:28 imirkin: instead of playing 20 questions
22:30 CheetahPixie: on cursory examination before binning, i notice that the nouveau module has no LoadModule line
22:31 CheetahPixie: but modesetting does, however
22:31 joepublic: if only there were some way to see a log of what's going on
22:31 CheetahPixie: https://pastebin.com/XN6z8vpc
22:32 CheetahPixie: well, there it is
22:32 joepublic: :)
22:32 CheetahPixie: why is the nouveau driver being forcibly disabled by distros?
22:33 imirkin: no clue - skeggsb authored the patch for redhat, and somehow debian copied it too
22:33 imirkin: i think xf86-video-nouveau is almost always superior, with the very rare exception
22:33 CheetahPixie: is this defined in a blacklist?
22:34 imirkin: since he works for RH and is the official nouveau maintainer, not a ton i can do
22:34 imirkin: it's a literal patch to skip over nouveau in the xorg module list
22:35 CheetahPixie: so whatever is loading the modules just outright skips it
22:35 CheetahPixie: so not in a blacklist?
22:35 CheetahPixie: why wasn't it blacklisted instead of this?
22:36 CheetahPixie: well anyway, how do i now "forcibly enable" it back?
22:37 imirkin: add a Device section to your xorg.conf with Driver "nouveau" in it
22:37 imirkin: should be all that's needed
22:37 CheetahPixie: where would i create the xorg file?
22:38 CheetahPixie: been forever since i had to touch that
22:42 CheetahPixie: https://i.imgur.com/9NFKMyd.png and is this literally all the file needs?
22:45 CheetahPixie: at this point, i'm hazarding a guess that that's it
22:46 karolherbst: imirkin: btw, I am pretty convinced, that we actually have some memory leaks in mesa somewhere, which is probably causing most of the issues with the modesetting driver as other drivers don't see the same ENOMEM errors as we do with nouveau :/
22:46 karolherbst: might make sense to investigate this deeper
22:46 karolherbst: but I don't have a proper idea on how
22:47 imirkin: CheetahPixie: yes, that's what needed. dump it on a 90-mine.conf file in /etc/X11/xorg.conf.d
22:47 CheetahPixie: 90-mine?
22:47 CheetahPixie: any specific reason for that name?
22:49 CheetahPixie: unless this is a joke i am not getting
22:49 imirkin: they're loaded in order
22:49 CheetahPixie: ah
22:49 imirkin: so 90 is a good prefix to use for your stuff
22:49 CheetahPixie: so this loads last?
22:49 CheetahPixie: gotcha
22:49 imirkin: mine is ... my lack of imagination
22:49 CheetahPixie: and the name is arbitrary, i'm guessing
22:49 imirkin: completely
22:49 CheetahPixie: gotcha
22:49 imirkin: it's done in lexical order of the filenames
22:49 CheetahPixie: 90-reenable it is
22:49 CheetahPixie: alright
22:50 CheetahPixie: let's reboot and cross our fingers that this thing doesn't modeset after it
22:50 imirkin: just have to restart X
22:50 imirkin: no reboot required
22:50 CheetahPixie: or that, either way
22:50 CheetahPixie: so pkill -9 Xorg
22:50 CheetahPixie: that work, i guess?
22:51 imirkin: or just exit your WM
22:51 CheetahPixie: either one
22:51 CheetahPixie: i like the nuclear approach
22:51 CheetahPixie: anyway, i'm off
22:51 imirkin: then you should unplug power to be sure :p
23:21 karolherbst: imirkin: any idea on how to implement a proper memory leak checker against vram? Or do you think it would be enough to track allocations in libdrm and dump all non fred memory on application exit?
23:22 CheetahPixie: alright then
23:22 CheetahPixie: i got it to load up with nouveau
23:22 CheetahPixie: but i had to use a module section and a load order
23:22 CheetahPixie: but now it's not detecting a display plugged into it
23:22 CheetahPixie: that same display works when the boot logo is up for display
23:23 CheetahPixie: at least the provider name is now nouveau
23:49 CheetahPixie: nothing?
23:56 karolherbst: CheetahPixie: well it might be a kernel bug, so it wouldn't matter what userspace driver is used
23:57 CheetahPixie: after a bit of probing around, I noticed xorg picked the edid up
23:57 CheetahPixie: ...and then i had the wild idea to check monitor settings for panels that were off
23:57 CheetahPixie: lo and behold, there it was
23:57 CheetahPixie: and now on
23:57 CheetahPixie: and afaict properly accelerated
23:58 karolherbst: ahh, but it should be accelerated with the modesetting driver as well.. but yeah, probably you will have less issues with the nouveau one
23:58 CheetahPixie: although as soon as there's stuff on the display, I get very occasional hiccups in games
23:59 karolherbst: stuff isn't perfect sadly