KDE4 on FreeBSD (was: KDE4 and input events)
Hans Petter Selasky
hselasky at c2i.net
Sat Jun 13 18:35:37 UTC 2009
On Monday 08 June 2009 20:33:19 Sam Leffler wrote:
> Hans Petter Selasky wrote:
> > Hi,
Hi,
I was trying to figure out why the right mouse button on the builtin touchpad
of my Aspire One had died, just to conclude that it was a hardware problem and
that I have to use an external USB mouse :-) During my investigation I found
some possibly unlocked code in sysmouse.c . Also I found out that the
/dev/sysmouse is not opened in raw mode, because ttydisc_can_bypass() is never
true in sysmouse.c . I've made a patch. Ed: Can you go through my patch and
see if the issues I've fixed apply or if there is a bug in the TTY code, not
detecting that raw mode should be selected.
Patch for X-org server:
/usr/ports/x11-servers/xorg-server/work/xorg-server-1.6.1/hw/xfree86/os-
support/shared/posix_tty.c
_X_EXPORT int
xf86OpenSerial (pointer options)
...
/* set up default port parameters */
SYSCALL (tcgetattr (fd, &t));
+ cfmakeraw(&t);
SYSCALL (tcsetattr (fd, TCSANOW, &t));
...
--HPS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysmouse.c.diff
Type: text/x-patch
Size: 2268 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090613/b991b65c/sysmouse.c.bin
More information about the freebsd-current
mailing list