Software for CHUWI MiniBook (8-inch) / MiniBook X (10-inch) running Linux
For other Linux distributions, please install the equivalent packages.
AUR package is available.
yay -S minibook-support-git
For other Linux distributions.
git clone https://github.com/petitstrawberry/minibook-support.git
cd minibook-support
make
sudo make install
tabletmoded is a daemon that triggers the tablet mode of the MiniBook.
moused is a daemon that manages the trackpointer / trackpad of the MiniBook.
keyboardd is a daemon that manages the keyboard of the MiniBook.
mousedd / keyboardd create virtual devices that pass through input events received from the moused / keyboard. By enabling and disabling this pass-through functionality, you can stop and enable these devices. It is also possible to process the values if necessary (e.g. calibration of the track pointer with moused).
tabletmoded calculates the open/close angle of the screen based on the values of the two accelerometers built into the main unit, and determines whether the PC is in tablet mode or not based on the angle. When it is determined that the PC is in tablet mode, it disables the mouse and keyboard devices using moused and keyboardd. Furthermore, it issues an event (SW_TABLET_MODE) to enable the tablet mode by the created virtual device, and notifies the whole system that the PC is in the tablet mode. Depending on the desktop environment, the behavior will change for tablets (e.g., GNOME will enable the on-screen keyboard).
This mechanism can be abused by keyloggers, etc., but of course we do not do any such processing, and you can check the source code if necessary.
MIT License
Copyright (c) 2024 petitstrawberry
Please see LICENSE for more information.
Debugging and testing on MiniBook X.
Thanks to: