-
-
Save StollD/139779ed6aa441f661f641d83a108632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Get CPU model (script from neofetch) | |
awk -F '\\s*: | @' \ | |
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ { | |
cpu=$2; if ($1 == "Hardware") exit } END { print cpu }' "/proc/cpuinfo" | |
uname -r | |
echo | |
cat /etc/os-release | grep NAME | |
echo | |
sudo grep -H . /sys/devices/virtual/dmi/id/product_name | |
sudo grep -H . /sys/devices/virtual/dmi/id/product_sku | |
sudo grep -H . /sys/devices/system/cpu/cpuidle/low_power_idle_cpu_residency_us | |
sudo grep -H . /sys/devices/system/cpu/cpuidle/low_power_idle_system_residency_us | |
sudo grep -H . /sys/kernel/debug/pmc_core/package_cstate_show | |
sudo grep -H . /sys/kernel/debug/pmc_core/slp_s0_residency_usec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment