All Projects → Hjdskes → powersave

Hjdskes / powersave

Licence: WTFPL License
Linux power save settings, compatible with systemd

Programming Languages

Makefile
30231 projects

Projects that are alternatives of or similar to powersave

bat
Battery management utility for Linux laptops.
Stars: ✭ 107 (+35.44%)
Mutual labels:  battery, systemd
Clight
A C daemon that turns your webcam into a light sensor. It will adjust screen backlight based on ambient brightness.
Stars: ✭ 371 (+369.62%)
Mutual labels:  battery, systemd
Breath OS
An OS for breathing? My DIY OS
Stars: ✭ 17 (-78.48%)
Mutual labels:  systemd
impedance.py
A Python package for working with electrochemical impedance data
Stars: ✭ 102 (+29.11%)
Mutual labels:  battery
objdet web
Image object detection demo(YOLO,SSD,etc.) running as a Flask web server.
Stars: ✭ 52 (-34.18%)
Mutual labels:  ssd
HeartBattery
❤️ display the OS X battery state as hearts in the menubar
Stars: ✭ 17 (-78.48%)
Mutual labels:  battery
chef-systemd
resource-driven chef cookbook for managing linux systems via systemd
Stars: ✭ 43 (-45.57%)
Mutual labels:  systemd
plug systemd example
Example Elixir application that integrates with systemd features
Stars: ✭ 15 (-81.01%)
Mutual labels:  systemd
ssd detectors
SSD-based object and text detection with Keras, SSD, DSOD, TextBoxes, SegLink, TextBoxes++, CRNN
Stars: ✭ 295 (+273.42%)
Mutual labels:  ssd
brand.systemd.io
Website with systemd brand assets
Stars: ✭ 12 (-84.81%)
Mutual labels:  systemd
HowLogindWorks
A collection of info about session management with logind
Stars: ✭ 22 (-72.15%)
Mutual labels:  systemd
zelda-battery
A Legend of Zelda inspired health-bar battery meter for the CLI and GUI
Stars: ✭ 22 (-72.15%)
Mutual labels:  battery
SSD-Tensorflow2.0
A Tensorflow2.0 implementation of Single Shot Detector
Stars: ✭ 25 (-68.35%)
Mutual labels:  ssd
macstats
Mac OS X Statistics - Battery, Fans, CPU
Stars: ✭ 55 (-30.38%)
Mutual labels:  battery
youtube-audio
Disable videos on youtube and save battery and bandwidth / data
Stars: ✭ 110 (+39.24%)
Mutual labels:  battery
tesla-style-solar-power-card
Home assistant power card mimicking the one tesla provides for the powerwall app.
Stars: ✭ 103 (+30.38%)
Mutual labels:  battery
execute-engine
基于Ansible API的任务执行引擎,支持adhoc和playbook两种任务的执行
Stars: ✭ 18 (-77.22%)
Mutual labels:  systemd
batify
Only one udevrule file triggering plug and critical battery level notifications (multi-x sessions support)
Stars: ✭ 47 (-40.51%)
Mutual labels:  battery
AndroidBatteryStats
Displays all battery stats of an Android device using broadcast receiver.
Stars: ✭ 20 (-74.68%)
Mutual labels:  battery
zenfs
ZenFS is a storage backend for RocksDB that enables support for ZNS SSDs and SMR HDDs.
Stars: ✭ 63 (-20.25%)
Mutual labels:  ssd

Powersave

These files enable power saving on Linux. Note that these settings are applied regardless of whether the system is on battery or AC. Power saving is applied to:

  • Audio card (modprobe.d/99-powersave.conf)
  • Backlight brightness (rules.d/50-powersave-brightness.rules)
  • Bluetooth (disabled completely: modprobe.d/blacklist.conf)
  • NMI watchdog (sysctl.d/99-powersave.conf)
  • Writeback times (sysctl.d/99-powersave.conf)
  • Laptop mode (sysctl.d/99-powersave.conf)
  • Network interfaces, both wired and wireless (modprobe.d/50-powersave-net.rules)
  • Buses (ASPM, PCI, USB, SATA ALPM, tmpfiles.d/powersave.conf and modprobe.d/50-powersave-[pci|usb|sata].rules)

Power saving is not applied to:

  • HDD, since it is replaced with an SSD. SSD power usage is simply ignored, since I have yet to look into this (and I believe it isn't that high). Tips are welcome!
  • CPU frequencies, since the default is fine (using the intel_pstate driver).
  • Swappiness, since I don't use a swap partition.

You might also want to edit /etc/fstab to add commits=<seconds> to the options column of your partitions. See the mount man page.

It is fit for my own laptop (Lenovo Thinkpad Edge E130), which means that this script will not work on every setup. Please check this before running it on your computer! Things might break otherwise and I am not responsible for any damage that has been done.

TODO

  • git grep TODO
  • Test the suspend-on-low-battery udev rule (rules.d/50-powersave-suspend.rules)
  • SSD powersaving?
    • Apply noop schedular in powersave instead of boot config?

Installation

The script will need the following dependencies to run:

  • iw
  • ip
  • ethtool
  • udev
  • systemd

Just run make install as root to install the whole set.

To enable the ASPM setting to work, append pcie_aspm=force to your kernel parameter list. However, before doing so, verify that all PCIe hardware on your system support ASPM!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].