[PATCH] modesetting: handle unflip while dpms off

2015-06-22 Thread Dave Airlie
From: Dave Airlie This is port of Michel's changse from the ATI driver. Signed-off-by: Dave Airlie --- hw/xfree86/drivers/modesetting/drmmode_display.c | 9 + hw/xfree86/drivers/modesetting/drmmode_display.h | 2 ++ hw/xfree86/drivers/modesetting/present.c | 23 ++

Re: [PATCH 1/2] glamor: add support for allocating linear buffers

2015-06-22 Thread Michel Dänzer
On 23.06.2015 04:28, Emil Velikov wrote: > On 22 June 2015 at 07:56, Michel Dänzer wrote: >> On 20.06.2015 07:32, Dave Airlie wrote: > at which point you'd want to continue > the versioning from the mesa point to avoid epochs. So I don't > take your argument, the API version is wh

Re: Who provides $host_os variable for xserver's configure.ac script?

2015-06-22 Thread Alan Coopersmith
On 06/22/15 04:30 PM, Laércio de Sousa wrote: I'm figuring out why Debian xorg-server builds are failing to automatically enable kdrive's evdev input driver. It seems variable "host_os", which is referenced several times in configure.ac , is undefined when Xorg is built in De

Who provides $host_os variable for xserver's configure.ac script?

2015-06-22 Thread Laércio de Sousa
I'm figuring out why Debian xorg-server builds are failing to automatically enable kdrive's evdev input driver. It seems variable "host_os", which is referenced several times in configure.ac, is undefined when Xorg is built in Debian. However, I've found no other occurrence of this variable in any

Re: [PATCH] Xephyr: Paint with subimage for non-Glamor & non-XSHM case

2015-06-22 Thread Chris Wilson
On Thu, May 21, 2015 at 04:13:12PM -0700, Ian Scott wrote: > This improves the case for when we paint an area without SHM. Improves? Xephyr is very much broken since commit a2b73da78de4e627965213d24a6c33f243a60eb6 Author: Julien Cristau Date: Sun Jun 20 00:05:40 2010 +0100 > xcb_image_subimag

Re: [PATCH 1/2] glamor: add support for allocating linear buffers

2015-06-22 Thread Emil Velikov
On 22 June 2015 at 07:56, Michel Dänzer wrote: > On 20.06.2015 07:32, Dave Airlie wrote: >>> at which point you'd want to continue the versioning from the mesa point to avoid epochs. So I don't take your argument, the API version is what we ship in the gbm.pc file, compatible i

Re: [PATCH] systemd-logind: do not rely on directed signals

2015-06-22 Thread Hans de Goede
Hi, On 22-06-15 21:13, David Herrmann wrote: Right now, Xorg does not install DBus matches for "PauseDevice" / "ResumeDevice". Therefore, it should usually not receive those DBus signals from logind. It is just a coincidence that systemd-logind sends those signals in a directed manner right now.

Re: [PATCH] Xephyr: Paint with subimage for non-Glamor & non-XSHM case

2015-06-22 Thread Ian Scott
On 05/21/2015 04:13 PM, Ian Scott wrote: This improves the case for when we paint an area without SHM. xcb_image_subimage() is used to create a subimage for the damaged area, which is converted to native format if necessary. Ping? Please let me know if I need to resend. ___

[PATCH] systemd-logind: do not rely on directed signals

2015-06-22 Thread David Herrmann
Right now, Xorg does not install DBus matches for "PauseDevice" / "ResumeDevice". Therefore, it should usually not receive those DBus signals from logind. It is just a coincidence that systemd-logind sends those signals in a directed manner right now. Therefore, dbus-daemon bypasses the broadcast m

Re: xvfb: add randr support (v2)

2015-06-22 Thread Adam Jackson
On Thu, 2015-06-18 at 08:28 -0700, Aaron Plattner wrote: > Not that this patch hurts or anything, but is there any particular > reason this remote desktop thing is using Xvfb rather than Xorg + > xf86-video-dummy? I thought there was an effort to kill off the > redundant non-Xorg DDXes at some po

[PATCH v4 10/10] kdrive: don't let evdev driver overwrite existing device names

2015-06-22 Thread Laércio de Sousa
KDrive evdev driver deliberately name grabbed devices as "Evdev mouse" or "Evdev keyboard". This patch will make it skip this step if grabbed devices are already named (i.e. from udev). Signed-off-by: Laércio de Sousa --- hw/kdrive/linux/evdev.c | 6 -- 1 file changed, 4 insertions(+), 2 del

[PATCH v4 07/10] ephyr: ignore "-sharevts" and "-layout seatXXX" command-line options

2015-06-22 Thread Laércio de Sousa
Multiseat-capable display managers commonly pass command-line options like "-sharevts" or "-layout seat" to Xorg server, but Xephyr currently refuses to start if these options are passed to it, which may break Xephyr-based single-GPU multiseat setups. Signed-off-by: Laércio de Sousa --- hw/k

[PATCH v4 01/10] ephyr: allow passing explictly host X server display number and/or authorization file path

2015-06-22 Thread Laércio de Sousa
This patch introduces two command-line options for Xephyr: * -host-display: set Xephyr DISPLAY environment variable to host X server display number * -host-auth:set Xephyr XAUTHORITY environment variable to host X server authorization file path These

[PATCH v4 00/10] Xephyr input hotplugging support and other additions for single-GPU multi-seat

