Re: PATCH: add -defaultRepeatDelay and -defaultRepeatInterval flags

2020-04-02 Thread Michael Stapelberg
Done: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/416/diffs

I had tried sending a merge request before sending the patch to this
mailing list, but couldn’t find a fork button.

Today, gitlab.freedesktop.org showed me a prompt about not having an
SSH key configured and not having a Personal Access Token created,
explaining that the lack of these will prevent me from writing any
code.

Regarding Personal Access Tokens: it wasn’t entirely obvious to me how
to use these. Maybe GitLab could link to a help page explaining that
the URL format to use in git is
https://:@gitlab.freedesktop.org//xserver

I configured both, after which the fork button showed up!
Unfortunately, hitting fork resulted in a 502 server error, but
another attempt a minute later worked.

On Thu, Apr 2, 2020 at 2:49 PM Olivier Fourdan  wrote:
>
> Hi Michael,
>
> On Thu, 2 Apr 2020 at 14:35, Michael Stapelberg 
>  wrote:
>>
>> Friendly ping? :)
>
>
> Best is to submit your patches as a merge request in gitlab, see:
>
> https://gitlab.freedesktop.org/xorg/xserver
>
> HTH
> Cheers
> Olivier
>
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel


[PATCH] xfree86/modes: Use per-screen monitor for all outputs

2020-04-02 Thread Olivier Certner
>From 05d49ec096cd89209c454c48ff2bc34158d5ed33 Mon Sep 17 00:00:00 2001
From: Olivier Certner 
Date: Fri, 20 Mar 2020 18:58:11 +0100
Subject: [PATCH] xfree86/modes: Use per-screen monitor for all outputs

Instead of just the first one.

This allows to specify a monitor section for the screen without
bothering with which actual card output is connected to the
monitor (single-monitor setup).

Had the idea of this change after noticing that an actual Monitor
section with DisplaySize was not taken, because indeed the monitor was
not connected to the first output.

Rationale:
1. Desktop/server graphic cards commonly have several outputs, even
for a single output type (DP, HDMI, etc.). This would ease configuring
for single-monitor cases. Multi-monitor setups require per-output
monitor sections anyway (or see 2.).
2. The change preserves compatibility with single-output setups and
autoconfiguration.
3. Seems a priori that applying the per-screen monitor to the first
output is rather arbitrary (to be checked by someone more
experienced).

If merged in, at least 'xf86-video-intel' may need to be updated
accordingly (see 'src/sna/sna_display.c', function 'sna_output_add',
call to 'xf86OutputUseScreenMonitor'). Didn't check drivers besides
'xf86-video-intel', 'xf86-video-amdgpu', 'xf86-video-nouveau',
'xf86-video-nv', 'xf86-video-vesa'.

Signed-off-by: Olivier Certner 
---
 hw/xfree86/man/xorg.conf.man | 2 +-
 hw/xfree86/modes/xf86Crtc.c  | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/xfree86/man/xorg.conf.man b/hw/xfree86/man/xorg.conf.man
index dac9fa53f..8d5ea49a2 100644
--- a/hw/xfree86/man/xorg.conf.man
+++ b/hw/xfree86/man/xorg.conf.man
@@ -1583,7 +1583,7 @@ following format:
 for a VGA output)
 .PP
 In the absence of specific association of monitor sections to outputs, if a
-monitor section is present the server will associate it with an output to
+monitor section is present the server will associate it with all outputs to
 preserve compatibility for previous single-head configurations.
 .PP
 Specifying video modes is optional because the server will use the DDC or other
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 21daf9a01..f99ac39f5 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -651,9 +651,10 @@ xf86OutputCreate(ScrnInfoPtr scrn,
 }
 output->subpixel_order = SubPixelUnknown;
 /*
- * Use the old per-screen monitor section for the first output
+ * Use the old per-screen monitor section for all outputs that are
+ * not explicitly associated to a given monitor.
  */
-output->use_screen_monitor = (xf86_config->num_output == 0);
+output->use_screen_monitor = 1;
 #ifdef RANDR_12_INTERFACE
 output->randr_output = NULL;
 #endif
-- 
2.24.1

Olivier Certner


___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel


Re: PATCH: add -defaultRepeatDelay and -defaultRepeatInterval flags

2020-04-02 Thread Olivier Fourdan
Hi Michael,

On Thu, 2 Apr 2020 at 14:35, Michael Stapelberg <
michael+freedesk...@stapelberg.ch> wrote:

> Friendly ping? :)
>

Best is to submit your patches as a merge request in gitlab, see:

https://gitlab.freedesktop.org/xorg/xserver

HTH
Cheers
Olivier
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel


Re: PATCH: add -defaultRepeatDelay and -defaultRepeatInterval flags

2020-04-02 Thread Michael Stapelberg
Friendly ping? :)
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel