Date: 13 Oct 2002 15:44:16 -0000 From: Keith Jones <kmjones@blueyonder.co.uk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44012: x11/gdm2: default configuration problem Message-ID: <20021013154416.48260.qmail@athlon.home>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021013154416.48260.qmail>