Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • phosh phosh
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 124
    • Issues 124
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • phoshphosh
  • Issues
  • #251
Closed
Open
Created Jan 22, 2020 by Todd Weaver@todd

Feature Request: Flashlight on quick settings

Seeing that we can enable the flashlight from a bash script, this is the formal ticket to request the feature be added to the quick settings.

Mockups: https://gitlab.gnome.org/Teams/Design/os-mockups/blob/master/mobile-shell/mobile-shell-screens.png

The bash script that offers a user-prompt for flash light on/off state:

#!/bin/bash

# Enable the LED so we can poll its state
sudo bash -c 'echo 255 > /sys/class/leds/flash_en/brightness'

yad --title flashlight --form \
  --field='Flashlight ON!switch-on-symbolic':fbtn "sudo i2cset -y 1 0x53 0x10 0x1a" \
  --field='Flashlight OFF!switch-off-symbolic':fbtn "sudo i2cset -y 1 0x53 0x10 0x18" \
  --button='Close!gtk-cancel':1

sudo bash -c 'echo 0 > /sys/class/leds/flash_en/brightness'
exit

Bonus if you can adjust the LED brightness :)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking