You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tuxedo-touchpad-switch/ReadMe.md

35 lines
1.4 KiB

4 years ago
# About
This a Linux userspace driver to enable and disable the touchpads on TongFang/Uniwill laptops using a HID command. **This will trigger the touchpad-disabled-LED, formerly unfunctional under linux.**
4 years ago
4 years ago
Most desktop environments already have a way to disable the touchpad, but this setting never reaches the firmware of the device. This driver listens to the session D-Bus and dispatches the approprita HID call to /dev/hidraw* whenever the setting changes, closing the gap to the device itself, and enabling the built in LED.
4 years ago
4 years ago
Currently this driver was only tested and works on the GDM greeter, GNOME Shell, Budgie, and KDE Plasmashell. All other environments, including the tty-console, work as before, meaning touchpad is always enabled on the HID level.
4 years ago
4 years ago
Author: Werner Sembach <tux@tuxedocomputers.com>
4 years ago
4 years ago
# Building
## Testing
```
$ sudo apt install libudev-dev libglib2.0-dev
$ mkdir build
$ cd build
$ cmake ..
$ sudo make install
$ sudo reboot
4 years ago
```
4 years ago
There is also a target `make package` which is fine for testing, but it will not create a debian best practices compliant .deb. For this you need to use `gbp buildpackage` as described below.
## Packaging
4 years ago
```
4 years ago
$ sudo apt install libudev-dev libglib2.0-dev git-buildpackage debhelper
4 years ago
$ rm -r build
4 years ago
$ gbp buildpackage -uc -us
```
A .deb package is created in the folder above the git repository.
# Installing
After installing via `make install` or using the .deb you need to reboot your system for the driver to load.