PINE64
Flashlight application - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Flashlight application (/showthread.php?tid=10498)

Pages: 1 2 3


RE: Flashlight application - bcnaz - 07-04-2020

Running July 03 nightly build, plus one update, 

  Flashlight is on app the screen and it works !

  Idea    COOL


RE: Flashlight application - antiX-Dave - 07-06-2020

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)


RE: Flashlight application - cefre00 - 07-07-2020

For me it does not work, still. Sad


RE: Flashlight application - wibble - 07-07-2020

(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.


RE: Flashlight application - cefre00 - 07-08-2020

(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?