Surface Pro 4 Flickergate Mitigation Tool - Automatically refreshes display pixels to prevent screen flicker.
pip install -e .chmod +x build.sh
./build.sh
# Binary will be at ./dist/pixelfresh
sudo cp ./dist/pixelfresh /usr/local/bin/pixelfreshCopy the example config:
mkdir -p ~/.config/pixelfresh
cp config.example.toml ~/.config/pixelfresh/config.tomlEdit ~/.config/pixelfresh/config.toml to customize intervals.
pixelfresh start --daemonpixelfresh status # Show current mode and refresh count
pixelfresh toggle-ultra # Toggle ultra mode on/off
pixelfresh enable-ultra # Enable ultra mode
pixelfresh disable-ultra # Disable ultra mode (return to normal)
pixelfresh stop # Stop the daemonAdd this to your ~/.config/hypr/hyprland.conf:
bind = $mod, U, exec, pixelfresh toggle-ultra
bind = $mod SHIFT, U, exec, pixelfresh enable-ultra- Normal Mode: Refreshes pixels every 30 minutes with 5 second sleep
- Ultra Mode: Refreshes pixels every 2 minutes with 2 second sleep (for gaming)
Make sure Hyprland is installed and hyprctl is in your PATH.
Create the config directory:
mkdir -p ~/.config/pixelfresh
cp config.example.toml ~/.config/pixelfresh/config.toml