Description of problem: Can't make X to listen to port 6000 on Fedora 22. I have set in lightdm.conf: [SeatDefaults] xserver-allow-tcp=true # ps -ef | grep -i Xorg root 1272 1268 0 11:05 tty1 00:01:08 /usr/libexec/Xorg -background none :0 -seat seat0 -auth /var/run/lightdm/root/:0 vt1 -novtswitch # ps -ef | grep lightdm root 1268 1 0 11:05 ? 00:00:00 /usr/sbin/lightdm root 1272 1268 0 11:05 tty1 00:01:11 /usr/libexec/Xorg -background none :0 -seat seat0 -auth /var/run/lightdm/root/:0 vt1 -novtswitch lightdm 1339 1 0 11:05 ? 00:00:00 /usr/lib/systemd/systemd --user lightdm 1345 1339 0 11:05 ? 00:00:00 (sd-pam) lightdm 1470 1 0 11:05 ? 00:00:00 dbus-launch --autolaunch=c70c689da595441da7a18e9dad2ab83c --binary-syntax --close-stderr lightdm 1480 1 0 11:05 ? 00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session root 1579 1268 0 11:05 ? 00:00:00 lightdm --session-child 14 21 root 5825 4221 0 14:32 pts/2 00:00:00 grep --color=auto -i light # netstat -nap | grep 6000 (shows nothing) Any hints where to look? Any documentation for this for FC 22? Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
BTW: I have a XFCE FC (20 upgrade to 21, then 22)
... lightdm.conf also contains: [XDMCPServer] enabled=true port=177
I'm unable to export DISPLAY to my FC host because of this. BTW: Can someone change the severity to high?
I found a workaround: vi /usr/bin/Xorg and add -listen, as below if [ -x "$basedir"/Xorg.wrap ]; then exec "$basedir"/Xorg.wrap "$@" -listen # exec "$basedir"/Xorg.wrap "$@" else exec "$basedir"/Xorg "$@" fi It seems that without -listen X won't listen to port 6000 (though man Xorg says nothing about either -listen or -nolisten). lightdm also does not add -listen is allow-tcp is specified. Another strange thing was that the mouse pointer became unusual unresponsive. I then changed the settings (sensitivity/acceleration) and it started working... What's even more weird is that after I reset the mouse settings to default, the mouse started to work as before the change. It persist reboots.
Thanks for the excellent detective-work. Looks like lightdm assumes -listen of -nolisten is not specified, in src/x-server-local.c, else if (!server->priv->allow_tcp) g_string_append (command, " -nolisten tcp"); should be relatively easy to fix to not rely on default behavior, and add too: else if (server->priv->allow_tcp) g_string_append (command, " -listen tcp");
Thanks... Also regarding the workaround... just found that it should read: exec "$basedir"/Xorg.wrap "$@" -listen tcp (without tcp it doesn't work)
Rex: Regarding Xorg -listen / -nolisten - the man pages don't document those options (or I'm looking at the wrong manpage; man Xorg). Can this bug be 'forwarded' to the xorg 'team'?
It is documented, albeit indirectly. 'man Xorg' includes text: TCPIP Xorg listens on port 6000+n, where n is the display number. This connection type can be disabled with the -nolisten option (see the Xserver(1) man page for details). and 'man Xserver' includes: -nolisten trans-type disables a transport type. For example, TCP/IP connections can be disabled with -nolisten tcp. This option may be issued multiple times to disable listening to different transportv types. -listen trans-type enables a transport type. For example, TCP/IP connections can be enabled with -listen tcp. This option may be issued multiple times to enable listening to different transport types.
lightdm-1.10.5-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14566
lightdm-1.10.5-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14567
Rex: Thanks again. I Didn't check man Xserver.
lightdm-1.10.5-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update lightdm'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14567
lightdm-1.10.5-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update lightdm'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14566
lightdm-1.10.5-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
lightdm-1.10.5-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.