[Bug 206050] x11/slim: force use unix sockets

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 8 23:48:38 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206050

            Bug ID: 206050
           Summary: x11/slim: force use unix sockets
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: rozhuk.im at gmail.com
                CC: henry.hu.sh at gmail.com
             Flags: maintainer-feedback?(henry.hu.sh at gmail.com)
                CC: henry.hu.sh at gmail.com

Created attachment 165285
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=165285&action=edit
replace ":0.0" to "unix:0.0"

By default slim call: XOpenDisplay(":0.0")
XOpenDisplay first try IPv4, then IPv6 and unix socket.
But if sysctl set:
net.inet.tcp.blackhole=2 # Do not send RST on segments to closed ports
or
net.inet.tcp.blackhole=1
then XOpenDisplay wait 30 seconds.
So after slim start it show black screen ~60 seconds.

Recommended slim config contain:
xserver_arguments   -nolisten tcp vt09
so XOpenDisplay will always wait/fail to connect by tcp.

Patch replace ":0.0" to "unix:0.0", so slim will always use unix sockets.


PS: Also here tip for config to increase xorg priority:
default_xserver         /usr/bin/nice
xserver_arguments       -n -15 /usr/local/bin/X -nolisten tcp vt09

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list