NetBSD Problem Report #45234

From www@NetBSD.org  Wed Aug 10 07:33:45 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 68A4563CB4A
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 10 Aug 2011 07:33:45 +0000 (UTC)
Message-Id: <20110810073344.C6F2F63C6F8@www.NetBSD.org>
Date: Wed, 10 Aug 2011 07:33:44 +0000 (UTC)
From: marc@msys.ch
Reply-To: marc@msys.ch
To: gnats-bugs@NetBSD.org
Subject: Xorg -configure fails on amd64 (-current as 8.8.2001, 5.99.55)
X-Send-Pr-Version: www-1.0

>Number:         45234
>Category:       xsrc
>Synopsis:       Xorg -configure fails on amd64 (-current as 8.8.2001, 5.99.55)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 10 07:35:00 +0000 2011
>Closed-Date:    Fri Sep 30 08:59:44 +0000 2016
>Last-Modified:  Fri Sep 30 08:59:44 +0000 2016
>Originator:     Marc Balmer
>Release:        5.99.55
>Organization:
TNF
>Environment:
NetBSD amd64.vnode.ch 5.99.55 NetBSD 5.99.55 (GENERIC) #0: Mon Aug  8 22:36:57 CEST 2011  root@amd64.vnode.ch:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

>Description:
Running 'Xorg -configure' as root fails with the following error messages towards the end of the output:

        vmware
        vmmouse
        vmwlegacy
        vmware
        wsfb
        vesa
(EE) vmware: Unexpected failure while loading the "vmwlegacy" driver. Giving up.
(EE) Failed to load module "vmware" (a required submodule could not be loaded, 0)
(EE) vmware: Unexpected failure while loading the "vmwlegacy" driver. Giving up.
(EE) Failed to load module "vmware" (a required submodule could not be loaded, 0)
(++) Using config file: "/root/xorg.conf.new"
Number of created screens does not match number of detected devices.
  Configuration failed.

>How-To-Repeat:
Run 'Xorg -configure'
>Fix:

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: port-amd64/45234: Xorg -configure fails on amd64 (-current as 8.8.2001, 5.99.55)
Date: Wed, 10 Aug 2011 09:41:15 +0200

 On Wed, Aug 10, 2011 at 07:35:00AM +0000, marc@msys.ch wrote:
 > Number of created screens does not match number of detected devices.
 >   Configuration failed.

 I think it is trying to tell you that there is no support for your graphics
 card. Happens to me with a "newer" nvidia card as well.

 Martin

From: Marc Balmer <mbalmer@NetBSD.org>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@NetBSD.org, port-amd64-maintainer@NetBSD.org,
        gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: port-amd64/45234: Xorg -configure fails on amd64 (-current as
 8.8.2001, 5.99.55)
Date: Wed, 10 Aug 2011 09:45:56 +0200

 Am 10.08.11 09:41, schrieb Martin Husemann:
 > On Wed, Aug 10, 2011 at 07:35:00AM +0000, marc@msys.ch wrote:
 >> Number of created screens does not match number of detected devices.
 >>   Configuration failed.
 > 
 > I think it is trying to tell you that there is no support for your graphics
 > card. Happens to me with a "newer" nvidia card as well.

 No, that is not the case, see the error message.  There is a problem
 loading the vmwlegacy module.

 My graphics cards is supported, starting X works fine wihtout a config
 file, but that gives the wrong keyboard encoding.  So I need to create a
 config file to change the XkbLayout.

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org
Subject: re: port-amd64/45234: Xorg -configure fails on amd64 (-current as 8.8.2001, 5.99.55)
Date: Wed, 10 Aug 2011 18:20:43 +1000

 this seems to have nothing to do with the vmw* drivers.  i see
 the same problem with or without the load failure on vmwlegacy.

 there's something more fundumentally wrong with the -configure
 flag that i don't know what is up yet.


 .mrg.

From: Matthieu Herrb <matthieu.herrb@laas.fr>
To: Marc Balmer <mbalmer@NetBSD.org>
Cc: gnats-bugs@NetBSD.org, port-amd64-maintainer@NetBSD.org,
        gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org, tech-x11@NetBSD.org
Subject: Re: port-amd64/45234: Xorg -configure fails on amd64 (-current as
 8.8.2001, 5.99.55)
