1
0
Dominique Leuenberger 2022-05-12 20:57:46 +00:00 committed by Git OBS Bridge
commit bbc928ae72
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,38 @@
Author: Dirk Mueller <dmueller@suse.de>
Subject: Raise default client limit to 512
Patch-Mainline: Never
After a while of starting too many browser tabs, I ran into
xorg: Maximum number of clients reached
which also prevented me from starting a terminal window to debug
the issue.. so raise the default a bit. Based on
https://plug-discuss.phxlinux.narkive.com/BWkQ7Xez/xorg-maximum-number-of-clients-reached
it appears other distros are also doing that.
--- xorg-server-21.1.3.orig/include/misc.h
+++ xorg-server-21.1.3/include/misc.h
@@ -88,7 +88,7 @@ OF THIS SOFTWARE.
#define MAXGPUSCREENS 16
#endif
#define MAXCLIENTS 2048
-#define LIMITCLIENTS 256 /* Must be a power of 2 and <= MAXCLIENTS */
+#define LIMITCLIENTS 512 /* Must be a power of 2 and <= MAXCLIENTS */
#define MAXEXTENSIONS 128
#define MAXFORMATS 8
#ifndef MAXDEVICES
--- xorg-server-21.1.3.orig/man/Xserver.man
+++ xorg-server-21.1.3/man/Xserver.man
@@ -317,9 +317,9 @@ A value of zero makes the stack size as
of \-1 leaves the stack space limit unchanged.
.TP 8
.B \-maxclients
-.BR 64 | 128 | 256 | 512
+.BR 64 | 128 | 256 | 512 | 1024 | 2048
Set the maximum number of clients allowed to connect to the X server.
-Acceptable values are 64, 128, 256 or 512.
+Acceptable values are 64, 128, 256, 512, 1024 or 2048.
.TP 8
.B \-render
.BR default | mono | gray | color

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 10 13:04:38 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add n_raise_default_clients.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 30 12:36:36 UTC 2022 - Marcus Meissner <meissner@suse.com> Wed Mar 30 12:36:36 UTC 2022 - Marcus Meissner <meissner@suse.com>

View File

@ -199,6 +199,7 @@ Patch1: N_default-module-path.diff
Patch2: N_zap_warning_xserver.diff Patch2: N_zap_warning_xserver.diff
Patch3: N_driver-autoconfig.diff Patch3: N_driver-autoconfig.diff
Patch4: N_fix_fglrx_screendepth_issue.patch Patch4: N_fix_fglrx_screendepth_issue.patch
Patch5: n_raise_default_clients.patch
Patch6: N_fix-dpi-values.diff Patch6: N_fix-dpi-values.diff
Patch7: N_Install-Avoid-failure-on-wrapper-installation.patch Patch7: N_Install-Avoid-failure-on-wrapper-installation.patch
Patch8: u_xorg-wrapper-Drop-supplemental-group-IDs.patch Patch8: u_xorg-wrapper-Drop-supplemental-group-IDs.patch
@ -363,6 +364,7 @@ sh %{SOURCE92} --verify . %{SOURCE91}
%patch2 -p1 %patch2 -p1
%patch3 -p0 %patch3 -p0
%patch4 -p0 %patch4 -p0
%patch5 -p1
%patch6 -p0 %patch6 -p0
%patch7 -p1 %patch7 -p1
%patch8 -p1 %patch8 -p1