Disable hardware pulsing to allow running without root

Set options.disable_hardware_pulsing = True in display_manager._setup_matrix.

This corresponds to the --led-no-hardware-pulse flag for the rgbmatrix library.

Disabling hardware pulsing removes the need for root privileges, allowing the script to run as the regular user (ledpi).

This aims to resolve the permission issues encountered when trying to write stock logos to assets/stocks while running with sudo (which resulted in UID=1 instead of UID=0).
This commit is contained in:
ChuckBuilds
2025-04-17 09:51:58 -05:00
parent 6bd9b04a3a
commit 22f21093f2

View File

@@ -45,7 +45,7 @@ class DisplayManager:
options.pixel_mapper_config = ''
options.row_address_type = 0
options.multiplexing = 0
options.disable_hardware_pulsing = False # Re-enable hardware pulsing for stability
options.disable_hardware_pulsing = True # Set to True to run without root
options.show_refresh_rate = False
options.limit_refresh_rate_hz = 90 # Reduced from 120Hz for better stability
options.gpio_slowdown = 2 # Increased for better stability