Coder Social home page Coder Social logo

LED has no function about ubuntu-touch HOT 16 CLOSED

ubports avatar ubports commented on August 29, 2024
LED has no function

from ubuntu-touch.

Comments (16)

 avatar commented on August 29, 2024 2

change init.qcom.factory.sh
Lines to
chown -h 0666 system.system /sys/class/leds/red/brightness
chown -h 0666 system.system /sys/class/leds/green/brightness
chown -h 0666 system.system /sys/class/leds/blue/brightness
chown -h 0666 system.system /sys/class/leds/red/device/grpfreq
chown -h 0666 system.system /sys/class/leds/red/device/grppwm
chown -h 0666 system.system /sys/class/leds/red/device/blink
chown -h 0666 system.system /sys/class/leds/red/brightness
chown -h 0666 system.system /sys/class/leds/green/brightness
chown -h 0666 system.system /sys/class/leds/blue/brightness
chown -h 0666 system.system /sys/class/leds/red/device/grpfreq
chown -h 0666 system.system /sys/class/leds/red/device/grppwm
chown -h 0666 system.system /sys/class/leds/red/device/blink

that should fix the problem

from ubuntu-touch.

nfsprodriver avatar nfsprodriver commented on August 29, 2024 1

disco.zip
The cpp is the source code.

from ubuntu-touch.

bastos77 avatar bastos77 commented on August 29, 2024

I observe when on charger after battery drain during this permanent rebooting the LED is showing function....

from ubuntu-touch.

Stefano0101 avatar Stefano0101 commented on August 29, 2024

Same here on Meizu Pro 5. No charging or notification led function at all.

from ubuntu-touch.

YougoCodes avatar YougoCodes commented on August 29, 2024

FP2 on 15.04 r24

LED does nothing with notifications, but is functional. when running this script:
https://github.com/nfsprodriver/uttweaks/blob/master/disco

the LED indeed displays a disco effect, rotating through all colors.
note: after ending the script with CTRL+Z the led remains on, and on the last displayed color. to shut off the LED, reboot.

from ubuntu-touch.

 avatar commented on August 29, 2024

Its a permissions problem

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

@rubencarneiro can you fix it like you did for hammerhead?

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

I add hammerhead label until we have rolled out the fix. Thx Ruben as always for quick response!

from ubuntu-touch.

vandys avatar vandys commented on August 29, 2024

LED does nothing with notifications, but is functional. when running this script:
https://github.com/nfsprodriver/uttweaks/blob/master/disco

Is there source code somewhere for that binary? TIA...

from ubuntu-touch.

nfsprodriver avatar nfsprodriver commented on August 29, 2024

Where is this file: init.qcom.factory.sh ?

from ubuntu-touch.

 avatar commented on August 29, 2024

https://github.com/ubports/android_device_fairphone_fp2/blob/ubp-5.1/rootdir/root/init.qcom.factory.sh

from ubuntu-touch.

 avatar commented on August 29, 2024

but i fixed leds on init.qcom.rc

Leds

chmod 0666 /sys/class/timed_output/vibrator/enable
chmod 0666 /sys/class/leds/keyboard-backlight/brightness
chmod 0666 /sys/class/leds/lcd-backlight/brightness
chmod 0666 /sys/class/leds/button-backlight/brightness
chmod 0666 /sys/class/leds/jogball-backlight/brightness
chmod 0666 /sys/class/leds/red/brightness
chmod 0666 /sys/class/leds/green/brightness
chmod 0666 /sys/class/leds/blue/brightness
chmod 0666 /sys/class/leds/red/blink
chmod 0666 /sys/class/leds/green/blink
chmod 0666 /sys/class/leds/blue/blink
chmod 0666 /sys/class/leds/led\:flash_torch/brightness

https://github.com/ubports/android_device_fairphone_fp2/blob/ubp-5.1/rootdir/root/init.qcom.rc

from ubuntu-touch.

bastos77 avatar bastos77 commented on August 29, 2024

IN OTA 2 the FP2 has function :-)
It is blinking green when notifications arrive. Thank you for this :-)

But that’s it. No charging information or other infos signalled. Would be great if charging also will be indicated in the future. As mentioned, when phone is off,charging is indicated with RGB (red if empty, green if full)

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

We will close this for the time being, new features for the led will come up later, but all 3 devices have now notification blinks working. Thats what was the original function provided by Canonical.

from ubuntu-touch.

Flohack74 avatar Flohack74 commented on August 29, 2024

Please make a more specific new feature request.

from ubuntu-touch.

bastos77 avatar bastos77 commented on August 29, 2024

(FP2) LED feature request: Charging notification like already working when phone is switched off. GRB: From red when empty, over yellow when half charged to green when fully loaded.
Interesting is, that this behaviour can already be observed if the phone is shut down. So I see a chance to bridge this feature from ?bios? to the OS

from ubuntu-touch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.