Skip to content
Snippets Groups Projects
  1. 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 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
  2. Jun 09, 2020
  3. 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
  4. Mar 03, 2020
  5. 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
  6. Dec 26, 2019
  7. Dec 18, 2019
  8. Dec 09, 2019
  9. Dec 01, 2019
  10. Nov 25, 2019
  11. Nov 06, 2019
    • Bob Ham's avatar
      Remove Wys systemd .conf file · e28b18c4
      Bob Ham authored
      Wys now has a configuration database based on the machine name.  We no
      longer need to have configuration files in device-specific packages.
      e28b18c4
  12. Jun 12, 2019
    • Bob Ham's avatar
      Add minimal ALSA UCM configuration for the SGTL5000 · a26d0a5d
      Bob Ham authored
      This allows us to set the microphone volume which PulseAudio uses by
      default.  The configuration is not split into codec-specific parts as
      this is not necessary, the configuration's only purpose is to allow us
      to set the microphone volume which PulseAudio uses and it's not clear
      whether ALSA's UCM will be useful going forward.
      
      Closes OS-issues#46
      a26d0a5d
  13. May 22, 2019
    • Bob Ham's avatar
      Configure Wys for the devkit · fa0161d6
      Bob Ham authored
      Add a systemd .conf file to extend the wys.service unit with
      configuration for the devkit audio hardware.
      fa0161d6
  14. Mar 25, 2019
Loading