[PATCH 0/2] misc. fixes

2014-03-07 Thread Hans de Goede
Hi All, Here are 2 misc. systemd-logind related bug fixes. Note the 1st patch is v2 of a patch I've send before. New in v2 is the addition if a helper function while fixing this issue to avoid code duplication. Regards, Hans ___

[PATCH 2/2] systemd-logind: Fix vt-enter not working when using a legacy video driver

2014-03-07 Thread Hans de Goede
If there is only a single non kms video device (tested with the vesa driver), then we will never get a resume signal for a drm node, so also call vtenter when we get a resume for an input device. Notes: 1) vtenter checks if it is ok to do the vtenter, so if there are kms video devices the calls

[PATCH 1/2] config_odev_add*_attribute: Don't add the attribute to the list twice

2014-03-07 Thread Hans de Goede
Don't do the xorg_list_append a 2nd time when updating existing attributes, while at it add a helper function for this to avoid code duplication. Signed-off-by: Hans de Goede hdego...@redhat.com --- config/config.c | 31 +-- 1 file changed, 21 insertions(+), 10

Re: [PATCH 2/2] systemd-logind: Fix vt-enter not working when using a legacy video driver

2014-03-07 Thread Hans de Goede
Hi On 03/07/2014 11:22 AM, Hans de Goede wrote: If there is only a single non kms video device (tested with the vesa driver), then we will never get a resume signal for a drm node, so also call vtenter when we get a resume for an input device. Notes: 1) vtenter checks if it is ok to do the

[PATCH v2 0/2] Require video drivers to report that they support server fds

2014-03-07 Thread Hans de Goede
Hi All, Here is v2 of my patch-set which requires video drivers to report that they support server fds. New in v2: -Fix drivers without a driverFunc getting seen as supporting server fds Regards, Hans ___ xorg-devel@lists.x.org: X.Org development

[PATCH v2 2/2] Require video drivers to report that they support server managed fds

2014-03-07 Thread Hans de Goede
This makes how we handle video drivers identical to what we do for input drivers, and this should make live easier for old non kms drivers. Signed-off-by: Hans de Goede hdego...@redhat.com --- hw/xfree86/common/xf86platformBus.c | 14 +- hw/xfree86/common/xf86str.h | 3 ++-

[PATCH v2 1/2] xf86platformBus: Make doPlatformProbe accept a NULL gdev argument

2014-03-07 Thread Hans de Goede
And use it from xf86platformAddDevice too, instead of directly calling drvp-platformProbe. Signed-off-by: Hans de Goede hdego...@redhat.com --- hw/xfree86/common/xf86platformBus.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git

[PATCH 0/1] Xorg: Add a suid root wrapper

2014-03-07 Thread Hans de Goede
Hi all, Here is the first non RFC version of my suid root wrapper patch, taking all comments made to the RFC into account. Please review. Thanks Regards, Hans ___ xorg-devel@lists.x.org: X.Org development Archives:

[PATCH] Xorg: Add a suid root wrapper

2014-03-07 Thread Hans de Goede
With the recent systemd-logind changes it is possible to install the Xorg binary without suid root rights and still have everything working as it should *if* the user only has cards which are supported by kms. This commit adds a little suid root wrapper, which is a bit weird, first we strip the

[RFC xf86-video-ati 0/1] Add support for server managed fds

2014-03-07 Thread Hans de Goede
Hi All, Here is a patch to add support for server managed fds to xf86-video-ati this is RFC only atm since not all related server patches have landed yet. With the server patches + this patch it is possible to run Xorg without root-rights on systemd-logind using systems. Regards, Hans

[RFC xf86-video-ati] Add support for server managed fds

2014-03-07 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com --- src/radeon_kms.c | 60 +- src/radeon_probe.c | 5 + src/radeon_probe.h | 2 ++ 3 files changed, 57 insertions(+), 10 deletions(-) diff --git a/src/radeon_kms.c b/src/radeon_kms.c

Re: [RFC xf86-video-ati 0/1] Add support for server managed fds

2014-03-07 Thread Mark Kettenis
From: Hans de Goede hdego...@redhat.com Date: Fri, 7 Mar 2014 14:12:57 +0100 Hi All, Here is a patch to add support for server managed fds to xf86-video-ati this is RFC only atm since not all related server patches have landed yet. With the server patches + this patch it is possible

Re: [PATCH 1/6] xephyr: Build support for rendering with glamor using a -glamor option.

2014-03-07 Thread Jon TURNEY
On 25/02/2014 01:47, Eric Anholt wrote: v2: Avoid making the Ximage for the screen that we'll never use, and drive the screen pixmap creation for glamor ourselves. Signed-off-by: Eric Anholt e...@anholt.net Reviewed-by: Keith Packard kei...@keithp.com (v1) It seems this needs some more

