Guido Günther
4ba029df17
schema: Allow Stevia OSK to override the globla feedback level
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-07-16 19:52:45 +00:00
Guido Günther
ed523e8755
data: Add key press/release events
...
While we have "button-{pressed,released}" events there's often the
desire to control sound for key presses of e.g. on screen keyboards too.
Add separate events for that.
This allows us to e.g. add a particular sound for OSK key presses and
OSKs can send this with an `important` hint so they're also usable
in silent mode.
Closes: https://gitlab.freedesktop.org/agx/feedbackd/-/issues/85
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-07-16 19:52:45 +00:00
Sicelo A. Mhlongo
cf848e08ca
udev: Support legacy LED naming
...
The Nokia N900 and Motorola Droid 4 use obsolete naming for LEDs, as indicated
in include/dt-bindings/leds/common.h in the Linux kernel. Since the obsolete
naming is still in wide use, support them in feedbackd until it is eventually
removed in the kernel.
Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com >
2025-06-30 19:12:00 +02:00
Luca Weiss
8e69e4d0ee
udev: Align rules for gpio/pwm-vibrator
...
Update the rule for the "platform-vibrator" entry to be like all the other rules, matching by
ATTRS{name} instead of ENV{ID_PATH}. Since it was matching for both gpio-vibrator and pwm-vibrator,
add entries for both.
Tested on Fairphone 2 which uses the gpio-vibrator driver.
Signed-off-by: Luca Weiss <luca@lucaweiss.eu >
2025-06-24 20:42:40 +02:00
Luca Weiss
61660d8684
udev: Add more haptic driver rules
...
Mostly a compilation of different rules added to postmarketOS over the
years.
Signed-off-by: Luca Weiss <luca@lucaweiss.eu >
2025-06-22 16:41:02 +02:00
Guido Günther
3d062c0952
default/theme: Use [0.0, 1.0] for vibra-periodic
...
We switch `message-new-cellbroadcast` to VibraPeriodic as that is better
recognizable than the periodic pattern.
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-03-21 12:15:57 +01:00
Guido Günther
24aafefd0a
data: Make button press feedback less intrusive
...
This way it can be kept enabled in more situations.
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-03-16 09:29:58 +00:00
Guido Günther
5da0e4ff5d
data: Add an event for notification-new-generic
...
We didn't do so until now to not make people go crazy with buzzing
phones. Now that we can fine tune the feedback strength better lets see
how this works.
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-03-16 09:29:58 +00:00
Evangelos Ribeiro Tzaras
9dd6174e53
tests: Depend on compiled schemas
...
The carefree developer might try running meson test
before meson compile, leaving them with failing
feedback-vibra and feedback-profile tests:
Start of feedbackd tests
Start of fbd tests
Start of feedback-vibra tests
fbd-feedback-manager-DEBUG: No vibra capable device found
fbd-feedback-manager-DEBUG: Failed to init leds device: No usable LEDs found
not ok /feedbackd/fbd/feedback-vibra/pattern - GLib-GIO-FATAL-ERROR: No GSettings schemas are installed on the system
Bail out!
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu >
2025-03-16 09:33:45 +01:00
Guido Günther
bb1b5d0e1f
feedback-vibra: Add and track max-haptic-strength gsetting
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-03-09 12:28:08 +01:00
Guido Günther
8e4f15758b
data: Refresh schema when it changed
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-03-08 22:14:54 +01:00
Guido Günther
70fd0a8759
data/haptic: Document duration unit in the protocol
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-03-06 10:57:37 +01:00
Guido Günther
836fbe0920
treewide: Fix typos
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-03-06 10:57:37 +01:00
Guido Günther
99cc84c646
build: Format meson files
...
This will make adding future files less noisy.
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-03-05 11:30:50 +00:00
Guido Günther
e7df74f5cc
data: Document sound-file hint
...
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2025-01-26 16:12:13 +01:00
Guido Günther
93dc859f7d
data: Add vibration API
...
The API is meant to trigger the given vibration pattern on the haptic
device. The pattern is sequence of relative amplitude and duration
pairs. A magnitude of 0.0 indicates a pause.
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2024-12-15 18:54:40 +01:00
Guido Günther
fb64c9dcfb
data: Really add gnome-clocks
...
Fixes d5b2042 ("data: Add gnome-clocks to allow-important list")
Signed-off-by: Guido Günther <agx@sigxcpu.org >
2024-12-12 17:36:31 +01:00
Guido Günther
f629ef431c
theme: Add notification-missed-new
...
We'll remove message-new-notification somewhat later to not break
existing themes.
This reverts commit 5cc9713984778e61c4218e8ff6d896324cba5d5d.
2024-10-02 14:48:01 +02:00
Guido Günther
d5b2042475
data: Add gnome-clocks to allow-important list
...
This will allow us to drop the override from phosh
2024-09-27 07:27:08 +00:00
Guido Günther
2293393999
data: Allow alert-slider to override the feedback level
...
This allows the alert-slider to also emit feedback when phone is in
silent mode.
2024-09-27 07:27:08 +00:00
Guido Günther
7ea55aeaf5
data: Add systemd unit to start alert slider service
2024-09-27 07:27:08 +00:00
Guido Günther
8c27a8f5d2
data: Allow logged in users to access the alert slider
2024-09-27 07:27:08 +00:00
Robert Mader
30bafbfe55
udev-rules: Add support for haptics on Google Sargo
...
The drv2624 driver isn't in mainline Linux as of Linux 6.11.
Taken from
https://gitlab.com/postmarketOS/pmaports/-/blob/434e012950bd121b2b9295fcf0699ed8af287a3d/device/community/device-google-sargo/90-feedbackd-drv2624.rules
2024-09-25 12:13:33 +00:00
Guido Günther
dc12f3016f
theme: Add events for cellbroadcast
2024-09-23 12:18:26 +00:00
Guido Günther
9007766fa9
udev: Add support for haptics on Oneplus Enchilada / Fajita
...
The spmi_haptics driver isn't in mainline Linux as of Linux 6.11.
2024-09-07 16:12:01 +02:00
Guido Günther
47b0b1c0e7
build: Install udev rule
...
Don't hide it in the packaging as that makes it easier to miss.
This makes debian/ really only carry packaging information.
2024-08-07 12:14:26 +02:00
Guido Günther
8f67dbd120
feedback-led: Allow to prefer flash LEDs over notification LEDs
2024-06-15 11:14:40 +02:00
Guido Günther
afdeb8d56f
theme: Use different colors for emails and calls
...
This makes them a bit simpler to distinguish
2024-06-13 15:19:08 +02:00
Guido Günther
7640a73e82
data/schema: Add 'allow-override' gsetting
...
This allows to list apps that can override the currently
effective feedback level by setting the 'impotant' hint in
the event.
2024-04-20 13:21:56 +00:00
Guido Günther
f71ece5d8b
data/dbus: Document important hint
...
The important hint can be used by apps to override the current per app
or system wide feedback level (if the feedback server allows it).
2024-04-20 13:21:56 +00:00
Guido Günther
106663e41c
data/dbus: Document current flags
2024-04-20 13:21:56 +00:00
Guido Günther
d73677dfff
build: Validate schema file
2024-04-20 13:21:56 +00:00
Guido Günther
0d50276f94
feedback-theme: Add screen-shot event
...
Used to indicate that a screen shot is being taken.
2023-01-02 11:45:11 +01:00
Guido Günther
c3beac7d41
data: Allow to set feedback theme
2022-12-11 17:34:38 +01:00
Guido Günther
7b7422f98e
build: Bump required meson version
2022-12-06 11:49:13 +01:00
Guido Günther
2e081602f6
data: Drop outdated comment
...
We use the hints since some time, see lfb_event_set_feedback_profile().
2022-07-20 18:32:47 +00:00
Evangelos Ribeiro Tzaras
b2a8061cdc
doc: Clarify that the timeout is in seconds
2021-10-29 18:00:02 +02:00
Evangelos Ribeiro Tzaras
5a439107bc
feedback-theme: Add phone-outgoing-busy event
...
Named after the corresponding notification from the sound naming spec:
http://0pointer.de/public/sound-naming-spec.html
2021-10-08 14:12:42 +00:00
Evangelos Ribeiro Tzaras
48892de89a
feedback-theme: Add phone-failure event
...
Named after the corresponding notification from the sound naming spec:
http://0pointer.de/public/sound-naming-spec.html
2021-10-08 14:12:42 +00:00
Evangelos Ribeiro Tzaras
c783918f5b
feedback-theme: Add phone-hangup event
...
Named after the corresponding notification from the sound naming spec:
http://0pointer.de/public/sound-naming-spec.html
2021-10-08 14:12:42 +00:00
Guido Günther
83ba584a53
feedback-theme: Add camera related events
2021-09-06 12:49:41 +02:00
Dylan Van Assche
e4cdd0bcff
data/meson.build: fix validating theme files
...
The foreach loop was not used to validate all the include theme files
2021-01-01 18:37:30 +01:00
Guido Günther
200ec77362
Add generic missed notification
...
This can be used e.g. by the shell for general purpose notifictions
but also for in app notifications of the foreground app.
2020-07-05 19:25:44 +00:00
Guido Günther
75f6888334
data: Use LED feedback for missed calls, IMs and SMS
2020-07-05 19:25:44 +00:00
Guido Günther
20ba06a193
data: Drop phone-missed-call in 'quite' profile
...
Only want LEDs there.
2020-07-05 19:25:44 +00:00
Guido Günther
1af281d8e2
data: Clarify DBus wording
2020-06-02 16:36:24 +00:00
Sebastian Krzyszkowiak
a985d0dd9f
data: Add button-released event
2020-05-28 16:05:10 +00:00
Sebastian Krzyszkowiak
ff1c2993e6
data: Lower rumble time for window-close and button-pressed even more
...
Haptic feedback for touchscreen input should be as subtle as possible
to not make it distracting.
2020-05-28 16:05:10 +00:00
Guido Günther
10b1c90d57
data: Lower rumble time for window-close and button press
...
It's too intrusive otherwise
2020-04-20 11:31:14 +02:00
Guido Günther
9cb62dee1d
Allow to lower the feedback level per application
...
We munge the application id the same way as it's done
for notifications so these can eventually move into
the same schema.
2020-04-20 07:23:44 +00:00