Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ledcontrol #1502

Closed
3 tasks done
Juliandev02 opened this issue Feb 17, 2022 · 6 comments
Closed
3 tasks done

Add ledcontrol #1502

Juliandev02 opened this issue Feb 17, 2022 · 6 comments

Comments

@Juliandev02
Copy link

Juliandev02 commented Feb 17, 2022

What is the name of the app?

ledcontrol

(Optional) Where is the app hosted?

GitHub.
See https://github.com/Strawberry-Software-Industries/ledcontrol

About the app

This is a simple program to control the status LEDs of your Raspberry Pi.
Just install this App, and type ledcontrol into the Terminal. To change the Behavior of any led, you need root perms.
Example: sudo ledcontrol dr - This will deactivate the red led

image
:)
Soon i will build armhf Executeables!
If the app should come in, I will also design an icon for it later.

Upload file or Add PR Link

ledcontrol.zip

Confirmations

@Botspot
Copy link
Owner

Botspot commented Feb 17, 2022

This looks interesting and I'm fine with it being added to Pi-Apps.

I vaguely recall that various Raspberry Pi models treated the LEDs differently. I remember being able to control both built-in LEDS on the Pi3, but the method I used would not work for the Pi4.
Also the Pi zero uses its LED differently.
How are these exceptions handled by the program?

@Juliandev02
Copy link
Author

Currently (as far as I know) the program only works on the Raspberry Pi 4, because I don't know what the LED map looks like on the Pi 3. The same is true for the Pi Zero. I would have to look more closely at how the LED map is on the Pi 3 and the Zero.
I know that led1 is the red power LED and led0 is the green one.

@Botspot
Copy link
Owner

Botspot commented Feb 17, 2022

Currently (as far as I know) the program only works on the Raspberry Pi 4, because I don't know what the LED map looks like on the Pi 3. The same is true for the Pi Zero. I would have to look more closely at how the LED map is on the Pi 3 and the Zero. I know that led1 is the red power LED and led0 is the green one.

It would be advisable to support the Pi3 - a good number of our users are using a Pi3 because the Pi4 is hard to find right now.

@Juliandev02
Copy link
Author

I'm sure I'll get it right. I just need to identify which model you have (via Bash Command is possible), and then find the appropriate LED map.
And yes, the Pi 4 is extremely hard to find. I was extremely lucky that I still got my Pi 4 with 8GB RAM ...

@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2023

A zipfile was found in the body of your issue.
The sha1sum of the zip was: 616fb50d2f3f5a729247adb5bd6e132ca77ccda0
The contents can be previewed below:

ledcontrol/description

Do it simple - Control the status LEDs of your Raspberry Pi! 
A simple program to control the status LEDs of your Raspberry Pi!
Just install this App, and type "ledcontrol" into the Terminal. To change the Behavior of any led, you need root perms. 

ledcontrol/credits

Juliandev02

ledcontrol/website

https://github.com/Strawberry-Software-Industries/ledcontrol

ledcontrol/install-64

#!/bin/bash


#Be sure to use the "error" function - it will display a message if a command fails to run. Example below:

sudo wget https://github.com/Strawberry-Software-Industries/ledcontrol/releases/download/v1.0/ledcontrol-1.0.0-arm64 -O /usr/bin/ledcontrol || error 'Failed to download executeable!'

# Install some packages that are necessary to run this app - no need for "error", as the install_packages function already handles errors.
sudo chmod +x /usr/bin/ledcontrol

ledcontrol/.zip

PK��

@theofficialgman
Copy link
Collaborator

closing as prone to breakage (new hardware) and not really useful for desktop users. these are status LEDs and not intended to be utilized by the user (other kernel drivers and hardware interact with them).

@theofficialgman theofficialgman closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants