[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#803254: xserver-xorg-core: Compile Xorg against libsystemd-daemon-dev, to enable socket activation support.



Package: xserver-xorg-core
Version: 2:1.16.4-1+aptbuild5
Severity: wishlist

Dear Maintainer,

I hope to see Xorg compiled with libsystemd to have systemd socket
activation support.
I checked the package xserver-xorg-core_1.17.2-3_amd64.deb (stretch)
with `grep sd_listen usr/lib/Xorg`, and got a negative match
`ldd usr/lib/Xorg` show that it isn't compiled with libsystemd

My version of xserver-xorg is compiled with the flag
(--with-systemd-daemon) to see if which package was required for the
build (libsystemd-daemon-dev)

Below are the xorg@.service and xorg@.socket I used to test the socket
activation.

Feel free to change /usr/bin/X with /usr/bin/Xorg to test X without root
if the graphic cards support its.

ls -l /usr/bin/X
-rwsr-sr-x 1 root root 10104 avril  1  2014 /usr/bin/X


Best regards


-- /etc/systemd/system/xorg@.service
------------------------------------
[Unit]
Description=Xorg server for UID %I.
Requires=xorg@%i.socket
After=systemd-user-sessions.service
After=rc-local.service

# On systems without virtual consoles, don't start any getty. Note
# that serial gettys are covered by serial-getty@.service, not this
# unit.
ConditionPathExists=/dev/tty0

[Service]
Type=idle
User=%i
ExecStart=/usr/bin/X :%i -nolisten tcp -seat seat0 -auth /run/xorg-server/auth-%i/database -terminate vt10

PAMName=systemd-xsession

StandardInput=tty
StandardOutput=tty
StandardError=syslog
TTYPath=/dev/tty10

Sockets=xorg@%i.socket

Slice=user-%i.slice


-- /etc/systemd/system/xorg@.socket
-----------------------------------
[Unit]
Description=Xorg Socket for User UID %i

[Socket]
ExecStartPre=-/bin/mkdir -p -m 711 /run/xorg-server
ExecStartPre=-/bin/mkdir -p -m 750 /run/xorg-server/auth-%i
ExecStartPre=/bin/touch /run/xorg-server/auth-%i/database
ExecStartPre=/bin/bash -c "xauth -f /run/xorg-server/auth-%i/database add :%i . `mcookie`"
ExecStartPre=/bin/chown -R %i /run/xorg-server/auth-%i
ExecStopPost=-/bin/rm -rf /run/xorg-server/auth-%i
UMask=0027

ListenStream=/tmp/.X11-unix/X%i
SocketMode=0777
DirectoryMode=1777

[Install]
WantedBy=sockets.target


-- Package-specific info:
X server symlink status:
------------------------
lrwxrwxrwx 1 root root 13 Oct 18 16:09 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 2409824 Oct 26 15:32 /usr/bin/Xorg

Kernel version (/proc/version):
-------------------------------
Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09)

Contents of most recent Xorg X server log file (/var/log/Xorg.1000.log):
------------------------------------------------------------------------
[317697.276] 
X.Org X Server 1.16.4
Release Date: 2014-12-20
[317697.276] X Protocol Version 11, Revision 0
[317697.276] Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
[317697.276] Current Operating System: Linux jpaul-linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) x86_64
[317697.276] Kernel command line: placeholder root=UUID=1b8c27ad-01f2-4c72-84ca-df50e1017920 ro
[317697.276] Build Date: 26 October 2015  03:24:39PM
[317697.276] xorg-server 2:1.16.4-1+aptbuild5 (http://www.debian.org/support) 
[317697.276] Current version of pixman: 0.32.6
[317697.276] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[317697.276] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[317697.276] (==) Log file: "/var/log/Xorg.1000.log", Time: Wed Oct 28 10:59:43 2015
[317697.276] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[317697.276] (==) No Layout section.  Using the first Screen section.
[317697.276] (==) No screen section available. Using defaults.
[317697.276] (**) |-->Screen "Default Screen Section" (0)
[317697.276] (**) |   |-->Monitor "<default monitor>"
[317697.276] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[317697.276] (==) Automatically adding devices
[317697.276] (==) Automatically enabling devices
[317697.276] (==) Automatically adding GPU devices
[317697.276] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[317697.276] 	Entry deleted from font path.
[317697.277] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins
[317697.277] (==) ModulePath set to "/usr/lib/xorg/modules"
[317697.277] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[317697.277] (II) Loader magic: 0x7f13d2d39e40
[317697.277] (II) Module ABI versions:
[317697.277] 	X.Org ANSI C Emulation: 0.4
[317697.277] 	X.Org Video Driver: 18.0
[317697.277] 	X.Org XInput driver : 21.0
[317697.277] 	X.Org Server Extension : 8.0
[317697.278] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c168
[317697.278] (II) xfree86: Adding drm device (/dev/dri/card0)
[317697.278] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 9 paused 0
[317697.281] (--) PCI:*(0:1:0:0) 1002:6758:1043:03f2 rev 0, Mem @ 0xe0000000/268435456, 0xf7e20000/131072, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[317697.281] (II) LoadModule: "glx"
[317697.281] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[317697.282] (II) Module glx: vendor="X.Org Foundation"
[317697.282] 	compiled for 1.16.4, module version = 1.0.0
[317697.282] 	ABI class: X.Org Server Extension, version 8.0
[317697.282] (==) AIGLX enabled
[317697.282] (==) Matched ati as autoconfigured driver 0
[317697.282] (==) Matched ati as autoconfigured driver 1
[317697.282] (==) Matched modesetting as autoconfigured driver 2
[317697.282] (==) Matched fbdev as autoconfigured driver 3
[317697.282] (==) Matched vesa as autoconfigured driver 4
[317697.282] (==) Assigned the driver to the xf86ConfigLayout
[317697.282] (II) LoadModule: "ati"
[317697.282] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[317697.282] (II) Module ati: vendor="X.Org Foundation"
[317697.282] 	compiled for 1.16.1, module version = 7.5.0
[317697.282] 	Module class: X.Org Video Driver
[317697.282] 	ABI class: X.Org Video Driver, version 18.0
[317697.282] (II) LoadModule: "radeon"
[317697.283] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[317697.283] (II) Module radeon: vendor="X.Org Foundation"
[317697.283] 	compiled for 1.16.1, module version = 7.5.0
[317697.283] 	Module class: X.Org Video Driver
[317697.283] 	ABI class: X.Org Video Driver, version 18.0
[317697.283] (II) LoadModule: "modesetting"
[317697.283] (WW) Warning, couldn't open module modesetting
[317697.283] (II) UnloadModule: "modesetting"
[317697.283] (II) Unloading modesetting
[317697.283] (EE) Failed to load module "modesetting" (module does not exist, 0)
[317697.283] (II) LoadModule: "fbdev"
[317697.283] (WW) Warning, couldn't open module fbdev
[317697.283] (II) UnloadModule: "fbdev"
[317697.283] (II) Unloading fbdev
[317697.283] (EE) Failed to load module "fbdev" (module does not exist, 0)
[317697.283] (II) LoadModule: "vesa"
[317697.283] (WW) Warning, couldn't open module vesa
[317697.283] (II) UnloadModule: "vesa"
[317697.283] (II) Unloading vesa
[317697.283] (EE) Failed to load module "vesa" (module does not exist, 0)
[317697.284] (II) RADEON: Driver for ATI Radeon chipsets:
	ATI Radeon Mobility X600 (M24) 3150 (PCIE), ATI FireMV 2400 (PCI),
	ATI Radeon Mobility X300 (M24) 3152 (PCIE),
	...
	KAVERI, HAWAII, HAWAII, HAWAII, HAWAII, HAWAII, HAWAII, HAWAII,
	HAWAII, HAWAII, HAWAII, HAWAII, HAWAII
[317697.290] (++) using VT number 10

[317697.290] (II) [KMS] Kernel modesetting enabled.
[317697.291] (II) RADEON(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[317697.291] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
[317697.291] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[317697.291] (==) RADEON(0): Default visual is TrueColor
[317697.291] (==) RADEON(0): RGB weight 888
[317697.291] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
[317697.291] (--) RADEON(0): Chipset: "TURKS" (ChipID = 0x6758)
[317697.291] (II) Loading sub module "dri2"
[317697.291] (II) LoadModule: "dri2"
[317697.291] (II) Module "dri2" already built-in
[317697.291] (II) Loading sub module "exa"
[317697.291] (II) LoadModule: "exa"
[317697.291] (II) Loading /usr/lib/xorg/modules/libexa.so
[317697.291] (II) Module exa: vendor="X.Org Foundation"
[317697.291] 	compiled for 1.16.4, module version = 2.6.0
[317697.291] 	ABI class: X.Org Video Driver, version 18.0
[317697.291] (II) RADEON(0): KMS Color Tiling: enabled
[317697.291] (II) RADEON(0): KMS Color Tiling 2D: enabled
...
[317697.400] (II) RADEON(0): EXA: Driver will allow EXA pixmaps in VRAM
[317697.400] (==) RADEON(0): DPI set to (96, 96)
[317697.400] (II) Loading sub module "fb"
[317697.400] (II) LoadModule: "fb"
[317697.400] (II) Loading /usr/lib/xorg/modules/libfb.so
[317697.400] (II) Module fb: vendor="X.Org Foundation"
[317697.400] 	compiled for 1.16.4, module version = 1.0.0
[317697.400] 	ABI class: X.Org ANSI C Emulation, version 0.4
[317697.400] (II) Loading sub module "ramdac"
[317697.400] (II) LoadModule: "ramdac"
[317697.400] (II) Module "ramdac" already built-in
[317697.400] (--) Depth 24 pixmap format is 32 bpp
[317697.400] (II) RADEON(0): [DRI2] Setup complete
[317697.400] (II) RADEON(0): [DRI2]   DRI driver: r600
[317697.400] (II) RADEON(0): [DRI2]   VDPAU driver: r600
[317697.401] (II) RADEON(0): Front buffer size: 8160K
[317697.401] (II) RADEON(0): VRAM usage limit set to 928767K
[317697.401] (==) RADEON(0): Backing store enabled
[317697.401] (II) RADEON(0): Direct rendering enabled
[317697.401] (II) EXA(0): Driver allocated offscreen pixmaps
[317697.401] (II) EXA(0): Driver registered support for the following operations:
[317697.401] (II)         Solid
[317697.401] (II)         Copy
[317697.401] (II)         Composite (RENDER acceleration)
[317697.401] (II)         UploadToScreen
[317697.401] (II)         DownloadFromScreen
[317697.401] (II) RADEON(0): Acceleration enabled
[317697.401] (==) RADEON(0): DPMS enabled
[317697.401] (==) RADEON(0): Silken mouse enabled
[317697.401] (II) RADEON(0): Set up textured video
[317697.401] (II) RADEON(0): [XvMC] Associated with Radeon Textured Video.
[317697.401] (II) RADEON(0): [XvMC] Extension initialized.
[317697.401] (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[317697.401] (--) RandR disabled
[317697.405] (II) SELinux: Disabled on system
[317697.415] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[317697.415] (II) AIGLX: enabled GLX_ARB_create_context
[317697.415] (II) AIGLX: enabled GLX_ARB_create_context_profile
[317697.415] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[317697.415] (II) AIGLX: enabled GLX_INTEL_swap_event
[317697.415] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[317697.415] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[317697.415] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[317697.415] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[317697.415] (II) AIGLX: Loaded and initialized r600
[317697.415] (II) GLX: Initialized DRI2 GL provider for screen 0
[317697.416] (II) RADEON(0): Setting screen physical size to 508 x 285
[317697.445] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[317697.445] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[317697.445] (II) LoadModule: "evdev"
[317697.445] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[317697.445] (II) Module evdev: vendor="X.Org Foundation"
[317697.445] 	compiled for 1.16.0, module version = 2.9.0
[317697.445] 	Module class: X.Org XInput Driver
[317697.445] 	ABI class: X.Org XInput driver, version 21.0
[317697.446] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 13 paused 0
[317697.446] (II) Using input driver 'evdev' for 'Power Button'
[317697.446] (**) Power Button: always reports core events
[317697.446] (**) evdev: Power Button: Device: "/dev/input/event3"
[317697.446] (--) evdev: Power Button: Vendor 0 Product 0x1
[317697.446] (--) evdev: Power Button: Found keys
[317697.446] (II) evdev: Power Button: Configuring as keyboard
...
[317697.472] (II) No input driver specified, ignoring this device.
[317697.472] (II) This device may have been added with another device file.
[317842.026] (II) evdev: Eee PC WMI hotkeys: Close
[317842.027] (II) UnloadModule: "evdev"
[317842.027] (II) systemd-logind: releasing fd for 13:78
[317842.036] (II) evdev: ******** USB Receiver: Close
[317842.036] (II) UnloadModule: "evdev"
[317842.036] (II) systemd-logind: releasing fd for 13:65
[317842.049] (II) evdev: ******** USB Receiver: Close
[317842.049] (II) UnloadModule: "evdev"
[317842.049] (II) systemd-logind: releasing fd for 13:64
[317842.064] (II) evdev: Power Button: Close
[317842.064] (II) UnloadModule: "evdev"
[317842.064] (II) systemd-logind: releasing fd for 13:66
[317842.080] (II) evdev: Power Button: Close
[317842.080] (II) UnloadModule: "evdev"
[317842.080] (II) systemd-logind: releasing fd for 13:67
[317842.183] (EE) Server terminated successfully (0). Closing log file.

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

-- no debconf information


Reply to: