mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user