en.osm.town is one of the many independent Mastodon servers you can use to participate in the fediverse.
An independent, community of OpenStreetMap people on the Fediverse/Mastodon. Funding graciously provided by the OpenStreetMap Foundation.

Server stats:

248
active users

#feedbackd

1 post1 participant0 posts today

Ever since adding the `Haptic` API to #feedbackd for games I wanted to make the `VibraPattern` available to feedback themes as well as this allows for more nuanced feedback.

This allows us to e.g. use more subtle feedback for OSK button presses than for 📢 of incoming SMS.

Opened MRs to make that possible and
while at that I made the maximum strength for all events confiurable too. It's a bit hard to 👂 in the 📽️ but it's there. Hopefully this makes it into #phosh 0.46:

I always wanted a simple way to put the phone to silent mode when e.g. placing it on the table next to the 🛏️ . Since Biemster got NFC to work on the Oneplus 6/6T (github.com/biemster/pmos-openb) we can leverage that and have feedbackd's profile adjusted when certain RFIDs are seen (source.puri.sm/Librem5/feedbac). For this to land we want to move the NFC support from a python script to s.th. like nfcd (github.com/biemster/pmos-openb). Help on this would be appreciated.

We had a discussion in matrix (kicked off by @fizzo) if we could make telegram-desktop's notification adhere to #phosh's full/quiet/silent profile. Turns out (github.com/telegramdesktop/tde) that the app detects the notifications servers sound capability already so with gitlab.gnome.org/World/Phosh/p and the corresponding #feedbackd MR this should work.

As I'm not a #telegram user, testing feedback would be welcome.

In preparation for the next #phosh release we've released #feedbackd 0.6.0 🎉 :

This adds support for a new haptic API to feedbackd that can be used by e.g. games to trigger vibration patterns or by browsers to implement `navigator.vibrate()`.

source.puri.sm/Librem5/feedbac

GitLabfeedbackd 0.6.0 · Librem5 / feedbackd · GitLab Summary of changes feedbackd: Add vibration API. Gives e.g. games more control over haptic and will allow browsers to...

Receiving SMS plays a long tune on my #Librem5. For a few persons I'd like to have this tune played also if they send me a message using #matrix.

A problem is that the #fractal flatpak does not use #feedbackd yet to signal new messages and on #PureOS #Byzantium there's no way to define different sounds for different notification events.

So I started testing a small script to read notifications and trigger feedback for messages coming from an account containing some string:


#!/usr/bin/python3

import gi
import time
gi.require_version('Lfb', '0.0')
from gi.repository import Lfb
from gi.repository import GLib
import dbus
from dbus.mainloop.glib import DBusGMainLoop

def print_notification(bus, message):
    keys = ["app_name", "replaces_id", "app_icon", "summary",
          "body", "actions", "hints", "expire_timeout"]
    args = message.get_args_list()
    if len(args) == 8:
        notification = dict([(keys[i], args[i]) for i in range(8)])
        if "account_i_want_to_be_notified_for_like_it_would_be_sms" in notification["summary"]:
            print( notification["summary"], ': ', notification["body"] )
            event.trigger_feedback()

Lfb.init('org.sigxcpu.lfbexample')
event = Lfb.Event.new('message-new-sms')
loop = DBusGMainLoop(set_as_default=True)
session_bus = dbus.SessionBus()
session_bus.add_match_string("type='method_call',interface='org.freedesktop.Notifications',member='Notify',eavesdrop=true")
session_bus.add_message_filter(print_notification)

GLib.MainLoop().run()

In preparation for the next #phosh release we've released #feedbackd 0.4.0 🎉 :

- Support `hw_pattern` on devices using qcom-lpg. This allows to keep LEDs on in suspend on these 📱
- Support RGB color mixing for multicolor leds
- Allow to use (camera) flash LEDs as notificaton LED
- Immediately end "too noisy" feedbacks when switching profile levels
- Internal cleanups and restructuring to cater for different LED types.

source.puri.sm/Librem5/feedbac

This 🧵 has some demos: fosstodon.org/@phosh/112625626

👇

GitLabfeedbackd 0.4.0 · Librem5 / feedbackd · GitLab Summary of changes Support hw_pattern on devices using qcom-lpg. This allows to keep LEDs on in suspend.
Replied in thread

Finally we now end the emitted feedback when switching the profile level. We can use this in #phosh to put the device into silent mode when pressing Vol- on
incoming calls when the phone is locked (turn on audio for this one):

Continued thread

In some situations using the camera flash instead of the status LED can be useful (e.g. if you prefer to put your phone with the display side down on the table). A new setting allows to prefer the flash led (giving us room to expand this to e.g. basing this on other factors like device orientation later on):

Continued thread

Initially #feedbackd supported a set of color names (that matched the LED color) as multicolor LED support was still in the makings in the kernel. With the next release you can use arbitrary RGB colors (#RRGGBB). On single color
leds we still fall back to that color.

#feedbackd uses the 📱's notification 💡 on events like missed phone calls, notifications, etc to alert the user.

Thanks to @dylanvanassche this now supports hw-pattern LEDs (currently for devices using the qcom-lpg LED driver found in various📱).

This doesn't only free the CPU from processing the blink patterns but more importantly allows us to keep the LEDs blinking in suspend so we have another missing piece in place to make suspend work nicely.