1. 24 Oct, 2019 1 commit
    • spiiroin's avatar
      [fingerprint] Use gesture actions for fingerprint wake up. Fixes JB#47437 · 64e71c69
      spiiroin authored
      Originally fingerprint wake up was modeled to:
      - wake up display like double tap does
      - exit from lockscreen when device is not locked, or
      - indicate need to unlock when device is locked
      i.e. behave as if double power key press were made.
      
      This however means that fingerprint wake up never ends up showing
      lockscreen where things like date and time would be visible.
      
      Switch from handling fingerprint wake up as something explicit into
      treating it as just another gesture with configurable actions.
      
      Add "tkunlock2" gesture action, which behaves like "tkunlock" when
      device is unlocked and does nothing when device is locked.
      
      After which users can tweak fingerprint behavior with mcetool.
      
      mcetool --set-touchscreen-gesture-actions=fpwakeup,unblank,tkunlock
      
        The default behavior.
      
      mcetool --set-touchscreen-gesture-actions=fpwakeup,unblank,tkunlock2
      
        Exits from lockscreen only if device is not locked.
      
      mcetool --set-touchscreen-gesture-actions=fpwakeup,unblank
      
        Just wakes up display, leaving lockscreen status as it is.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      64e71c69
  2. 17 May, 2019 1 commit
    • spiiroin's avatar
      [mce] Unify license blurbs. JB#33684 · 091d6e7e
      spiiroin authored
      MCE uses LGPL v2.1 (without "or later") license, but due to missing / use
      of different license blurbs this is not always clear enough.
      
      Replace blurbs referring to "LGPLv2" short form which could be either
      LGPL v2.0 or v2.1 without "or later" with the same blurb that is used
      in mce.c file.
      
      Similarly add blurb to source files that are missing one altogether.
      
      Add all authors that can be derived from git logs.
      
      Update Jolla Ltd. copyright statements to match git activity.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      091d6e7e
  3. 31 Mar, 2016 2 commits
  4. 07 Mar, 2016 1 commit
    • spiiroin's avatar
      [powerkey] Add enablers for configuring touchscreen gestures. Fixes MER#1537 · 9fe42f8b
      spiiroin authored
      Traditionally the only touchscreen gesture that has been able to wake
      the device from suspend has been the double tap. Now there are devices
      that support more gestures for waking up the device, but there are no
      means to differentiate / configure actions taken based on the various
      gestures.
      
      MCE already assumes EV_MSC:MSC_GESTURE event with value 4 is double tap.
      Extend on this and assume that also other gestures get reported in the
      similar fashion.
      
      Move gesture event handling from tklock.c to powerkey.c.
      
      Drop support for double tap setting and make gesture actions configurable
      similarly to what can be done with power key presses.
      
      Increase the number of user configurable dbus actions to 10. Tweak the
      related mcetool options so that instead of N similar but separate
      options (--set-powerkey-dbus-actionN=args) there is just one that takes
      action index as the first parameter (--set-powerkey-dbus-action=N,args).
      
      Add mcetool --set-touchscreen-gesture-actions options for configuring the
      gesture actions. Retain the old --set-doubletap-mode as an alias for the
      sake of backwards compatibility.
      9fe42f8b
  5. 10 Sep, 2015 1 commit
  6. 05 Feb, 2015 1 commit
    • spiiroin's avatar
      Increase the amount of configurable power key dbus actions to six · 9d72d9c0
      spiiroin authored
      While refactoring the power key handler, it was assumed that two dbus
      actions would be enough. Turns out that the assumption was wrong.
      
      
      Increase the amount of customizable dbus actions from two to six, so
      that it is now possible to configure one unique dbus action for each
      combination of { short, long, double press } x {from display on, off }.
      
      [mce] Increase the amount of configurable power key dbus actions to six. Fixes NEMO#781
      9d72d9c0
  7. 24 Oct, 2014 1 commit
    • spiiroin's avatar
      Rewrite powerkey handler to allow more flexible configuration · 6154e96c
      spiiroin authored
      Taking double powerkey presses in use caused unconditional delay for
      single press handling. The actions that could be configured to be taken
      were not be differentiated based on display state, which made it
      impossible do one thing from display off and another one from display on.
      And since static configuration was used, changes did not take effect
      without restarting mce.
      
      Make possible actions as small and simple as possible. Allow combining
      them freely to choose actions taken. Use separate action combinations
      depending on whether display is on or off. Execute common parts of
      single and double press actions immediately when 1st powerkey press
      is released.
      
      Allow more flexibility for using custom dbus actions by allowing user
      configured method call to be made instead of signal broadcast.
      
      Use dynamic runtime changeable settings instead of static configuration
      from ini-files and add options to mcetool for changing all of them.
      
      Use the new functionality to:
      - apply device lock when double press is made from display on
      - unblank and hide lockscreen when double press is made from display off
      
      [mce] Rewrite powerkey handler to allow more flexible configuration. Fixes JB#23653
      6154e96c
  8. 08 Sep, 2014 2 commits
    • spiiroin's avatar
      Allow bypassing stuck proximity sensor via multiple power button presses · d6a7d311
      spiiroin authored
      If proximity sensor gets stuck to "covered" state due to dirt/fault
      it is possible that the whole phone is practically unusable.
      
      While the sensor still needs to be cleaned or possibly repaired for fully
      normal behavior, make it possible for users to recover from this state by
      by forcing the proximity sensor to "uncovered" state when the power key
      is repeatedly pressed.
      
      By default this requires 3 power key presses within 333 ms from
      each other. Customization can be done via mcetool options
      
            --set-powerkey-ps-override-count=<press-count>
            --set-powerkey-ps-override-timeout=<ms>
      
      [mce] Allow bypassing stuck proximity sensor via multiple power button presses
      d6a7d311
    • spiiroin's avatar
      Add "proximity2" power key action mode · c16cd9f5
      spiiroin authored
      The already existing "proximity" mode blocks power key always when
      proximity sensor is covered. Which means careless power button press
      can leave the display on if the hand happens to trigger the sensor.
      
      Add new "proximity2" mode that blocks power key actions only when
      proximity sensor is covered and display is already off.
      
      [mce] Add "proximity2" power key action mode
      c16cd9f5
  9. 04 Aug, 2014 1 commit
    • spiiroin's avatar
      Allow blanking via lpm when powerkey is pressed · 97ae90c0
      spiiroin authored
      By default pressing power key now goes to lpm mode before really
      powering off the display.
      
      The default can be changed via:
        mcetool --set-powerkey-blanking=off|lpm
      
      [mce] Allow blanking via lpm when powerkey is pressed
      97ae90c0
  10. 26 May, 2014 1 commit
  11. 13 May, 2014 1 commit
    • spiiroin's avatar
      Fix white space issues in mce code base · 9cc0f544
      spiiroin authored
      No functional changes.
      
      Files where majority of lines are indented with tabulators are changed
      so that every beginning of line uses tabulators for 8 character skips.
      The rest of the files use only space characters for indentation.
      
      Remove excess empty lines from all source files.
      
      Make indentation levels uniform within each source file.
      
      [mce] Fix white space issues in mce code base. Fixes JB#18915
      9cc0f544
  12. 24 Mar, 2014 1 commit
    • spiiroin's avatar
      Add option for disabling power key when proximity is covered · 1fa79ec6
      spiiroin authored
      Similarly to double tap, also power key actions can now be
      * always allowed
      * never allowed
      * allowed if proximity sensor is not covered
      
      Default is "always", i.e. power key works the same way as before.
      
      The setting can be changed via mcetool option
        -Z, --set-powerkey-action=<never|always|proximity>
      
      The setting persists over mce / device restarts.
      
      [mce] Add option for disabling power key when proximity is covered
      1fa79ec6
  13. 16 Dec, 2010 1 commit