Comments (16)
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.
disco.zip
The cpp is the source code.
from ubuntu-touch.
I observe when on charger after battery drain during this permanent rebooting the LED is showing function....
from ubuntu-touch.
Same here on Meizu Pro 5. No charging or notification led function at all.
from ubuntu-touch.
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.
Its a permissions problem
from ubuntu-touch.
@rubencarneiro can you fix it like you did for hammerhead?
from ubuntu-touch.
I add hammerhead label until we have rolled out the fix. Thx Ruben as always for quick response!
from ubuntu-touch.
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.
Where is this file: init.qcom.factory.sh ?
from ubuntu-touch.
from ubuntu-touch.
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.
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.
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.
Please make a more specific new feature request.
from ubuntu-touch.
(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)
- [OnePlus5] OTA-2 update restarts on recovery HOT 5
- Hide SMS text in a notification bubble on a locked screen HOT 6
- VPN does not work in Vollapone 22 on Ubuntu 20.04 (OTA 2) HOT 2
- OpenStore(v.3.2.2) not working/loading HOT 1
- Improve Spell Checker for French HOT 1
- gralloc4
- Ubuntu touch focal 20.04 for Nexus 4 mako HOT 1
- libhybris android12.0 HOT 1
- Microphone has bad sound during calls on Oneplus 6t
- Cannot switch language
- Update "Promoted Devices" page HOT 1
- qtorganizer-eds: Description field is altered HOT 3
- Bootloop HOT 2
- [WIKI] Xiaomi Redmi Note 7 already have support focal 20.04 HOT 3
- [lavender] I can't clone kernel-xiaomi-lavender repository
- Select Default App to open pdf documents under focal HOT 1
- feature request: esim on focal
- [WIKI] Xiaomi Redmi Note 7 discharges quickly without SIM and active wireless connections HOT 1
- libertine-container-management Bug 'destroy_libertine_container() missing 1 required positional argument: 'force''
- Xperia X: the power button doesn't turn the device on.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubuntu-touch.