1. 16 Oct, 2019 1 commit
    • spiiroin's avatar
      [display] Retry failing brightness adjustments. Fixes JB#47450 · 2783a90d
      spiiroin authored
      Display brightness control logic has been written with framebuffer
      interface in mind and consequently devices utilizing drm/dri are
      suffering from diagnostic logging noise from incorrectly timed
      adjustment attempts and outright failures to set desired brightness.
      
      Store desired and successfully activated brightness levels separately
      to ease adjustment failure handling and avoiding unwanted brightness
      pumping for example during compositor switchovers.
      
      Adjust display state machine so that it performs brightness level
      checkups during unblank also in states relevant for drm/dri logic.
      
      If brightness adjustment fails after unblank, retry periodically.
      
      Reduce amount of repetitive diagnostic noise caused by differing
      timing requirements between framebuffer and drm/dri interfaces.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      2783a90d
  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. 26 Oct, 2018 1 commit
  4. 17 Oct, 2018 1 commit
    • spiiroin's avatar
      [mce-io] Augment resume detection with timerfd source. Fixes JB#43297 · f5e7d2f9
      spiiroin authored
      MCE needs to perform some tasks like rethinking timer expiration when device
      resumes from suspend. The resume detection is built on assumption that some
      input devices will send EV_SYN events on resume. In devices where such events
      are not emitted, on resume tasks can get indefinitely delayed.
      
      Take advantage on the fact that system time gets updated on resume, and
      use timerfd to trigger resume detection logic whenever system time changes.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      f5e7d2f9
  5. 07 Jan, 2016 1 commit
    • spiiroin's avatar
      [iomon] Provide context pointer for iomon callbacks. JB#33644 · a8c4d461
      spiiroin authored
      The source of input data is not made known to io-monitor callback
      functions. This makes it difficult to use the same functions for
      dealing with input from several similar input device nodes.
      
      Pass the io-monitor object pointer to the callback functions. Then
      callback functions can utilize custom per device state data attached
      to the io-monitor when needed.
      a8c4d461
  6. 23 Dec, 2014 2 commits
    • spiiroin's avatar
      Allow attaching of context specific user data to mce io monitors · 63960dd2
      spiiroin authored
      After io monitor is created, used data can be attached to it via
      mce_io_mon_set_user_data().
      
      The existing notification interface is not changed, i.e. the user
      data is not automatically passed to notification callbacks and
      must be queried via mce_io_mon_get_user_data() function when needed.
      
      If free callback is provided, the user data is released when the
      io monitor itself gets deleted.
      
      [mce] Allow attaching of context specific user data to mce io monitors
      63960dd2
    • spiiroin's avatar
      Refactor mce io monitor interface · 32a89fa3
      spiiroin authored
      Using abstract gpointer instead of pointer to io monitor structure
      makes following logic from callbacks up to io monitor functionality
      harder than it needs to be.
      
      Use typed pointer instead of abstact gpointer for io monitor functions.
      
      Use uniform naming for io monitor functions.
      
      Remove unused io monitor error callback function type.
      
      No functional changes.
      
      [mce] Refactor mce io monitor interface
      32a89fa3
  7. 27 May, 2014 1 commit
  8. 26 May, 2014 1 commit
  9. 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
  10. 14 Mar, 2014 1 commit
    • spiiroin's avatar
      Handle io watch error conditions gracefully · 7a56637c
      spiiroin authored
      All calls to g_io_add_watch() request error condition reporting, and
      all related callback functions at minimum will not create a virtual
      busyloop by leaving the io watch active and ignoring the error state.
      
      The mce io monitoring subsystem is modified so that instead of using
      separate io watches for data and error handling + optional error
      recovery callback it now has one io watch that first deals with
      possible errors and then handles possible input via monitor type
      specific logic and enforces delete notification callbacks for making
      clean up at upper level logic. This should allow mce to gracefully
      handle situations like adding/removing bluetooth keyboards.
      
      [mce] Handle io watch error conditions gracefully
      7a56637c
  11. 05 Nov, 2013 1 commit
  12. 10 Jan, 2013 1 commit
  13. 15 Nov, 2012 1 commit
    • spiiroin's avatar
      Improve error logging from mce_write_number_string_to_file() helper · 0dd4d20e
      spiiroin authored
      There should be changes to mce behavior.
      
      The only purpose of the code changes is to give more informative
      error logging in cases where mce_write_number_string_to_file()
      gets called without properly configured paths (due to hw and/or
      kernel changes), i.e. instead of:
      
      	(file == NULL) && ((fp == NULL) || (*fp == NULL))!
      	(file == NULL) && ((fp == NULL) || (*fp == NULL))!
      	(file == NULL) && ((fp == NULL) || (*fp == NULL))!
      
      emit something like this:
      
      	touchscreen_disable: output->path not configured
      	keypad_disable: output->path not configured
      	brightness: output->path not configured
      0dd4d20e
  14. 23 Aug, 2011 1 commit
    • Jukka Turunen's avatar
      Error callback for I/O monitors · 713f8b89
      Jukka Turunen authored
      Callback can now be called in case of I/O error conditions. Used
      to remove monitors in hangup state so device file is not uselessly
      accessed before input device file list is refreshed.
      713f8b89
  15. 12 May, 2011 1 commit
  16. 16 Dec, 2010 1 commit