A lightweight, no-nonsense utility to optimize x86 laptops for Klipper / KlipperScreen duty.
This is part of my Klipper Laptop guide: https://kanrog.com/klipper-laptop-install
When running Klipper on repurposed "e-waste" hardware, you shouldn't have to fight the OS to keep the printer alive. This script automates the standard tweaks so you can focus on printing, not troubleshooting.
- Lid Switch: Disables system suspend when closing the lid, keeping your print running even if the laptop is tucked away.
- NetworkManager: Adjusts polkit authentication to ensure your screen connects without credential prompts.
- KlipperScreen Cursor: Automatically forces the mouse cursor to appear so you can navigate the UI with a trackpad or mouse.
- SSH into your host and run the following commands:
# Download the script
curl -s [https://raw.githubusercontent.com/Kanrog/klap/main/klap.sh](https://raw.githubusercontent.com/Kanrog/klap/main/klap.sh) > klap.sh
# Make it executable
chmod +x klap.sh
# Run with root privileges
sudo ./klap.sh- Follow the on-screen prompts and reboot when finished to apply all settings.
- "Command not found": Ensure you are in the folder where you downloaded
klap.shand that you usedchmod +x. - Missing Cursor: Ensure your
KlipperScreen.confis located at~/printer_data/config/KlipperScreen.conf. The script will automatically detect and configure this for you.