From owner-freebsd-ports Sun Oct 13 8:50: 7 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABC6937B404 for ; Sun, 13 Oct 2002 08:50:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F26543E88 for ; Sun, 13 Oct 2002 08:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9DFo1Co077600 for ; Sun, 13 Oct 2002 08:50:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9DFo1sT077599; Sun, 13 Oct 2002 08:50:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67EF637B401 for ; Sun, 13 Oct 2002 08:46:11 -0700 (PDT) Received: from blueyonder.co.uk (pcow053o.blueyonder.co.uk [195.188.53.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D90343E8A for ; Sun, 13 Oct 2002 08:46:09 -0700 (PDT) (envelope-from root@bristol.homeunix.org) Received: from pcow053o.blueyonder.co.uk ([127.0.0.1]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Sun, 13 Oct 2002 16:45:47 +0100 Received: from bristol.homeunix.org (unverified [80.192.24.53]) by pcow053o.blueyonder.co.uk (Content Technologies SMTPRS 4.2.9) with SMTP id for ; Sun, 13 Oct 2002 16:44:18 +0100 Received: (qmail 308 invoked from network); 13 Oct 2002 15:44:18 -0000 Received: from athlon.home (10.90.0.2) by gateway.home with SMTP; 13 Oct 2002 15:44:18 -0000 Received: (qmail 48261 invoked by uid 0); 13 Oct 2002 15:44:16 -0000 Message-Id: <20021013154416.48260.qmail@athlon.home> Date: 13 Oct 2002 15:44:16 -0000 From: Keith Jones Reply-To: Keith Jones To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/44012: x11/gdm2: default configuration problem Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44012 >Category: ports >Synopsis: x11/gdm2: default configuration problem >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 13 08:50:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Keith Jones >Release: FreeBSD 4.7-RC i386 >Organization: no >Environment: FreeBSD athlon.home 4.7-RC FreeBSD 4.7-RC #0: Wed Oct 2 00:15:56 BST 2002 root@athlon.home:/usr/src/sys/compile/ATHLON i386 Up-to-date ports tree AFAIK (current cvsup 2002-10-12 11:00GMT) >Description: GDM 2 does not work 'out of the box' if you install the script /usr/X11R6/etc/rc.d/gdm.sh and reboot your system, as per the instructions in /usr/ports/x11/gdm2/pkg-message. On bootup, the GDM login screen appears as expected, but does not have keyboard focus. Nor is it possible to use any combination of ALT+Fn or CTRL+ALT+Fn to switch the display to any other VT. As a result, it renders your machine pretty unusable. (It turns out that the keyboard is focused on /dev/ttyv1, but the display is focused on GDM. Don't ask me how I discovered this. It's tedious.) This appears to be because the VTAllocation parameter of 'gdm.conf' doesn't work under FreeBSD[1], and so X grabs the first unused VT it can find. Since this is during the boot-up process, no other VTs have yet been set up, this causes lots of confusion when 'init' later attempts to set up a VT that's already there. [1] It wouldn't matter if it did, since the default VT in gdm.conf (vt7, or ttyv6) is 'on' in /etc/ttys, so init would still hate us. >How-To-Repeat: Install /usr/X11R6/etc/rc.d/gdm.sh as per the instructions in /usr/ports/x11/gdm2/pkg-message, then reboot your machine without making any changes to /usr/X11R6/etc/gdm/gdm.conf. >Fix: Either: 1. Add commentary to /usr/ports/x11/gdm2/pkg-message, telling users that they need to tailor gdm.conf to their system. This is probably non-optimal, as gdm2 is usually installed as part of gnome2, and you're likely to miss the message if you go for a coffee (very likely if you're installing the GNOME port!) Or: 2. Apply the following patch to 'config/gdm.conf.in' (replaces '/usr/ports/x11/gdm2/files/patch-ab'). The relevant changes are to lines 96 and 284; this disables VTAllocate and explicitly defines the VTY number in the standard X server definition. Note that I've chosen 'vt9' as the default, since the 9th VT (ttyv8) is the default VT for X in /etc/ttys under FreeBSD 4.x-STABLE. --- config/gdm.conf.in.orig Fri Aug 23 18:53:53 2002 +++ config/gdm.conf.in Sun Oct 13 02:15:09 2002 @@ -33,14 +33,14 @@ # The gdm configuration program that is run from the login screen, you should # probably leave this alone Configurator=@EXPANDED_GDMCONFIGDIR@/gdmsetup --disable-sound --disable-crash-dialog -GnomeDefaultSession=@EXPANDED_DATADIR@/gnome/default.session +GnomeDefaultSession=@EXPANDED_DATADIR@/default.session # The chooser program. Must output the chosen host on stdout, probably you # should leave this alone Chooser=@EXPANDED_BINDIR@/gdmchooser # Default path to set. The profile scripts will likely override this DefaultPath=/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@ # Default path for root. The profile scripts will likely override this -RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@ +RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@ DisplayInitDir=@EXPANDED_SYSCONFDIR@/gdm/Init # Greeter for local (non-xdmcp) logins. Change gdmlogin to gdmgreeter to # get the new graphical greeter. @@ -57,7 +57,7 @@ # To try to kill all clients started at greeter time or in the Init script. # doesn't always work, only if those clients have a window of their own KillInitClients=true -LogDir=@EXPANDED_AUTHDIR@ +LogDir=/var/log # You should probably never change this value unless you have a weird setup PidFile=/var/run/gdm.pid PostSessionScriptDir=@EXPANDED_SYSCONFDIR@/gdm/PostSession/ @@ -84,16 +84,16 @@ UserAuthFBDir=/tmp UserAuthFile=.Xauthority # The X server to use if we can't figure out what else to run. -StandardXServer=/usr/X11R6/bin/X +StandardXServer=@EXPANDED_BINDIR@/X # The maximum number of flexible X servers to run. FlexibleXServers=5 # the X nest command -Xnest=/usr/X11R6/bin/Xnest -name Xnest +Xnest=@EXPANDED_BINDIR@/Xnest -name Xnest # Automatic VT allocation. Right now only works on Linux. This way # we force X to use specific vts. turn VTAllocation to false if this # is causing problems. FirstVT=7 -VTAllocation=true +VTAllocation=false [security] # If any distributions ship with this one off, they should be shot @@ -153,7 +153,7 @@ # The 'theme'. By default we're using the default gtk theme # Of course assuming that gtk got installed in the same prefix, # if not change this. -GtkRC=@EXPANDED_DATADIR@/themes/Default/gtk/gtkrc +GtkRC=@EXPANDED_DATADIR@/../themes/Default/gtk-2.0/gtkrc # Maximum size of an icon, larger icons are scaled down MaxIconWidth=128 MaxIconHeight=128 @@ -281,7 +281,7 @@ # Definition of the standard X server. [server-Standard] name=Standard server -command=/usr/X11R6/bin/X +command=@EXPANDED_BINDIR@/X vt9 flexible=true # To use this server type you should add -query host or -indirect host @@ -289,7 +289,7 @@ [server-Terminal] name=Terminal server # Add -terminate to make things behave more nicely -command=/usr/X11R6/bin/X -terminate +command=@EXPANDED_BINDIR@/X -terminate # Make this not appear in the flexible servers (we need extra params # anyway, and terminate would be bad for xdmcp) flexible=false >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message