Skip to content

Commit

Permalink
Do not drop privilege when running RGBM
Browse files Browse the repository at this point in the history
  • Loading branch information
ty-porter committed Feb 27, 2024
1 parent 8e34de6 commit 0521393
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ You can configure your LED matrix with the same flags used in the [rpi-rgb-led-m
--led-pwm-dither-bits Time dithering of lower bits (Default: 0)
--config Specify a configuration file name other, omitting json xtn (Default: config)
--emulated Force the scoreboard to run in software emulation mode.
--drop-privileges Force the matrix driver to drop root privileges after setup. (Default: false)
```

## Personalization
Expand Down
4 changes: 4 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ def args():
help="Force using emulator mode over default matrix display.",
const=True
)
parser.add_argument(
"--drop-privileges", action="store_false", help="Force the matrix driver to drop root privileges after setup."
)
return parser.parse_args()


Expand All @@ -148,6 +151,7 @@ def led_matrix_options(args):
options.scan_mode = args.led_scan_mode
options.pwm_lsb_nanoseconds = args.led_pwm_lsb_nanoseconds
options.led_rgb_sequence = args.led_rgb_sequence
options.drop_privileges = args.drop_privileges

try:
options.pixel_mapper_config = args.led_pixel_mapper
Expand Down

0 comments on commit 0521393

Please sign in to comment.