Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-03 Thread Dan Nicholson
On Fri, Apr 2, 2010 at 2:29 PM, Dan Nicholson dbn.li...@gmail.com wrote:
 On Fri, Apr 2, 2010 at 2:25 PM, Julien Cristau jcris...@debian.org wrote:
 On Fri, Apr  2, 2010 at 14:10:47 -0700, Dan Nicholson wrote:

 On Fri, Apr 02, 2010 at 01:20:26PM -0700, Keith Packard wrote:
  On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau jcris...@debian.org 
  wrote:
 
   And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
   default make my xserver work snippets just seems wrong (and /usr
   allows me to make sure they're in sync with the packages, not conflated
   with configuration which is the admin's domain).
 
  Yeah, that's why I picked the 'secondary' path supported by the server
  so that a directory in /etc/X11 would completely override these files.
 
  Sounds like we need to fix the server config file search path to look in
  a sensible place rather than $(prefix)/etc/X11

 This is untested, but I think the patch below is all it would take to
 add support for a second system directory in $prefix/lib/X11 with
 lowest priority.

 This is already in {USER,ROOT}_CONFIGDIRPATH, shouldn't it be removed
 from there if we add a new search path?

 Yeah, probably. It was more of a proof of concept patch. Now would be
 the best time to look at those standard search paths and make them
 sane. There's no real reason to repeat the nonsense in the xorg.conf
 searching.

I posted a patch series which addresses most of these shortcomings, I
think. See 1270312431-11197-1-git-send-email-dbn.li...@gmail.com.

http://lists.freedesktop.org/archives/xorg-devel/2010-April/006846.html

Let me know what you think.

--
Dan
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Arkadiusz Miskiewicz
On Friday 02 of April 2010, Keith Packard wrote:
 The X.org X server 1.8.0 is now available. It's pretty close to RC2,
 with some XQuartz and Cygwin/X changes, and some various input cleanups.
 
 One other notable change since RC3 is that udev is now the default input
 device autoconfiguration mechanism where available, and the server
 installs a 10-evdev.conf file to make sure you get input devices after
 installing the new server.

How to get it working with latest released udev 151 ? No input device was added,
so my keyboard/mouse doesn't work.

[  1374.915] (II) intel(0): Setting screen physical size to 444 x 277
[  1374.974] (II) config/udev: Adding input device Power Button 
(/dev/input/event3)
[  1374.974] (EE) No input driver/identifier specified (ignoring)
[  1374.978] (II) config/udev: Adding input device Power Button 
(/dev/input/event2)
[  1374.978] (EE) No input driver/identifier specified (ignoring)
[  1374.984] (II) config/udev: Adding input device AT Translated Set 2 keyboard 
(/dev/input/event1)
[  1374.984] (EE) No input driver/identifier specified (ignoring)
[  1374.984] (II) config/udev: Adding input device ImPS/2 Generic Wheel Mouse 
(/dev/input/event5)
[  1374.984] (EE) No input driver/identifier specified (ignoring)
[  1374.984] (II) config/udev: Adding input device ImPS/2 Generic Wheel Mouse 
(/dev/input/mouse1)
[  1374.984] (EE) No input driver/identifier specified (ignoring)
[  1374.985] (II) config/udev: Adding input device PC Speaker 
(/dev/input/event4)
[  1374.985] (EE) No input driver/identifier specified (ignoring)
[  1374.988] (II) config/udev: Adding input device Macintosh mouse button 
emulation (/dev/input/event0)
[  1374.988] (EE) No input driver/identifier specified (ignoring)
[  1374.989] (II) config/udev: Adding input device Macintosh mouse button 
emulation (/dev/input/mouse0)
[  1374.989] (EE) No input driver/identifier specified (ignoring)


-- 
Arkadiusz MiśkiewiczPLD/Linux Team
arekm / maven.plhttp://ftp.pld-linux.org/
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Dan Nicholson
On Fri, Apr 2, 2010 at 1:53 AM, Arkadiusz Miskiewicz ar...@maven.pl wrote:
 On Friday 02 of April 2010, Keith Packard wrote:
 The X.org X server 1.8.0 is now available. It's pretty close to RC2,
 with some XQuartz and Cygwin/X changes, and some various input cleanups.

 One other notable change since RC3 is that udev is now the default input
 device autoconfiguration mechanism where available, and the server
 installs a 10-evdev.conf file to make sure you get input devices after
 installing the new server.

 How to get it working with latest released udev 151 ? No input device was 
 added,
 so my keyboard/mouse doesn't work.

 [  1374.915] (II) intel(0): Setting screen physical size to 444 x 277
 [  1374.974] (II) config/udev: Adding input device Power Button 
 (/dev/input/event3)
 [  1374.974] (EE) No input driver/identifier specified (ignoring)

Can you post the rest of the log? It should be picking up the
InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
stubs used with the hal backend.

--
Dan
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Keith Packard

 Can you post the rest of the log? It should be picking up the
 InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
 the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
 stubs used with the hal backend.

Yeah, one possibility is that you have an existing /etc/X11/xorg.conf.d
directory which will cause the X server to skip everything in
$(prefix)/etc/X11/xorg.conf.d and thus miss the 10-evdev.conf file.

I'm not entirely sure that using only one xorg.conf.d directory is the
right plan.

-- 
keith.pack...@intel.com


pgpxbapWLOBbH.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Stefan Dirsch
On Fri, Apr 02, 2010 at 10:03:47AM -0700, Keith Packard wrote:
 
  Can you post the rest of the log? It should be picking up the
  InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
  the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
  stubs used with the hal backend.
 
 Yeah, one possibility is that you have an existing /etc/X11/xorg.conf.d
 directory which will cause the X server to skip everything in
 $(prefix)/etc/X11/xorg.conf.d and thus miss the 10-evdev.conf file.

BTW, the first thing I did with 1.8.0 was:

-xorgconfddir = $(prefix)/etc/X11/$(XF86CONFIGDIR)
+xorgconfddir = $(sysconfdir)/X11/$(XF86CONFIGDIR)

in config/Makefile.am

Best regards,
Stefan

Public Key available
--
Stefan Dirsch (Res.  Dev.)   SUSE LINUX Products GmbH
Tel: 0911-740 53 0Maxfeldstraße 5
FAX: 0911-740 53 479  D-90409 Nürnberg
http://www.suse.deGermany 
-
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Keith Packard
On Fri, 2 Apr 2010 19:24:42 +0200, Stefan Dirsch sndir...@suse.de wrote:

 -xorgconfddir = $(prefix)/etc/X11/$(XF86CONFIGDIR)
 +xorgconfddir = $(sysconfdir)/X11/$(XF86CONFIGDIR)

A matching patch in hw/xfree86/common/xf86Config.c might be a good idea
as that uses %P/etc/X11/xorg.conf.d, where %P is replaced with
$(prefix).

-- 
keith.pack...@intel.com


pgpj2Wb165S61.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Dan Nicholson
On Fri, Apr 2, 2010 at 10:03 AM, Keith Packard kei...@keithp.com wrote:

 Can you post the rest of the log? It should be picking up the
 InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
 the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
 stubs used with the hal backend.

 Yeah, one possibility is that you have an existing /etc/X11/xorg.conf.d
 directory which will cause the X server to skip everything in
 $(prefix)/etc/X11/xorg.conf.d and thus miss the 10-evdev.conf file.

 I'm not entirely sure that using only one xorg.conf.d directory is the
 right plan.

It might be hard to make it do the right thing with the command line
-configdir option, but all that code is pretty goofy and I would guess
not used much anymore. But as long as all the files end up in one
xorg.conf.d, the server will keep looking along all the myriad paths
detailed in xorg.conf(5) till it finds one.

Here's what I think would be more sane (assuming --sysconfdir=/etc):

xorg.conf:
1. For root, full path from -config
2. For any user, /etc/X11 + path basename from -config
3. /etc/X11/xorg.conf

xorg.conf.d:
1. For root, full path from -configdir
2. For any user, /etc/X11 + path basename from -configdir
3. /etc/X11/xorg.conf.d

Export the default in xorg-server.pc:
confdir=${sysconfdir}/X11/xorg.conf.d

Then it's straightforward to know where the right location is.

--
Dan
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Julien Cristau
On Fri, Apr  2, 2010 at 19:24:42 +0200, Stefan Dirsch wrote:

 On Fri, Apr 02, 2010 at 10:03:47AM -0700, Keith Packard wrote:
  
   Can you post the rest of the log? It should be picking up the
   InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
   the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
   stubs used with the hal backend.
  
  Yeah, one possibility is that you have an existing /etc/X11/xorg.conf.d
  directory which will cause the X server to skip everything in
  $(prefix)/etc/X11/xorg.conf.d and thus miss the 10-evdev.conf file.
 
 BTW, the first thing I did with 1.8.0 was:
 
 -xorgconfddir = $(prefix)/etc/X11/$(XF86CONFIGDIR)
 +xorgconfddir = $(sysconfdir)/X11/$(XF86CONFIGDIR)
 
 in config/Makefile.am
 
And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
default make my xserver work snippets just seems wrong (and /usr
allows me to make sure they're in sync with the packages, not conflated
with configuration which is the admin's domain).

Cheers,
Julien
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Keith Packard
On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau jcris...@debian.org wrote:

 And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
 default make my xserver work snippets just seems wrong (and /usr
 allows me to make sure they're in sync with the packages, not conflated
 with configuration which is the admin's domain).

Yeah, that's why I picked the 'secondary' path supported by the server
so that a directory in /etc/X11 would completely override these files.

Sounds like we need to fix the server config file search path to look in
a sensible place rather than $(prefix)/etc/X11

-- 
keith.pack...@intel.com


pgpq8nkNYLMs1.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Dan Nicholson
On Fri, Apr 02, 2010 at 01:20:26PM -0700, Keith Packard wrote:
 On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau jcris...@debian.org wrote:
 
  And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
  default make my xserver work snippets just seems wrong (and /usr
  allows me to make sure they're in sync with the packages, not conflated
  with configuration which is the admin's domain).
 
 Yeah, that's why I picked the 'secondary' path supported by the server
 so that a directory in /etc/X11 would completely override these files.
 
 Sounds like we need to fix the server config file search path to look in
 a sensible place rather than $(prefix)/etc/X11

This is untested, but I think the patch below is all it would take to
add support for a second system directory in $prefix/lib/X11 with
lowest priority.

--
Dan

diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 718a078..06a3fa0 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -112,6 +112,10 @@ extern DeviceAssocRec mouse_assoc;
%P/lib/X11/%X.%H, %P/lib/X11/%X-%M, \
%P/lib/X11/%X
 #endif
+#ifndef SYS_CONFIGDIRPATH
+#define SYS_CONFIGDIRPATH  %P/lib/X11/%X.%H, %P/lib/X11/%X-%M, \
+   %P/lib/X11/%X
+#endif
 #ifndef PROJECTROOT
 #define PROJECTROOT/usr/X11R6
 #endif
@@ -2429,7 +2433,7 @@ checkInput(serverLayoutPtr layout, Bool implicit_layout) {
 ConfigStatus
 xf86HandleConfigFile(Bool autoconfig)
 {
-const char *filename, *dirname;
+const char *filename, *dirname, *sysdirname;
 char *filesearch, *dirsearch;
 MessageType filefrom = X_DEFAULT;
 MessageType dirfrom = X_DEFAULT;
@@ -2452,6 +2456,8 @@ xf86HandleConfigFile(Bool autoconfig)
dirfrom = X_CMDLINE;
 
xf86initConfigFiles();
+   sysdirname = xf86openConfigDirFiles(SYS_CONFIGDIRPATH, NULL,
+   PROJECTROOT);
dirname = xf86openConfigDirFiles(dirsearch, xf86ConfigDir, PROJECTROOT);
filename = xf86openConfigFile(filesearch, xf86ConfigFile, PROJECTROOT);
if (filename) {
@@ -2472,6 +2478,9 @@ xf86HandleConfigFile(Bool autoconfig)
Unable to locate/open config directory: \%s\\n,
xf86ConfigDir);
}
+   if (sysdirname)
+   xf86MsgVerb(X_DEFAULT, 0, Using system config directory: \%s\\n,
+   sysdirname);
if (!filename  !dirname)
return CONFIG_NOFILE;
 }

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Julien Cristau
On Fri, Apr  2, 2010 at 14:10:47 -0700, Dan Nicholson wrote:

 On Fri, Apr 02, 2010 at 01:20:26PM -0700, Keith Packard wrote:
  On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau jcris...@debian.org 
  wrote:
  
   And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
   default make my xserver work snippets just seems wrong (and /usr
   allows me to make sure they're in sync with the packages, not conflated
   with configuration which is the admin's domain).
  
  Yeah, that's why I picked the 'secondary' path supported by the server
  so that a directory in /etc/X11 would completely override these files.
  
  Sounds like we need to fix the server config file search path to look in
  a sensible place rather than $(prefix)/etc/X11
 
 This is untested, but I think the patch below is all it would take to
 add support for a second system directory in $prefix/lib/X11 with
 lowest priority.
 
This is already in {USER,ROOT}_CONFIGDIRPATH, shouldn't it be removed
from there if we add a new search path?

Cheers,
Julien
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Robby Workman
On Fri, 2 Apr 2010 14:29:24 -0700
Dan Nicholson dbn.li...@gmail.com wrote:

 On Fri, Apr 2, 2010 at 2:25 PM, Julien Cristau jcris...@debian.org
 wrote:
  On Fri, Apr  2, 2010 at 14:10:47 -0700, Dan Nicholson wrote:
 
  On Fri, Apr 02, 2010 at 01:20:26PM -0700, Keith Packard wrote:
   On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau
   jcris...@debian.org wrote:
  
And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc
for the default make my xserver work snippets just seems
wrong (and /usr allows me to make sure they're in sync with
the packages, not conflated with configuration which is the
admin's domain).
  
   Yeah, that's why I picked the 'secondary' path supported by the
   server so that a directory in /etc/X11 would completely override
   these files.
  
   Sounds like we need to fix the server config file search path to
   look in a sensible place rather than $(prefix)/etc/X11
 
  This is untested, but I think the patch below is all it would take
  to add support for a second system directory in $prefix/lib/X11
  with lowest priority.
 
  This is already in {USER,ROOT}_CONFIGDIRPATH, shouldn't it be
  removed from there if we add a new search path?
 
 Yeah, probably. It was more of a proof of concept patch. Now would be
 the best time to look at those standard search paths and make them
 sane. There's no real reason to repeat the nonsense in the xorg.conf
 searching.


Maybe I'm missing something here, but what's wrong with using
e.g. $prefix/share/X11/xorg.conf.d/ for distro packages and 
$sysconfdir/X11/xorg.conf.d/ for local sysadmin?

-RW
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg