Flashlight application
#21
Running July 03 nightly build, plus one update, 

  Flashlight is on app the screen and it works !

  Idea    COOL
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
#22
Another suggestion/request if it seems reasonable.
The way I see it, when you are wanting to use the flashlight the surrounding area is dark. Would it be worth while to override the gtk settings making the background dark? Simply to avoid burning your eye sockets with the white background in the dark. I was figuring it could be done by using something like
Code:
GdkColor background
background.red = 0;
background.green = 0;
background.blue = 0;

new_style = gtk_rc_style_new ();
new_style ->fg[GTK_STATE_NORMAL] = color;

However there is probably a nicer way to do this...

Currently I am specifying a dark gtk variant through a wrapper script like
Code:
#!/bin/bash
GTK_THEME=Adwaita:dark flashlight;
exit;
and altering the .desktop file to use the wrapper script. Not sure why having the theme specification directly in the .desktop file does not work.

Edit:
After writing this and thinking it over for a nicer way... I think the phone has a light sensor for hardware that must be working for automatic brightness. Is this accessed through /sys? I would like to look into changing the gtk theme to the dark variant if the light sensor level is low/showing dark. Then burning your eye sockets is not as concerning anymore and also would work for other apps (like maps)
#23
For me it does not work, still. Sad
#24
(07-07-2020, 01:33 AM)cefre00 Wrote: For me it does not work, still. Sad
Check which kernel you're running (uname -a or similar) - while the updates had installed the latest kernel for me, it was still booting the old 5.6 series kernel which was also installed. After running 'dpkg-reconfigure linux-image-5.7-pinephone' the symlinks in /boot were pointing to the 5.7 one instead of the 5.6. After reboot it was on the 5.7 kernel, and flashlight was working.
#25
(07-07-2020, 09:20 AM)wibble Wrote:
(07-07-2020, 01:33 AM)cefre00 Wrote: For me it does not work, still. Sad
Check which kernel you're running (uname -a or similar) - while the updates had installed the latest kernel for me, it was still booting the old 5.6 series kernel which was also installed. After running 'dpkg-reconfigure linux-image-5.7-pinephone' the symlinks in /boot were pointing to the 5.7 one instead of the 5.6. After reboot it was on the 5.7 kernel, and flashlight was working.

Thank you really much! The kernel was not installed but I could install it and now the proper one is used. The application itself works fine. Smile Thanks again!

EDIT: never mind the below, after a dist-upgrade it got resolved Wink
Different topic, or off topic: this did not solve the camera, is there any other kernel or image version I should use to get that working too?


Possibly Related Threads…
Thread Author Replies Views Last Post
  Auto start application on Phosh login Zebulon Walton 8 5,105 10-14-2023, 06:29 AM
Last Post: alaraajavamma
  Flashlight/Torch Barugon 6 5,813 10-18-2021, 08:31 AM
Last Post: ragreenburg
  How Do I Perform a Chatty Application Reinstall? rrholmes 2 2,841 07-13-2021, 01:11 AM
Last Post: rrholmes
Sad Problems with Twinkle SIP Application, strerror_r is not available phone123 0 1,803 07-04-2021, 12:58 PM
Last Post: phone123
  Application "Software" crashes when i tap on any category User 20385 0 1,888 11-20-2020, 03:59 AM
Last Post: User 20385
Wink Rockbox as an Application on Pinephone c3l@ 2 3,767 10-14-2020, 06:46 PM
Last Post: visiblink

Forum Jump:


Users browsing this thread: 1 Guest(s)