Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288852 - >=gnome-base/gdm-2.32.0 does not detect console correctly
Summary: >=gnome-base/gdm-2.32.0 does not detect console correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InOverlay
Depends on: 312017
Blocks:
  Show dependency tree
 
Reported: 2009-10-13 10:16 UTC by John Covici
Modified: 2011-05-05 22:52 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (temp.txt,9.84 KB, text/plain)
2009-10-13 11:09 UTC, John Covici
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Covici 2009-10-13 10:16:05 UTC
I have 11 virtual consoles and if I try to start gdm >=2.26.1 it seems to want to use console 7 and this can cause me to reboot because sometimes I cannot escape the damaged console.

Reproducible: Always

Steps to Reproduce:
Use more than 6 virtual consoles -- I am in baselayout2.  Upgrade gdm -- I tried 2.26.1 and 2.28.0.  start gdm.1.
2.
3.

Actual Results:  
A mess.  gdm tries to take over console 7 and sometimes alt control-alt-f1 or whatever does not let me get out.  Also, the keyboard can be messed up you type a letter and get something else.

Expected Results:  
In my case gdm should go to console 12 and I should be able to log in.
Comment 1 John Covici 2009-10-13 11:09:48 UTC
Created attachment 206948 [details]
emerge info
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-16 22:04:37 UTC
console 12 is already occupied by syslog output by default. There is a patch in gentoo's gdm that fixes earlier bugs with console detection, but it's only been testing with a number of console <10, so if you could forward this issue on the upstream bug that is noted in the ebuild, that'd be nice.
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-10-17 05:17:21 UTC
That was a hack to work around broken VT detection; which is still broken apparently. So the proper fix is not that old patch.
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-10-17 05:29:32 UTC
OK, I don't see where the previous fix for broken VT detection went in gdm; so maybe it went in X?

@remi: what do you say?
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2009-10-17 05:40:26 UTC
Honestly, I have _no_ idea how VT detection works. IIRC, gdm should now rely on ConsoleKit for that, but I don't know what X does on its own.

Thanks
Comment 6 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-10-17 07:06:07 UTC
@reporter:

