Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1741788
| From | David Lin <dtwlin@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Vibrations in input vs. LED was Re: [PATCH v2 0/3] led: ledtrig-transient: add support for hrtimer |
| Date | 2017-09-28 21:30 +0200 |
| Message-ID | <uuMFr-4zB-5@gated-at.bofh.it> (permalink) |
| References | (4 earlier) <uq3GV-6Mo-1@gated-at.bofh.it> <uq6Ot-lC-3@gated-at.bofh.it> <uq7rc-OY-17@gated-at.bofh.it> <uuzfb-4BT-1@gated-at.bofh.it> <uuzRT-4QC-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Sep 27, 2017 at 10:43 PM, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: >>One thing I noticed is that input_ff_create_memless() also does not >>use high-resolution timer hence it also does not have the stop-time >>precision that I'm looking for. > > I'll take patches for high resolution timers in ff memless, they should also help with more accurate scheduling of ramping up and fading of events. Thanks. > >> >>Another thing is that ff_reply duration value is maxed-out at 32767 ms >>(u16) while the Android/userspace requires size long for performing >>long notification alert. >> > > You need unattended vibrations lasting longer than 30 seconds? Anyway, replay.length == 0 means endless IIRC, so you only need to schedule stopping. We still will clean up properly if your process crashes or exits or closes the fd. Yes, it's up to the application to vibrate for as long as it requires. Is there any concern making the duration variable a type long? [If this is getting off-topic, I'll follow up with another email]
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Vibrations in input vs. LED was Re: [PATCH v2 0/3] led: ledtrig-transient: add support for hrtimer David Lin <dtwlin@google.com> - 2017-09-28 07:10 +0200
Re: Vibrations in input vs. LED was Re: [PATCH v2 0/3] led: ledtrig-transient: add support for hrtimer Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-09-28 07:50 +0200
Re: Vibrations in input vs. LED was Re: [PATCH v2 0/3] led: ledtrig-transient: add support for hrtimer David Lin <dtwlin@google.com> - 2017-09-28 21:30 +0200
csiph-web