Commit Graph
616 Commits
Author SHA1 Message Date
Guido Günther 56059b367c schema: Allow all OSK to use important hint
OSK use the common OSK app-id so allow that too.

Fixes: 4ba029d ("schema: Allow Stevia OSK to override the globla feedback level")
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-07-18 14:28:17 +02:00
Guido Günther 0222bc6738 Merge branch 'key-pressed' into 'main'
Add key press/release events

Closes #85

See merge request agx/feedbackd!90
2025-07-16 19:54:36 +00:00
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
Guido Günther 46790e9efb doc: Sort events alphabetically
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 a separate event for that.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-07-16 19:52:45 +00:00
Guido Günther a37ce16eab Merge branch 'legacy' into 'main'
fbd-dev-led: support leds with legacy naming scheme

See merge request agx/feedbackd!185
2025-07-16 19:39:31 +00:00
Sicelo A. Mhlongo a31c636f14 tests: Test legacy LED name detection
Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
2025-07-12 12:57:36 +02: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
Sicelo A. Mhlongo 8aa7213327 fbd-dev-led: Support LEDs with legacy naming
As noted in include/dt-bindings/leds/common.h in the Linux kernel, the Nokia
N900 has leds that use legacy naming. Until this naming scheme is removed from
the kernel, support it through the use of an additional FEEDBACKD_LED_COLOR
udev property, which must be set to the color corresponding to the LED.

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
2025-06-30 19:11:41 +02:00
Guido Günther d155b2e305 Merge branch 'rel-0.8.3' into 'main'
Release 0.8.3

See merge request agx/feedbackd!184
2025-06-28 07:29:44 +00:00
Guido Günther 62b43a4a88 treewide: Document changes and release 0.8.3
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-06-25 19:44:55 +02:00
Guido Günther 6244a1203e libfeedback: Indicate that the library is cross desktop
The only non generic thing is that we pick up the sound
scheme from GNOME when available but we'd happily extend
that to other DEs.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-06-25 19:43:08 +02:00
Guido Günther 86f3c39aee Merge branch 'udev-gpio-vibra' into 'main'
udev: Align rule for gpio-vibrator

See merge request agx/feedbackd!183
2025-06-25 08:16:08 +00: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
Guido Günther 43d4380271 Merge branch 'udev-more-haptics' into 'main'
udev: Add more haptic driver rules

See merge request agx/feedbackd!182
2025-06-22 17:42:22 +00: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 d643716186 Merge branch 'lib/build_target_library' into 'main'
build: Use library() instead of build_target() for libfeedback

See merge request agx/feedbackd!181
2025-06-13 16:19:10 +00:00
Evangelos Ribeiro Tzaras c6e1637267 build: Use library() instead of build_target() for libfeedback
Originally raised in cellbroadcast, but applies here as well
(because cbd yoinked large parts of meson.build!)

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
2025-06-11 16:34:17 +02:00
Guido Günther a8b2fd40a0 Merge branch 'fbcli-manpage' into 'main'
doc: Update fbcli manpage

See merge request agx/feedbackd!179
2025-05-20 14:08:11 +00:00
Guido Günther 2819e94e8a doc: Update fbcli manpage
There's some more options nowadays

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-05-20 14:05:56 +00:00
Guido Günther 3a978016cb Merge branch 'compile-schema' into 'main'
build: Use gnome.post_install

See merge request agx/feedbackd!180
2025-05-20 14:05:08 +00:00
Guido Günther c05f9c41c0 build: Use gnome.post_install
Allows us to drop a custom script

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-05-11 21:58:38 +02:00
Guido Günther d7d39d18df Merge branch 'rel-0.8.2' into 'main'
treewide: Document changes and release 0.8.2

See merge request agx/feedbackd!178
2025-05-10 08:27:15 +00:00
Guido Günther 4016f35643 treewide: Document changes and release 0.8.2
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-05-09 21:46:59 +02:00
Guido Günther 55559c33b8 Merge branch 'virbra-fix' into 'main'
vibra-pattern: Don't overwrite magnitudes

See merge request agx/feedbackd!177
2025-05-09 19:40:02 +00:00
Guido Günther ee8a9dd553 vibra-pattern: Don't overwrite magnitudes
When determining the value for the rumble we assigned the result to the
value in the array thus potentially overwriting the value from the theme.

This goes unnoticed as long as we don't lower the global `max_strength`
below the magnitude. But when we e.g. set the `max_strength` to
zero the device will fail to rumble when we increase `max_strength`
later on again.

