Just an idea (since the Xperia 10 ii is told to be the next supported device):
the Xperia 10 iii has an otherwise useless Google assistent button. It would be great making it a camera trigger button with SFOS
The camera trigger button is great for one hand shooting (I loved it on the Xperia X and XA2) and a feature I am missing with the Xperia 10 / 10 ii.
So… is there a way to handle that button programmatically? It almost hurts how it’s been there completely unused while it could be such a nice flashlight toggle or play/pause key…
I would prefer if it was possible to assign any of the topmenu shortcuts to this.
So you can have it as flashlight, or wifi toggle, or mute/dnd switch.
I’m sure we’re talking about an optional feature, i.e. one that could be enabled or not.
Anyway, evdev_trace -t reports pressing that button as KEY_01c9 (event3). so I’ve tried to make mce use it by this name and assign another button’s function to it, e.g.
I guess I’ve tried everything that came to my mind. Can’t make that damn button recognized KEY_VOLUMEDOWN which is the same device and handled by the same event3 can be reassigned without any problems whereas this KEY_01c9 just doesn’t react.
FAT WARNING: this is a crucial system package. Do NOT just download an RPM from a random dude on a forum and install it.
Hence I have disabled publishing RPMs for that package.
But you can take the patch and build it yourself.
But now MCE recognizes a KEY_ASSISTANT, you can use /etc/mce/99-evdevfoo.ini to map it to another.
But if they upstream exactly the current changes, Assistant button being Home button is not exactly desireable, and only useful for people who will later remap it.
So Jolla would probably need to create a new function of camera button in a few packages anyways.
But it is cool to see it works!
Another hint: The “home” key event is actually handled in /usr/share/lipstick-jolla-home-qt5/compositor.qml around line 1762 (search for “home-key”).
If you are an adventurous QML hacker you can make it do stuff there.
You can also use the dbus code there to do things in applications.
Be wewwy wewwy careful though, making a mistake in that file will make Lipstick not start.
I’ve already mentioned that I am lazy so instead of installing it I actually just replaced /usr/sbin/mce with the one you built, extracted from your rpm.
Edit: Via /etc/mce/99-something.ini I was only able to remap this key to KEY_POWER. Attempts to remap it to other keys doesn’t seem to work.
I would really love to be able to assign it to KEY_PLAYPAUSE. I guess I will need to do it via /usr/share/lipstick-jolla-home-qt5/compositor.qml… I’ll play with it tomorrow.