Q1: Did it work with gdm-2.20?
Q2: Does VT detection work with startx ?
Q3: Does restarting X via Ctrl-Alt-Backspace make gdm select the correct VT?
Comment 7 John Covici 2009-10-17 14:18:23 UTC
(In reply to comment #6)
> @reporter:
> Q1: Did it work with gdm-2.20?
Yep, in fact it worked with gdm24.x, but that got pulled for some reason.
> Q2: Does VT detection work with startx ?
Not tested, will have to wait till I can have an environment where I can reboot if necessary.
> Q3: Does restarting X via Ctrl-Alt-Backspace make gdm select the correct VT?
Never will be able to tell, because I have to reboot immediately because my keyboard goes all weird -- is there some other reason for that or because of the conflict.

Comment 8 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-12-29 23:54:47 UTC
@reporter please open an upstream bug about this if it is still reproduceable with newer X and gdm

Removing blocking 2.26 release since >=gdm-2.24 is masked
Comment 9 John Covici 2009-12-30 11:24:01 UTC
(In reply to comment #8)
> @reporter please open an upstream bug about this if it is still reproduceable
> with newer X and gdm
> Removing blocking 2.26 release since >=gdm-2.24 is masked

OK, where should I report this bug, then?
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-31 10:42:24 UTC
please keep the blockers around, it helps keeping track of "not so critical" bugs and it doesn't mean it'll stop gnome 2.26 from getting stable anyway as gdm is masked like you said.
Comment 11 Michael Weber (RETIRED) gentoo-dev 2010-02-12 03:40:02 UTC
I want to refer to http://bugs.gentoo.org/show_bug.cgi?id=215628#c5.

The plain gdm-2.28 just doesn't care on which vt the Xorg runs (was FirstVT in /etc/X11/gdm/custom.conf).

Free VT Detection is a kernel function (/usr/src/linux/include/linux/vt.h) with ioctl( "/dev/tty0", VT_OPENQRY, int *). 
Xorg autodetects what's free (xorg-server-1.6.5/hw/xfree86/os-support/linux/lnx_int.c:145), typically vt2 next to the /sbin/init output, and the hard coded agettys do interfere with the X servers.

gdm und subsequent Xorg is started during runlevel 3 init from /sbin/init before the agettys defined inittab were started afterafter all runlevel-scripts were finished. In the past with rc_parallel=NO and daemonized xdm/gdm as last runlevel script to start, the startup of gdm/Xorg to long enough to start the agettys and grab the vt1..vt6. 

The gpm-2.28.2 from the tree - patched with the attachment of http://bugs.gentoo.org/show_bug.cgi?id=261339 - forces every Xorg instance to vt7, which is fine for single Xorg logins but crashes (most) Xorg/videodrivers on "switch user" scenarios. 

I've removed this patch from mine ebuild http://svn.xmw.de/gentoo-overlay/, is see the "greedy" behavior with first X on vt2 before every agetty.
Comment 12 Michael Weber (RETIRED) gentoo-dev 2010-04-08 02:50:20 UTC
Please see http://bugs.gentoo.org/show_bug.cgi?id=312017#c9 for a new patch, 
witch works on gdm versions 2.30.0, 2.29.92, 2.28.2 (minor mod). 2.26 has to be tested.
Comment 13 John Covici 2010-04-24 09:18:17 UTC
(In reply to comment #12)
> Please see http://bugs.gentoo.org/show_bug.cgi?id=312017#c9 for a new patch, 
> witch works on gdm versions 2.30.0, 2.29.92, 2.28.2 (minor mod). 2.26 has to be
> tested.


I got it to work  on 2.28.2 but the patches to the makefile and to the .conf file were wrong.  It does properly detect the console now.
Comment 14 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-16 12:53:40 UTC
What's the status with 2.32 ebuild ?
Comment 15 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-21 18:06:06 UTC
Please get back to us.
Comment 16 John Covici 2010-11-22 12:28:40 UTC
portage will not let me emerge the gdm-2.32.0 due to lots of things being masked -- gtk+ and others.  Should I wait till all thee are unmasked or are things in a state where I should go through and unmask what I need?
Comment 17 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-30 13:18:38 UTC
gnome 2.32 was unmasked a few weeks ago, it should be easy to unmask gdm for tests now.
Comment 18 John Covici 2011-01-03 00:37:58 UTC
I tried to use gdm-2.32.0.  However the vtdetection patch was not included.  I developed a patch, but either the patch did not work, or there is some other problem as when I sarted gdm, it did get the correct console, but I could not change my virtual console and had to reboot.  I was able to downgrade to gdm2.28.2 with my patch with some difficulty, and this is now working.
Comment 19 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-01-03 09:30:48 UTC
Please do not stick with gdm-2.28 as I'm about to remove it from the tree.
Comment 20 Maciej Piechotka 2011-04-10 08:56:06 UTC
On 3.0.0 (from gnome-overlay) it keeps opening on tty2 during startup (I use openrc)
Comment 21 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-04-15 19:36:33 UTC
There is a patch for this in the gnome overlay now, it will be added to the tree after some more testing.
Comment 22 Timo Antweiler 2011-05-01 11:06:32 UTC
When is this patch comming out? Is it just for gdm-3.0.0 or even version 2.X?
Comment 23 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-05-03 10:47:18 UTC
This is fixed with 2.32.1-r1, thanks for reporting.
Comment 24 Timo Antweiler 2011-05-05 17:52:37 UTC
It is not fixed! Problem still exists. Please leave it open.
Comment 25 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-05-05 22:52:04 UTC
(In reply to comment #24)
> It is not fixed! Problem still exists. Please leave it open.

If it's not fixed, please make sure you upgraded to 2.32.1-r1, and then open a new bug describing the problem since that would be a separate problem.