2015-06-22 Thread Laércio de Sousa
PLEASE NOTE: Xephyr is NOT my preferred approach for single-GPU multi-seat configuration (mainly due to its limited support for handling input devices --- no touchpads, no touchscreens, no joysticks), but it's the easiest one to implement right now. The best approach by far (in Linux specifically)

[PATCH v4 02/10] kdrive: fix up NewInputDeviceRequest() implementation

2015-06-22 Thread Laércio de Sousa
This patch simplifies NewInputDeviceRequest() implementation in kinput.c, making use of improved KdParseKbdOptions()/KdParsePointerOptions() and merging several "if (ki)"/"if (pi)" clauses. Signed-off-by: Laércio de Sousa --- hw/kdrive/src/kinput.c | 76 --

[PATCH v4 06/10] kdrive: add options to set default XKB properties

2015-06-22 Thread Laércio de Sousa
This patch introduces convenient command-line options -xkbrules, -xkbmodel, -xkblayout, -xkbvariant, and -xkboptions, to set default values for these properties. These options can be handful in cases where corresponding values can't be taken from devices' udev properties, and compile-time default

[PATCH v4 09/10] config/udev: better distinguish between real keyboards and other key input devices

2015-06-22 Thread Laércio de Sousa
This patch introduces a new flag ATTR_KEY for hotplugged input devices, so we can better distinguish between real keyboards (i.e. devices with udev property ID_INPUT_KEYBOARD="1") and other key input devices like lid switches, power buttons, etc. All supported hotplug backends (udev, hal, and wsco

[PATCH v4 03/10] kdrive: set "evdev" driver for input devices automatically, if available.

2015-06-22 Thread Laércio de Sousa
If kdrive input driver "evdev" is available, no other driver was explicitly set for a given input device, and its kernel device node is /dev/input/event*, this patch will make kdrive set "evdev" driver automatically for such device. Signed-off-by: Laércio de Sousa --- hw/kdrive/src/kinput.c | 25

[PATCH v4 08/10] ephyr: move host_has_extension() implementation to hostx.c

2015-06-22 Thread Laércio de Sousa
This is a trivial patch that moves host_has_extension() implementation from ephyr.c to hostx.c so that it can be called by hostx.c internal functions. Also rename function to hostx_has_extension() for consistency. Signed-off-by: Laércio de Sousa --- hw/kdrive/ephyr/ephyr.c | 12 +--

[PATCH v4 04/10] kdrive: introduce input hot-plugging support for udev and hal backends (#33140)

2015-06-22 Thread Laércio de Sousa
This patch introduces input hot-plugging support for kdrive-based applications in multi-seat context. This feature is enabled by passing -seat option with desired seat name. All keyboard/mouse devices assigned to that seat will be automatically grabbed by kdrive. It supports udev and hal backends

[PATCH v4 05/10] kdrive: update evdev keyboard LEDs (#22302)

2015-06-22 Thread Laércio de Sousa
From: Mikhail Krivtsov When one hits {Num,Caps,Scroll}Lock key on a Xephyr's keyboard, keyboard itself works as expected but LEDs are not updated and always stay in off. Currently logical LEDs are propagated to physical keyboard LEDs for "CoreKeyboard" only. All "kdrive" keyboards are not "CoreK

Re: [PATCH] Xorg.wrap.man: Fix spelling mistake in Xorg.wrap.1

2015-06-22 Thread Alan Coopersmith
On 06/22/15 04:52 AM, Hans de Goede wrote: This commit fixes a small mistake in Xorg.wrap.1 . Signed-off-by: Hans de Goede --- hw/xfree86/man/Xorg.wrap.man | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/man/Xorg.wrap.man b/hw/xfree86/man/Xorg.wrap.man index 11

[RFC PATCH] Allow more file descriptors than clients limit

2015-06-22 Thread Olivier Fourdan
The X server assumes that one file descriptor is opened per client, so it limits the number of file descriptors to the number of clients. Unfortunately Xwayland opens a lot more file descriptors than a regular X server because of those "weston-shared-XX" anonymous files for sharing buffers. Th

Re: [PATCH] RRModeCreate: also free mode in error case. (was: RRModeCreate: also free mode in error case.)

2015-06-22 Thread Mihai Moldovan
On 14.06.2015 11:20 PM, Mihai Moldovan wrote: > This is a follow-up to c7b7abfaa068042e396d19538215402cfbb4f1e4. This is just a friendly reminder to please look into the submitted patch, if possible. Mihai signature.asc Description: OpenPGP digital signature

[PATCH] Xorg.wrap.man: Fix spelling mistake in Xorg.wrap.1

2015-06-22 Thread Hans de Goede
This commit fixes a small mistake in Xorg.wrap.1 . Signed-off-by: Hans de Goede --- hw/xfree86/man/Xorg.wrap.man | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/man/Xorg.wrap.man b/hw/xfree86/man/Xorg.wrap.man index 11090f1..f3f30a6 100644 --- a/hw/xfree86/man/Xorg

Re: [git pull] Fix systemd integration when starting X on a new VT

2015-06-22 Thread Hans de Goede
Hi Keith, What is the status of this? I thought that after my answers to your questions this set is good to go, but I do not see it upstream yet... ? Regards, Hans ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xo

[PATCH] [RFC] present: let unflipping fail.

2015-06-22 Thread Dave Airlie
From: Dave Airlie With modesetting driver: run mutter run glxgears -fullscreen xset dpms force off xset dpms force on after a few cycles, things will stop changing on the screen, This is because we try to unflip while we are on the "fake" crtc, so unflip fails, but we set the unflip event. So