Bug 939838

Summary: Starting X manually from VT results in a blank screen
Product: [openSUSE] openSUSE Tumbleweed Reporter: Takashi Iwai <tiwai>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P2 - High CC: dimstar, eich, federico, jeffm, msrb, sndirsch, systemd-maintainers, tiwai
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 939834, 940294    

Description Takashi Iwai 2015-07-29 10:20:09 UTC
+++ This bug was initially created as a clone of Bug #939571 +++

On the recent Tumbleweed and Leap Milestone 1, starting X manually from VT fails.  It results in a blank screen.

Meanwhile when started from ssh or serial console, it starts fine.
Comment 1 Takashi Iwai 2015-07-29 10:25:53 UTC
There are multiple bugs behind the scene:

- For oS Leap, there is a crash of systemd-logind due to the bad return code from close();
  this is worked around by Werner's patch, handled in bug 939571 and bug 939834.

- X seems switching to VT2 by some reason while it's rendered on VT1.

[    34.911] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    34.911] (II) FBDEV: driver for framebuffer: fbdev
[    34.911] (II) VESA: driver for VESA chipsets: vesa
[    34.911] (--) using VT number 2

After running "chvt 1" on another terminal, and X screen appears.  So it's no crash but just a wrong VT.
Comment 2 Takashi Iwai 2015-07-30 10:33:41 UTC
A few upstream commits related with systemd fix the problem.

I'm going to submit xorg-x11-server package containing the following commits.  Not all are directly related with this bug, but they are better-to-have fixes.

1dba5a0b194653b0effb01a918bd7338b0c6bcb9
  linux: Add linux_parse_vt_settings and linux_get_keeptty helpers
81bcada14e339fe2a2fb3f3a040566d94dc20bad
  linux: Add a may_fail paramter to linux_parse_vt_settings
c88a325899381d1133e63e6c33c29db079e20a87
  systemd-logind: Only use systemd-logind integration together with keeptty
780a69aff0ff57ef813179a2f09556eaf488cdfc
 systemd-logind: do not rely on directed signals
Comment 3 Stefan Dirsch 2015-07-30 10:46:14 UTC
Thanks, Takashi! Please sr to X11:XOrg:42 and X11:Xorg. I then will forward to openSUSE:42 and openSUSE:factory.
Comment 4 Stefan Dirsch 2015-07-30 13:11:40 UTC
done (SR#319587).
Comment 5 Stefan Dirsch 2015-07-30 13:13:06 UTC
Takashi, why does bnc#939571 block this bug? Does this (still) make sense?
Comment 6 Takashi Iwai 2015-07-30 13:16:34 UTC
(In reply to Stefan Dirsch from comment #5)
> Takashi, why does bnc#939571 block this bug? Does this (still) make sense?

Ah, it's because I cloned the bug.  Let's clear the flag.
Comment 7 Stefan Dirsch 2015-07-30 13:41:11 UTC
Thanks! So let's close that one as fixed. ;-)
Comment 8 Bernhard Wiedemann 2015-07-30 14:00:15 UTC
This is an autogenerated message for OBS integration:
This bug (939838) was mentioned in
https://build.opensuse.org/request/show/319587 42 / xorg-x11-server
Comment 9 Bernhard Wiedemann 2015-08-03 15:00:13 UTC
This is an autogenerated message for OBS integration:
This bug (939838) was mentioned in
https://build.opensuse.org/request/show/320179 42 / xorg-x11-server