From 22f21093f218ff3d70d4d2b1e76cf52c1bcc1ce4 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Thu, 17 Apr 2025 09:51:58 -0500 Subject: [PATCH] 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). --- src/display_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display_manager.py b/src/display_manager.py index 1f34c77b..98f6e1c1 100644 --- a/src/display_manager.py +++ b/src/display_manager.py @@ -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