/srv/irclogs.ubuntu.com/2016/03/24/#ubuntu-x.txt

mamarleytseliot: I was just looking at log files and I found that I have the same problem as darkxst with nvidia-drm not loading.10:57
mamarleyOr, not loading with modeset=1.  It does load automatically later.10:58
mamarleyI can also see that modinfo doesn't work for any of the alias module names. (module not found)11:01
tseliotmamarley: yes, I'll have a look at that11:02
mamarleyI was actually going to see if I could fix it myself.  I don't know how to get modules to be included in the initramfs though.11:03
mamarleyI fail to see how the "alias nvidia nvidia_364" doesn't work though, since "modinfo nvidia_364" does work.11:05
mamarleyIt is almost like the aliases are being ignored entirely.  I can't see why.11:16
ricotzmamarley, tseliot, added/tweaked aliases locally (using underscores only)11:33
tseliotricotz: ok. BTW I'm working on nvidia right now11:35
ricotztseliot, I was counting on that ;)11:35
tseliotmamarley: "automatically" means maybe the driver loads that module?11:36
tseliottjaalton: I don't see the kms drivers in the initramfs. They are not built as modules, so I suppose there is nothing to include11:44
tjaaltontseliot: huh? i915.ko etc11:46
tjaalton/usr/share/initramfs-tools/hooks/framebuffer copies them11:46
tseliottjaalton: yes, I will have to write a hook for nvidia. I simply could not file the files in the initramfs11:48
mamarleytseliot: Yes, I think nvidia-drm is getting loaded automatically by either nvidia-modeset or nvidia and that is why the driver works even though the modprobe in the udev configuration fails.11:51
tseliotwhatever it is, I'll fix it all ;)11:53
mamarleyThanks :)11:55
tseliottjaalton: I extracted the initramfs and I used find to get a list of the .ko files: http://paste.ubuntu.com/15486764/11:59
tseliotthis is what puzzles me11:59
tjaaltonyou're on trusty still..12:00
tjaaltoncheck if it has that hook12:00
tseliotyes12:00
tseliotand yes, the hook is there12:00
tjaaltondunno then12:00
tseliotare you sure that we do that even on systems that are not encrypted?12:01
tjaaltonyes12:01
tjaaltonhttp://sprunge.us/JUfW12:03
tseliot    - Restore the framebuffer hook and script, copying KMS and other12:03
tseliot      framebuffer drivers into the initramfs, but make them optional; you12:03
tseliot      need to set FRAMEBUFFER=y for these to be included.12:03
tseliottjaalton: ^ Do you have FRAMEBUFFER=y in grub or is your system encrypted?12:04
tjaaltonFRAMEBUFFER where?12:05
tjaaltonthis one isn't encrypted12:05
tseliotwell, actually not grub, somewhere in /etc/initramfs-tools/conf.d/12:07
tjaaltonno12:07
tjaaltongrep gives no hits12:07
tjaaltonwhere did you get that text?12:08
tseliotfrom the changelog of the initramfs-tool package12:09
tseliot*tools12:09
tseliotif you add FRAMEBUFFER=y, plymouth will start much earlier in the boot process12:10
tjaaltonadd where?12:18
tjaaltonupgrade to xenial already12:18
tjaalton:)12:18
tseliot/etc/initramfs-tools/conf.d/splash12:20
tjaaltondon't have that12:21
tjaaltonyou're on an obsolete distro ;)12:21
tseliotyes, well, echo FRAMEBUFFER=y > /etc/initramfs-tools/conf.d/splash12:21
tjaaltonmy initrd already has all the modules12:21
tjaaltonthe hook does not check for that option12:21
tseliotI'm trying to understand why we don't have the modules on trusty12:21
tjaaltonjust ask apw?12:22
tseliotyes, that's why I'm confusedf12:22
tseliot*confused12:22
tseliotyes, I'll try that12:22
apwsplash is only needed in the initramfs if you have encrypted things to open to get to root12:22
tjaaltonoh you're here :)12:23
apwso we don't include that lot unless you have crypt thing on there12:24
tseliotwhich is what I suggested before12:25
tseliotapw: but how about the single drm drivers?12:25
tseliotI don't have them in trusty, but tjaalton does in xenial12:25
tjaaltonmy initrd has all of them, this is a fairly recent install12:26
* tseliot -> lunch12:30
apwtjaalton, it is dependant on you needing them12:35
apwso encrypted root, or actually iirc stypidly having crypttools installed at all12:35
tjaaltonnope, neither12:36
apwtseliot, ^12:40
apwwell something is triggering them being in there, it is not a normal situation12:41
apwbasically any hook which needs them sets that FRAMEBUFFER thing and that triggers it12:41
apwiirc12:41
apwso look at your hooks and one will be asking for it12:41
apwor it is broken, which is also possible12:41
tjaaltoni have a fresh server vm, and it has them too :)12:43
tjaaltonso maybe it's a bug then12:43
mamarleyDoes the nvidia-modeset module need to be loaded for DRM KMS to work or just nvidia-drm?12:44
apwtjaalton, could be, could you file a bug against initramfs-tools for me, and tell me the number12:58
tseliotmamarley: both, as KMS stands for kernel mode setting, so nvidia-modeset is definitely needed14:30
mamarleyThat's what I thought.14:30
tseliotapw: thanks, that's what I thought14:31
tseliottjaalton: so, yes, that does look like a bug:15:34
tseliot  * mkinitramfs: Allow scripts to specify OPTION=VAR, and unless VAR is15:34
tseliot    set to something other than "n", the script will not be included.15:34
tseliotthe framebuffer hook has OPTION=FRAMEBUFFER15:34
tseliotso, if OPTION=FRAMEBUFFER is ignored, and the script is included regardless of that, it's a bug15:35
tseliotdarkxst: are you using an encrypted system?15:35
tseliotif not, fixing the aliases should do it15:37
tseliotI am certainly going to add an initramfs hook for encrypted systems though15:42
* tseliot building the driver with the correct aliases first...15:43
tseliotricotz, mamarley: the aliases seem to work fine now: http://pastebin.ubuntu.com/15488195/16:24
tseliotmodinfo doesn't seem to resolve the aliases but I think we are fine as long as modprobe does ;)16:25
mamarleytseliot: Cool, thanks!16:35
tseliotso the last step will be a hook for encrypted systems. Then things should be fine. I'm not sure about nvidia-persistence though16:36
ricotztseliot, is this working for you now? "sudo cat /sys/module/nvidia_drm/parameters/modeset"16:36
mamarleytseliot: Maybe also have it obey that override that apw mentioned?16:36
tseliotricotz: I still get "N", but I don't see any errors in journactl16:36
ricotztseliot, mhh, I see16:37
tseliotmamarley: yes, I could have to look at initramfs-tools16:37
apwtseliot, or get a bug filed on it and shove it at me16:39
apwsounds like something i would have screwed up in my merge with debian if anything16:39
tseliotapw: yes, that would be much better (for me) ;)16:39
apwtseliot, shove what you have in a bug, and tell me the number and i'll put it on my todo16:41
apwits making peoples initramfs' large and slwo, so i want to wack it16:41
mamarleytseliot: Sorry, I didn't mean for you to fix the initramfs-tools bug, I just meant to make it so when that bug gets fixed that the flag there will affect the nvidia modules too.16:41
tseliotapw: sure, thanks. I'm updating my xenial installation right now, so that I can use ubuntu-bug to file the report, just in case16:42
apwtseliot, ack thanks16:42
tseliotmamarley: I'm all for solutions that don't involve me doing the work :P16:42
* mamarley too :)16:42
mamarleyI just confirmed that manually loading the nvidia_drm module with modeset=1 results in "sudo cat /sys/module/nvidia_drm/parameters/modeset" returning Y.16:44
tseliotmamarley: ok, so maybe the udev rule should try to remove the module first (as per the nvidia docs)16:45
mamarleyI'm not sure why it would be loaded at all at that point.  Unless udev loads it automagically...16:45
tseliotmamarley: ok maybe their X driver?16:46
mamarleyWould something in /etc/modprobe.d/ that says "options nvidia_drm modeset=1" work by any chance?16:46
mamarleyWould the X driver have started by that point?  I was under the impression that the udev thing happened earlier than X starting.16:47
mamarleyAlso, I would think if X is running, "modprobe -r"ing the module would fail anyway.16:47
tseliotit's worth a shot16:47
mamarleyI can try that on my laptop real quick, just a sec...16:48
tseliotand yes modprobe -r failed for me above ^16:48
tseliotudev starts earlier than X though16:48
tseliotjust guessing. I have no idea what else could be pulling that in16:48
mamarleytseliot: That ("options nvidia_drm modeset=1") appeared to work. :)16:52
tseliotmamarley: wouldn't that be nvidia-drm though? (to match the alias)16:53
mamarleyI actually put four different lines though, with and without the 364 and -s and _s, because of the alias madness.16:53
tseliot:)16:53
tseliotI'll test it here too16:54
mamarleyHmm, will that work if the module is in initramfs too?16:55
tseliotwell, the aliases are in the initramfs16:55
mamarleyOK, it should work fine then.  I stuck my options in the same file as the aliases.16:56
tseliotand the actual module name would be nvidia_364_drm, whereas nvidia_drm shouldn't exist16:56
* tseliot rebuilding and testing...16:56
mamarleyI understand; I just wanted to cover all the bases since I am not running the version with the fixed aliases yet.16:57
tseliotright16:57
tseliotI think I'll work on the hook tomorrow, as it's EOD for me16:57
mamarleyExplosive Ordnance Disposal? ;P16:58
tseliothehe16:59
tseliotin addition to being almost guitar o'clock16:59
tseliotapw: LP: #156164317:14
ubottuLaunchpad bug 1561643 in initramfs-tools (Ubuntu) "initramfs-tools ignores the FRAMEBUFFER option" [High,Confirmed] https://launchpad.net/bugs/156164317:14
tseliotmamarley: nvidia-drm options didn't work here. I'll mess with it again tomorrow17:15
* tseliot -> off17:15
mamarleytseliot: OK.  It actually didn't work setting options on the alias for me either.17:15
mamarleyI think I have to set options with the full module name.17:15
tseliotyes, that would be easy to do17:16
mamarleyYeah, that works.17:17
furkananybody know why I would be getting this error? first time i'm seeing it:20:45
furkanfurkan@furkan-pc:~$ Xorg -version20:45
furkan/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server20:45
furkanalso, tjaalton: MrCooper wrote a patch for the cursor bug https://bugs.freedesktop.org/show_bug.cgi?id=94560#c1620:53
ubottuFreedesktop bug 94560 in Server/General "[regression, bisected] Xorg 1.18.2 stray cursor appears when some applications are launched maximized on rotated display" [Normal,New]20:53
darkxsttseliot, no my system is not encrypted22:14

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!