Steps to reproduce:

  - Use an event that used `VibraRumble`, e.g. `button-press`
    in the oneplus,fajita device theme
  - `fbcli -E button-pressed` -> works
  - set haptic feedback to 0%:
    `gsettings set org.sigxcpu.feedbackd max-haptic-strength 0.0`
  - set it back to 100%:
    `gsettings set org.sigxcpu.feedbackd max-haptic-strength 1.0`
  - `fbcli -E button-pressed` -> no feedback

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-05-09 19:37:41 +00:00
Guido Günther 32cf0758d2 vibra: Some style and comment fixes
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-05-09 19:37:41 +00:00
Guido Günther 5cbd5a2893 Merge branch 'led-prio' into 'main'
dev-led: Sort leds by priority

See merge request agx/feedbackd!173
2025-05-06 15:03:42 +00:00
Guido Günther f9f248ef23 fbd-dev-led: Sort leds by priority
This makes sure we e.g. prefer multicolor leds over single color ones
and those that can be on insuspend (qcom) over those that can't.

We can extend this to allow to set the priority via udev/hwdb in the
future.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-05-06 14:54:52 +00:00
Guido Günther 651c4f9fac fbd-dev-led: Ignore leds that can't handle patterns
While in theory we could have themes with only freq = 0 values we
currently assume there can be patterns.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-05-06 14:54:52 +00:00
Guido Günther a2cbcc624f Merge branch 'media-roles' into 'main'
sound: Allow to set media roles

See merge request agx/feedbackd!174
2025-04-30 08:56:30 +00:00
Guido Günther 1e057eaa0c doc: Document media-role property
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-30 10:52:57 +02:00
Guido Günther e23c3401f9 fbd-dev-sound: Set special media role when present
We default to "event".

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-30 10:52:57 +02:00
Guido Günther 9054862071 feedback-sound: Allow to set media role
This will allow us to specify the role when playing the sound.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-30 10:52:57 +02:00
Guido Günther 0f031521e7 feedback-sound: Modernize prop definitions
Gbp-Dch: Ignore
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-30 10:52:57 +02:00
Guido Günther aa23c8f91d tests: Test sound feedback
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-30 10:52:57 +02:00
Guido Günther a5c7adbf1b Merge branch 'rgb-multicolor' into 'main'
fbd-dev-led-multicolor: Ignore LEDs that don't have three values

See merge request agx/feedbackd!176
2025-04-30 08:52:36 +00:00
Guido Günther bbd45b7f6a examples: Add example udev rule for Framework 13 Laptop
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-30 08:50:14 +00:00
Guido Günther a3fdc4852b fbd-dev-led-multicolor: Ignore LEDs that don't have three values
We assume that multicolor LEDs are RGB so reject those that don't
have three components.

E.g. the Framework Laptop exposes a power button LED as multicolor
that only has a white component. This way it gets treated as single color LED.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-30 08:50:14 +00:00
Guido Günther 3cb34ce43f Merge branch 'breaks' into 'main'
packaging: Fix inverted Breaks

See merge request agx/feedbackd!175
2025-04-30 07:59:15 +00:00
Guido Günther f931b19756 packaging: Fix inverted Breaks
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-27 12:48:36 +02:00
Guido Günther 19e0084133 Merge branch 'doc-updates' into 'main'
doc updates

Closes #89

See merge request agx/feedbackd!172
2025-04-24 14:32:27 +00:00
Guido Günther 84b783cbf7 doc: Clarify theme use
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-24 12:57:24 +02:00
Guido Günther eb2cb76635 doc: Fix parent-name reference
Closes: https://gitlab.freedesktop.org/agx/feedbackd/-/issues/89

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-24 12:57:24 +02:00
Guido Günther a646a34741 doc: Reference manpage
Refer to manpage rather than to the classes in the source code.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-24 12:57:24 +02:00
Guido Günther 155814035d doc: Document Sound properties
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-24 12:57:24 +02:00
Guido Günther 78d82207e5 doc: Document missing VibraRumble properties
Fixes f089ad2 ("vibra-rumble: Add magnitude property")

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-24 12:57:24 +02:00
Guido Günther 047f83c6b3 doc: Fix typo
Gbp-Dch: Ignore
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-24 12:57:24 +02:00
Guido Günther 673d372aa0 Merge branch 'ci-fairy' into 'main'
ci: Add ci-fairy check

See merge request agx/feedbackd!171
2025-04-23 20:25:51 +00:00
Guido Günther 69a5174f5f ci: Add ci-fairy check
This makes sure we have Signed-off-by:

Signed-off-by: Guido Günther <agx@sigxcpu.org>
2025-04-23 22:22:02 +02:00