Bug 15890

Summary: M5RC qemu efimode: DVD installer does not start X-Server (unless explicitly choosing 32bpp)
Product: Mageia Reporter: Lutz Lacher <l.lacher>
Component: InstallerAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Normal CC: thierry.vignaud, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: Xorg.0.log with cirrus graphic card
Xorg.0.log with std graphic card
report.bug.xz from text installation
report.bug.xz with standard commandline
screenshot of grub in qemu

Description Lutz Lacher 2015-05-08 19:56:22 CEST
Description of problem:

I tried to install M5RC from Mageia-5-RC-x86_64-DVD.iso with qemu in efi-mode, but the X-Server fails to start, so the installation is possible only in text mode. I tried with different emulated graphic cards (cirrus and std), but non of them worked, in bios-mode both work fine with the same medium. Attached are the Xorg.0.logs from both cards. 



Reproducible: 

Steps to Reproduce:
Comment 1 Lutz Lacher 2015-05-08 19:58:00 CEST
Created attachment 6480 [details]
Xorg.0.log with cirrus graphic card
Comment 2 Lutz Lacher 2015-05-08 19:58:54 CEST
Created attachment 6481 [details]
Xorg.0.log with std graphic card
Lutz Lacher 2015-05-08 19:59:24 CEST

Attachment 6481 mime type: application/vnd.sun.xml.draw.template => text/plain

Lutz Lacher 2015-05-08 19:59:47 CEST

Attachment 6480 mime type: application/octet-stream => text/plain

Comment 3 Thierry Vignaud 2015-05-09 14:19:24 CEST
I though I'd already reported that one but it looks like I did so only through mail

CC: (none) => thierry.vignaud, tmb

Comment 4 Thierry Vignaud 2015-05-11 11:04:16 CEST
Can you attach your /root/drakx/report.bug.xz please?

Keywords: (none) => NEEDINFO

Comment 5 Lutz Lacher 2015-05-11 14:15:38 CEST
There's no /root/drakx/report.bug.xz, do i have to create it manually?
Comment 6 Thierry Vignaud 2015-05-11 14:18:06 CEST
No, it's created by the installer at the end of installation.
So this is not a classical installation?
Comment 7 Lutz Lacher 2015-05-11 14:29:54 CEST
Ok, i thougt it's generated in case of an error, e.g. if the X-Server doesn't start. The attached one is from an KDE-Installation with no online updates.
Comment 8 Lutz Lacher 2015-05-11 14:30:43 CEST
Created attachment 6490 [details]
report.bug.xz from text installation
Comment 9 Lutz Lacher 2015-05-11 14:35:07 CEST
Created attachment 6491 [details]
report.bug.xz with standard commandline
Comment 10 Samuel Verschelde 2015-05-13 15:59:11 CEST
Either this bug has an easy fix (Thierry? Thomas?), or it will have to be fixed for Mageia 6 I guess, we're really close to the final release.
Comment 11 Lutz Lacher 2015-05-14 13:13:18 CEST
I think the problem is in the generated xorg.conf (/tmp/Xconf) in stage2. I've created an "Usb Install", and unsquashed the mdkinst.sqfs and changed some options of the configfile. It seems to me, that the X-Server breaks at the "Depth"-Configurations in the xorg.conf file, commenting them out makes the X-Server start as expected.

--- squashfs-root.org/usr/lib/libDrakX/install/gtk.pm   2015-04-20 22:52:03.000000000 +0200
+++ squashfs-root.new/usr/lib/libDrakX/install/gtk.pm   2015-05-14 12:55:56.908410525 +0200
@@ -283,9 +283,9 @@
     Identifier "screen"
     Device "device"
     Monitor "monitor"
-    DefaultColorDepth $depth
+#    DefaultColorDepth $depth
     Subsection "Display"
-        Depth $depth
+#        Depth $depth
         Modes $resolution
     EndSubsection
 EndSection
Comment 12 Lutz Lacher 2015-05-14 13:49:51 CEST
Another workaround: setting the depth in the grub.cfg to 32 makes the X-Server start with the default mdkinst.sqfs

diff -u grub.cfg.org grub.cfg 
--- grub.cfg.org        2015-05-14 13:17:44.000000000 +0200
+++ grub.cfg    2015-05-14 13:29:34.000000000 +0200
@@ -9,7 +9,7 @@
 if loadfont ${prefix}/fonts/unicode.pf2
 then
    insmod gfxterm
-   set gfxmode=1024x768,800x600,640x480
+   set gfxmode=1024x768x32,800x600x32,640x480x32
    set gfxpayload=keep
    terminal_output gfxterm
 fi
Comment 13 Lutz Lacher 2015-05-14 19:26:23 CEST
The next workaround, without altering anything on the DVD:

Edit the grub section "Start Mageia 5 (Cauldron) Install", insert 

set gfxpayload=1024x768x32

before the kernel/linux-line (screenshot attached), works with both cirrus and std graphic card
Comment 14 Lutz Lacher 2015-05-14 19:27:05 CEST
Created attachment 6545 [details]
screenshot of grub in qemu
Comment 15 Thierry Vignaud 2015-05-14 23:27:22 CEST
It's strange that fb fails with 24bpp...

(==) Depth 24 pixmap format is 32 bpp
(EE) FBDEV(0): FBIOPUT_VSCREENINFO succeeded but modified mode
(EE) FBDEV(0): mode initialization failed
(EE) Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0

Summary: M5RC qemu efimode: DVD installer does not start X-Server => M5RC qemu efimode: DVD installer does not start X-Server (unless explicitly choosing 32bpp)

Comment 16 Lutz Lacher 2015-05-15 10:37:55 CEST
(In reply to Lutz Lacher from comment #13)
> The next workaround, without altering anything on the DVD:
> 
> Edit the grub section "Start Mageia 5 (Cauldron) Install", insert 
> 
> set gfxpayload=1024x768x32
> 
> before the kernel/linux-line (screenshot attached), works with both cirrus
> and std graphic card

The above workaround works only with -vga std, for the cirrus card you have to reduce the resolution to 800x600x32
Samuel Verschelde 2015-06-02 14:56:07 CEST

Keywords: NEEDINFO => (none)
Assignee: bugsquad => thierry.vignaud
Whiteboard: (none) => FOR_ERRATA

Comment 17 Lutz Lacher 2015-06-21 13:10:44 CEST
No problem with MGA5 final (Mageia-5-x86_64-DVD.iso) anymore, this bug can be closed, i think. Thank you.
Comment 18 Samuel Verschelde 2015-06-21 17:43:14 CEST
thanks

Status: NEW => RESOLVED
Resolution: (none) => FIXED
Whiteboard: FOR_ERRATA => (none)