NVME powersaving script
#1
I've tried to solve this and can't quite figure it out.  

My goal: on AC power have a script that contains "sudo nvme set-feature /dev/nvme0 -f 2 -v 0" runs; according to the wiki this sets the NVME power management for maximum performance.  On Battery power a script that contains "sudo nvme set-feature /dev/nvme0 -f 2 -v 2" runs; according to the wiki this sets the NVME power management for decreased performance,  but better battery life.  

I have the scripts running successfully, but only as sudo and I can't figure out how to get KDE to run them using the "power management" gui.  I tried entering 'sudo /my/script.sh' into the KDE energy management, but it's either failing to run or running into some sort of permission problem.  

How can I get these scripts to run whenever AC/BAT change is detected?  I wish this were a feature in TLP, but I don't see it there either.  


Thanks!

-Josh


Messages In This Thread
NVME powersaving script - by mamboman777 - 07-01-2020, 05:17 PM
RE: NVME powersaving script - by mamboman777 - 07-01-2020, 08:12 PM
RE: NVME powersaving script - by squidd - 07-02-2020, 10:13 AM
RE: NVME powersaving script - by xmixahlx - 07-02-2020, 10:25 AM
RE: NVME powersaving script - by mamboman777 - 07-02-2020, 01:57 PM
RE: NVME powersaving script - by mamboman777 - 07-02-2020, 07:01 PM
RE: NVME powersaving script - by mamboman777 - 07-03-2020, 06:01 AM
RE: NVME powersaving script - by mamboman777 - 07-05-2020, 11:15 AM
RE: NVME powersaving script - by squidd - 07-06-2020, 05:12 PM
RE: NVME powersaving script - by squidd - 07-06-2020, 06:32 PM
RE: NVME powersaving script - by mamboman777 - 07-16-2020, 01:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Selling my Pinebook Pro with a bootable NVMe WD SSD drive pinemouth 0 766 09-27-2023, 08:53 PM
Last Post: pinemouth
  Boot into NVME drive, no wifi, sound, buttons... PaulQ 0 811 07-13-2023, 01:50 PM
Last Post: PaulQ
  I'm booting from NVME but I want to switch back to eMMC acruhl 4 1,503 04-23-2023, 06:58 AM
Last Post: acruhl
  U-Boot with direct NVMe boot support for eMMC/SPI Flash pcm720 125 215,921 09-27-2022, 07:41 AM
Last Post: olyavi
  Selling Pinebook Pro (ISO) + nvme from Sweden DavidL 5 3,211 06-20-2022, 03:20 PM
Last Post: DavidL
  For Sale: Pinebook Pro 64gb ANSI with NVMe Adapter Lumat 2 2,078 04-24-2022, 01:42 AM
Last Post: kylexd
  Selling PineBook PRO with ISO Keyboard + NVME firefox-58 27 18,585 04-08-2022, 06:23 AM
Last Post: firefox-58
  Pinebook Pro (ANSI) with NVME 1TB (660p) for sale Fish 5 4,093 01-26-2022, 08:49 AM
Last Post: TRS-80
  Selling PineBook PRO with ANSI Keyboard + NVME woodeen 3 3,178 11-30-2021, 06:38 PM
Last Post: luca22
  Boot from NVME theboz1@verizon.net 2 2,392 10-22-2021, 07:58 PM
Last Post: theboz1@verizon.net

Forum Jump:


Users browsing this thread: 2 Guest(s)