Skip to content

Commit

Permalink
Remove testing instructions from the README
Browse files Browse the repository at this point in the history
These are now maintained alongside the rest of the building instructions on the wiki. The text for the current version of libwacom is kept.
  • Loading branch information
redstrate authored and whot committed Oct 16, 2024
1 parent 7747256 commit 7609cb8
Showing 1 changed file with 1 addition and 53 deletions.
54 changes: 1 addition & 53 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,59 +29,7 @@ device in the kernel (see `/proc/bus/input/devices`) and in the X session (see
Use the `libwacom-list-devices` tool to list all known devices and verify
the tablet is not in that list.

See the [wiki page on adding a new device](https://github.com/linuxwacom/libwacom/wiki/Adding-a-new-device).

## To add support for a tablet to an installed libwacom

If the system-provided libwacom does not include a `.tablet` file, it is
possible to "backport" that `.tablet` file to the system-provided libwacom.

### libwacom 1.10 and newer

Copy the `.tablet` file into `/etc/libwacom` and run the
`libwacom-update-db` tool. Copy the tablet's `.svg` layout file
to `/etc/libwacom/layouts`.

```
$ cp my-tablet-file-from-upstream.tablet /etc/libwacom/
$ cp my-tablet-file-layout.svg /etc/libwacom/layouts/
$ libwacom-update-db /etc/libwacom
```

The tool will take care of updating udev, the hwdb, etc.

### libwacom 1.9 and earlier

For versions of libwacom <= 1.9, the file must be copied to
`/usr/share/libwacom`. It may be overwritten on updates.

You must update udev after installing the file. The simplest (and broadest)
way to do this is outlined below:

```
# create the hwdb file
$ cat <EOF > /etc/udev/hwdb.d/66-libwacom.hwdb
# WARNING: change "Your Device Name" to the actual name of your device
libwacom:name:Your Device Name*:input:*
ID_INPUT=1
ID_INPUT_TABLET=1
ID_INPUT_JOYSTICK=0
libwacom:name:Your Device Name Pad:input:*
ID_INPUT_TABLET_PAD=1
# Use this if the device is an external tablet
libwacom:name:Your Device Name Finger:input:*
ID_INPUT_TOUCHPAD=1
# Use this if the device is a screen tablet
libwacom:name:Your Device Name Finger:input:*
ID_INPUT_TOUCHSCREEN=1
EOF
$ systemd-hwdb --update
```
Now disconnect and reconnect the device and it should be detected by libwacom.
See [this wiki page on adding a new device and how to test it](https://github.com/linuxwacom/libwacom/wiki/Adding-a-new-device).

# API Documentation

Expand Down

0 comments on commit 7609cb8

Please sign in to comment.