NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Wacom tablets and absolute poiting
On Wed, 2 Oct 2024, Michael van Elst wrote:
One problem with wscons is that, by default, it merges all mouse
devices into one mouse input. If you have multiple input devices
(like mouse + tablet), you may need to configure the X server
separately for e.g. /dev/wsmouse0, /dev/wsmouse1. I've done this
a long time ago, but modern X is different.
Something like this can still be done:
```sh
$ cat /etc/X11/xorg.conf.d/ws.conf
# Force creation of 2 separate input devices on NetBSD
#
Section "ServerLayout"
Identifier "X.org Configured"
InputDevice "Mouse0" "CorePointer"
InputDevice "Tablet0" "CorePointer"
EndSection
# Don't add the default `/dev/wsmouse` device. On NetBSD, this
# device is added _after_ our `Mouse0' and `Tablet0' devices,
# and so any customizations to those get overridden :(.
#
# (Note: hotplugging may not work with this setting.)
#
Section "ServerFlags"
Option "AutoAddDevices" "off"
EndSection
# This is the USB mouse.
#
Section "InputDevice"
Identifier "Mouse0"
Driver "ws"
Option "Device" "/dev/wsmouse0"
Option "ZAxisMapping" "4 5"
# Option "WAxisMapping" "6 7"
EndSection
# This is the tablet.
#
# (Use: fgrep wsmouse /var/run/dmesg.boot
# or wsconsctl(8) to find out which is which.)
#
Section "InputDevice"
Identifier "Tablet0"
Driver "ws"
Option "Device" "/dev/wsmouse1"
EndSection
$
```
but, hot-plugging is lost, and X will behave badly when USB-devices disconnect.
The keyboard gets stuck on some key and just keep repeating, for example. And,
unplugging a USB mouse when it's in use can freeze the kernel.
-RVP
Home |
Main Index |
Thread Index |
Old Index