You are not logged in.

#1 2015-06-28 01:32:12

smekkleysa
Member
Registered: 2013-11-18
Posts: 15

VNC to physical display crashes X

I have VNC to physical display enabled by loading libvnc.so which comes with tigervnc 1.4.3-4.
After upgrading xorg to the newest version from 1.17.1-5,  it stopped working.
When I accss the 5900 port of the server, X crashes.
I cannot find the log, and I don't know what to do. Any help would be appreciated.

Here is my vnc part conf of the xorg.conf.
**************
Section "Module"
Load "vnc"
EndSection

Section "Screen"
Identifier "Screen0"
Option "SecurityTypes" "None"
EndSection
**************

Offline

#2 2015-06-28 01:39:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,726
Website

Re: VNC to physical display crashes X

Try. x0vncserver.  See the wiki.

Offline

#3 2015-06-28 14:30:14

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: VNC to physical display crashes X

I can confirm the crash. It happens as soon as you move the mouse. If you're using startx the log will be in ~/.local/share/xorg, however it doesn't contain any info about the crash.

Found this bugreport for Fedora, it seems a simple recompile should fix it. I've opened a bug on the Arch bugtracker, requesting a rebuild: https://bugs.archlinux.org/task/45492

Offline

#4 2015-06-29 13:40:46

smekkleysa
Member
Registered: 2013-11-18
Posts: 15

Re: VNC to physical display crashes X

@Gusar
Thank you for providing the answer and links.
Unfortunately,  installing the package built with PKGBUILD from  https://bugs.archlinux.org/task/45492
did not fix the problem.

@graysky
Thank you for suggesting the workaround.
x0vncserver works fairly, but it does not meet my requirement by itself.
I need the service to start  with X, and I don't know how to write a systemd service file
that starts x0vncserver with startx command. 
Another issue is that keymapping gets messed up when I access from a machine with different keymap from the server's.

Offline

#5 2015-06-29 15:28:48

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: VNC to physical display crashes X

Crap. Now what? It worked on Fedora. Can you try tigervnc-git from AUR? Use AUR4, it has a more up-to-date version than the old AUR.

EDIT: Actually, even the AUR4 version builds tigervnc against xorg-server-1.17.1. Could be a good test though - try that, then build a new version but change _xorgver= at the top of the PKGBUILD to 1.17.2

Last edited by Gusar (2015-06-29 16:16:44)

Offline

#6 2015-06-30 12:07:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,779

Re: VNC to physical display crashes X

I need the service to start  with X, and I don't know how to write a systemd service file
that starts x0vncserver with startx command.

Ad the command to ~/.xinitrc ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2015-06-30 14:08:13

smekkleysa
Member
Registered: 2013-11-18
Posts: 15

Re: VNC to physical display crashes X

@Gusar
Tigervnc-git built with modified PKGBUILD did not work either.
No info in the xorg log which makes just too hard to fix the problem..

@Lone_Wolf
Oh, I totally forgot about xinitrc.
I'll do that until the bug gets fixed. Thank you!
EDIT; Adding x0vncserver to  /etc/X11/xinit/xinitrc does not work..
Probably, I have to add it to ~/.xinitrc of every user?

Last edited by smekkleysa (2015-06-30 14:27:56)

Offline

#8 2015-06-30 15:22:53

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: VNC to physical display crashes X

The Fedora bug report has info on where the crash happens. But why did a recompile fix it on Fedora and not on Arch? Could be some patches Fedora applies to X.

One crazy idea - recompile xorg-server. If that doesn't work, file a bug report upstream at https://github.com/TigerVNC/tigervnc/issues and point to the Fedora bug.

Offline

#9 2015-07-01 09:06:59

smekkleysa
Member
Registered: 2013-11-18
Posts: 15

Re: VNC to physical display crashes X

The problem partially fixed!

I simply overwrote my libvnc.so with the libvnc.so from tigervnc-server-module-1.4.3-7.fc22.x86_64.rpm.
And the libvnc from the fedora package was specifically refering much older libraries (libjpeg,libgnutls,libnettle and libhogweed)
than arch's libvnc. So I downloaded the older libraries and placed under /usr/lib/.

Now I can access my physical display via VNC, but only with clients other than tigervnc...
Realvnc viewer and an android app called "Jump" are the among the successful clients.

Offline

#10 2015-07-01 16:36:47

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Re: VNC to physical display crashes X

You also may use x11vnc as another workaround.

Offline

Board footer

Powered by FluxBB