Skip to content

Instantly share code, notes, and snippets.

@StollD

StollD/s0ixdebug Secret

Created June 3, 2020 12:45
Show Gist options
  • Save StollD/139779ed6aa441f661f641d83a108632 to your computer and use it in GitHub Desktop.
Save StollD/139779ed6aa441f661f641d83a108632 to your computer and use it in GitHub Desktop.
#!/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