Flashlight application
#1
Hi there!

I know we don't have a working camera yet, but there's no reason we shouldn't be able to use the flash LED, right?
So I've hacked a small app to do just that: turn the flashlight on and off.

You can install it with:
Code:
sudo apt install flashlight
(requires a reboot)

Source code is there (yes, it's a hack, like I just said)

Note: you need an up-to-date kernel, so please make sure you have installed the latest upgrades first
  Reply
#2
Love this! I'm currently running bleeding edge (i.e the nightly from yesterday+ the latest kernel.) and this doesn't seem to work. But still very cool Smile
  Reply
#3
(06-30-2020, 02:42 AM)a-wai Wrote: Hi there!

I know we don't have a working camera yet, but there's no reason we shouldn't be able to use the flash LED, right?
So I've hacked a small app to do just that: turn the flashlight on and off.

You can install it with:
Code:
sudo apt install flashlight
(requires a reboot)

Source code is there (yes, it's a hack, like I just said)

Note: you need an up-to-date kernel, so please make sure you have installed the latest upgrades first

hi a-wai

I just installed it and it works.
  Reply
#4
(06-30-2020, 05:12 AM)chris_02 Wrote:
(06-30-2020, 02:42 AM)a-wai Wrote: Hi there!

I know we don't have a working camera yet, but there's no reason we shouldn't be able to use the flash LED, right?
So I've hacked a small app to do just that: turn the flashlight on and off.

You can install it with:
Code:
sudo apt install flashlight
(requires a reboot)

Source code is there (yes, it's a hack, like I just said)

Note: you need an up-to-date kernel, so please make sure you have installed the latest upgrades first

hi a-wai

I just installed it and it works.

Just installed it too , works Smile

One of the nicest features on my Moto G6 , is the ability to turn on/off the flashlight by "shaking" the phone from side to side.
That would be so cool , if the PP could do the same.

Thank you for all your hard work to all dev's.

/Bingo
  Reply
#5
upgraded to the latest nightly u-boot packages and it has fixed it for me, now works perfectly Smile
  Reply
#6
Just installed and it does as it says thanks ;-)
  Reply
#7
Works great, thanks!
  Reply
#8
Thanks a-wai - that's great! It's a small thing, but something I use fairly frequently on my Android phone, so I appreciate you adding it to Mobian.
  Reply
#9
(06-30-2020, 05:06 AM)patrickjquinn Wrote: Love this! I'm currently running bleeding edge (i.e the nightly from yesterday+ the latest kernel.) and this doesn't seem to work. But still very cool Smile


I had the same problem. The key was to make sure you have the latest software installed.
Even after having just performed an "apt dist-upgrade"; After double checking it turned out that the mobian-base, mobian-phosh-base, mobian-phosh-games, and mobian-phosh-phone packages where held back. Running
Code:
apt dist-upgrade mobian-base mobian-phosh-base mobian-phosh-games mobian-phosh-phone
Sorted that and the flashlight app was then working.
  Reply
#10
Will this flashlight app soon be in the nightly build,    or in a soon to be release ?
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)