/srv/irclogs.ubuntu.com/2018/09/13/#ubuntu-x.txt

alkisgKitsuWhooa: netbooting recent live cds over nfs seems broken, but it works with aoe, provided one enters 2 commands manually as initramfs-tools doesn't have code for that...05:35
alkisgThe command line I'm using is: APPEND ro initrd=pxelinux.cfg/casper/initrd boot=casper break=mount root=/dev/ether/e0.0p105:55
alkisgAnd the commands needed at the initramfs breakpoint are: ipconfig enp0s17; modprobe aoe; exit05:55
alkisgUnfortunately mate stopped producing an i386 iso so I can't test cosmic there, I'll try with xubuntu05:58
alkisgCorrupted output in this one too: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation NV18 [GeForce4 MX 4000] [10de:0185] (rev c1)06:06
alkisgHmm, the corruption is related to the resolution. 06:10
alkisgInitial=1366x768=corrupted. Then I set 1024x768, works. Then I set again 1366x768, works again!06:10
alkisgSame card, another monitor with 1280x1024=works without doing anything06:10
KitsuWhooa<alkisg> KitsuWhooa: netbooting recent live cds over nfs seems broken <-- since I set up ltsp, I don't think it matters anymore06:46
KitsuWhooaand I got tired yesterday and didn't look into it any further06:47
KitsuWhooacomputer was crashing too, so I need to run memtest86+ for a bit06:47
KitsuWhooaI literally built it yesterday to test the graphics cards and picked random memory sticks that I'm not sure if they were in a working condition or not06:47
alkisg(09:46:45 πμ) KitsuWhooa: since I set up ltsp, I don't think it matters anymore => eh, it's easier to download/test a bunch of ubuntu live cds than build a lot of different chroots (if one wants to test 16.04/18.04/17.10/18.10 etc)06:52
KitsuWhooathat is true06:52
KitsuWhooaalkisg: I just tried another nvidia card and got the same result07:18
KitsuWhooaexcept when I tried to switch to a tty I saw "gpu lockup" and the machine froze :p07:18
KitsuWhooaso I can't tell what card it is yet07:18
KitsuWhooaltsp also doesn't seem to let me log in over a tty07:23
alkisgKitsuWhooa: ltsp-config lts.conf, sudo nano /var/lib/tftpboot/ltsp/i386/lts.conf07:27
alkisgIn lts.conf you can specify either SCREEN_02=shell to get a tty (you have an example there)07:28
KitsuWhooaAh, didn't know that07:28
alkisgor even INIT_COMMAND_ROOT_HASH="sed 's!^root:[^:]*:!root:\$6\$p2LdWE6j\$PDd1TUzGvvIkj9SE8wbw1gA/MD66tHHlStqi1.qyv860oK47UnKcafSKqGp7cbgZUPlgyPv6giCVyCSCdJt1b0:!' -i /etc/shadow"07:28
KitsuWhooathanks07:28
alkisg...to allow you to login with root/qwer123407:28
KitsuWhooain the meantime, I blindly opened a terminal in the X session and piped the output to netcat07:29
KitsuWhooa01:00.0 VGA compatible controller: NVIDIA Corporation NV34 [GeForce FX 5200] (rev a1)07:29
alkisgYeah I think I saw the corrupted output with this in a school07:29
alkisgKitsuWhooa, what's the default resolution?07:29
alkisgLike, 1366x768?07:29
KitsuWhooa1680x105007:29
alkisgHrm, there goes my theory about "width not divisible by 8" :D07:29
KitsuWhooaSo, all three of my nvidia agp graphics cards exhibit the same issue07:31
KitsuWhooaand one is a completely different architecture07:31
KitsuWhooaI guess I'll try compiling older versions of software and trying it07:31
KitsuWhooaalso, not sure what you mean by "to get a tty"07:32
alkisgKitsuWhooa: do you have another monitor around, to see if it works there?07:32
KitsuWhooaI already have a tty1 on the client 07:32
alkisgDo install epoptes, it's rather handy07:32
alkisgYou right click > open terminal remotely07:32
KitsuWhooaI might as well at this point07:32
KitsuWhooawhat kind of monitor are you thinking?07:32
alkisgAnd you can run xorg commands on the client while sitting in your server07:32
alkisgAnything else; in the school lab I'm trying, one model gets corrupted output, 3 other models don't07:33
KitsuWhooaI have a few 1920x1080 ones, and a CRT that's 1024x768/1280x102407:33
alkisgGreat, I think you'll find at least one that works fine07:33
KitsuWhooalet me try those and see what happens07:33
alkisgI'll be heading to the school now, to test things locally07:34
KitsuWhooaalright07:34
alkisgI'll try to join irc from there07:34
KitsuWhooa1920x1080 also has the same problem07:38
KitsuWhooaalkisg: sure enough, it renders fine at 1024x768@6007:44
KitsuWhooaMX200 has the same issue at 1680x1050@6007:53
alkisgKitsuWhooa: xrandr -s other-resolution; xrandr -s problematic-resolution fixes the issue for me,08:40
alkisgbut I've also seen that some monitors that dont have the issue, when you move a window in them, it shows termporary corruption, which goes away if I do the 2 xrandrs combo again there08:41
alkisgSo it surely sounds like something isn't initialized properly, and it is when I issue xrandr08:41
KitsuWhooaHm08:46
alkisgKitsuWhooa: can you try this in lts.conf? So far it solves all problems for me: X_OPTION_01="\"PageFlip\" \"off\""08:52
KitsuWhooaYeah that fixes it08:56
alkisgI'm going to make this default for all nvidia cards in all schools here :D08:56
alkisgHow much of a performance loss does it cause?08:56
KitsuWhooaI'm not sure08:57
KitsuWhooalol, dragging glxgears around makes it drop from 60 to 25FPS08:57
KitsuWhooaI get the feeling this is an X server issue08:59
alkisgI saw no performance loss with pageflip (youtube/glxgears), so I'll automatically set that from an ltsp initscript when i see nvidia cards09:16
KitsuWhooaI'm going to try to bisect it if I have the time09:16
KitsuWhooacurrently dealing with inted crashing every 5 minutes09:17
KitsuWhooa*inetd09:17
KitsuWhooaand telling whoopsie to not report anything also failed09:17
alkisgMeh, who needs that? :D09:17
KitsuWhooaI don't know, it's what got installed in the VM09:17
KitsuWhooa:p09:17
KitsuWhooaalkisg: how do I get an ltsp client to boot an older kernel?09:20
KitsuWhooaApparently it doesn't use the one the host is running09:20
KitsuWhooaunless it's in the squashfs image and I need to update it09:23
KitsuWhooaAh, looks like it's ltsp-update-kernels09:33
alkisg(back) yup,  that's it09:48
KitsuWhooaIt's still booting the new one after running it09:49
KitsuWhooaunless I need to pass specific args09:49
KitsuWhooaI didn't see anything regarding the kernel in lts.conf either09:49
alkisglts.conf is loaded after the kernel09:50
KitsuWhooaI guess I can manually edit pxelinux.cfg/*09:50
alkisgYes, or you can use symlinks09:50
KitsuWhooaI tried symlinking the initrd and vmlinuz files, but it loads the 4.15 ones directly09:50
alkisgJust make sure the squashfs image does have the new kernel, and it's not just in tftp09:50
KitsuWhooaso the symlinks were ignored09:51
alkisgYou'd need to write a "default" file with vmlinuz there, instead of vmlinuz-version09:51
alkisgSo both symlinks + manual pxelinux.cfg/default...09:51
KitsuWhooaAh I see09:51
alkisg(if pxelinux.cfg/default isn't a symlink, ltsp doesn't touch it anymore, it's preserved)09:51
KitsuWhooa<alkisg> Just make sure the squashfs image does have the new kernel, and it's not just in tftp <-- I updated the image while booted to the kernel I want to run, so I hope that will do it09:53
alkisgSure then it should contain all kernels, not just the one you booted09:54
KitsuWhooaexcellent09:55
KitsuWhooaokay it's definitely not a drm issue10:05
KitsuWhooabug happens on 4.4.155-0404155-generic10:06
alkisg(11:59:19 πμ) KitsuWhooa: I get the feeling this is an X server issue => what does this mean, why does it happen only with nvidia cards then?10:08
alkisgI was thinking that the bug would be in the package xserver-xorg-video-nouveau, isn't that the case?10:08
KitsuWhooaMy guess is something changed in X that broke xf86-video-nouveau 10:09
alkisgAh10:10
KitsuWhooaLooking at the commits after the release of xserver-xorg-video-nouveau that's in 16.04, I don't see anything that would directly affect DRI210:11
KitsuWhooabut I am going to try compiling the version that comes with 16.04 to make sure10:11
alkisgCan't we just dpkg -i the 16.04 packages over the running ltsp client, and killall xorg?10:12
KitsuWhooaThat probably won't work10:12
KitsuWhooaIgnoring deb version dependencies, there's probably an abi incompatibility 10:13
alkisgabi with what, if we dpkg all of xorg including the drivers?10:16
alkisgi.e. xserver-xorg-*...10:16
KitsuWhooaAh10:16
KitsuWhooathat might work, assuming any of these packages don't depend on anything else specifically 10:16
KitsuWhooabut what is the point of that?10:16
alkisgMaybe verify that kernel/drm don't matter?10:17
alkisgI don't know the subsystems well enough to know :D10:17
KitsuWhooaWell, considering I just downgraded to 4.4 and it's still broken, I doubt it's the kernel10:17
alkisgBtw, I wonder if we can force triple buffering and see if it helps10:17
KitsuWhooayou cahn10:17
KitsuWhooa*can10:17
KitsuWhooaPageFlip -> on10:18
KitsuWhooaSwapLimit -> 210:18
alkisgty, will try it tomorrow when I go back to the office or to a school10:18
KitsuWhooaI'll try it now :p10:18
alkisgGreat! :)10:18
KitsuWhooaI assume X_OPTION_02 will work too?10:18
alkisgYes10:18
alkisgTo make sure, cat /run/ltsp-xorg.conf after it boots10:19
KitsuWhooalooks like X isn't starting :p10:22
KitsuWhooaoh I'm dumb10:22
KitsuWhooaI set PageFlip to off10:22
KitsuWhooaokay yeah, it's not doing anything with SwapLimit set to 210:25
alkisgMeaning output corrupted, or no output?10:27
KitsuWhooajust stays in the tty, login screen never pops up10:27
alkisgcan you cat the xorg.conf file, to make sure there's no error due to e.g. bad escaping of quotes?10:28
alkisgcat /run/ltsp-xorg.conf10:28
alkisgOr, getltscfg -a | grep OPTION10:28
KitsuWhooano such file or directory for the conf file10:29
KitsuWhooalooks like something broke10:29
KitsuWhooa...wait10:29
KitsuWhooaI commented both X_OPTION lines and it still doesn't start10:29
alkisgWhat's the output of `getltscfg -a | nc termbin.com 9999`10:30
KitsuWhooagive me a bit, I rebooted again10:30
KitsuWhooaOkay nevermind, I forgot to uncomment the ldm line when I enabled the tty10:32
KitsuWhooalet's try the X options again10:32
KitsuWhooaI have to say though, I wasn't expecting netboot to be this fast. USB1.1 is very painful10:33
alkisgIt's about as fast as booting from brand new rotational hard disk10:34
alkisgExcept if you're using gigabit, when it's faster10:34
KitsuWhooaRight, I checked the ltsp-xorg.conf10:35
KitsuWhooait looks okay10:35
KitsuWhooabut it's still not booting with PageFlip 210:35
KitsuWhooaer10:35
KitsuWhooaSwapLimit 2110:35
KitsuWhooa*210:35
KitsuWhooaI can't type10:35
alkisgcheck /var/log/Xorg.7.log.old10:35
KitsuWhooaXorg log says parse error, 2 is not a valid keyword10:35
KitsuWhooayeah was just looking at that10:36
KitsuWhooamaybe I need to put 2 in quotes too10:36
KitsuWhooaeven though the manpage says integer10:36
alkisgPossibly...10:36
KitsuWhooanope, same error10:37
alkisgcat /run/ltsp-xorg.conf | nc termbin.com 999910:37
KitsuWhooaI'll just send it to my desktop instead :p10:37
KitsuWhooahttps://tasossah.com/ltsp-xorg.conf10:38
KitsuWhooait looks okay to me10:38
KitsuWhooaonly other thing I can think of is that SwapLimit was removed10:39
KitsuWhooaApparently 2 is the default for Xorg server > 1.1210:40
KitsuWhooaI just rebooted again and it worked this time. What?!10:43
KitsuWhooaWorked as in X started. Screen is still garbled10:43
KitsuWhooaI compiled xf86-video-nouveau .13 and it segfaults after showing a bit of corruption, so my guess is it was either broken between .12 and .13, or it's on X12:17

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