Bug 558139

Summary: xdmsc seems to be broken (again)
Product: [openSUSE] openSUSE 11.2 Reporter: Lars-Göran Andersson <larsg>
Component: X11 ApplicationsAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: sndirsch
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /etc/init.d/rx
/etc/init.d/rx

Description Lars-Göran Andersson 2009-11-24 20:19:36 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.9.1.5) Gecko/20091103 SUSE/3.5.5-2.3 Firefox/3.5.5

After installing package xdmsc and trying to start it you get the message that nop X-server is available. It seems to be a problem in the routine get_version where the answer from the command 'X -version' gives an unexpected answer.

Reproducible: Always

Steps to Reproduce:
1.Install xdmsc
2.issue an 'init 3'
3.
Actual Results:  
I get the message that n o X-server is available.

Expected Results:  
I would have expected an X-server with a connection to my server.

This problem was reported in 10.2 and fixed but it seems as 'X -version' has changed its output and the routine 'get_version' is testing against this output.
Comment 1 Dr. Werner Fink 2009-11-25 08:17:27 UTC
Beside this IMHO the script rx should work as get_version() returns 0
and therefore set XCONFIG to /etc/X11/xorg.conf if this file exist.


Stefan:  The version output of the X server are a bit strange:

 /suse/werner> X -version

 X.Org X Server 1.5.2
 Release Date: 10 October 2008
 X Protocol Version 11, Revision 0
 Build Operating System: openSUSE SUSE LINUX
 Current Operating System: Linux boole 2.6.27.19-3.2-pae #1 SMP 2009-02-25 15:40:44 +0100 i686
 Build Date: 19 March 2009  08:24:45PM
 
         Before reporting problems, check http://wiki.x.org
         to make sure that you have the latest version.
 Module Loader present

... this includes indeed a empty line. On an other system I see:

 /suse/werner> X -version

 X.Org X Server 1.6.5
 Release Date: 2009-10-11
 X Protocol Version 11, Revision 0
 Build Operating System: openSUSE SUSE LINUX
 Current Operating System: Linux Fatou 2.6.31.4-3-desktop #1 SMP PREEMPT 2009-10-26 14:54:00 +0100 x86_64
 Build Date: 10 November 2009  06:09:46PM
 
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.

... also an empty line and an other date format.
Comment 2 Dr. Werner Fink 2009-11-25 08:24:16 UTC
Created attachment 329376 [details]
/etc/init.d/rx

Jet an other version of the rx script, please test out
Comment 3 Stefan Dirsch 2009-11-25 09:06:52 UTC
Werner, on openSUSE 11.2 we no longer use any X config file (configuration is no longer necessary). Thus I'm afraid the logic in the script to detect if X is "configured" needs to be changed.
Comment 4 Dr. Werner Fink 2009-11-25 09:12:34 UTC
Hmmm ... how does keyboard setup work without a configuration file?
Comment 5 Stefan Dirsch 2009-11-25 09:17:47 UTC
/etc/X11/xdm/keytable4hal creates /etc/hal/fdi/policy/20thirdparty/11-keymap.fdi from /etc/sysconfig/keyboard:KEYTABLE using /usr/share/sax/sysp/maps/Keyboard.map as mapping table. And of course you can switch keyboard layout on the fly anyway.
How is this related to the rx script?
Comment 6 Dr. Werner Fink 2009-11-25 09:25:49 UTC
Nothing ... nevertheless I'd like to know how the several setups found
in old /etc/X11/xorg.conf now will work without /etc/X11/xorg.conf
like hand tuned mode lines and special options of the NVidia driver.
Comment 7 Stefan Dirsch 2009-11-25 09:36:18 UTC
Hopefully you no longer need any hand tuned mode lines. The monitor should provide the right mode lines for you via DDC, which then are picked up by the driver.

For special video driver options you still need a minimal xorg.conf. Something like this is sufficient

Section "Device"
  Identifier "nvidia"
  Driver "nvidia"
  #Option "someoption" "yes"
EndSection

Using sax2 for this is overkill and usually more harm than benefit, but it's still
available.
Comment 8 Dr. Werner Fink 2009-11-25 10:13:47 UTC
Created attachment 329401 [details]
/etc/init.d/rx

OK ... now with extended version check
Comment 9 Dr. Werner Fink 2009-11-25 10:14:32 UTC
Lars? Please can you test out the new script?
Comment 10 Lars-Göran Andersson 2009-11-25 12:44:18 UTC
Hi Werner! It works! Thanks for your help!
Comment 11 Dr. Werner Fink 2009-11-25 13:19:28 UTC
submitted fixed version to factory