NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/53049: wsmoused not working: ioctl(WSDISPLAYIO_PUTWSCHAR) fail



The following reply was made to PR bin/53049; it has been noted by GNATS.

From: bernward.pub%arcor.de@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: mlelstv%serpens.de@localhost
Subject: Re: bin/53049: wsmoused not working: ioctl(WSDISPLAYIO_PUTWSCHAR) fail
Date: Sun, 25 Feb 2018 09:19:04 +0000 (UTC)

 Hello Michael,
 
 thank you, that helped me a lot, now I have a useable mouse in X.
 
 But I had to make changes, the error messages in /var/log/Xorg.0.log 
 helped me:
 
 	(EE) Failed to load module "wsmouse" (module does not exist, 0) 
 
 It is true, nowhere in /usr/X11R7/ exists a module "wsmouse".
 But I found the module "ws", which is able to handle the mouse
 directly from the input /dev/wsmouse, without an intermediate layer
 from wsmoused. Contrary, as soon as I start wsmoused with
 
 	/etc/rc.d/wsmoused start
 
 the window, in which I run tail -f /var/log/messages, is filled with 
 hundreds of lines:
 
 	Feb 24 16:03:35 Brix wsmoused: ioctl(WSDISPLAYIO_PUTWSCHAR) failed
 	Feb 24 16:03:35 Brix wsmoused: Invalid argument
 	...
 
 and the mouse cursor stops moving. I then must switch off wsmoused and 
 restart X. I also have to tell X to use /dev/wsmouse as input, so my 
 recipe to get the mouse working in X now is:
 
 1) /etc/rc.d/wsmoused stop (or in /etc/rc.conf: wsmoused=NO)
 2) edit /etc/X11/xorg.conf as follows:
 ---
 Section "ServerLayout"
 	Identifier	"X.org Configured"
 	InputDevice	"Mouse0"	"CorePointer"
 	InputDevice	"Keyboard0"	"CoreKeyboard"
 EndSection
 
 Section "InputDevice"
 	Identifier	"Mouse0"
 	Driver		"ws"
 	Option		"Device"	"/dev/wsmouse"
 EndSection
 
 Section "InputDevice"
 	Identifier	"Keyboard0"
 ...
 ---
 
 Although the scope of this PR is now reduced to the text console, I think 
 that the classification should remain unchainged, because the intended 
 function of wsmoused is not working at all, quite opposite, it disturbs 
 other parts of the system.
 
 Best regards, Bernward. 
 
 
 On 2018-02-24 11:10, Michael van Elst wrote:
 >  X doesn't use /dev/mouse. On wscons use the wsmouse driver, e.g.:
 >  
 >  Section "InputDevice"
 >          Identifier      "Mouse0"
 >          Driver          "wsmouse"
 >  EndSection
 



Home | Main Index | Thread Index | Old Index