/srv/irclogs.ubuntu.com/2017/03/17/#ubuntu-x.txt

=== JanC is now known as Guest79577
=== JanC_ is now known as JanC
alkisgI tried gathering more info for the "16 color depth split image" issue, and I got these:07:06
alkisgMy test case is, boot from the live cd, then run `sudo -i; wget http://paste.debian.net/plain/922125 -O /etc/X11/xorg.conf; chmod -w /etc/X11/xorg.conf; service lightdm restart` - sometimes it moves xorg.conf elsewhere and I have to do it  twice07:07
alkisgIt doesn't happen in KVM, http://termbin.com/kszu - using vesa instead of modesetting07:07
alkisgvbox + ubuntu-mate 16.04.2 have the issue, http://termbin.com/m78q - with the modeset driver07:07
alkisgvbox + ubuntu-mate 16.02.1 do NOT have the issue, http://termbin.com/66xu - with the modeset driver07:07
alkisgSo if I understand this correctly, it's a regression in the modesetting driver, and I should report it there?07:07
alkisg...where is "there"? :)07:08
tjaaltonxserver07:15
tjaaltonbut test 1.19.3 first07:15
tjaaltonwhy using 16bpp?07:16
alkisgtjaalton: is it enough if I test the 17.04 live cd?07:16
tjaaltonno07:16
tjaaltonit has 1.18.407:16
alkisgWhich ppa would I need?07:16
tjaaltonppa:canonical-x/x-staging07:17
alkisgThank you. We are using 16 bpp in thin clients in ltsp, because remote X needs half  the bandwidth there07:17
alkisgIt's like XDMCP, not VNC/RDP which compress data...07:17
tjaaltonyou mentioned vbox before..07:18
alkisgYes, I was testing with vbox, and it was loading the modeset driver07:18
alkisgSo any client that will fall back to modesetting, will have that issue, I assume07:18
tjaaltonso is it the same issue with thin clients?07:18
alkisgI think that if e.g. they have an intel card, no; but if they have something that would fall back to modesetting, like I don't know, sis, they would07:19
alkisgWhich graphics card should I choose to verify it on a real client?07:19
tjaaltonmodesetting is only used if there's a kms driver07:19
tjaaltonand no "native" x driver07:19
tjaaltonso sis will have vesa07:20
alkisgSo that would be a really rare scenario?07:20
alkisgThin clients are unfortunately still used in thousands of schools worldwide07:20
alkisgBut if it'll just affect vbox, it's not an issue07:21
alkisgAlthough, it just broke between 16.04.1 and 16.04.2, is it worth reporting it anyway?07:21
tjaaltontest 1.1907:21
tjaalton1.18 is dead to me :)07:21
alkisgSure, doing so...07:21
tjaaltonso what's the bug again?07:23
alkisgtjaalton: https://snag.gy/H3FeMW.jpg07:24
tjaaltondefault lightdm looked fine here07:25
tjaaltonunity doesn't load though07:25
alkisgxdpyinfo | grep Depth, says 16?07:25
tjaaltonbut I guess that's expected07:25
tjaaltonthe background looks "bad", so I think so07:25
alkisgcompiz did have issues with 16 bpp in the past, but we don't care about that part07:26
tjaaltonyes, depth is 1607:27
tjaaltontest with intel07:27
alkisgIntel uses the modesetting driver?07:27
tjaaltonon 16.04.2/16.10 and up07:28
tjaaltoni mean intel hw07:28
alkisgBut if the problem only happens with the modesetting driver, and intel doesn't use that, how would I see it in intel hardware?07:28
tjaaltonuh07:28
tjaaltonthe xserver is patched to not load intel07:29
alkisgAh, ok then07:29
tjaaltonfalls back on modesetting07:29
tjaaltonbut only on 16.10 and the hwe backport07:29
tjaaltonsame effect if you uninstall -intel on 16.04(.1)07:29
alkisgOn my current pc, I have: [    19.307] (II) modesetting: Driver for Modesetting Kernel Drivers: kms07:30
alkisg16.04.207:30
alkisgCan I test on that?07:30
tjaaltonyes07:30
alkisgOK, be back in 2 mins, thanks...07:30
alkisgxorg crashes here when I try 16bpp07:42
alkisgI tried it 3 times, and I had to REISUB to reboot07:42
alkisgI have 2 graphics cards though, maybe it conflicts somewhere there, let me try it on another intel machine with just 1 card07:44
alkisgI think that's the failed xorg: http://termbin.com/oumo07:47
* alkisg tries with 1 card...07:47
alkisgIt doesn't have an issue on 16.04.1, now upgrading that machine to .2...07:52
tjaaltonit has the same xserver07:52
tjaaltoncould've just installed -intel if that's what you tested with on .107:52
tjaalton*uninstalled07:52
alkisgin vbox, the problem didn't happen in 16.04.1 and did happen in 16.04.207:53
alkisgI already ran the apt command, will see in 2 mins...07:53
tjaaltonvbox updated then07:53
tjaalton4.4 vs 4.807:53
alkisgapt install --purge xserver-xorg-hwe-16.04 xserver-xorg-input-all-hwe-16.04; service lightdm restart => no issue yet, rebooting the machine...07:55
alkisgEh updating removed xorg.conf, so it wasn't a valid test yet...07:57
tjaaltonremoved? doubt that07:57
tjaaltonoh07:57
tjaaltonactually yes, purging xserver-xorg(-hwe-16.04) does remove it07:58
alkisg(yup; the intention there was to have xserver-xorg in purged state instead of ^rc)07:59
alkisgI have the same issue with the 1-card machine, http://termbin.com/nkwv07:59
alkisg-rw-r----- 1 root whoopsie 1,9M Μάρ  17 09:57 /var/crash/_usr_lib_xorg_Xorg.0.crash07:59
alkisgCaps lock etc doesn't work at this point, but I do have ssh access08:00
tjaaltonbroken config?08:00
alkisghttp://paste.debian.net/plain/92212508:00
alkisgIt works on 16.04.1 on the same machine08:01
alkisgLet me try 4.4 + newer xorg...08:01
tjaaltondrop device/monitor sections, just leave identifier/defaultdepth on screen section.. that's what I used08:02
alkisgRebooting with http://termbin.com/npzg...08:03
alkisg(had the same symptoms with 4.4 + newer xorg)08:04
alkisgSame results with newer xorg.conf, here's the Xorg.0.log, http://termbin.com/56gt08:05
* alkisg tries -depth 16 manually...08:06
tjaaltonwait08:07
tjaaltonapt-cache policy libgbm108:07
tjaaltonapt-cache policy libgl1-mesa-dri08:07
alkisgxinit -- -depth 24 => OK, xinit -- -depth 16 => Xorg: ../../../../hw/xfree86/common/xf86Helper.c:1948: xf86ScrnToScreen: Assertion `pScrn->scrnIndex < screenInfo.numScreens' failed.08:08
tjaaltonnevermind, gbm/dri mismatch was for software rendering "bug"08:08
tjaaltonI don't know then, if i915.ko is loaded it should work just fine08:09
alkisglibgbm1=12.0.6-0ubuntu0.16.04.1 500, libgl1-mesa-dri = 12.0.6-0ubuntu0.16.04.1 50008:09
tjaaltonand does work here08:09
alkisgMaybe different chipset?08:10
tjaaltonshouldn't matter08:10
alkisgI can test with the live CD, if it'll help08:10
alkisg(to ensure that it's not an issue with my installation)08:10
tjaaltonwhich cpu do you have then08:10
alkisg# lspci -nn -k | grep -A 2 VGA08:10
alkisg00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Generation Core Processor Family Integrated Graphics Controller [8086:041e] (rev 06)        Subsystem: Gigabyte Technology Co., Ltd 4th Generation Core Processor Family Integrated Graphics Controller [1458:d000]        Kernel driver in use: i91508:10
tjaaltonwell that's old08:11
alkisg grep model /proc/cpuinfo  => model name      : Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz08:11
tjaaltonoh sorry08:11
tjaalton4th gen core08:11
alkisgWell, it still shouldn't crash :D08:11
tjaaltonnot gen408:11
tjaaltonhaswell08:12
alkisgAfter testing with the ppa, where would I file a bug report for this?08:12
tjaaltonwhich one?08:13
alkisgThe one you proposed that I should test xorg 1.19 with08:13
alkisgLet me check the logs...08:13
tjaaltonyour original bug08:13
tjaaltonthat's in vbox I bet08:13
alkisgYes08:14
alkisgWell, I have 2 cases where modesetting works in 16.04.1 and has issues in .2, in vbox the issue is split screen, in intel it's a crash08:14
tjaaltonand same 4.8 kernel on both?08:14
alkisgYes08:14
alkisgI tried with 4.4 on intel, it still crashed08:15
tjaaltonwhile you say "modesetting" works it's using -intel on .1?08:15
tjaaltonbecause it's essentially the same xserver08:15
alkisgOn the stock 16.04.1, it worked. Would that load intel?08:15
tjaaltonyes08:15
alkisgThen yes08:15
tjaaltonbut08:16
tjaaltonyou were testing on vbox..08:16
tjaaltonwhere it loads whatever08:16
alkisg(09:45:22 πμ) ***alkisg tries with 1 card...08:16
alkisg(09:52:11 πμ) alkisg: It doesn't have an issue on 16.04.1, now upgrading that machine to .2...08:16
alkisgThat was one of the recent tests I did "just now"08:16
tjaaltonyeah I'm just super confused at this point. file whatever08:17
tjaaltonI can't reproduce this "crash" with skylake08:17
alkisgWhere would I file it?08:17
alkisgI'll start with the intel crash08:17
tjaaltontried it on 16.04.1 and 17.04+ppa08:18
alkisgCould you please try: xinit -- -depth 1608:18
tjaaltonI'm reading the log instead08:18
tjaaltonand I can see how the lightdm background looks crappy08:18
tjaaltonand login fails08:19
tjaaltonso it's using 16bpp alright08:19
alkisgYes, but I meant, so that we have a common action to try to reproduce it08:19
alkisgIt's simpler than trying a xorg.conf08:19
tjaaltonI don't have your environment08:19
alkisg(which can vary)08:19
tjaaltonoh08:19
tjaaltonxinit08:19
tjaaltonmisread08:19
alkisgsudo service lightdm stop; xinit -- -depth 1608:19
tjaaltonworks08:20
alkisgOK, then I guess it only affects a few intel chipsets08:21
alkisgI'll see at home if I can reproduce it with a 6th gen one08:21
alkisg(i3 6100p if I remember correctly)08:22
tjaaltonwell, could repro it with BDS08:52
tjaaltonBDW08:52
alkisgNice :)08:53
tjaaltoni guess the intel X driver does some tricks09:03
alkisgtjaalton: should I test the staging ppa?09:04
tjaaltonfile a bug on freedesktop drm/i91509:04
tjaaltonit doesn't help09:04
alkisgOK, thank you very much09:04
alkisgtjaalton: can I test with forcing the intel driver instead of the modesetting one?09:04
tjaaltontest what?09:04
tjaaltondepth 16 works there09:04
alkisgAh, ok09:04
alkisgReported https://bugs.freedesktop.org/show_bug.cgi?id=100246, hopefully I got it right10:13
ubottuFreedesktop bug 100246 in Driver/intel "Xorg crashes with 16bpp on i3-4150" [Normal,New]10:13
tjaaltonwrong component, and never paste logs :)10:18
tjaaltonshould be dri/i91510:19
tjaaltondunno why I can't change that..10:20
michael-vbtjaalton: regarding the person who had Xorg loading before the video driver, I suggested he add "ExecStartPre=/bin/udevadm settle" to the display manager service file (it was lightdm) and that seemed to do the trick.13:22
michael-vbThe question is, who should I talk to about that?  It seems to me that something on those lines would make general sense, but it might well be something else on those lines.13:22
tjaaltonmichael-vb: file a bug against lightdm13:23
michael-vbI should check, but it probably affects gdm too.13:24
michael-vbAnd I have a suspicion it might want fixing somewhere further upstream.13:24
tjaaltoni don't know where that would be13:25
michael-vbAny idea who might, or just file the bug as you suggested and wait for the response?13:25
tjaaltonyou can try the udev/systemd folks..13:26
michael-vbLooking at the .orig archives for gdm3, plymouth and systemd, gdm3 is "After" plymouth-start.service and plymouth-start.service is "After" systemd-udev-trigger.service.  The manual page is not quite clear to me: does udevadm trigger also wait for all events to be handled?13:39
tjaaltondunno13:41
michael-vbRight, looking at it I get the feeling that it is a problem in the Debian lightdm package.13:48
michael-vbSo your first suggestion applies.13:48
alkisgmichael-vb: I bumped into this page today: https://wiki.archlinux.org/index.php/LightDM#LightDM_does_not_appear13:56
alkisgIt may happen that your system boots so fast that LightDM service is  started before your graphics drivers are properly loaded. If this is  your case, you will want to add the following config to your  lightdm.conf file:     [LightDM]    logind-check-graphical=true 13:56
alkisgI don't know if it applies or helps in that person's case....13:57
michael-vbInteresting in any case.  Thanks.13:57
alkisgnp13:57
alkisgtjaalton: I could not reproduce the xorg crashing issue at home, on i3-6100.16:05
alkisgAbout the other issue that I was having with the ghost e-DP1 monitor, it's like this: kernel 4.4 => no ghost monitor, 4.8 => a ghost monitor called e-DP1, 4.11 => a ghost monitor called DP-1, while the real VGA one is DP-2. Should I test anything else before reporting it, and where would I report it? Thanks again!16:05
michael-vbalkisg: the user tried your suggestion above and it worked.  They also see the same problem with Fedora and lightdm.  (They helpfully initially said "Fedora" without mentioning lightdm, leaving me assuming GNOME Shell.)16:14
alkisgmichael-vb: glad I could help; so it appears others have bumped into that as well, since it's documented in a wiki16:15
michael-vbYes, thanks.16:15
tjaaltonalkisg: dri/drm/i91516:52
alkisgtjaalton: thank you very much again16:52
tjaaltonyour cpu is a skylake, so same as here16:53
tjaaltonmight suggest it's actually a bug in i965_dri16:53
tjaaltonso mesa16:53
tjaaltongen4 was busted too, hung the machine16:54
alkisgNonono it took us 6 months of talking to the mayor to get those machines, we won't see new ones for the next 10 years :D16:54
tjaaltonhuh?16:57
tjaaltonskylake is fine is it not?16:57
alkisgIt sure is, I thought that when you said "gen4", you were referring to my work pc, which is i3-4xxx16:59
alkisg(the one that had the xorg crash issue)16:59
alkisgSo skylake has the ghost monitor issue, while broadwell has the xorg crash issue16:59
tjaaltongen4 = 965GM17:01
tjaalton= old17:02
alkisgOK; but I don't think we tested that anywhere today17:02
tjaaltonthe "crash" is on < gen917:02
tjaaltonI did17:02
alkisgAh, so I could reproduce it on some older machines that I have17:02
alkisgThanks, and sorry for misunderstanding17:02
tjaaltonyou already did..17:02
alkisgI only tested on broadwell, I didn't test on 965gm17:03
tjaaltoni did17:03
alkisgYup, I got that part.17:03
tjaaltonyou tested haswell17:03
alkisgi3-4xxx is haswell? eh, sorry, my bad then17:04
alkisgToo many numbers and names :D 8th generation and 4xxx and haswell... confusing :D17:04
* alkisg notes that the ghost monitor issue also happens on another skylate processor, model name : Intel(R) Pentium(R) CPU G4400 @ 3.30GHz20:21

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