Qt/KDE problems with MIT-SHM when Xorg is not running as root

2015-01-29 Thread Hans de Goede
Hi All, A Fedora user has reported problems with MIT-SHM when the xserver is not running as root. Normal use works fine, but when doing a su - and then starting X apps as root MIT-SHM fails, see this screenshot: https://bugzilla.redhat.com/attachment.cgi?id=977933 The culprit is this error:

Re: Qt/KDE problems with MIT-SHM when Xorg is not running as root

2015-01-29 Thread Hans de Goede
Hi, On 29-01-15 10:33, Martin Gräßlin wrote: On Thursday 29 January 2015 10:20:41 Hans de Goede wrote: Hi All, A Fedora user has reported problems with MIT-SHM when the xserver is not running as root. Normal use works fine, but when doing a su - and then starting X apps as root MIT-SHM fails,

Re: [PATCH synaptics] Support the new Lenovo X1 Carbon 3rd trackpoint buttons

2015-01-29 Thread Hans de Goede
Hi, On 29-01-15 03:00, Peter Hutterer wrote: This device has the trackpoint buttons wired up to the touchpad to send BTN_0, BTN_1 and BTN_2 for left, right, middle. This conflicts with previous touchpads that used those event codes for dedicated scroll buttons. Add an option

[RFC 2/5] glamor: Add a new glamor_gbm_bo_from_pixmap() function.

2015-01-29 Thread Kenneth Graunke
From: Jason Ekstrand jason.ekstr...@intel.com --- glamor/glamor.h | 15 + glamor/glamor_egl.c | 63 ++--- 2 files changed, 70 insertions(+), 8 deletions(-) diff --git a/glamor/glamor.h b/glamor/glamor.h index 206158c..941bdc2

[RFC 1/5] modesetting: Make ms_crtc_on non-static.

2015-01-29 Thread Kenneth Graunke
I want to use this in present.c. --- hw/xfree86/drivers/modesetting/driver.h | 2 ++ hw/xfree86/drivers/modesetting/vblank.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/drivers/modesetting/driver.h b/hw/xfree86/drivers/modesetting/driver.h index

[RFC 4/5] modesetting: Initialize ms_drm_seq to 0.

2015-01-29 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- hw/xfree86/drivers/modesetting/vblank.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xfree86/drivers/modesetting/vblank.c b/hw/xfree86/drivers/modesetting/vblank.c index 776dcef..e680ce6 100644 ---

[RFC 3/5] modesetting: Implement an ms_drm_abort_seq() function.

2015-01-29 Thread Kenneth Graunke
This is a specialization of ms_drm_abort that matches based on the drm event queue's sequence number. Based on code by Keith Packard. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- hw/xfree86/drivers/modesetting/driver.h | 1 + hw/xfree86/drivers/modesetting/vblank.c | 16

[RFC 5/5] modesetting: Implement page flipping support for Present.

2015-01-29 Thread Kenneth Graunke
Based on code by Keith Packard, Eric Anholt, and Jason Ekstrand. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- hw/xfree86/drivers/modesetting/driver.h | 10 + hw/xfree86/drivers/modesetting/drmmode_display.c | 33 ++- hw/xfree86/drivers/modesetting/drmmode_display.h | 3 +

Re: [PATCH xinit] startx: Don't use GNU expr extensions

2015-01-29 Thread Hans de Goede
Hi, On 29-01-15 11:36, Mark Kettenis wrote: Use the ':' operator instead of match and avoid the use of \+. Both constructions aren't specified by POSIX and not supported in BSD expr. Also drop the '^' from the regular expressions as it is implicit and POSIX leaves its behaviour undefined.

[PATCH xinit] startx: Don't use GNU expr extensions

2015-01-29 Thread Mark Kettenis
Use the ':' operator instead of match and avoid the use of \+. Both constructions aren't specified by POSIX and not supported in BSD expr. Also drop the '^' from the regular expressions as it is implicit and POSIX leaves its behaviour undefined. Signed-off-by: Mark Kettenis kette...@openbsd.org

Re: [PATCH] config/udev: Respect seat assignments when assigned devices

2015-01-29 Thread Jonathan Dieter
On 01/29/2015 01:23 AM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com Jonathan Dieter posted a few patches to do this inside the Xorg server but it makes no sense to do it there, just have the code we use to probe the device list at startup check seat assignments using the same code

Re: [PATCH] config/udev: Respect seat assignments when assigned devices

