Skip to content
Snippets Groups Projects

device-nokia-n900: various fixes

Merged sicelo requested to merge sicelo/pmaports:upd900 into master
  1. Dec 04, 2024
    • sicelo's avatar
      device-nokia-n900: do not use upower for low-battery shutdown (MR 5868) · 5f059f95
      sicelo authored and Oliver Smith's avatar Oliver Smith committed
      As of upower 1.90.5, it is possible to configure upower to not take an action
      when the battery capacity is reported as critically low. Since the Nokia N900
      now monitors its battery capacity using udev scripts, which is more accurate
      than upower's calculation, enable the new ignore feature for the N900.
      Unverified
      5f059f95
    • sicelo's avatar
      device-nokia-n900: implement udev-based battery monitoring (MR 5868) · ea97c08f
      sicelo authored and Oliver Smith's avatar Oliver Smith committed
      The bq27200 fuel gauge depends on its battery-backed memory for capacity
      reporting. If the supply is off for some time, the fuel gauge's last known
      capacity is reset, after which a capacity value can only be read after a
      full charge cycle. Thus, most of the time, as used on the Nokia N900, the
      reported percentage cannot be relied on for making power-off decisions on
      battery low conditions, e.g. through UPower.
      
      However the fuel gauge can very accurately detect and report a low battery
      condition internally, even if the reported capacity is incorrect, e.g. when
      it has been reset. The low battery condition is reported by the kernel via
      capacity_level in sysfs, and also generates uevents.
      
      So we can implement safe battery shutdown by requesting the kernel to more
      regularly polling for status changes, then performing an immediate shutdown
      when the capacity_level is reported as Low and the device is not charging.
      Unverified
      ea97c08f
    • sicelo's avatar
      device-nokia-n900: update urxvt font (MR 5868) · 06aaf0ab
      sicelo authored and Oliver Smith's avatar Oliver Smith committed
      pmos now defaults to droid sans font
      Unverified
      06aaf0ab
    • sicelo's avatar
      device-nokia-n900: cleanup modem udev rules (MR 5868) · 64dcfb00
      sicelo authored and Oliver Smith's avatar Oliver Smith committed
      Do not duplicate udev rules that are also shipped by upstream
      Unverified
      64dcfb00
    • sicelo's avatar
      device-nokia-n900: drop sxmo-specific sub-package (MR 5868) · fdd06443
      sicelo authored and Oliver Smith's avatar Oliver Smith committed
      The deviceprofile is now in a tagged sxmo release.
      
      The conky issue will be mentioned in wiki for users to manually disable, until
      upstream allows toggling it.
      Unverified
      fdd06443
Loading