Software for CHUWI MiniBook (8-inch) / MiniBook X (10-inch) running Linux
- Enable the tablet mode of the MiniBook / MiniBook X automatically when the MiniBook is folded.
- Calibrate the trackpointer of the MiniBook (8-inch).
- CHUWI MiniBook / MiniBook X
- Linux 6.9 or later
- Needed for MiniBook X
- base-devel
- for Arch Linux
- build-essential
- for Debian-based Linux
For other Linux distributions, please install the equivalent packages.
- MiniBook (8-inch)
- Arch Linux
- Linux 6.10.5-arch1-1
- Arch Linux
- MiniBook X (10-inch)
- Ubuntu 24.04
- Linux 6.10.6
- Ubuntu 24.04
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
- moused
- keyboardd
tabletmoded is a daemon that triggers the tablet mode of the MiniBook.
- Auto detect the tablet mode
- Switch enable/disable the tablet mode
- Trigger the tablet mode when the MiniBook is folded
- Untrigger the tablet mode when the MiniBook is unfolded
- Disable the keyboard using keyboardd when the tablet mode is triggered and enable the keyboard when the tablet mode is untriggered
- Disable the mouse using moused when the tablet mode is triggered and enable the mouse when the tablet mode is untriggered
moused is a daemon that manages the trackpointer / trackpad of the MiniBook.
- Calibrate the trackpointer / trackpad
- Switch enable/disable the trackpointer / trackpad
keyboardd is a daemon that manages the keyboard of the MiniBook.
- Switch enable/disable the keyboard
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: