Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch button from shortcut menu not working #2

Open
verymilan opened this issue Jan 24, 2017 · 7 comments
Open

torch button from shortcut menu not working #2

verymilan opened this issue Jan 24, 2017 · 7 comments

Comments

@verymilan
Copy link

I just noticed that the torch button in the pull-down menu, in the notification page is not working.
This is not a big deal since we have the awesome gestructures (finally <3) but it is still an issue. :)

@wdehoog
Copy link
Owner

wdehoog commented Jan 24, 2017

You mean the shortcut icon? It's working for me.

@verymilan
Copy link
Author

verymilan commented Jan 24, 2017

I mean the one which is disabled by default (custom shortcuts).
Gestructure is still working for me but yeah - the button won't work.^^
I don't know which command it runs - if you know and wanna tell me, i could (maybe) debug.

@wdehoog
Copy link
Owner

wdehoog commented Jan 24, 2017

Weird. You really mean the one from Settings -> Event View -> Select shortcuts -> Flashlight? I have no idea what is uses to toggle the torch. Maybe dbus-monitor shows something.

@wdehoog
Copy link
Owner

wdehoog commented Jan 24, 2017

When pressing the shortcut dbus-monitor shows:

method call time=1485296181.960928 sender=:1.15 -> destination=com.jolla.settings.system.flashlight serial=594 path=/com/jolla/settings/system/flashlight; interface=com.jolla.settings.system.flashlight; member=toggleFlashlight
signal time=1485296182.524140 sender=:1.78 -> destination=(null destination) serial=16 path=/com/jolla/settings/system/flashlight; interface=com.jolla.settings.system.flashlight; member=flashlightOnChanged
boolean true

method call time=1485296182.772914 sender=:1.15 -> destination=com.jolla.settings.system.flashlight serial=595 path=/com/jolla/settings/system/flashlight; interface=com.jolla.settings.system.flashlight; member=toggleFlashlight
signal time=1485296182.895390 sender=:1.78 -> destination=(null destination) serial=17 path=/com/jolla/settings/system/flashlight; interface=com.jolla.settings.system.flashlight; member=flashlightOnChanged
boolean false

You can trigger it yourself using:
dbus-send --print-reply --type=method_call --dest=com.jolla.settings.system.flashlight /com/jolla/settings/system/flashlight com.jolla.settings.system.flashlight.toggleFlashlight

@verymilan
Copy link
Author

You really mean the one from Settings -> Event View -> Select shortcuts -> Flashlight?

Yes

Too bad, it only returns:

method return time=1485297340.273115 sender=:1.141 -> destination=:1.140 serial=3 reply_serial=2
   boolean true

I hoped for an error message to work with.

@wdehoog
Copy link
Owner

wdehoog commented Jan 25, 2017

Currently I have this in my /init.bacon.rc:

on boot
# Torch permissions.
chown system camera /sys/class/leds/led:flash_torch/brightness
chmod 0660 /sys/class/leds/led:flash_torch/brightness

Can you check if you have it as well and what the actual permissions are on '/sys/class/leds/led:flash_torch/brightness'

@verymilan
Copy link
Author

I am sorry but i am not able to compare anymore since sailfish (sailfish itself) lacks too many things i need for production right now.
I should play around with multirom somewhen... .
Looks like my system fails to decompress the backup i made with twrp, otherwise i may would be able to mount it and take a look.
I may be back with sailfish on my phone in some weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants