VNC patch for Xserver 1.3

Dan Nicholson dbn.lists at gmail.com
Fri Oct 19 09:10:09 PDT 2007


On Fri, Oct 19, 2007 at 05:03:51PM +0200, Stefan Dirsch wrote:
> On Fri, Oct 19, 2007 at 08:01:34AM -0700, Dan Nicholson wrote:
> > On 10/18/07, Stefan Dirsch <sndirsch at suse.de> wrote:
> > >
> > > Finally I gave your patch a try. Unfortunately it suffers from the same
> > > problem as mentioned before. The Xserver crashes when the libvnc module
> > > is loaded.
> > >
> > > (**) Mouse[3]: always reports core events
> > > (II) evaluating device (Mouse[3])
> > >
> > > Backtrace:
> > > 0: X(xf86SigHandler+0x6a) [0x496f0a]
> > > 1: /lib64/libc.so.6 [0x2b5221649ba0]
> > > 2: /lib64/libc.so.6(strlen+0x40) [0x2b522168eba0]
> > > 3: X(xf86ActivateDevice+0x59) [0x499279]
> > > 4: X(InitInput+0x4d) [0x46785d]
> > > 5: X(main+0x370) [0x436210]
> > >
> > > I'm wondering why you don't see this problem.
> > 
> > I've only been using Xvnc, not the vnc module. I gave a quick whirl on
> > libvnc (linux x86), and the server doesn't crash immediately. I
> > haven't actually tried to connect, though. Is this crash you're seeing
> > on startup?
> 
> Yes. How does your configuration (xorg.conf) look like?

The vnc options are currently commented out, but here it is. One thing to
note is that I have all my current input devices specified as evdev devices
in xorg.conf.

--
Dan

Section "ServerFlags"
	Option "DefaultServerLayout" "Default Layout"
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	#InputDevice	"USB Keyboard" "CoreKeyboard"
	InputDevice	"USB Evdev Keyboard" "CoreKeyboard"
	#InputDevice	"MS Intellimouse" "CorePointer"
	InputDevice	"Logitech Optical Mouse" "CorePointer"
	#InputDevice	"VNC Mouse" "ExtraPointer"
	#InputDevice	"VNC Keyboard" "ExtraKeyboard"
EndSection

Section "Module"
	Load  "dbe"
	Load  "dri"
	Load  "GLcore"
	Load  "glx"
	Load  "xtrap"
	Load  "extmod"
	Load  "record"
	#Load  "vnc"
EndSection

Section "Extensions"
	Option "Composite"
EndSection

Section "DRI"
	Group	"video"
	Mode	0660
EndSection

Section "InputDevice"
	Identifier   "USB Keyboard"
	Driver       "kbd"
	Option       "XkbOptions" "compose:rwin"
	#Option		"CoreKeyboard"
	#Option		"XkbRules"	"xorg"
	#Option		"XkbModel"	"pc105"
	#Option		"XkbLayout"	"us"
	#Option		"XkbOptions"	"grp:alt_shift_toggle,compose:menu,grp_led:scroll"
EndSection

Section "InputDevice"
	Identifier   "USB Evdev Keyboard"
	Driver       "evdev"
	Option       "Name" "Silitek Standard USB Keyboard "
	#Option       "XkbOptions" "compose:rwin"
	#Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"evdev"
	#Option		"XkbLayout"	"us"
	#Option		"XkbOptions"	"grp:alt_shift_toggle,compose:menu,grp_led:scroll"
EndSection

Section "InputDevice"
	Identifier  "MS Intellimouse"
	Driver      "evdev"
	Option      "Name" "Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)"
EndSection

Section "InputDevice"
	Identifier  "Logitech Optical Mouse"
	Driver      "evdev"
	Option      "Name" "Logitech USB-PS/2 Optical Mouse"
	Option      "Sensitivity" "1.0"
	Option      "HWHEELRelativeAxisButtons" "7 6"
EndSection

Section "InputDevice"
	Identifier  "VNC Mouse"
	Driver      "rfbmouse"
EndSection

Section "InputDevice"
	Identifier  "VNC Keyboard"
	Driver      "rfbkeyb"
EndSection

Section "Monitor"
	#DisplaySize	  380   300	# mm
	Identifier   "Monitor0"
	VendorName   "VSC"
	ModelName    "VX924"
 ### Comment all HorizSync and VertRefresh values to use DDC:
	HorizSync    30.0 - 82.0
	VertRefresh  50.0 - 85.0
	Option	    "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "CacheLines"         	# <i>
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "DRI"                	# [<bool>]
        #Option     "NoDDC"              	# [<bool>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "XvMCSurfaces"       	# <i>
        #Option     "PageFlip"           	# [<bool>]

        #Option      "XaaNoOffscreenPixmaps"     "yes"
        #Option      "AccelMethod"               "EXA"

	#Option      "UseVNC"                    "yes"

	Identifier  "Card0"
	Driver      "i810"
	VendorName  "Intel Corporation"
	BoardName   "82G965 Integrated Graphics Controller"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Card0"
	Monitor		"Monitor0"
	DefaultDepth	24
	SubSection "Display"
		Depth		16
		Modes "1600x1200" "1400x1050" "1280x1024" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes "1600x1200" "1400x1050" "1280x1024" "1024x768" "800x600"
	EndSubSection
EndSection



More information about the xorg mailing list