Re: [RFC xf86-video-ati 0/1] Add support for server managed fds

2014-03-07 Thread Hans de Goede
Hi, On 03/07/2014 02:38 PM, Mark Kettenis wrote: From: Hans de Goede hdego...@redhat.com Date: Fri, 7 Mar 2014 14:12:57 +0100 Hi All, Here is a patch to add support for server managed fds to xf86-video-ati this is RFC only atm since not all related server patches have landed yet. With

[PULL] non-glamor build fix

2014-03-07 Thread Eric Anholt
I've got a few other patches with review on the list currently, but I want to give a little more time for anyone that cares to respond. A build fix seems important enough that we should shove it in now, though. The following changes since commit 78e508c9379b3976ac8e76b7aaa90ba86ad4e443: dix:

Re: [PATCH 1/6] xephyr: Build support for rendering with glamor using a -glamor option.

2014-03-07 Thread Eric Anholt
Jon TURNEY jon.tur...@dronecode.org.uk writes: On 25/02/2014 01:47, Eric Anholt wrote: v2: Avoid making the Ximage for the screen that we'll never use, and drive the screen pixmap creation for glamor ourselves. Signed-off-by: Eric Anholt e...@anholt.net Reviewed-by: Keith Packard

Re: [PATCH:xf86-input-mouse 1/4] Enable MSE_MISC on NetBSD as well.

2014-03-07 Thread Thomas Klausner
Can I assume that these are ok to push after so long without negative comments? :) Thomas On Sat, Oct 19, 2013 at 01:26:31AM +0200, Thomas Klausner wrote: Any comments on these four patches? Thanks, Thomas On Mon, Aug 19, 2013 at 11:14:30AM +0200, Thomas Klausner wrote: Otherwise we

xwayland: Refactor bits of XKB functionality

2014-03-07 Thread Kristian Høgsberg
Hi list, Here's few xkb related patches that refactor and expose xkb functionality. There should be no change in behavior in these patches, the idea is to expose new entry points into existing code. This is in preparation for merging xwayland, where the X server has to parse and apply xkb maps

[PATCH 5/5] xkb: Factor out a function to copy a keymap's controls unto another

2014-03-07 Thread Kristian Høgsberg
From: Rui Matos tiagoma...@gmail.com Reviewed-by: Kristian Høgsberg k...@bitplanet.net --- include/xkbsrv.h | 3 +++ xkb/xkb.c| 14 +- xkb/xkbUtils.c | 23 +++ 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/include/xkbsrv.h

[PATCH 3/5] xkb: Add XkbCompileKeymapFromString()

2014-03-07 Thread Kristian Høgsberg
This new function compiles a keymap from an in-memory string. We use it to add a new keyooard device init function, InitKeyboardDeviceStructFromString(), which inits a keyboard device with a keymap specified as a string instead of a rmlvo set. Reviewed-by: Daniel Stone dan...@fooishbar.org ---

[PATCH 1/5] xkb: Add struct XkbCompContext

2014-03-07 Thread Kristian Høgsberg
This commit adds a struct that contains most of the context for starting, running and cleaning up after xkbcomp. Reviewed-by: Daniel Stone dan...@fooishbar.org --- xkb/ddxLoad.c | 76 +-- 1 file changed, 38 insertions(+), 38 deletions(-)

[PATCH 2/5] xkb: Split out code to start and finish xkbcomp

2014-03-07 Thread Kristian Høgsberg
Using the context struct from previous commit, we can now split out code to start xkbcomp and to finish and clean up after it. Reviewed-by: Daniel Stone dan...@fooishbar.org --- xkb/ddxLoad.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) diff

[PATCH 4/5] xkb: Repurpose XkbCopyDeviceKeymap to apply a given keymap to a device

2014-03-07 Thread Kristian Høgsberg
From: Rui Matos tiagoma...@gmail.com This will also make it useful for cases when we have a new keymap to apply to a device but don't have a source device. Reviewed-by: Kristian Høgsberg k...@bitplanet.net --- Xi/exevents.c| 2 +- include/xkbsrv.h | 4 ++-- xkb/xkb.c| 2 +-

Re: [PULL] non-glamor build fix

2014-03-07 Thread Keith Packard
Eric Anholt e...@anholt.net writes: Jon TURNEY (1): Fix xephyr build in --disable-glamor case Merged. 78e508c..5350ae1 master - master -- keith.pack...@intel.com pgpFkDm1LcCVZ.pgp Description: PGP signature ___ xorg-devel@lists.x.org:

Re: [PULL] systemd-logind integration series

2014-03-07 Thread Keith Packard
Hans de Goede hdego...@redhat.com writes: Hans de Goede (13): linux: xf86OpenConsole remove root-rights check for keeptty option linux: xf86OpenConsole: Don't detach from controlling tty when it is our vt xf86Xinput: Modify API for server-managed fd support