2015-01-29 Thread Hans de Goede
Hi, On 01/29/2015 01:23 AM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com Jonathan Dieter posted a few patches to do this inside the Xorg server but it makes no sense to do it there, just have the code we use to probe the device list at startup check seat assignments using the same

Re: [PATCH 2/2] modesetting: add dynamic connector hotplug support (MST)

2015-01-29 Thread Aaron Plattner
On 01/28/2015 12:32 AM, Daniel Martin wrote: On 28 January 2015 at 08:40, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This is ported from the same code in the ati and intel drivers, It uses the same option name as nvidia and the other DDXes to disable tearing

Re: [PATCH xf86-video-dummy 0/6] Cleanups and RandR 1.2 support

2015-01-29 Thread Aaron Plattner
On 01/26/2015 03:50 PM, Keith Packard wrote: Aaron Plattner aplatt...@nvidia.com writes: Yeah, I do need to look into that proposal still. But I think this is useful (in particular for 32k coordinate testing by using randr to switch dynamically between 32747x500 and 500x32767) independently.

Re: [PATCH synaptics] Support the new Lenovo X1 Carbon 3rd trackpoint buttons

2015-01-29 Thread Benjamin Tissoires
On Wed, Jan 28, 2015 at 9:00 PM, Peter Hutterer peter.hutte...@who-t.net wrote: This device has the trackpoint buttons wired up to the touchpad to send BTN_0, BTN_1 and BTN_2 for left, right, middle. This conflicts with previous touchpads that used those event codes for dedicated scroll

Re: Qt/KDE problems with MIT-SHM when Xorg is not running as root

2015-01-29 Thread Martin Gräßlin
On Thursday 29 January 2015 10:20:41 Hans de Goede wrote: Hi All, A Fedora user has reported problems with MIT-SHM when the xserver is not running as root. Normal use works fine, but when doing a su - and then starting X apps as root MIT-SHM fails, see this screenshot:

RE: multitouch input handling help required

2015-01-29 Thread Vikas Patil Gmail
Thanks Peter for the reply. I tried converting XI events to button events and send but it didn't help. True no way. Seems need to switch to some other compositor which supports multitouch. Regards, Vikas -Original Message- From: Peter Hutterer peter.hutte...@who-t.net Sent:

Re: [PATCH] xf86-input-libinput: Reapply configuration at DEVICE_ON

2015-01-29 Thread Peter Hutterer
On Sat, Jan 24, 2015 at 02:20:22AM +0100, Friedrich Schöller wrote: The driver ignored my xorg configuration. Maybe I am doing something wrong, but I tried to track down the error and came up with this solution. The device is closed after DEVICE_INIT so we need to apply configuration

[PATCH] config/udev: Respect seat assignments when assigned devices

2015-01-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Jonathan Dieter posted a few patches to do this inside the Xorg server but it makes no sense to do it there, just have the code we use to probe the device list at startup check seat assignments using the same code we check at hotplug time. Bugilla:

[PATCH v2 synaptics] Support the new Lenovo X1 Carbon 3rd trackpoint buttons

2015-01-29 Thread Peter Hutterer
This device has the trackpoint buttons wired up to the touchpad to send BTN_0, BTN_1 and BTN_2 for left, right, middle. This conflicts with previous touchpads that used those event codes for dedicated scroll buttons. Add an option HasTrackpointButtons that can be set via a xorg.conf.d snippets.

[PATCH xf86-input-libinput] Handle capability events after adding a device

2015-01-29 Thread Peter Hutterer
Needs a temporary libinput context to get all capability events without events from other devices interfering. This doesn't yet handle true capability changes, only the initial burst of events after the DEVICE_ADDED event. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- That's based

Re: [PATCH xserver V3] use xcb struct in render

2015-01-29 Thread Peter Hutterer
On Sun, Jan 18, 2015 at 02:57:21PM +0530, Jaya Tiwari wrote: Replacing manually written proto headers for render extension with xcb generated structs Have changed simple requests without list/switch and replies Signed-off-by: Jaya Tiwari tiwari.jay...@gmail.com Patch looks good minus the

Re: [PATCH] xkb: Don't swap XkbSetGeometry data in the input buffer

2015-01-29 Thread Peter Hutterer
On Fri, Jan 16, 2015 at 08:08:59PM +0100, Olivier Fourdan wrote: The XkbSetGeometry request embeds data which needs to be swapped when the server and the client have different endianess. _XkbSetGeometry() invokes functions that swap these data directly in the input buffer. However,