pax_global_header 0000666 0000000 0000000 00000000064 14546226052 0014520 g ustar 00root root 0000000 0000000 52 comment=470ef8daa6186045fb23238cb8043f718f6cfb44
CPU-X-5.0.3/ 0000775 0000000 0000000 00000000000 14546226052 0012361 5 ustar 00root root 0000000 0000000 CPU-X-5.0.3/.cirrus.yml 0000664 0000000 0000000 00000001424 14546226052 0014472 0 ustar 00root root 0000000 0000000 task:
name: FreeBSD # https://www.freebsd.org/releases
freebsd_instance: # https://cirrus-ci.org/guide/FreeBSD/#list-of-available-image-families
matrix:
image_family: freebsd-13-2
image_family: freebsd-14-0
env:
IGNORE_OSVERSION: yes # supress package installation error on FreeBSD-13
install_script:
- pkg update -f
- pkg install -y cmake ninja pkgconf gettext nasm gtkmm30 ncurses libcpuid pciutils glfw opencl ocl-icd vulkan-loader vulkan-headers libstatgrab
build_script:
- cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DWITH_OPENCL=1
- cmake --build build
- cmake --install build
run_script:
- sudo CPUX_BCLK=100 cpu-x --issue-fmt
- cat /tmp/cpu-x.log
- cat /tmp/cpu-x-daemon.log
CPU-X-5.0.3/.github/ 0000775 0000000 0000000 00000000000 14546226052 0013721 5 ustar 00root root 0000000 0000000 CPU-X-5.0.3/.github/ISSUE_TEMPLATE.md 0000664 0000000 0000000 00000000141 14546226052 0016422 0 ustar 00root root 0000000 0000000
CPU-X-5.0.3/.github/ISSUE_TEMPLATE/ 0000775 0000000 0000000 00000000000 14546226052 0016104 5 ustar 00root root 0000000 0000000 CPU-X-5.0.3/.github/ISSUE_TEMPLATE/bug_report.md 0000664 0000000 0000000 00000002121 14546226052 0020572 0 ustar 00root root 0000000 0000000 ---
name: Bug report
about: Create a report to help us to improve CPU-X
---
**Describe the bug/Expected behavior**
**Additional information**
* Operating system name and version:
* CPU-X installation type:
**Bug information**
```
========================= Backtrace =========================
PASTE BACKTRACE HERE
======================== End Backtrace =======================
```
CPU-X-5.0.3/.github/ISSUE_TEMPLATE/feature_request.md 0000664 0000000 0000000 00000000767 14546226052 0021643 0 ustar 00root root 0000000 0000000 ---
name: Feature request
about: Suggest an idea for CPU-X
---
**Is your feature request related to a problem? Please describe.**
**Describe the solution you'd like**
CPU-X-5.0.3/.github/ISSUE_TEMPLATE/libcpuid.md 0000664 0000000 0000000 00000000463 14546226052 0020224 0 ustar 00root root 0000000 0000000 ---
name: Wrong CPU Code Name
about: Create a report to help us to improve libcpuid
---
**libcpuid dump**
CPU-X-5.0.3/.github/main.workflow 0000664 0000000 0000000 00000000316 14546226052 0016441 0 ustar 00root root 0000000 0000000 action "Cirrus CI Email" {
uses = "docker://cirrusactions/email:latest"
env = {
APP_NAME = "Cirrus CI"
}
secrets = ["GITHUB_TOKEN", "MAIL_FROM", "MAIL_HOST", "MAIL_USERNAME", "MAIL_PASSWORD"]
}
CPU-X-5.0.3/.github/workflows/ 0000775 0000000 0000000 00000000000 14546226052 0015756 5 ustar 00root root 0000000 0000000 CPU-X-5.0.3/.github/workflows/appimage_continuous.yml 0000664 0000000 0000000 00000003327 14546226052 0022557 0 ustar 00root root 0000000 0000000 name: AppImage Continuous
on:
push:
branches:
- master
workflow_dispatch:
env:
BUILD_TYPE: RelWithDebInfo
jobs:
linux-appimage-continuous:
name: Linux x64_64 (Continuous)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: abbbi/github-actions-tune@v1
- name: Build libcpuid
run: bash -x ./scripts/build_libcpuid.sh "$BUILD_TYPE"
- name: Build CPU-X
run: bash -x ./scripts/build_ubuntu.sh "$BUILD_TYPE" "$GITHUB_WORKSPACE" "$GITHUB_WORKSPACE/AppDir"
- name: Package CPU-X as an AppImage
run: bash -x ./scripts/build_appimage.sh "$GITHUB_WORKSPACE" "$GITHUB_WORKSPACE/AppDir"
- name: Delete previous continuous release
uses: dev-drprasad/delete-tag-and-release@v0.2.1
with:
tag_name: continuous
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create continuous release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "AppImage/CPU-X-*.AppImage*"
body: |
:heavy_check_mark:CPU-X AppImage built from latest commit ([${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})). See [known issues](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/wiki/appimage).
:scroll: Build log: https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks?check_suite_id=${{ github.run_id }}
commit: ${{ github.sha }}
draft: false
name: Continuous build
prerelease: true
removeArtifacts: true
replacesArtifacts: true
skipIfReleaseExists: false
tag: continuous
token: "${{ secrets.GITHUB_TOKEN }}"
CPU-X-5.0.3/.github/workflows/appimage_release.yml 0000664 0000000 0000000 00000003634 14546226052 0021772 0 ustar 00root root 0000000 0000000 name: AppImage Release
on:
push:
tags:
- v*
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
linux-appimage-release:
name: Linux x64_64 (Release)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: abbbi/github-actions-tune@v1
- name: Set environment variables
run: |
echo "VERSION=${GITHUB_REF_NAME/v/}" >> $GITHUB_ENV
echo "CHANGELOG_TAG=${GITHUB_REF_NAME//./}---$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Build libcpuid
run: bash -x ./scripts/build_libcpuid.sh "$BUILD_TYPE"
- name: Build CPU-X
run: bash -x ./scripts/build_ubuntu.sh "$BUILD_TYPE" "$GITHUB_WORKSPACE" "$GITHUB_WORKSPACE/AppDir"
- name: Package CPU-X as an AppImage
run: bash -x ./scripts/build_appimage.sh "$GITHUB_WORKSPACE" "$GITHUB_WORKSPACE/AppDir"
- name: Create versioned release
uses: ncipollo/release-action@v1
with:
allowUpdates: false
artifacts: "AppImage/CPU-X-*.AppImage*"
body: |
**Version ${{ env.VERSION }}.**
[ChangeLog](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/blob/master/ChangeLog.md#${{ env.CHANGELOG_TAG }})
## Packages
Search the `cpu-x` package in your repositories or [CPU-X on Flathub](https://flathub.org/fr/apps/io.github.thetumultuousunicornofdarkness.cpu-x).
## Binary
- **AppImage**: CPU-X-v${{ env.VERSION }}-x86_64.AppImage (**libfuse2** package is required)
*Note: a Polkit Authentication agent is mandatory to start daemon from GUI.*
## Notes
### To packagers
-
### To users
-
commit: ${{ github.sha }}
draft: true
name: ${{ github.ref_name }}
prerelease: false
replacesArtifacts: true
skipIfReleaseExists: true
tag: ${{ github.ref_name }}
token: "${{ secrets.GITHUB_TOKEN }}"
CPU-X-5.0.3/.github/workflows/linux.yml 0000664 0000000 0000000 00000002025 14546226052 0017637 0 ustar 00root root 0000000 0000000 name: Linux build
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
linux-build:
name: Linux x64_64 (Build)
runs-on: ${{ matrix.os.label }}
strategy:
matrix:
os: # https://github.com/actions/virtual-environments/tree/main/images/linux
- { label: ubuntu-20.04 }
- { label: ubuntu-22.04 }
steps:
- uses: actions/checkout@v3
- uses: abbbi/github-actions-tune@v1
- name: Build libcpuid
run: bash -x ./scripts/build_libcpuid.sh "Debug"
- name: Build CPU-X
run: bash ./scripts/build_ubuntu.sh "Debug" "$GITHUB_WORKSPACE"
- name: Run tests
run: ninja -C build test
- name: Run CPU-X
run: |
error=0
sudo CPUX_BCLK=100 cpu-x --issue-fmt || error=1
cat /tmp/cpu-x.log
cat /tmp/cpu-x-daemon.log
exit $error
- name: Test CPU database with LibCPUID tests
run: |
bash ./scripts/run_libcpuid_tests.sh "/tmp/libcpuid/tests" 2> /dev/null
CPU-X-5.0.3/.github/workflows/update_pot_file.yml 0000664 0000000 0000000 00000002411 14546226052 0021642 0 ustar 00root root 0000000 0000000 name: Update POT file
on:
push:
branches:
- master
workflow_dispatch:
jobs:
check_new_string:
name: Linux x64_64 (check)
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.step1.outputs.check_ret }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- id: step1
name: Check if POT file needs to be regenerated
run: echo "check_ret=$(bash ./scripts/check_new_strings.sh)" >> $GITHUB_OUTPUT
update_pot_file:
name: Linux x64_64 (L10n)
runs-on: ubuntu-latest
needs: check_new_string
if: ${{ needs.check_new_string.outputs.output1 == 'REGEN' }}
steps:
- uses: actions/checkout@v3
- uses: abbbi/github-actions-tune@v1
- name: Install packages
run: sudo apt-get install -y -qq cmake ninja-build gettext
- name: Disable all options in CMakeLists.txt
run: sed -i 's/ ON)$/ OFF)/g' "$GITHUB_WORKSPACE/CMakeLists.txt"
- name: Generate files for build system
run: cmake -S "$GITHUB_WORKSPACE" -B build -GNinja -DWITH_GETTEXT=1
- name: Generate new POT file
run: ninja -C build genpot
- uses: EndBug/add-and-commit@v7
with:
add: 'po'
message: 'Regen POT file'
pull_strategy: '--ff-only'
push: true
CPU-X-5.0.3/.gitignore 0000664 0000000 0000000 00000000052 14546226052 0014346 0 ustar 00root root 0000000 0000000 *~
*.log
build/
packages
.vscode
.vagrant
CPU-X-5.0.3/CMakeLists.txt 0000664 0000000 0000000 00000015241 14546226052 0015124 0 ustar 00root root 0000000 0000000 cmake_minimum_required(VERSION 3.12)
cmake_policy(SET CMP0048 NEW)
if(POLICY CMP0075)
cmake_policy(SET CMP0075 NEW)
endif()
project(cpu-x
VERSION "5.0.3"
LANGUAGES C CXX
)
### DEFAULT CONFIG
# Global variables
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
include(GNUInstallDirs)
if(NOT EXISTS ${CMAKE_INSTALL_FULL_LIBEXECDIR})
set(CMAKE_INSTALL_LIBEXECDIR lib/${CMAKE_PROJECT_NAME})
set(CMAKE_INSTALL_FULL_LIBEXECDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBEXECDIR})
endif(NOT EXISTS ${CMAKE_INSTALL_FULL_LIBEXECDIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin/)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/lib/)
set(CMAKE_DATA_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/data/)
set(CPU_X_DATA_DIRECTORY ${CMAKE_INSTALL_FULL_DATADIR}/${CMAKE_PROJECT_NAME}/)
set(APP_EXEC ${CMAKE_PROJECT_NAME})
set(DAEMON_EXEC ${CMAKE_PROJECT_NAME}-daemon)
set(DAEMON_PATH ${CMAKE_INSTALL_FULL_LIBEXECDIR}/${DAEMON_EXEC})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(DAEMON_SOCKET "/run/cpu-x.sock")
else()
set(DAEMON_SOCKET "/var/run/cpu-x.sock")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(BITNESS "32")
else(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(BITNESS "64")
endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(CMAKE_COLOR_DIAGNOSTICS ON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations -Wno-unused-result")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpedantic -Wno-deprecated-declarations -Wno-unused-result")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wextra -Wuninitialized -Wformat -Wformat-security -Wstrict-prototypes")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wextra -Wuninitialized -Wformat -Wformat-security")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
include(CheckCCompilerFlag)
check_c_compiler_flag("-no-pie" HAS_NO_PIE)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND HAS_NO_PIE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND HAS_NO_PIE)
# Options
option(WITH_GTK "Build support for GUI in GTK3+" ON)
option(WITH_NCURSES "Build support for TUI in NCurses" ON)
option(WITH_GETTEXT "Build support for internationalization" ON)
option(WITH_LIBCPUID "Use Libcpuid library" ON)
option(WITH_LIBPCI "Use Libpci library" ON)
option(WITH_LIBGLFW "Use Libglfw library" ON)
option(WITH_VULKAN "Use Vulkan library" ON)
option(WITH_OPENCL "Use OpenCL library" OFF) # Disabled due to issues (#238, #258, #264)
option(WITH_LIBPROCPS "Use Libprocps library" ON)
option(WITH_LIBSTATGRAB "Use Libstatgrab library" ON)
option(WITH_DMIDECODE "Built-in Dmidecode" ON)
option(WITH_BANDWIDTH "Built-in Bandwidth" ON)
option(FORCE_LIBSTATGRAB "Force use of Libstatgrab instead of Libprocps (GNU/Linux system)" OFF)
option(FLATPAK "Enable workarounds for Flatpak" OFF)
# Colours
string(ASCII 27 Esc)
set(ColourReset "${Esc}[m")
set(ColourBold "${Esc}[1m")
set(Red "${Esc}[31m")
set(Green "${Esc}[32m")
set(Yellow "${Esc}[33m")
set(Blue "${Esc}[34m")
set(Magenta "${Esc}[35m")
set(Cyan "${Esc}[36m")
set(White "${Esc}[37m")
set(BoldRed "${Esc}[1;31m")
set(BoldGreen "${Esc}[1;32m")
set(BoldYellow "${Esc}[1;33m")
set(BoldBlue "${Esc}[1;34m")
set(BoldMagenta "${Esc}[1;35m")
set(BoldCyan "${Esc}[1;36m")
set(BoldWhite "${Esc}[1;37m")
### MACROS
# Macro: print_config(libname foundstate withstate)
# Print the state of CPU-X features: in bold green if enabled, else bold red.
# @libname: library name (e.g. GTK)
# @libver: library version (e.g. XXXXX_VERSION)
# @foundstate: the result of pkg_check_modules(...) (e.g. XXXXX_FOUND)
# @withstate: the CMake option which allows to disable this feature (e.g. WITH_XXXXX)
macro(print_config libname libver foundstate withstate)
if(${foundstate} AND ${withstate})
message("${BoldCyan}** ${libname}${ColourReset}\tsupport is ${BoldGreen}enabled${ColourReset}")
add_definitions(-DHAS_${libname}=1 -D${libname}_VERSION="${libver}")
else(${foundstate} AND ${withstate})
if(NOT ${withstate})
message("${BoldCyan}** ${libname}${ColourReset}\tsupport is ${BoldRed}disabled${ColourReset} (explicitly disabled)")
elseif(NOT ${foundstate})
message("${BoldCyan}** ${libname}${ColourReset}\tsupport is ${BoldRed}disabled${ColourReset} (not found by pkg-config)")
endif()
add_definitions(-DHAS_${libname}=0 -D${libname}_VERSION=NULL)
endif(${foundstate} AND ${withstate})
endmacro(print_config)
### HELPERS / SUBDIRECTORIES
set(GIT_REVISION "")
if(EXISTS ${CMAKE_SOURCE_DIR}/.git)
find_package(Git)
if(GIT_FOUND)
execute_process(COMMAND sh -c "${GIT_EXECUTABLE} describe --long --tags --exclude continuous --abbrev=40 --dirty | cut --delimiter=- --fields=2-"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
OUTPUT_VARIABLE GIT_DESCRIBE_REVISION
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(NOT ${GIT_DESCRIBE_REVISION} STREQUAL "")
set(GIT_REVISION "+git-r${GIT_DESCRIBE_REVISION}")
endif(NOT ${GIT_DESCRIBE_REVISION} STREQUAL "")
endif(GIT_FOUND)
endif(EXISTS ${CMAKE_SOURCE_DIR}/.git)
enable_testing()
find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)
find_package(Backtrace REQUIRED)
find_package(Filesystem REQUIRED)
if(WITH_GETTEXT)
find_package(Gettext)
if(${CMAKE_VERSION} VERSION_GREATER "3.1")
find_package(Intl)
endif(${CMAKE_VERSION} VERSION_GREATER "3.1")
endif(WITH_GETTEXT)
include(CheckSymbolExists)
include(CheckStructHasMember)
include(CheckIncludeFile)
add_subdirectory(data)
add_subdirectory(po)
add_subdirectory(src)
add_subdirectory(tests)
### UNINSTALL TARGET
configure_file("${CMAKE_MODULE_PATH}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
)
CPU-X-5.0.3/CONTRIBUTING.md 0000664 0000000 0000000 00000012634 14546226052 0014620 0 ustar 00root root 0000000 0000000 # How to contribute to CPU-X
CPU-X is mainly developed by [TheTumultuousUnicornOfDarkness](https://github.com/TheTumultuousUnicornOfDarkness), but contributors are welcome!
Here is some things to be involved.
## Translate
If you want to translate CPU-X in your native tongue, please visit the [Weblate page](https://hosted.weblate.org/engage/cpu-x/?utm_source=widget).
## Update databases
When new CPUs are out, we need to add them in databases. You can find databases [here](src/databases.h). Also, please note CPU codenames are defined in [libcpuid](https://github.com/anrieff/libcpuid).
Dumps can be found on [InstLatx64 website](http://users.atw.hu/instlatx64/). Latest dumps can be found on [this Git mirror](https://github.com/InstLatx64/InstLatx64/commits/master).
## Develop
CPU-X is written in C++ and uses the CMake build system.
First of all, if you are interested to modify CPU-X source code, take a look at [how to manually build CPU-X](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/wiki/manual-build).
### Source files
The file structure in the `src` directory is the following:
1. CPU-X core, where data are gathered:
- core.cpp
- core.hpp
- daemon_client.cpp
- daemon_client.hpp
- daemon.h
- databases.h
- data.cpp
- data.hpp
- logger.cpp
- logger.hpp
- main.cpp
- opencl_ext.h
- options.cpp
- options.hpp
- util.cpp
- util.hpp
2. CPU-X daemon, doing operations that require privileges:
- daemon.h
- daemon_server.cpp
- daemon_server.hpp
3. External projects, modified to be integrated within CPU-X (optional):
- bandwidth
- dmidecode
4. User interfaces (optional):
- gui_gtk.cpp
- gui_gtk.hpp
- tui_ncurses.cpp
- tui_ncurses.hpp
### Add new labels
Adding new labels to CPU-X is a little bit complex, but don't worry: this sub-section explains how to achieve that.
:warning: Note: this guide does not explain how to add a new tab.
**1. In core**
- First of all, you need to add a new `Label` object in `struct Data` in `data.hpp` file. Example to add `kernel` in `Data::System::OperatingSystem`:
```cpp
Label kernel {_("Kernel")};
```
`{_("Kernel")}` is the name of the label (which may be translated).
- Set the label value in `core.cpp`, in the appropriate function. You need to store label value in `value` field, like this:
```c
data.system.os.kernel.value = "XXX";
```
:bulb: `fill_labels()` and `do_refresh()` are the calling functions.
- Finally, in `data.cpp` file, print the label in the appropriate `operator<<` overload.
**2. In NCurses TUI**
You may need to adapt `tui_ncurses.cpp`. To print text on screen, `mvwprintwc()` and `mvwprintw2c()` functions are used.
```c
mvwprintw2c(win, LINE_1, SizeInfo::tb, "%13s", "%s", data.system.os.kernel);
```
In this example, it will display content of `data.system.os.kernel` at `LINE_1`, with label name on the left side.
**3. In GTK+ 3 GUI**
You need to use [Glade](https://glade.gnome.org/) to edit UI. The UI file in under `data/` (e.g. `cpu-x-gtk-3.12.ui`).
Two labels must be created at least:
- one label to display the label name, with an ID like `TAB_labNEWLABEL` ;
- a second label to display the label value, with an ID like `TAB_valNEWLABEL`.
Then labels are filled from `gui_gtk.cpp` file:
- bind widget (from UI) to an object in `get_widgets()` ;
- set label by using `set_label_name_and_value()` in the appropriate `GtkData::gtab_XXX()` method.
**4. Verify**
Build and run CPU-X. The software must not crash or freeze after these changes.
Please check all modes to avoid potential regressions:
```shell
$ cpu-x -Dv
$ cpu-x -Nv
$ cpu-x -Gv
```
If nothing is broken, congratulations! :tada: You can open a new [pull request](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/compare).
### Add new options
This section describe how to add a new option. You can take a look on [this commit](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/commit/008e03cf95653e964a9e334347c297fef57ce82a).
1. `src/options.hpp`: add new option in `class Options`. Values are private: you need to define a public setter and getter.
2. `src/main.c`:
* in `struct cpux_options[]`: add a new line entry
* in `parse_arguments()`: retrieve value for option
3. `data/io.github.thetumultuousunicornofdarkness.cpu-x.gschema.xml`: add a new key
4. `data/cpu-x-gtk-3.12.ui`: open UI file in Glade and change Settings window
5. `src/gui_gtk.hpp`: add a new widget in `struct GtkData`
6. `src/gui_gtk.cpp`:
* `get_widgets()`: map UI widget to a C++ object
* `load_settings()`: map setting to an option
* `bind_settings()`: bind schema value to a C++ object
* `set_signals()`: handle signal when value is changed by user (note: the "OK" button in Settings window is handled by `this->validatebutton->signal_clicked().connect()`)
7. Do something with your new option!
### Things to do
- A good starting point if you want to do stuff is to fix [issues](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/issues). One example: add proper CPU logos (as requested in #144).
- Another point, if you have a lot of time to spare, is to create new user interfaces:
- Qt5/Qt6 GUI can be appreciated by users using Qt-based desktop environnement (like KDE);
- Cocoa GUI to port CPU-X on macOS (read #147, #56, #55 #35 and #33 for more details).
- Also, feel free to improve existing stuff. For instance, databases are defined in a C header, but maybe there are better ways to store data.
CPU-X-5.0.3/COPYING 0000664 0000000 0000000 00000104513 14546226052 0013420 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
CPU-X-5.0.3/ChangeLog.md 0000664 0000000 0000000 00000057646 14546226052 0014554 0 ustar 00root root 0000000 0000000 # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- [Changelog](#changelog)
- [\[v5.0.3\] - 2024-01-06](#v503---2024-01-06)
- [Changed](#changed)
- [Fixed](#fixed)
- [\[v5.0.2\] - 2023-11-12](#v502---2023-11-12)
- [Changed](#changed-1)
- [Fixed](#fixed-1)
- [\[v5.0.1\] - 2023-10-21](#v501---2023-10-21)
- [Changed](#changed-2)
- [Fixed](#fixed-2)
- [\[v5.0.0\] - 2023-10-15](#v500---2023-10-15)
- [Added](#added)
- [Changed](#changed-3)
- [Removed](#removed)
- [Fixed](#fixed-3)
- [\[v4.5.3\] - 2023-04-02](#v453---2023-04-02)
- [Added](#added-1)
- [Changed](#changed-4)
- [Fixed](#fixed-4)
- [\[v4.5.2\] - 2022-11-12](#v452---2022-11-12)
- [Changed](#changed-5)
- [Fixed](#fixed-5)
- [\[v4.5.1\] - 2022-10-23](#v451---2022-10-23)
- [Changed](#changed-6)
- [Fixed](#fixed-6)
- [\[v4.5.0\] - 2022-10-09](#v450---2022-10-09)
- [Added](#added-2)
- [Changed](#changed-7)
- [Removed](#removed-1)
- [Fixed](#fixed-7)
- [\[v4.4.0\] - 2022-08-28](#v440---2022-08-28)
- [Added](#added-3)
- [Changed](#changed-8)
- [Fixed](#fixed-8)
- [\[v4.3.1\] - 2022-05-08](#v431---2022-05-08)
- [Fixed](#fixed-9)
- [\[v4.3.0\] - 2022-02-18](#v430---2022-02-18)
- [Added](#added-4)
- [Changed](#changed-9)
- [Fixed](#fixed-10)
- [\[v4.2.0\] - 2021-03-28](#v420---2021-03-28)
- [Added](#added-5)
- [Changed](#changed-10)
- [Removed](#removed-2)
- [Fixed](#fixed-11)
- [\[v4.1.0\] - 2021-01-10](#v410---2021-01-10)
- [Added](#added-6)
- [Changed](#changed-11)
- [Fixed](#fixed-12)
- [\[v4.0.1\] - 2020-06-13](#v401---2020-06-13)
- [Changed](#changed-12)
- [Fixed](#fixed-13)
- [\[v4.0.0\] - 2020-05-17](#v400---2020-05-17)
- [Added](#added-7)
- [Changed](#changed-13)
- [Removed](#removed-3)
- [Fixed](#fixed-14)
- [\[v3.2.4\] - 2019-01-13](#v324---2019-01-13)
- [Changed](#changed-14)
- [Deprecated](#deprecated)
- [Fixed](#fixed-15)
- [\[v3.2.3\] - 2018-07-01](#v323---2018-07-01)
- [Added](#added-8)
- [Changed](#changed-15)
- [Removed](#removed-4)
- [\[v3.2.2\] - 2018-05-03](#v322---2018-05-03)
- [Changed](#changed-16)
- [Fixed](#fixed-16)
- [\[v3.2.1\] - 2018-03-24](#v321---2018-03-24)
- [Changed](#changed-17)
- [Removed](#removed-5)
- [Fixed](#fixed-17)
- [\[v3.2.0\] - 2018-01-31](#v320---2018-01-31)
- [Added](#added-9)
- [Changed](#changed-18)
- [Removed](#removed-6)
- [Fixed](#fixed-18)
- [\[v3.1.3\] - 2016-10-25](#v313---2016-10-25)
- [Added](#added-10)
- [Changed](#changed-19)
- [Fixed](#fixed-19)
- [\[v3.1.2\] - 2016-10-23](#v312---2016-10-23)
- [Added](#added-11)
- [Changed](#changed-20)
- [Fixed](#fixed-20)
- [\[v3.1.1\] - 2016-10-16](#v311---2016-10-16)
- [Fixed](#fixed-21)
- [\[v3.1.0\] - 2016-09-24](#v310---2016-09-24)
- [Added](#added-12)
- [Changed](#changed-21)
- [Removed](#removed-7)
- [Fixed](#fixed-22)
- [\[v3.0.1\] - 2016-08-23](#v301---2016-08-23)
- [Changed](#changed-22)
- [Fixed](#fixed-23)
- [\[v3.0.0\] - 2016-06-15](#v300---2016-06-15)
- [Added](#added-13)
- [Changed](#changed-23)
- [Removed](#removed-8)
- [\[v2.2.2\] - 2015-12-02](#v222---2015-12-02)
- [Changed](#changed-24)
- [Fixed](#fixed-24)
- [\[v2.2.1\] - 2015-11-27](#v221---2015-11-27)
- [Changed](#changed-25)
- [Fixed](#fixed-25)
- [\[v2.2.0\] - 2015-11-21](#v220---2015-11-21)
- [Added](#added-14)
- [Changed](#changed-26)
- [Fixed](#fixed-26)
- [\[v2.1.1\] - 2015-08-26](#v211---2015-08-26)
- [Added](#added-15)
- [Changed](#changed-27)
- [Fixed](#fixed-27)
- [\[v2.1.0\] - 2015-08-08](#v210---2015-08-08)
- [Added](#added-16)
- [Changed](#changed-28)
- [Fixed](#fixed-28)
- [\[v2.0.3\] - 2015-03-15](#v203---2015-03-15)
- [Added](#added-17)
- [Changed](#changed-29)
- [Removed](#removed-9)
- [Fixed](#fixed-29)
- [\[v2.0.2\] - 2015-02-08](#v202---2015-02-08)
- [Added](#added-18)
- [Changed](#changed-30)
- [Fixed](#fixed-30)
- [\[v2.0.1\] - 2014-11-23](#v201---2014-11-23)
- [Added](#added-19)
- [Changed](#changed-31)
- [Fixed](#fixed-31)
- [\[v2.0.0\] - 2014-11-16](#v200---2014-11-16)
- [Added](#added-20)
- [Changed](#changed-32)
- [Fixed](#fixed-32)
- [\[v1.2.2\] - 2014-11-05](#v122---2014-11-05)
- [Added](#added-21)
- [Changed](#changed-33)
- [Fixed](#fixed-33)
- [\[v1.2.1\] - 2014-10-24](#v121---2014-10-24)
- [Added](#added-22)
- [Changed](#changed-34)
- [Fixed](#fixed-34)
- [\[v1.2.0\] - 2014-10-12](#v120---2014-10-12)
- [Added](#added-23)
- [Changed](#changed-35)
- [Fixed](#fixed-35)
- [\[v1.1.0\] - 2014-09-28](#v110---2014-09-28)
- [Added](#added-24)
- [Changed](#changed-36)
- [\[v1.0.0\] - 2014-09-21](#v100---2014-09-21)
---
## [v5.0.3] - 2024-01-06
### Changed
- Improvements for Flatpak runtime
- Do not print OpenGL version for unknown user mode driver
- Reword labels about 'theme' in Settings (#314)
- Set tooltip for all labels with full text in GTK GUI (#316)
- Update databases (AMD Storm Peak)
### Fixed
- Fix active graphic card in GTK GUI (#313)
- Fix missing AMD GPU power average for some cards (#315)
---
## [v5.0.2] - 2023-11-12
### Changed
- Print vendor ID and device ID in Graphics tab for "Device ID" label (#311)
- Update various tags in appdata.xml file
- Rename AppID from com.github.thetumultuousunicornofdarkness.cpu-x to io.github.thetumultuousunicornofdarkness.cpu-x
### Fixed
- Fix daemon socket path when prefix is `/usr/local` (#310)
- Fix launchable field in appdata.xml file
- Fix icon name field in PolKit policy file
---
## [v5.0.1] - 2023-10-21
### Changed
- Update databases (AMD Chagall, more Intel CPU packages)
- Do not try to read memory frequency for iGPU with AMDGPU driver
### Fixed
- Fix build on CentOS/RHEL 7 (#305)
- Fix build when libcpuid header is not present (#306)
- Fix abort with stoull() when retrieving GPU monitoring information (#304)
- Fix wrong CPU temperature in fallback mode (#308)
- Fix unknown user mode driver for NVIDIA graphic cards (#307)
---
## [v5.0.0] - 2023-10-15
### Added
- Support for C++17, involving a major rewrite of project from C to C++
- Add more debug data, including a debug mode for the daemon
- Add an option to choose temperature unit among Celsius, Fahrenheit, Kelvin and Rankine
- Add initial Flatpak support with `FLATPAK` option in CMake
### Changed
- Update databases (AMD Genoa, Intel Sapphire Rapids-WS, AMD Phoenix, Intel Alder Lake-U, Intel Apollo Lake)
- Update Intel vendor logo in GTK GUI
- Rename AppData, PolKit policy, Desktop and GSchema files with `com.github.thetumultuousunicornofdarkness` prefix
- Redesign Memory tab
- Rename 'Distribution' label to 'Name' in System tab
### Removed
- Remove support for CMake < 3.12
- Remove 'Compiler' label from System tab
- Remove the need to have gawk/mawk/nawk at the same time during build for test execution
- Remove `APPIMAGE` option in CMake
### Fixed
- Fix CPU temperature in fallback mode on FreeBSD
- Fix build with NCURSES and Intl CMake modules on FreeBSD
- Fix threads affinity for benchmarks
- Fix elapsed time for benchmarks
---
## [v4.5.3] - 2023-04-02
### Added
- Add BAR size for Intel discrete GPU
- Add total VRAM size via Vulkan API for checking ResizableBAR
### Changed
- Update databases (Intel Alder Lake, Intel Raptor Lake-S/P/U)
- Disable OpenCL support by default
- Update brand logos for AMD and Intel
- Make yellow brighter for dark themes in GTK GUI
- Patch dmidecode to version 3.5.484f893
- Update 'Technology' label in CPU tab for new node name (like Intel 7) and change prefix for technology nodes >= 100nm to µm
### Fixed
- Print correct memory speed
- Fix empty 'Interface' label in Graphics tab for NVIDIA cards (get DRM path for all graphic cards)
- Fix race condition with cache test selection
---
## [v4.5.2] - 2022-11-12
### Changed
- Support for procps-ng 4.0.1rc3
- Update databases (Intel Tremont, Intel Ice Lake Xeon-D, AMD Mendocino, AMD Zen 2 Desktop Kit, AMD Athlon 64 Sherman)
### Fixed
- Do not print Vulkan Ray tracing status when indeterminate
---
## [v4.5.1] - 2022-10-23
### Changed
- Update databases (Intel Raptor Lake)
- Display memory DIMMs with "Not Specified" manufacturer
- Improve memory DIMMs capacity format
### Fixed
- Fix segmentation fault in Vulkan code (specific to NVIDIA proprietary driver)
- Fix "invalid write" when detecting OpenCL compute units
---
## [v4.5.0] - 2022-10-09
### Added
- Add support for hybrid CPUs (libcpuid v0.6.0 is required)
- Add support for 'tab' key in NCurses TUI
- Add scrolling in Memory tab in NCurses TUI
### Changed
- Update databases (Intel Alder Lake, AMD Zen 4 (Raphael))
- Improve Vulkan Ray Tracing detection and device matching
- Patch dmidecode to version 3.4.f50b925
### Removed
- Remove CPU voltage reading from in0_input probe
- Remove support for libcpuid before v0.6.0
### Fixed
- Fix segmentation fault during arguments parsing when some features are disabled
- Fix random numbers when CPU technology is not present in database (AMD)
- Fix segmentation fault in Vulkan code (specific to Intel Anv)
- Workaround in OpenCL code in case of aborted signal (specific to AMD ROCm)
---
## [v4.4.0] - 2022-08-28
### Added
- Support for libproc-2 (procps-ng is still supported)
- Add Graphics API Version and Vulkan Ray Tracing in Graphics tab (Vulkan libraries are optionally required)
- Add VBIOS Version in Graphics tab
### Changed
- Display "Configured Memory Speed" instead of "Speed" in Memory tab
- Patch dmidecode to version 3.4.a1a2258
- Update CPU databases (AMD Rembrandt)
### Fixed
- Fix build when libstatgrab support is forced
- Fix flickering in Graphics tab during refresh
---
## [v4.3.1] - 2022-05-08
### Fixed
- Fix CPU usage in System tab when theme is Auto
- Fix a crash when libpci is upgraded and CPU-X is not rebuild against the new shared library
---
## [v4.3.0] - 2022-02-18
### Added
- Add Compute Unit in Graphics Tab (require OpenCL)
- Add Resizable BAR in Graphics tab
### Changed
- Update databases
- Rename from "Ext. Family/Model" to "Disp. Family/Model"
- Display a warning for unsupported CPUs
- Patch dmidecode to version 3.3.024b0fb4
### Fixed
- Fix build with musl libc
- Limit number of characters for labels in Graphics tab (GTK GUI)
- Allow to translate settings (GTK GUI)
---
## [v4.2.0] - 2021-03-28
### Added
- Add new option `--cpuid-decimal` to display CPUID values in decimal
- Add User Mode Driver (UMD) in Graphics Tab (require GLFW)
- Add GPU DeviceID:RevisonID in Graphics tab
- Add PCIe link speed/width in Graphics tab
### Changed
- Reduce the GPU clock precision in Graphics tab
- Reserve 'HT' keyword for Intel CPUs only, and use 'SMT' for other vendors instead
- Update CPU databases
- Support more GPU in Graphics tab
- Use unit prefixes in System tab
- Add a dropdown list in Graphics tab to choose graphic card to monitor
### Removed
- Remove support for libcpuid before v0.5.0
### Fixed
- Apply dmidecode upstream patch to fix warnings
- Fix for `--issue-fmt`
- Fix overflow caused by some translations
- Fix socket path on FreeBSD
---
## [v4.1.0] - 2021-01-10
### Added
- Add `CPUX_ARGS` environment variable to set default command line
- Add alternative key mapping for NCurses mode (option `--keymap`)
- Add debug mode (option `--debug`)
- Add screen reader accessibility on GUI
- Add Core Voltage, Power Avg and Memory Used in Graphics tab (AMDGPU only)
### Changed
- Prefix all hexadecimal values with `0x`
- Reword nonsensical messages
- Update databases
- Request `Tdie` temperature for `k10temp` if available
- Change bars color in System tab in GTK GUI when Dark theme is used
- Patch dmidecode to version 3.3.3c111e4
- Use binary prefixes for System tab
### Fixed
- Fix build on FreeBSD when GTK is enabled
- Fix build on musl libc
- Fix list of influenceable environment variables in help
- Fix override of refresh value when GTK is enabled
- Fix screen flickering in NCurses TUI
- Ignore batteries voltage when searching CPU voltage
- Fix build when gettext support is disabled
- Allow to run CPU-X daemon from AppImage
---
## [v4.0.1] - 2020-06-13
### Changed
- Optimize images
- Prioritize rootless GPU load percentage retrievement for AMDGPU GPU
### Fixed
- Fix double MHz and % symbols on Graphics page with NVIDIA GPU
- Fix reopening of settings window in GTK GUI
- Fix `optirun: command not found` error with NVIDIA GPU
- Mount debugfs if not mounted before reading GPU load percentage for AMDGPU GPU
---
## [v4.0.0] - 2020-05-17
### Added
- Add a daemon to handle privileged access
- Add basic completions for Bash/Fish/Zsh
- Add settings window in GUI
- Add "Driver" label in Graphics tab
- Retrieve CPU temperature on FreeBSD
- Add support for zenpower module
- Add continuous build of AppImage
### Changed
- Patch dmidecode to version 3.2.5b3c8e9
- Move translations from Transifex to Weblate
- Uniform all units (byte and octet)
- Rewrite all CLI options
- Write output to `/tmp/cpu-x.log` and `/tmp/cpu-x-daemon.log` files when `--issue-fmt` is used
- Update databases
- Replace `nvidia-settings` command calls by `nvidia-smi`
- Support for L1 Instruction Cache information
### Removed
- Remove portable binary
- Remove libcurl dependency
- Remove libjson-c dependency
- Remove all privileged access in `cpu-x` binary (moved to `cpu-x-daemon`)
- Remove "CPU-X (Root)" desktop launcher
### Fixed
- Fix some awk regex
- Fix `load_module()` function
- Fix options parsing
- Fix build on FreeBSD
- Various C fixes (unsafe functions and warnings)
- Fix Bumblebee support for NVIDIA/Nouveau
- Fix with VFIO GPU driver
- Fix GUI switches appearance in Bench tab
- Fix issues with AppImage
- Various fixes in NCurses TUI
---
## [v3.2.4] - 2019-01-13
### Changed
- Build portable binary without PIE
- Improve AppImage experience
- Use GitHub API to check new version (libjson-c)
### Deprecated
- Deprecate the portable version
### Fixed
- Wrong GPU clocks with AMDGPU driver
- Empty memory bank label
- Build without gettext
---
## [v3.2.3] - 2018-07-01
### Added
- `TEXTDOMAINDIR`/`TERMINFO` support
- Add AppData metainfo file
- NVIDIA Bumblebee support
### Changed
- Patch Dmidecode to v3.1.20180620
### Removed
- Support for CMake < 3.0
---
## [v3.2.2] - 2018-05-03
### Changed
- Update CPU database
### Fixed
- Segfault when retrieving AMD GPU temperature
---
## [v3.2.1] - 2018-03-24
### Changed
- Switch Cache and Swap colors in System tab
### Removed
- Drop 32-bit portable version for future releases
### Fixed
- Swap bar in NCurses TUI
- Bug in Bandwidth related to AVX instructions
---
## [v3.2.0] - 2018-01-31
### Added
- Add ability to read CPUID raw file (CPUX_CPUID_RAW environment variable)
- Add `--issue-fmt` argument
- Allow to enforce BCLK (CPUX_BCLK environment variable)
- New GTK theme for Dark themes
- Retrive CPU frequency in fallback mode
- Add GPU usage and GPU clocks in Graphics tab
- Add Polish translation (thanks to eloaders)
- Add Russian translation (thanks to TotalCaesar659)
- Add Czech translation (thanks to pavelb)
- Add Chinese translation (thanks to 高垚鑫)
### Changed
- Update CPU database
- Display influenceable environment variables in help
- Display CPU family/model in hex only
- Add a second line for Instructions label
- Improve CPU temperature and voltage retrieval in fallback mode
- Improve GPU temperature retrieval
- Rework GPU detection and improve multi-GPU support
- Patch Dmidecode to v3.1.20180131
- Patch Bandwidth to v1.5.1
### Removed
- Support for libcpuid < 0.4.0
### Fixed
- SSE3 feature detection
- Cache labels format
- `--nocolor` option
- Set window icon in GTK GUI
- cpu-x_polkit command on Wayland (used by cpu-x-root.desktop)
- Buffer overflow in some cases when Dmidecode is called
---
## [v3.1.3] - 2016-10-25
### Added
- Add Russian translation to shortcuts (thanks to TotalCaesar659)
### Changed
- Add more AMD Kaveri CPUs in database
- Print CPUID raw dumps when using `--dump --verbose`
### Fixed
- Segfault in `call_libcpuid_static()`
- GTK GUI theme
---
## [v3.1.2] - 2016-10-23
### Added
- Allow to set Bclk through CPUX_BCLK environment variable
### Changed
- Avoid to refresh Bclk and minimum/maximum CPU multipliers
- Rework CPU multipliers calculation
- Add AMD Tyler CPUs in database
- Reorganize databases
### Fixed
- Segfault caused by `free_multi()`
- Socket detection in fallback mode
- Kernel module load in fallback mode
---
## [v3.1.1] - 2016-10-16
### Fixed
- Bandwidth build on system without stropts.h
- Segfault in `cpu_multipliers_fallback()`
- Asking for update when already up-to-date in portable version
- Dynamic allocation checking
- Memory leaks
---
## [v3.1.0] - 2016-09-24
### Added
- Libcurl support
- Libarchive support in portable version
- Add support for L4 cache in Caches tab
- Add `--tab` option
### Changed
- Patch Dmidecode to 3.0.20160907
- Rebase Bandwidth on v1.3.1
- Decrease Dmidecode verbosity with `--verbose`
- Merge Descriptor label in Size label in Caches tab
- Hide absent cache levels in Caches tab in GTK GUI
- Hide empty pages in GTK GUI
- Refactor Memory tab
- Various minor core enhancements
### Removed
- Support for libcpuid < 0.3.0
- Support for GTK 3.8 & 3.10
### Fixed
- Broken redirection with `--dump`
- Memory leaks
- Bandwidth build with -DWITH_LIBCPUID=0
- Set speed to 0 for unavailable Bandwidth tests
---
## [v3.0.1] - 2016-08-23
### Changed
- Add more CPU and sockets in database
- Decrease verbosity in Dmidecode and Bandwidth
- Improve fallback mode
### Fixed
- Refresh in fallback mode
- Detection of GPU temperature with NVIDIA proprietary driver
- Check for a new version when network is unreachable
- Various minor fixes
---
## [v3.0.0] - 2016-06-15
### Added
- Report total CPU usage
- Add a signal handler to provide backtrace on crash
- Add `--nocolor` option
- Add `--cachetest` option
- Add `--bandwidth` option
- Add `--core` option
- Add a Bench tab
### Changed
- More CMake improvements, allow to build with CMake 2.8
- Full core rewrite
- Improve options parsing
- Rewrite update module for portable version + add `--update` option
- Rewrite NCurses UI + add color support + add help
- CPU-X logo redesign
- Patch dmidecode with latest source code (commit cff11af)
- Rebase bandwidth on v1.1
- Recognize more CPUs for the "Technology" label in CPU tab
- Print some values > 9 in hexadecimal in CPU tab
- More fallback support
- More strings in `--verbose` mode
- A lot of GTK UI tweaks
- Run bandwith in a separate thread to avoid UI slowdown
### Removed
- Drop support for Darwin/Mac OS X
- Report CPU BogoMIPS value
---
## [v2.2.2] - 2015-12-02
### Changed
- Add technology report for some Clarksfield & Richland CPUs
### Fixed
- Avoid to free dynamic labels in Caches tab
- Free memory when possible in `pcidev()` function
- Fix a buffer overflow on HT detection, causing bug in bandwidth
---
## [v2.2.1] - 2015-11-27
### Changed
- Add debugs symbols in bandwidth source code when using CMAKE_BUILD_TYPE=Debug
### Fixed
- Segfault on NULL pointer in `bandwidth()`
- Buffer overflow when setting label name in Caches tab
---
## [v2.2.0] - 2015-11-21
### Added
- Add support for libcpuid 0.2.2
- Add new tab Caches
- Add labels Technology, Voltage and Temp in CPU tab
- Add lebel Temperature in Graphics tab
### Changed
- Some changes in options parsing
- Update to dmidecode 3.0
- In NCurses TUI, add tab names
- Merge Architecture label in Instructions label in CPU tab
- Merge GPU driver with GPU vendor in Graphics tab
- Update GUI for GTK >= 3.8 and < 3.14
### Fixed
- Typo
- L3 cache value
- Some problems with `libdmi_fallback()`
- .desktop files
- Build with Clang
- Stop update if curl is missing
---
## [v2.1.1] - 2015-08-26
### Added
- Add translations support in portable version
- Add HyperThreading detection
- Option `--version` informs if a new version is available
- Add an auto-update module for portable version
- Add pt_BR translation (thanks to ShyPixie)
### Changed
- Some text changes in `--verbose` mode
- Improve translations support (rewrite target updatepo, add target newpo...)
### Fixed
- Segfault with `strdup()` on NULL pointer
- Avoid multipliers "(0 ## 0)" in CPU tab and "-nan" values in System tab
- Fixes garbages after freeing
- Some problems with build
- Do changes to enable compilation with libpci.a in portable version
---
## [v2.1.0] - 2015-08-08
### Added
- Add libsystem
- Add a button to change GTK GUI color
- Add new chipset section in Motherboard tab
- Add new tab Graphics
- GTK 3.14 support / partial GTK 3.16 support
### Changed
- Improve drawing bars in System tab in GTK GUI
- Use dynamic arrays instead of static arrays
- Use GResource instead of GdkPixbuf in GTK embedded GUI
### Fixed
- Build
- Options
- Deprecated functions in GTK GUI code
---
## [v2.0.3] - 2015-03-15
### Added
- Add verbose mode (for CPU-X, previously Dmidecode only)
- Colorized messages
- Add a "Run as root" button in GTK GUI
- Add `make uninstall` target to allow to properly uninstall CPU-X
- Add `make genpot` target to generate a pot file
- Add `make updatepo` target to update a po file from a newer pot file
### Changed
- Better support for non-Linux OS
- Improve displaying of memory usage in System tab
### Removed
- Remove RPATH
### Fixed
- Stop spam errors (in Dmidecode)
- Options when built without GTK
- Incomplete possibility for translation
- Output messages (verbose and error)
---
## [v2.0.2] - 2015-02-08
### Added
- Add argument `--dmidecode` to run (internal) Dmidecode alone
### Changed
- Rebase dmidecode code on 2.12
- Improve options parsing
- Less (useless) function recalls on refresh loop
- Display dashes for empty banks in RAM tab
### Fixed
- Empty RAM tab on certain machines
---
## [v2.0.1] - 2014-11-23
### Added
- Add possibility to resize terminal with NCurses TUI
### Changed
- Better CPU multiplier calculation
- Hide non-existent banks in tab RAM
- Better compiler detection
- Improve option `--help`
- Better translation support
### Fixed
- NCurses TUI: correct refresh (when left key/button 3 on mouse are spammed)
- NCurses TUI: segfault when spamming right key
- GTK GUI/NCurses TUI: use timeout instead of new thread to refresh
- Segfault when file `/etc/os-release` could not be open
- Add more static libraries in portable binary
---
## [v2.0.0] - 2014-11-16
### Added
- Add argument `--dump` (no start GUI)
- Add fallback mode for Libdmi (but it not replaces Libdmi)
- Add new tab System
- Add new tab RAM
- Add support for translations (only French available)
- Add CPU-X launchers (depends of GTK); cpu-x.desktop and cpu-x-root.desktop
- Add possibility to run CPU-X as root with pkexec
- Add more CPU vendor logos
### Changed
- Big changes in core
- Full rewrite GTK GUI
- Minor changes in NCurses TUI
### Fixed
- Segfault when compiling with target Release
- Memory leak (with function get_path)
---
## [v1.2.2] - 2014-11-05
### Added
- Add argument `--verbose` (set Dmidecode verbose)
### Changed
- Print nothing on impossible values (Caches section)
### Fixed
- Stop distort GTK GUI when label length is large
- Stop spam errors (about CPU frequencies)
- Typos (BogoMIPS, CPU Vendor, label Manufacturer)
---
## [v1.2.1] - 2014-10-24
### Added
- Add arguments support (`--no-gui`, `--version`, `--help`)
- Add support for custom refresh time (`--refresh`)
### Changed
- Rewrite error messages
- Restructuration of files and functions in files
### Fixed
- Segfault when compiling without GTK & embeded
- Unwanted characters in NCurses
- Compilation with CMake
---
## [v1.2.0] - 2014-10-12
### Added
- Add NCurses mode
### Changed
- Add possibility to disable GTK/NCurses/Libcpuid/Libdmi before compiling
### Fixed
- CPU multipliers calculation
- Relative path of file on error
- Segfault on unknown multiplier
- Unwanted characters
---
## [v1.1.0] - 2014-09-28
### Added
- Add possibility to change install prefix
### Changed
- Change build system from Makefile to CMake
- Remove calls to external command `dmidecode`, use provided library instead of
- Remove calls to external command `lscpu`
---
## [v1.0.0] - 2014-09-21
- Initial release
CPU-X-5.0.3/README.md 0000664 0000000 0000000 00000017642 14546226052 0013652 0 ustar 00root root 0000000 0000000
[](https://thetumultuousunicornofdarkness.github.io/CPU-X/)
[](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/tags)
[](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/commits/master)
[](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/releases/latest)
[](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/releases)
[](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/issues)
[](https://GitHub.com/TheTumultuousUnicornOfDarkness/CPU-X/pull)
[](https://hosted.weblate.org/engage/cpu-x/?utm_source=widget)
| Linux | FreeBSD | AppImage |
| :---: | :---: | :---: |
| [](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/actions?query=workflow%3A%22Linux+build%22) | [](https://cirrus-ci.com/github/TheTumultuousUnicornOfDarkness/CPU-X) | [](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/actions?query=workflow%3A%22AppImage+Continuous%22) |
**CPU-X** is a Free software that gathers information on CPU, motherboard and more.
CPU-X is a system profiling and monitoring application (similar to [CPU-Z for Windows](https://www.cpuid.com/softwares/cpu-z.html)), but CPU-X is a Free and Open Source software designed for GNU/Linux and FreeBSD.
This software is written in C++ and built with [CMake](https://www.cmake.org/) tool.
It can be used in graphical mode by using GTK or in text-based mode by using NCurses. A dump mode is present from command line.
**:warning: There are no milestones for this project, read [this announcement](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/wiki/future-of-project) for more details.**
***
# Table of contents
- [Table of contents](#table-of-contents)
- [Dependencies](#dependencies)
- [Build-only dependencies](#build-only-dependencies)
- [Test dependencies](#test-dependencies)
- [Build and run dependencies](#build-and-run-dependencies)
- [Download and install](#download-and-install)
- [From repositories](#from-repositories)
- [From GitHub releases](#from-github-releases)
- [From Flathub](#from-flathub)
- [Manual build](#manual-build)
- [Usage](#usage)
- [Wiki](#wiki)
- [Bugs/Improvements/Request features](#bugsimprovementsrequest-features)
- [Translate CPU-X](#translate-cpu-x)
***
## Dependencies
### Build-only dependencies
These dependencies are needed to **build** CPU-X:
* A C++ compiler ([GCC](https://gcc.gnu.org/) or [Clang](https://clang.llvm.org/))
* [CMake](https://www.cmake.org/)
* [Pkg-Config](https://www.freedesktop.org/wiki/Software/pkg-config/) / [Pkgconf](https://github.com/pkgconf/pkgconf)
* [NASM](https://www.nasm.us/)
### Test dependencies
These dependencies are optional to **test** CPU-X:
* [Grep](https://www.gnu.org/software/grep/)
* [GNU Awk¹](https://www.gnu.org/software/gawk/)
* [Mawk¹](https://invisible-island.net/mawk/)
* [One true awk¹](https://github.com/onetrueawk/awk)
**¹**At least on Awk is required, e.g. the default Awk on the system.
### Build and run dependencies
These dependencies are needed to **build²** and **run** CPU-X:
* [Gtkmm3](https://www.gtkmm.org/en/index.html) (versions 3.12 to 3.24 are supported)
* [NCurses](https://www.gnu.org/software/ncurses/)
* [Libcpuid](http://libcpuid.sourceforge.net/) (version 0.6.0 or newer is needed)
* [Pciutils](https://mj.ucw.cz/sw/pciutils/)
* [GLFW](https://www.glfw.org/) (version 3.3 or newer is needed), with [OpenGL](https://www.opengl.org/)
* [Vulkan](https://www.vulkan.org/)
* [OpenCL](https://www.khronos.org/opencl/) (version 1.2 or newer is needed), **disabled by default** (enable with `-DWITH_OPENCL=1` during CMake invocation)
* [Procps-ng](https://sourceforge.net/projects/procps-ng/) (Linux) / [Libstatgrab](https://www.i-scream.org/libstatgrab/) (*BSD)
**²**On some GNU/Linux distributions, the appropriate **-dev** or **-devel** package is needed.
## Download and install
### From repositories
In alphabetical order:
- [Debian (since version 11 "Bullseye")](https://packages.debian.org/search?searchon=names&keywords=cpu-x): `apt install cpu-x`
- [Fedora (since version 30)](https://src.fedoraproject.org/rpms/cpu-x): `dnf install cpu-x`
- [FreeBSD (since version 11)](https://www.freshports.org/sysutils/cpu-x): `pkg install cpu-x`
- [OpenMandriva Lx (since version 4.0 "Nitrogen")](https://github.com/OpenMandrivaAssociation/cpu-x): `dnf install cpu-x`
- [openSUSE Leap (since version 15.2 from **utilities** project)](https://software.opensuse.org//download.html?project=utilities&package=cpu-x): `zypper install cpu-x`
- [Solus](https://packages.getsol.us/shannon/c/cpu-x/): `eopkg install cpu-x`
- [Ubuntu (since version 20.04 "Focal Fossa")](https://packages.ubuntu.com/search?suite=default§ion=all&arch=any&keywords=cpu-x&searchon=names) : `apt install cpu-x`
All packages:
[](https://repology.org/project/cpu-x/versions)
### From GitHub releases
Look for **Assets** [here ](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/releases/latest) for portable binary (AppImage).
### From Flathub
CPU-X is available [as Flatpak on Flathub](https://flathub.org/fr/apps/io.github.thetumultuousunicornofdarkness.cpu-x) since v5.0.2.
### Manual build
For step-by-step guide, please read [this page](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/wiki/manual-build) on the Wiki.
## Usage
Application is available in menu (**System Tools** category). If you start the daemon, it will allow CPU-X to access some special devices, which provides more information and avoid empty labels.
The CPU-X daemon requires root privileges, and uses Polkit for privileges escalation.
You can use `cpu-x` from command line, some options are available, like:
- `--gtk`: to start the graphical user interface (default)
- `--ncurses`: to start the text-based user interface
- `--dump`: to get a summary of data
Use `--help` to see all arguments.
## Wiki
More informations are available on Wiki, like screenshots, troubleshooting and tips. You can access the Wiki by using [this link](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/wiki).
## Bugs/Improvements/Request features
Please [open a new issue](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/issues/new/choose) and fill the appropriate template. Note that text between `` is not displayed.
:warning: **Incomplete reports may be closed without justification.**
## Translate CPU-X
If you want to translate CPU-X in your native tongue, please visit the [Weblate page](https://hosted.weblate.org/engage/cpu-x/?utm_source=widget).
POT file is updated on each changes thanks to [Update POT file workflow](https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/actions?query=workflow%3A%22Update+POT+file%22).
CPU-X-5.0.3/cmake/ 0000775 0000000 0000000 00000000000 14546226052 0013441 5 ustar 00root root 0000000 0000000 CPU-X-5.0.3/cmake/FindFilesystem.cmake 0000664 0000000 0000000 00000017104 14546226052 0017373 0 ustar 00root root 0000000 0000000 # Taken from https://raw.githubusercontent.com/vector-of-bool/CMakeCM/master/modules/FindFilesystem.cmake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#[=======================================================================[.rst:
FindFilesystem
##############
This module supports the C++17 standard library's filesystem utilities. Use the
:imp-target:`std::filesystem` imported target to
Options
*******
The ``COMPONENTS`` argument to this module supports the following values:
.. find-component:: Experimental
:name: fs.Experimental
Allows the module to find the "experimental" Filesystem TS version of the
Filesystem library. This is the library that should be used with the
``std::experimental::filesystem`` namespace.
.. find-component:: Final
:name: fs.Final
Finds the final C++17 standard version of the filesystem library.
If no components are provided, behaves as if the
:find-component:`fs.Final` component was specified.
If both :find-component:`fs.Experimental` and :find-component:`fs.Final` are
provided, first looks for ``Final``, and falls back to ``Experimental`` in case
of failure. If ``Final`` is found, :imp-target:`std::filesystem` and all
:ref:`variables ` will refer to the ``Final`` version.
Imported Targets
****************
.. imp-target:: std::filesystem
The ``std::filesystem`` imported target is defined when any requested
version of the C++ filesystem library has been found, whether it is
*Experimental* or *Final*.
If no version of the filesystem library is available, this target will not
be defined.
.. note::
This target has ``cxx_std_17`` as an ``INTERFACE``
:ref:`compile language standard feature `. Linking
to this target will automatically enable C++17 if no later standard
version is already required on the linking target.
.. _fs.variables:
Variables
*********
.. variable:: CXX_FILESYSTEM_IS_EXPERIMENTAL
Set to ``TRUE`` when the :find-component:`fs.Experimental` version of C++
filesystem library was found, otherwise ``FALSE``.
.. variable:: CXX_FILESYSTEM_HAVE_FS
Set to ``TRUE`` when a filesystem header was found.
.. variable:: CXX_FILESYSTEM_HEADER
Set to either ``filesystem`` or ``experimental/filesystem`` depending on
whether :find-component:`fs.Final` or :find-component:`fs.Experimental` was
found.
.. variable:: CXX_FILESYSTEM_NAMESPACE
Set to either ``std::filesystem`` or ``std::experimental::filesystem``
depending on whether :find-component:`fs.Final` or
:find-component:`fs.Experimental` was found.
Examples
********
Using `find_package(Filesystem)` with no component arguments:
.. code-block:: cmake
find_package(Filesystem REQUIRED)
add_executable(my-program main.cpp)
target_link_libraries(my-program PRIVATE std::filesystem)
#]=======================================================================]
if(TARGET std::filesystem)
# This module has already been processed. Don't do it again.
return()
endif()
cmake_minimum_required(VERSION 3.10)
include(CMakePushCheckState)
include(CheckIncludeFileCXX)
# If we're not cross-compiling, try to run test executables.
# Otherwise, assume that compile + link is a sufficient check.
if(CMAKE_CROSSCOMPILING)
include(CheckCXXSourceCompiles)
macro(_cmcm_check_cxx_source code var)
check_cxx_source_compiles("${code}" ${var})
endmacro()
else()
include(CheckCXXSourceRuns)
macro(_cmcm_check_cxx_source code var)
check_cxx_source_runs("${code}" ${var})
endmacro()
endif()
cmake_push_check_state()
set(CMAKE_REQUIRED_QUIET ${Filesystem_FIND_QUIETLY})
# All of our tests required C++17 or later
set(CMAKE_CXX_STANDARD 17)
# Normalize and check the component list we were given
set(want_components ${Filesystem_FIND_COMPONENTS})
if(Filesystem_FIND_COMPONENTS STREQUAL "")
set(want_components Final)
endif()
# Warn on any unrecognized components
set(extra_components ${want_components})
list(REMOVE_ITEM extra_components Final Experimental)
foreach(component IN LISTS extra_components)
message(WARNING "Extraneous find_package component for Filesystem: ${component}")
endforeach()
# Detect which of Experimental and Final we should look for
set(find_experimental TRUE)
set(find_final TRUE)
if(NOT "Final" IN_LIST want_components)
set(find_final FALSE)
endif()
if(NOT "Experimental" IN_LIST want_components)
set(find_experimental FALSE)
endif()
if(find_final)
check_include_file_cxx("filesystem" _CXX_FILESYSTEM_HAVE_HEADER)
mark_as_advanced(_CXX_FILESYSTEM_HAVE_HEADER)
if(_CXX_FILESYSTEM_HAVE_HEADER)
# We found the non-experimental header. Don't bother looking for the
# experimental one.
set(find_experimental FALSE)
endif()
else()
set(_CXX_FILESYSTEM_HAVE_HEADER FALSE)
endif()
if(find_experimental)
check_include_file_cxx("experimental/filesystem" _CXX_FILESYSTEM_HAVE_EXPERIMENTAL_HEADER)
mark_as_advanced(_CXX_FILESYSTEM_HAVE_EXPERIMENTAL_HEADER)
else()
set(_CXX_FILESYSTEM_HAVE_EXPERIMENTAL_HEADER FALSE)
endif()
if(_CXX_FILESYSTEM_HAVE_HEADER)
set(_have_fs TRUE)
set(_fs_header filesystem)
set(_fs_namespace std::filesystem)
set(_is_experimental FALSE)
elseif(_CXX_FILESYSTEM_HAVE_EXPERIMENTAL_HEADER)
set(_have_fs TRUE)
set(_fs_header experimental/filesystem)
set(_fs_namespace std::experimental::filesystem)
set(_is_experimental TRUE)
else()
set(_have_fs FALSE)
endif()
set(CXX_FILESYSTEM_HAVE_FS ${_have_fs} CACHE BOOL "TRUE if we have the C++ filesystem headers")
set(CXX_FILESYSTEM_HEADER ${_fs_header} CACHE STRING "The header that should be included to obtain the filesystem APIs")
set(CXX_FILESYSTEM_NAMESPACE ${_fs_namespace} CACHE STRING "The C++ namespace that contains the filesystem APIs")
set(CXX_FILESYSTEM_IS_EXPERIMENTAL ${_is_experimental} CACHE BOOL "TRUE if the C++ filesystem library is the experimental version")
set(_found FALSE)
if(CXX_FILESYSTEM_HAVE_FS)
# We have some filesystem library available. Do link checks
string(CONFIGURE [[
#include
#include <@CXX_FILESYSTEM_HEADER@>
int main() {
auto cwd = @CXX_FILESYSTEM_NAMESPACE@::current_path();
printf("%s", cwd.c_str());
return EXIT_SUCCESS;
}
]] code @ONLY)
# Check a simple filesystem program without any linker flags
_cmcm_check_cxx_source("${code}" CXX_FILESYSTEM_NO_LINK_NEEDED)
set(can_link ${CXX_FILESYSTEM_NO_LINK_NEEDED})
if(NOT CXX_FILESYSTEM_NO_LINK_NEEDED)
set(prev_libraries ${CMAKE_REQUIRED_LIBRARIES})
# Add the libstdc++ flag
set(CMAKE_REQUIRED_LIBRARIES ${prev_libraries} -lstdc++fs)
_cmcm_check_cxx_source("${code}" CXX_FILESYSTEM_STDCPPFS_NEEDED)
set(can_link ${CXX_FILESYSTEM_STDCPPFS_NEEDED})
if(NOT CXX_FILESYSTEM_STDCPPFS_NEEDED)
# Try the libc++ flag
set(CMAKE_REQUIRED_LIBRARIES ${prev_libraries} -lc++fs)
_cmcm_check_cxx_source("${code}" CXX_FILESYSTEM_CPPFS_NEEDED)
set(can_link ${CXX_FILESYSTEM_CPPFS_NEEDED})
endif()
endif()
if(can_link)
add_library(std::filesystem INTERFACE IMPORTED)
set_property(TARGET std::filesystem APPEND PROPERTY INTERFACE_COMPILE_FEATURES cxx_std_17)
set(_found TRUE)
if(CXX_FILESYSTEM_NO_LINK_NEEDED)
# Nothing to add...
elseif(CXX_FILESYSTEM_STDCPPFS_NEEDED)
set_property(TARGET std::filesystem APPEND PROPERTY INTERFACE_LINK_LIBRARIES -lstdc++fs)
elseif(CXX_FILESYSTEM_CPPFS_NEEDED)
set_property(TARGET std::filesystem APPEND PROPERTY INTERFACE_LINK_LIBRARIES -lc++fs)
endif()
endif()
endif()
cmake_pop_check_state()
set(Filesystem_FOUND ${_found} CACHE BOOL "TRUE if we can run a program using std::filesystem" FORCE)
if(Filesystem_FIND_REQUIRED AND NOT Filesystem_FOUND)
message(FATAL_ERROR "Cannot run simple program using std::filesystem")
endif()
CPU-X-5.0.3/cmake/GSettings.cmake 0000664 0000000 0000000 00000003701 14546226052 0016353 0 ustar 00root root 0000000 0000000 # See: https://raw.githubusercontent.com/ammonkey/marlin/master/cmake/GSettings.cmake
# GSettings.cmake, CMake macros written for Marlin, feel free to re-use them.
option (GSETTINGS_LOCALINSTALL "Install GSettings Schemas locally instead of to the GLib prefix" ON)
option (GSETTINGS_COMPILE "Compile GSettings Schemas after installation" ${GSETTINGS_LOCALINSTALL})
if(GSETTINGS_LOCALINSTALL)
message(STATUS "GSettings schemas will be installed locally.")
endif()
if(GSETTINGS_COMPILE)
message(STATUS "GSettings shemas will be compiled.")
endif()
macro(add_schema SCHEMA_NAME)
set(PKG_CONFIG_EXECUTABLE pkg-config)
# Have an option to not install the schema into where GLib is
if (GSETTINGS_LOCALINSTALL)
SET (GSETTINGS_DIR "${CMAKE_INSTALL_PREFIX}/share/glib-2.0/schemas/")
else (GSETTINGS_LOCALINSTALL)
execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} glib-2.0 --variable prefix OUTPUT_VARIABLE _glib_prefix OUTPUT_STRIP_TRAILING_WHITESPACE)
SET (GSETTINGS_DIR "${_glib_prefix}/share/glib-2.0/schemas/")
endif (GSETTINGS_LOCALINSTALL)
# Run the validator and error if it fails
execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} gio-2.0 --variable glib_compile_schemas OUTPUT_VARIABLE _glib_comple_schemas OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process (COMMAND ${_glib_comple_schemas} --dry-run --schema-file=${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} ERROR_VARIABLE _schemas_invalid OUTPUT_STRIP_TRAILING_WHITESPACE)
if (_schemas_invalid)
message (SEND_ERROR "Schema validation error: ${_schemas_invalid}")
endif (_schemas_invalid)
# Actually install and recomple schemas
message (STATUS "GSettings schemas will be installed into ${GSETTINGS_DIR}")
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} DESTINATION ${GSETTINGS_DIR} OPTIONAL)
if (GSETTINGS_COMPILE)
install (CODE "message (STATUS \"Compiling GSettings schemas\")")
install (CODE "execute_process (COMMAND ${_glib_comple_schemas} ${GSETTINGS_DIR})")
endif ()
endmacro()
CPU-X-5.0.3/cmake/cmake_uninstall.cmake.in 0000664 0000000 0000000 00000002157 14546226052 0020226 0 ustar 00root root 0000000 0000000 # See: http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
string(REGEX REPLACE "\n" ";" files "${files}")
foreach(file ${files})
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
exec_program("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
if(NOT "${rm_retval}" STREQUAL 0)
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
endif(NOT "${rm_retval}" STREQUAL 0)
else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
endforeach(file)
file(REMOVE_RECURSE @CPU_X_DATA_DIRECTORY@)
CPU-X-5.0.3/cmake/gettext_create_translations.cmake 0000664 0000000 0000000 00000002757 14546226052 0022266 0 ustar 00root root 0000000 0000000 # See: /usr/share/cmake-*.*/Modules/FindGettext.cmake
# This is the GETTEXT_CREATE_TRANSLATIONS macro without GETTEXT_MSGMERGE_EXECUTABLE command
macro(GETTEXT_CONVERT_TRANSLATIONS _potFile _firstPoFileArg)
# make it a real variable, so we can modify it here
set(_firstPoFile "${_firstPoFileArg}")
set(_gmoFiles)
get_filename_component(_potName ${_potFile} NAME)
string(REGEX REPLACE "^(.+)(\\.[^.]+)$" "\\1" _potBasename ${_potName})
get_filename_component(_absPotFile ${_potFile} ABSOLUTE)
set(_addToAll)
if(${_firstPoFile} STREQUAL "ALL")
set(_addToAll "ALL")
set(_firstPoFile)
endif()
foreach (_currentPoFile ${_firstPoFile} ${ARGN})
get_filename_component(_absFile ${_currentPoFile} ABSOLUTE)
get_filename_component(_abs_PATH ${_absFile} PATH)
get_filename_component(_lang ${_absFile} NAME_WE)
set(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo)
add_custom_command(
OUTPUT ${_gmoFile}
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_absFile}
DEPENDS ${_absPotFile} ${_absFile}
)
install(FILES ${_gmoFile} DESTINATION share/locale/${_lang}/LC_MESSAGES RENAME ${_potBasename}.mo)
set(_gmoFiles ${_gmoFiles} ${_gmoFile})
endforeach ()
if(NOT TARGET translations)
add_custom_target(translations)
endif()
_GETTEXT_GET_UNIQUE_TARGET_NAME(translations uniqueTargetName)
add_custom_target(${uniqueTargetName} ${_addToAll} DEPENDS ${_gmoFiles})
add_dependencies(translations ${uniqueTargetName})
endmacro()
CPU-X-5.0.3/data/ 0000775 0000000 0000000 00000000000 14546226052 0013272 5 ustar 00root root 0000000 0000000 CPU-X-5.0.3/data/CMakeLists.txt 0000664 0000000 0000000 00000002621 14546226052 0016033 0 ustar 00root root 0000000 0000000 project(data
LANGUAGES NONE
)
add_subdirectory(completions)
# Files needed by GTK GUI
if(WITH_GTK)
include(GSettings)
# Set config
file(MAKE_DIRECTORY ${CMAKE_DATA_OUTPUT_DIRECTORY})
configure_file(io.github.thetumultuousunicornofdarkness.cpu-x.desktop.in ${CMAKE_DATA_OUTPUT_DIRECTORY}/io.github.thetumultuousunicornofdarkness.cpu-x.desktop)
configure_file(io.github.thetumultuousunicornofdarkness.cpu-x-daemon.policy.in ${CMAKE_DATA_OUTPUT_DIRECTORY}/io.github.thetumultuousunicornofdarkness.cpu-x-daemon.policy)
# Install UIs
install(FILES
cpu-x-gtk-3.12.ui
cpu-x-gtk-3.12.css
cpu-x-gtk-3.12-dark.css
cpu-x-gtk-3.20.css
cpu-x-gtk-3.20-dark.css
DESTINATION ${CPU_X_DATA_DIRECTORY}/
)
# AppData metainfo file
install(FILES
io.github.thetumultuousunicornofdarkness.cpu-x.appdata.xml
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/metainfo/
)
# Install launcher
install(FILES
${CMAKE_DATA_OUTPUT_DIRECTORY}/io.github.thetumultuousunicornofdarkness.cpu-x.desktop
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/applications/
)
# Install policy rule
install(FILES
${CMAKE_DATA_OUTPUT_DIRECTORY}/io.github.thetumultuousunicornofdarkness.cpu-x-daemon.policy
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/polkit-1/actions/
)
# Install schema file
add_schema("io.github.thetumultuousunicornofdarkness.cpu-x.gschema.xml")
add_subdirectory(icons)
add_subdirectory(logos)
endif(WITH_GTK)
CPU-X-5.0.3/data/completions/ 0000775 0000000 0000000 00000000000 14546226052 0015626 5 ustar 00root root 0000000 0000000 CPU-X-5.0.3/data/completions/CMakeLists.txt 0000664 0000000 0000000 00000000627 14546226052 0020373 0 ustar 00root root 0000000 0000000 project(completions
LANGUAGES NONE
)
install(FILES
bash
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/bash-completion/completions/
RENAME ${CMAKE_PROJECT_NAME}
)
install(FILES
fish
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/fish/vendor_completions.d/
RENAME ${CMAKE_PROJECT_NAME}.fish
)
install(FILES
zsh
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/zsh/site-functions/
RENAME _${CMAKE_PROJECT_NAME}
)
CPU-X-5.0.3/data/completions/bash 0000664 0000000 0000000 00000001432 14546226052 0016466 0 ustar 00root root 0000000 0000000 _cpu_x() {
local cur prev display opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
display=(-G --gtk -N --ncurses -D --dump -M --dmidecode -B --bandwidth -h --help -V --version)
opts=(-r --refresh -t --tab -c --core -b --cachetest -d --daemon -v --verbose --nocolor --issue-fmt --keymap)
case $prev in
-G|--gtk|-N|--ncurses|-D|dump|-M|--dmidecode|-B|--bandwidth)
COMPREPLY=($(compgen -W "${opts[*]}" -- "$cur"))
;;
-h|--help|-V|--version)
return 0
;;
-r|--refresh|-t|--tab|-c|--core|-b|--cachetest|-d|--daemon|-v|--verbose|--nocolor|--debug|--issue-fmt|--keymap)
COMPREPLY=($(compgen -W "${opts[*]}" -- "$cur"))
;;
*)
COMPREPLY=($(compgen -W "${display[*]} ${opts[*]}" -- "$cur"))
;;
esac
}
complete -F _cpu_x cpu-x
CPU-X-5.0.3/data/completions/fish 0000664 0000000 0000000 00000003025 14546226052 0016502 0 ustar 00root root 0000000 0000000 set -l progname cpu-x
complete -c $progname -f
set -l noopt 'not __fish_contains_opt -s G -s N -s D -s M -s B V gtk ncurses dump dmidecode bandwidth'
complete -c $progname -s G -l gtk -n $noopt -d 'Start graphical user interface (GUI)'
complete -c $progname -s N -l ncurses -n $noopt -d 'Start text-based user interface (TUI)'
complete -c $progname -s D -l dump -n $noopt -d 'Dump all data on standard output and exit'
complete -c $progname -s M -l dmidecode -n $noopt -d 'Run embedded command dmidecode and exit'
complete -c $progname -s B -l bandwidth -n $noopt -d 'Run embedded command bandwidth and exit'
complete -c $progname -s h -l help -n $noopt -d 'Print help and exit'
complete -c $progname -s V -l version -n $noopt -d 'Print version and exit'
complete -c $progname -s r -l refresh -x -d 'Set custom time between two refreshes (in seconds)'
complete -c $progname -s t -l tab -x -d 'Set default tab (integer)'
complete -c $progname -s c -l core -x -d 'Select CPU core to monitor (integer)'
complete -c $progname -s b -l cachetest -x -d 'Set custom bandwidth test for CPU caches speed (integer)'
complete -c $progname -s d -l daemon -d 'Start and connect to daemon'
complete -c $progname -s v -l verbose -d 'Verbose output'
complete -c $progname -l nocolor -d 'Disable colored output'
complete -c $progname -l debug -d 'Print information for debugging'
complete -c $progname -l issue-fmt -d 'Print required informations to paste in an issue'
complete -c $progname -l keymap -x -d 'Set key mapping for NCurses mode (arrows|emacs|inverted-T|vim)'
CPU-X-5.0.3/data/completions/zsh 0000664 0000000 0000000 00000001772 14546226052 0016364 0 ustar 00root root 0000000 0000000 #compdef cpu-x
_cpu_x() {
_arguments -C \
{-G,--gtk}'[Start graphical user interface (GUI)]' \
{-N,--ncurses}'[Start text-based user interface (TUI)]' \
{-D,--dump}'[Dump all data on standard output and exit]' \
{-M,--dmidecode}'[Run embedded command dmidecode and exit]' \
{-B,--bandwidth}'[Run embedded command bandwidth and exi]' \
{-r,--refresh}'[Set custom time between two refreshes (in seconds)]' \
{-t,--tab}'[Set default tab (integer)]' \
{-c,--core}'[Select CPU core to monitor (integer)]' \
{-b,--cachetest}'[Set custom bandwidth test for CPU caches speed (integer)]' \
{-d,--daemon}'[Start and connect to daemon]' \
{-v,--verbose}'[Verbose output]' \
{-h,--help}'[Print help and exit]' \
{-V,--version}'[Print version and exit]' \
'--nocolor[Disable colored output]' \
'--debug[Print information for debugging]' \
'--issue-fmt[Print required informations to paste in an issue]' \
'--keymap[Set key mapping for NCurses mode (arrows|emacs|inverted-T|vim)]'
}
_cpu_x "$@"
CPU-X-5.0.3/data/cpu-x-gtk-3.12-dark.css 0000664 0000000 0000000 00000000223 14546226052 0017120 0 ustar 00root root 0000000 0000000 GtkBox#footer_box {
color: rgb(46, 52, 54);
background-color: rgb(76, 153, 230);
}
GtkLabel#value,
GtkProgressBar {
color: rgb(192, 192, 0);
}
CPU-X-5.0.3/data/cpu-x-gtk-3.12.css 0000664 0000000 0000000 00000000221 14546226052 0016177 0 ustar 00root root 0000000 0000000 GtkBox#footer_box {
color: rgb(46, 52, 54);
background-color: rgb(76, 153, 230);
}
GtkLabel#value,
GtkProgressBar {
color: rgb(0, 0, 128);
}
CPU-X-5.0.3/data/cpu-x-gtk-3.12.ui 0000664 0000000 0000000 00001377305 14546226052 0016051 0 ustar 00root root 0000000 0000000
False6FalseTruepreferences-desktopdialogFalsevertical2Falseendgtk-cancelTrueTrueTrueTrueTrueTrue0gtk-okTrueTrueTrueTrueTrueTrue1FalseFalse0TrueTrueTrueTrueTrueFalse4412612TrueFalsestartRefresh timerefreshtime_val01TrueTrueTrue11TrueFalsestartText themetheme_val02TrueFalseTrue0AutomaticBlue for light themeYellow for dark theme12TrueFalsestartTemperature unitrefreshtime_val00TrueFalseTrue0Celsius (°C)Fahrenheit (°F)Kelvin (K)Rankine (Ra)10TrueFalseInterfaceFalseTrueFalse12612TrueFalsestartDefault tabdefaulttab_val00TrueFalsestartDefault CPU coredefaultcore_val02TrueFalsestartDefault cache testdefaultcachetest_val03TrueFalseTrue10TrueFalseTrue12TrueFalseTrue13Print CPUID values in decimalTrueTrueFalsestartTrue062Start and connect to daemonTrueTrueFalsestartTrue072TrueFalsestartDefault graphic carddefaultcachetest_val05TrueFalseTrue15TrueFalsestartDefault core typedefaultcore_val01TrueFalseTrue11TrueFalsestartDefault memory stickdefaultcachetest_val04TrueFalseTrue141TrueFalseStartup1FalseFalseTrue1
CPU-X-5.0.3/data/cpu-x-gtk-3.20-dark.css 0000664 0000000 0000000 00000000212 14546226052 0017115 0 ustar 00root root 0000000 0000000 box#footer_box {
color: rgb(46, 52, 54);
background-color: rgb(76, 153, 230);
}
label#value,
progressbar {
color: rgb(192, 192, 0);
}
CPU-X-5.0.3/data/cpu-x-gtk-3.20.css 0000664 0000000 0000000 00000000210 14546226052 0016174 0 ustar 00root root 0000000 0000000 box#footer_box {
color: rgb(46, 52, 54);
background-color: rgb(76, 153, 230);
}
label#value,
progressbar {
color: rgb(0, 0, 128);
}
CPU-X-5.0.3/data/icons/ 0000775 0000000 0000000 00000000000 14546226052 0014405 5 ustar 00root root 0000000 0000000 CPU-X-5.0.3/data/icons/CMakeLists.txt 0000664 0000000 0000000 00000000726 14546226052 0017152 0 ustar 00root root 0000000 0000000 project(icons
LANGUAGES NONE
)
# Icons
file(GLOB
icons
CPU-X_*x*.png
)
foreach(icon ${icons})
get_filename_component(filename ${icon} NAME_WE)
string(REGEX REPLACE "CPU-X_" "" size "${filename}")
install(FILES
${icon}
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/icons/hicolor/${size}/apps/
RENAME io.github.thetumultuousunicornofdarkness.cpu-x.png
)
endforeach()
install(FILES
CPU-X_original.png
DESTINATION ${CPU_X_DATA_DIRECTORY}/
RENAME CPU-X.png
)
CPU-X-5.0.3/data/icons/CPU-X_128x128.png 0000664 0000000 0000000 00000054003 14546226052 0016766 0 ustar 00root root 0000000 0000000 PNG
IHDR >a gAMA a cHRM z&