Skip to content
Snippets Groups Projects
  1. Jul 01, 2020
  2. Jun 23, 2020
  3. Jun 22, 2020
    • Martin Kepplinger's avatar
      remove usr/bin/power_key.py · 73895838
      Martin Kepplinger authored
      The /usr/bin/power_key.py script basically does 2 things:
      
      * set a devfreq governor once (and handle frequencies but only on old kernels)
      * shut down the system when the power button is being pressed for ca. 2 seconds
      
      The first task is to be replaced via a simple udev rule. The second one
      is being tracked by Librem5/OS-issues#146
      
      
      and will be replaced by a GUI anyways.
      
      This solves problems with the power_key script:
      * it is not syncronised with the display system.
      * it is a nightmare to maintain and keep working
      
      In my tests, the long-press shutdown mechanism didn't work anymore, but if
      it does for you, this will remove it (temporarily, see the above issue).
      
      Signed-off-by: default avatarMartin Kepplinger <martin.kepplinger@puri.sm>
      73895838
  4. Jun 09, 2020
  5. Apr 23, 2020
  6. Apr 22, 2020
  7. Apr 06, 2020
  8. Apr 05, 2020
  9. Apr 03, 2020
    • Martin Kepplinger's avatar
      power_key.py: make compatible with 5.6 and later and the devkit · 71f71c1c
      Martin Kepplinger authored
      devfreq is being handled differently on our kernels. With 5.6+ frequency
      is switched automatically by the kernel for devfreq, when the powersave
      governor is set. So in that case we only to that (done by udev in the future).
      
      This also makes devfreq settings compatible with the devkit again because
      it reads the minimum frequency which is different than on the phone,
      from sysfs.
      
      Also, we particularly handle 5.6-rc based kernel versions that
      include a broken devfreq implementation / setup. starting with version
      5.6.0 we need to increment the ABI version to 2.
      71f71c1c
  10. Apr 01, 2020
  11. Mar 30, 2020
  12. Mar 28, 2020
  13. Mar 23, 2020
  14. Mar 06, 2020
  15. Mar 03, 2020
  16. Mar 02, 2020
  17. Feb 26, 2020
    • Martin Kepplinger's avatar
      power_key: use 25Mhz devfreq when screen off when not on Linux 5.3 · 586e9d78
      Martin Kepplinger authored
      
      As on Linux 5.6 this is totally stable for me on Birch, I'd like to use 25Mhz
      instead of 100 when the screen is off.
      
      I ran "stress -c 2 -vm 2" while using the phone on the console and
      turning on the screen, browsing the web and the system kept usable
      the whole time.
      
      With this, the device cools down more quickly when the screen is
      off and improves battery time.
      
      For Linux 5.3 (only), we keep the current behaviour as 25Mhz doesn't seem
      to be stable there.
      
      Signed-off-by: default avatarMartin Kepplinger <martin.kepplinger@puri.sm>
      586e9d78
  18. Feb 24, 2020
  19. Feb 21, 2020
  20. Feb 20, 2020
Loading