Bug 8049 - Can't switch to/from console login.
Summary: Can't switch to/from console login.
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: Anne Nicolas
QA Contact:
URL:
Whiteboard: 3beta4
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 05:11 CET by Dave Hodgins
Modified: 2013-08-30 09:25 CEST (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
syslog output switching to/from tty2 under gdm (5.64 KB, text/plain)
2012-11-12 20:11 CET, Dave Hodgins
Details
List of packages, one or more of which are causing the bug. (9.69 KB, text/plain)
2012-11-12 23:18 CET, Dave Hodgins
Details
Compressed report.bug (132.34 KB, application/octet-stream)
2012-11-14 00:32 CET, Dave Hodgins
Details
dracut.log (30.50 KB, text/plain)
2012-11-14 00:32 CET, Dave Hodgins
Details
Differences between the two initrds linked to previously. (181.45 KB, text/plain)
2013-03-13 11:42 CET, Colin Guthrie
Details

Description Dave Hodgins 2012-11-12 05:11:29 CET
After a clean install using Mageia 3 alpha 3 x86-64 dvd from
Sun Nov 11 21:11:12 CET 2012 (custom install, selecting everything
except individual package selection), logging in to a kde session,
and then pressing alt+ctrl+f2, a blank screen is displayed.

Pressing alt+ctrl+f1 goes back to a kdm login screen.

After installing rsyslog, /var/log/syslog shows ...

Nov 11 22:16:09 x3 kernel: QProcessManager[5027]: segfault at 8 ip 00007fb73d99231b sp 00007fb72bae64e8 error 4 in libQtDBus.so.4.8.3[7fb73d950000+79000]
Nov 11 22:16:11 x3 kdm[891]: X server for display :0 terminated unexpectedly

Similarly, after logging into a gnome classic session, after the switch to
a blank screen on tty2, back to the kdm login on tty1, it has ...
Nov 11 22:19:31 x3 gnome-session[6217]: Gdk-WARNING: gnome-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Nov 11 22:19:31 x3 kdm[891]: X server for display :0 terminated unexpectedly

My guess at this point, is that there is a permissions problem with kdm.

I'll dig into this more tomorrow.
Dave Hodgins 2012-11-12 05:11:50 CET

Whiteboard: (none) => 3alpha3

Comment 1 Dave Hodgins 2012-11-12 20:11:13 CET
Created attachment 3080 [details]
syslog output switching to/from tty2 under gdm

Same result using gdm instead of kdm.  tty2 stays blank, kills de on tty1.
Comment 2 Dave Hodgins 2012-11-12 20:49:30 CET
This bug does not affect an install done using the gnome i586 dvd, so it's
most likely a missing package causing the problem.

I'll try and track down which one(s).

Assignee: bugsquad => ennael1

Comment 3 Dave Hodgins 2012-11-12 23:18:36 CET
Created attachment 3083 [details]
List of packages, one or more of which are causing the bug.

The bug is present after a Mageia-3-alpha3-i586-DVD  gnome install.

It is not present after a Mageia-3-alpha3-LiveDVD-GNOME-i586-DVD gnome install.

The packages in the attached list, are all installed, after an install
from the live dvd, but not from the install dvd.

Installing all of the nonfree packages does fix the problem, but I'm
having trouble narrowing down which one(s) are actually needed, to fix it.
Dave Hodgins 2012-11-12 23:26:07 CET

Priority: Normal => release_blocker

Comment 4 Dave Hodgins 2012-11-13 00:00:01 CET
The bug is not present in a vb install, so taking the release blocker tag off.

Priority: release_blocker => Normal

Comment 5 Dave Hodgins 2012-11-13 03:32:35 CET
Finally figured out the problem.  It is not a missing package.  To fix the
problem, I have to run "dracut -f", and then reboot.

So it looks like the problem is caused the the installer running dracut
before I've had a chance to configure the monitor.

My old crt monitor does not return any edid information, and has a maximum
resolution of 1280x1280,  but my video card is capable of resolution settings
of 1600x1200.

With the live iso images, bug 7774 explains the workaround I currently use.
As that's done before dracut gets run, the reboot after install is ok.

It may get fixed by having the installer running under systemd, or by including
the firmware, but I expect it will require postponing the running of dracut
until after the video resolution has been set in the summary.  Would probably
be a good idea to run dracut at the same time as the boot loader installation.

Resetting the priority to release blocker, as discussed on irc.

Priority: Normal => release_blocker

claire robinson 2012-11-13 10:40:54 CET

CC: (none) => eeeemail

Manuel Hiebel 2012-11-13 12:14:33 CET

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

Comment 6 Colin Guthrie 2012-11-13 12:19:04 CET
Hmm, do you have the install logs? Dracut should not run until the preparing bootloader stage but previously there were bugs in e.g. mageia-theme that triggered it early via a circuitous route.

It would be nice to know at what point the initrd was generated in the install process as that would give us a list of package with faulty post scripts...
Comment 7 Dave Hodgins 2012-11-14 00:32:14 CET
Created attachment 3095 [details]
Compressed report.bug

As shown in the attached report.bug file, dracut
is run before the summary is shown, where the
"setting PreferredMode" shows 1280x1024 being selected.
Comment 8 Dave Hodgins 2012-11-14 00:32:58 CET
Created attachment 3096 [details]
dracut.log
Comment 9 Colin Guthrie 2012-11-14 11:12:40 CET
Hmm, that's kinda odd overall. I'm not sure why the generate initrd would be different.

Can you possibly upload (e.g. to dropbox or somewhere similar both the initrd generate at install and the one generated subsequently?

I don't see any more packages being installed after the initrd generation (the original problem I was expecting a reoccurance off actually generates the initrd half way through package installation with predictably horrible results) and thus I'm not sure where the resolution is set in the initrd other than via the kernel command line etc. with the vga= stuff.

Being able to compare the two initrds might give some clues.

Cheers
Comment 10 Dave Hodgins 2012-11-17 01:35:40 CET
Sorry for the delay, had to reinstall to get the initial initrd.

https://www.dropbox.com/s/c7hnmw1ptaqdwi1/initrd-3.6.5-server-1.mga3.img.install

https://www.dropbox.com/s/5muyofph6u49vnv/initrd-3.6.5-server-1.mga3.img

The initrd.*.install is the one created during installation, while the other
is from running dracut -f in the installed system.
Comment 11 Dave Hodgins 2012-11-19 22:47:41 CET
I should add, with the initrd created from the running system, I do encounter
the long delay, while it tries to load the missing radeon-firmware, but, after
that, going to/from a console login does work.  With the install initrd,
I don't get the delay, but the switching doesn't work.
Comment 12 Anne Nicolas 2013-01-29 22:13:41 CET
Is it still valid with last isos ?
Comment 13 Anne Nicolas 2013-03-13 11:00:39 CET
Reporter please? If no answer in the coming days we will close this bug report
Comment 14 Colin Guthrie 2013-03-13 11:42:50 CET
Created attachment 3606 [details]
Differences between the two initrds linked to previously.

OK, so there are some differences in the initrds:

Several kernel modules are not included initially, namely the radeon module and friends (drm+kms helper etc) and all the radeon firmware.

Perhaps this sheds some light if there is still a problem but a test with latest isos would be appreciated for sure.
Comment 15 claire robinson 2013-03-13 15:07:03 CET
I noticed during testing that the journal appeared to be displayed on tty2/3 while I was trying to log in, and there was a delay before the login prompt appeared. I was into something else at the time and forgot all about it until I saw this so can't provide any details.
Comment 16 Dave Hodgins 2013-03-14 03:16:58 CET
Sorry for not responding sooner. The problem is still present in beta 3,
Given comment 14, the cause is clear.
The installer displays the dialog titled "Preparing boot loader", which
is when dracut is being run, just before it asks if I want to use the
proprietary driver, so the radeon module is not available when dracut
is run.

The order of operations in the installer need to be changed. I'd
postpone the running of dracut until after the summary, just before
the bootloader installation.

In beta 3, the tty2 login does work.  It's just when switching back
to tty1, that the display is black.

Whiteboard: 3alpha3 => 3beta3

Comment 17 Dave Hodgins 2013-03-25 03:07:26 CET
Still present in beta 4, however running dracut -f, or adding
xdriver=vesa does not fix it.

I'm starting to think it's the monitor not providing edid,
combined with a graphics card that supports resolutions
higher than what the monitor supports.

Whiteboard: 3beta3 => 3beta4

Comment 18 AL13N 2013-04-10 00:31:43 CEST
wouldn't/shouldn't the summary reconfigure display rerun dracut?

CC: (none) => alien

Comment 19 AL13N 2013-04-23 13:23:49 CEST
that would be a good fix, wouldn't it?
Comment 20 Colin Guthrie 2013-04-23 13:37:51 CEST
Yeah probably would be a good solution. I'm still cautious about this tho' - e.g. we need to rebuild all initrds as the user may have upgraded their kernel but not yet rebooted, but that's just the way it is... I can only be paranoid for so long before it impacts the user!
Comment 21 AL13N 2013-04-23 16:33:30 CEST
@colin, well you can still track this at the summary screen and then decide to do it or not...
Comment 22 AL13N 2013-05-13 13:06:33 CEST
@colin: did you rerun dracut at end? or will we not do this?
Comment 23 Colin Guthrie 2013-05-13 14:43:26 CEST
@AL13N I didn't make any changes in this area sadly :( Must have missed this one on my list :(

I guess it's too late to do anything about it now sadly, but will try and take a quick look.
Comment 24 Dave Hodgins 2013-08-30 09:25:57 CEST
Since I no longer have the monitor that failed to return any edid info,
I'm going to close this bug as old.

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.