Date: Wed, 10 Aug 2011 10:22:14 +0200

 On Wed, Aug 10, 2011 at 09:45:56AM +0200, Marc Balmer wrote:
 > Am 10.08.11 09:41, schrieb Martin Husemann:
 > > On Wed, Aug 10, 2011 at 07:35:00AM +0000, marc@msys.ch wrote:
 > >> Number of created screens does not match number of detected devices.
 > >>   Configuration failed.
 > > 
 > > I think it is trying to tell you that there is no support for your graphics
 > > card. Happens to me with a "newer" nvidia card as well.
 > 
 > No, that is not the case, see the error message.  There is a problem
 > loading the vmwlegacy module.

 Xorg -configure is basically unsupported upstreams and has a lot of
 issues with some modules. 

 The approach it uses (loading all modules at once to see which one
 matches the current card) is flawed. It was useful while ISA boards
 were supported, but since this support has been removed, it should be
 fixed to just do what is done when running without a config file and
 output the running config.

 > 
 > My graphics cards is supported, starting X works fine wihtout a config
 > file, but that gives the wrong keyboard encoding.  So I need to create a
 > config file to change the XkbLayout.
 > 
 You can create an xorg.conf with your favourite text editor with just
 an InputDevice section for your keyboard 

 Section "InputDevice"
 	Identifier "Keyboard0"
 	Driver "keyboard"
 	Option "XkbLayout" "sg"
 EndSection

 (And someone could have a look at was done in OpenBSD in
 xserver/config/wscons.c to get the layout from wscons automatically)
 I plan to submit it upstreams, but it won't make it into xserver
 1.11. 
 -- 
 Matthieu Herrb

State-Changed-From-To: open->feedback
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Sun, 09 Oct 2011 15:16:06 +0000
State-Changed-Why:
I fixed this, please re-test.


Responsible-Changed-From-To: port-amd64-maintainer->jmcneill
Responsible-Changed-By: jmcneill@NetBSD.org
Responsible-Changed-When: Sun, 09 Oct 2011 15:16:21 +0000
Responsible-Changed-Why:
Mine.


From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org, tech-x11@NetBSD.org
Cc: 
Subject: Re: port-amd64/45234: Xorg -configure fails on amd64 (-current as
 8.8.2001, 5.99.55)
Date: Sun, 9 Oct 2011 13:35:50 -0400

 On Sun, 9 Oct 2011 11:19:11 -0400
 "Jared McNeill" <jmcneill@invisible.ca> wrote:

 > You can create an xorg.conf with your favourite text editor with just
 > an InputDevice section for your keyboard
 > 
 > Section "InputDevice"
 > Identifier "Keyboard0"
 > Driver "keyboard"
 > Option "XkbLayout" "sg"
 > EndSection

 Although when auto-detection uses wrong resolution/hz defaults, what
 could be done then (not all modes may be detected and available via
 xrandr)?  With X -configure the defaults get listed so that they're
 then easily editable by the user.

 Thanks,
 -- 
 Matt

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/45234: Xorg -configure fails on amd64 (-current as
 8.8.2001, 5.99.55)
Date: Sun, 9 Oct 2011 21:46:55 -0400

 On Sun, 9 Oct 2011 14:08:27 -0400 (EDT)
 Jared McNeill <jmcneill@invisible.ca> wrote:

 > > > You can create an xorg.conf with your favourite text editor with just
 > > > an InputDevice section for your keyboard
 > > >
 > > > Section "InputDevice"
 > > > Identifier "Keyboard0"
 > > > Driver "keyboard"
 > > > Option "XkbLayout" "sg"
 > > > EndSection
 > >
 > > Although when auto-detection uses wrong resolution/hz defaults, what
 > > could be done then (not all modes may be detected and available via
 > > xrandr)?  With X -configure the defaults get listed so that they're
 > > then easily editable by the user.
 > 
 > You've mis-quoted me, I didn't write that!

 Indeed, I think that the author was Herrb, sorry for the misquote.
 -- 
 Matt

Responsible-Changed-From-To: jmcneill->xsrc-manager
Responsible-Changed-By: spz@NetBSD.org
Responsible-Changed-When: Tue, 24 Jan 2012 22:01:31 +0000
Responsible-Changed-Why:
back to group
.


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 30 Sep 2016 08:59:44 +0000
State-Changed-Why:
fixed in 2011


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.