Menu

#31 Xorg 7.3 build/hotplug support

closed
5
2008-09-02
2007-03-05
No

The Xorg release 7.3 has interesting updates regarding input device handling.

First of all the major part of the XINPUT version has been stepped. And with it some changes in the how the motion history is handled in the X-server.

Secondly, there is now an interface in place that allows a user program to ask the running X-server to add/remove input devices in a running Xserver. So a user program listening for HAL-hotplug events should very easily be able to add the correct inputdevice definitions as the user connects the tablet to the computer and thereby eliminating all editing of the xorg.conf.

Discussion

  • Ping Cheng

    Ping Cheng - 2007-06-26
    • assigned_to: nobody --> wigge
     
  • Damir Perisa

    Damir Perisa - 2007-09-24

    Logged In: YES
    user_id=1144678
    Originator: NO

    xorg-server 1.4 breaks linuxwacom from compiling:

    make[3]: Entering directory `/home/damir/cvsS/Arch/community/x11/linuxwacom/src/linuxwacom-0.7.8-3/src/xdrv'
    gcc -march=x86-64 -mtune=generic -O2 -pipe -D__amd64__ -fno-stack-protector -Wno-variadic-macros -fPIC -pipe -ansi \ -pedantic -Wall -Wpointer-arith -fno-merge-constants \ -I. -I/usr/include/xorg -DWCM_XORG -Dlinux \ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE \ -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE \ -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY \ -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPIXPRIV \ -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DSINGLEDEPTH \ -DXFreeXDGA -DXvExtension -DXFree86LOADER \ -DXFree86Server -DXF86VIDMODE -DXvMCExtension \ -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension \ -DX_BYTE_ORDER=X_LITTLE_ENDIAN -D_XSERVER64 \ -DNDEBUG -DFUNCPROTO=15 \ -DNARROWPROTO -DIN_MODULE -DXFree86Module -DLINUX_INPUT \ -o xf86Wacom.o -c ./xf86Wacom.c
    In file included from /usr/include/xorg/regionstr.h:53,
    from /usr/include/xorg/region.h:51,
    from /usr/include/xorg/window.h:52,
    from /usr/include/xorg/input.h:55,
    from /usr/include/xorg/xf86str.h:38,
    from /usr/include/xorg/xf86.h:45,
    from ./xf86Wacom.h:61,
    from ./xf86Wacom.c:65:
    /usr/include/xorg/miscstruct.h:54:20: error: pixman.h: No such file or directory
    make[3]: *** [xf86Wacom.o] Error 1
    make[3]: Leaving directory `/home/damir/cvsS/Arch/community/x11/linuxwacom/src/linuxwacom-0.7.8-3/src/xdrv'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/damir/cvsS/Arch/community/x11/linuxwacom/src/linuxwacom-0.7.8-3/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/damir/cvsS/Arch/community/x11/linuxwacom/src/linuxwacom-0.7.8-3'
    make: *** [all] Error 2
    ==> ERROR: Build Failed. Aborting...

    so this issue raises in priority, i suppose

     
  • Magnus Vigerlöf

    Logged In: YES
    user_id=1550054
    Originator: YES

    Oh, yes I saw something about this in the xorg-list, I'll have to go through the list archive and see what they recommended us to do. But as a workaround for the moment you should be able to create a script (called 'gcc') and put it before the real gcc in your path. I've used these five lines for the script ($HOME/.Xorg is where I've installed Xorg 7.3):

    #! /bin/ksh
    xorgdepinc=$HOME/.Xorg/include
    pixmaninc=$HOME/.Xorg/include/pixman-1
    exec /usr/bin/gcc -I$xorgdepinc -I$pixmaninc "$@"
    #fini

    After that you will probably need the to apply the following patch to make it compile.
    http://sourceforge.net/tracker/index.php?func=detail&aid=1802964&group_id=69596&atid=525126

    Note that Gimp/... which opens the extended device will not work well at the moment, but we're working on it.

     
  • Ping Cheng

    Ping Cheng - 2008-09-02
    • status: open --> closed
     
  • Ping Cheng

    Ping Cheng - 2008-09-02

    Logged In: YES
    user_id=754442
    Originator: NO

    Workaround for Xorg 7.3 has been incorporated into 0.8.0. Final support will be due with Xorg 7.5 as it gets stabilized.