All Projects → martin31821 → Cpupower

martin31821 / Cpupower

Licence: gpl-3.0
Gnome-Shell Extension for intel-pstate driver

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Cpupower

blur-my-shell
Extension that adds a blur look to different parts of the GNOME Shell, including the top panel, dash and overview
Stars: ✭ 516 (+104.76%)
Mutual labels:  extension, gnome, gnome-shell, gnome-shell-extension
gnome-email-notifications
Gnome Email Notifications
Stars: ✭ 65 (-74.21%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
transparent-window-moving
GNOME Shell Extension. Makes window transparent while moving on the desktop.
Stars: ✭ 22 (-91.27%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
Material Shell
A modern desktop interface for Linux. Improve your user experience and get rid of the anarchy of traditional desktop workflows. Designed to simplify navigation and reduce the need to manipulate windows in order to improve productivity. It's meant to be 100% predictable and bring the benefits of tools coveted by professionals to everyone.
Stars: ✭ 6,189 (+2355.95%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome
Resource Monitor
Resource_Monitor is a GNOME Shell extension that Monitor the use of system resources like cpu, ram, disk, network and display them in GNOME Shell top bar.
Stars: ✭ 62 (-75.4%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
Tray-Icons-Reloaded
GNOME Shell extension which bring back Tray Icons to top panel, with additional features.
Stars: ✭ 279 (+10.71%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
Unite Shell
Unite is an extension that makes GNOME Shell look like Ubuntu Unity Shell.
Stars: ✭ 553 (+119.44%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome
gnome-pass-search-provider
Pass password manager search provider for gnome-shell
Stars: ✭ 52 (-79.37%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
Argos
Create GNOME Shell extensions in seconds
Stars: ✭ 1,251 (+396.43%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome
Gnome Shell Extension Gsconnect
KDE Connect implementation for GNOME
Stars: ✭ 2,137 (+748.02%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome
Gnome Shell Volume Mixer
GNOME Shell Extension allowing separate configuration of PulseAudio devices
Stars: ✭ 95 (-62.3%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome
alphabetical-grid-extension
Restore the alphabetical ordering of the app grid, removed in GNOME 3.38
Stars: ✭ 43 (-82.94%)
Mutual labels:  extension, gnome, gnome-shell-extension
earth-view-wallpaper-gnome-extension
A beautiful satellite image from Google Earth as your GNOME desktop wallpaper.
Stars: ✭ 48 (-80.95%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
compiz-alike-magic-lamp-effect
Compiz alike magic lamp effect for GNOME Shell
Stars: ✭ 58 (-76.98%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
Dynamic Panel Transparency
Adds Transparency To The Gnome Shell Panel
Stars: ✭ 189 (-25%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome
Persian Calendar For Gnome Shell
An extension for Gnome-Shell to show Persian date/calendar
Stars: ✭ 261 (+3.57%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome
forge
Forge - Tiling and Window Manager for Gnome-Shell
Stars: ✭ 144 (-42.86%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
gnome-runcat
😼 The cat tells you the CPU usage by running speed
Stars: ✭ 194 (-23.02%)
Mutual labels:  gnome, gnome-shell, gnome-shell-extension
Gnome Shell Extension Ozshell
GNOME Shell extension for interfacing with the OZ application sandboxing framework
Stars: ✭ 6 (-97.62%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome
Bing Wallpaper Gnome Extension
GNOME shell extension that sets your desktop wallpaper & lock screen image to Microsoft Bing's Image of the Day.
Stars: ✭ 125 (-50.4%)
Mutual labels:  gnome-shell-extension, gnome-shell, gnome

CPU Power Manager for Gnome Shell

Get it on GNOME Extensions
latest build release build Lastest release Gnome License PRs Welcome
Gnome-Shell Extension for intel-pstate driver

PrerequisitesInstallationTranslatingPackagingDeveloping

Prerequisites

You need to have an Intel Core i CPU of at least the second Generation (2xxx Model Number) and the following software installed to use this extension:

  • Gnome (since it's an extension)
  • Policykit (ships default with gnome)
  • intel_pstate needs to be enabled in the kernel (should be the default in almost all Distros)
  • bash

Installing via Makefile

In order to use the Makefile you need the following packages:

  • make
  • gettext

Installation

The easiest way to install this extension is by using the Gnome extensions website.

Click on the CPU icon in the top bar of your Gnome shell and follow the installation instructions. You need to enter your root password to install a policy kit rule. This rule is used to set the clock frequency of your CPU with your user.

Installing for another (admin) user

Impersonate the (admin) user, clone the git repository, and run the following command:

Note: Cloning and installing the extension while impersonating the other user, enables this user to install updates for this extension from extensions.gnome.org.

$ sudo -u username bash
$ cd /tmp
$ git clone https://github.com/martin31821/cpupower.git
$ cd cpupower
$ make install PREFIX=/home/username/.local

Restart the gnome-shell (log out and back in) to make the extension available.

The user can enable the extension in his settings and install the polkit rule and cpufreqctl tool by using the included installation guide.

Uninstalling

The user can uninstall the tools in the settings of this extension. The extension itself can be removed from withing the extension settings or with this command:

$ make uninstall PREFIX=/home/username/.local

Installing for another (non-admin) user

Impersonate the (non-admin) user, clone the git repository, and run the following command:

Note: Cloning and installing the extension while impersonating the other user, enables this user to install updates for this extension from extensions.gnome.org. However, the tool must be updated and installed by an administrator. The extension may stop working after the user installed an update and may need updating of the tool by an administrator.

$ sudo -u username bash
$ cd /tmp
$ git clone https://github.com/martin31821/cpupower.git
$ cd cpupower
$ make install PREFIX=/home/username/.local

And with an admin user run the following commands:

$ sudo make install-tool TOOL_SUFFIX=username

Note: Also, use this command to update the tool for another user in an outdated installation.

Note: Using another PREFIX than /usr in this setup might include security risks and may not work.

Restart the gnome-shell (log out and back in) to make the extension available.

The extension will work out-of-the-box for this user only!

Uninstalling

$ sudo make uninstall PREFIX=/home/username/.local
$ sudo make uninstall-tool TOOL_SUFFIX=username

Installing for all users

Clone the git repository and run the following command:

$ sudo make install install-tool

This will install the extensions, polkit rule, and the tool for all users on the system.

Uninstalling

Run the following command to uninstall:

$ sudo make uninstall uninstall-tool

Translating

In order to translate this extension you first need to install Poedit. You may use your distributions package manager to install it.

When finished, fork this project and clone like described in the linked guide.

Creating a new translation

Open Poedit and select File / New From POT/PO File... and select cpupower/locale/template.pot. Select the language you want to translate to. Now start translating.

Edit or update an existing translation

Open Poedit and select Open. Navigate to the cpupower/locale folder and select the language file (.po) you want to edit/update. Now select Catalog / Update from POT File... and select cpupower/locale/template.pot. Now, you can start updating the translation.

Saving your work

When finished save the file into the locale folder and push your changes to your fork. Now, you can create a pull request to make your translation available in the main cpupower installation.

Packaging

You are a package maintainer and looking into packaging this extension? Great! Below is a short summary of how to properly install this extension (run as root):

# make install install-tool PREFIX=/usr

This will install a polkit rule to /usr/share/polkit-1/actions/mko.cpupower.setcpufreq.policy and an executable bash script to /usr/bin/cpufreqctl. The extension is installed to /usr/share/gnome-shell/extensions/[email protected]. It still includes the scripts folder, the policykit rule template in data/mko.cpupower.policy.in, a useless copy of the tool in the tool folder, and the Makefile. These are included in the distribution of the extension to enable user installation if the extension got installed over the GNOME extensions website. If you do not want to distribute those files in your package, you can safely remove them.

If you find any issues in packaging this extension, please don't hesitate to report them!

Developing

Option 1

Clone the repository and run:

$ make install PREFIX=/home/username/.local

and reload the extension by restarting your gnome-shell.

Option 2

Clone the respository to ~/.local/share/gnome-shell/extensions/[email protected] and reload the extension by restarting your gnome-shell.

You can now enable the extension in your extension settings.

Viewing log output

$ journalctl /usr/bin/gnome-shell -f

Creating a new release

Only core contributors to this project can make a new release. To create one, run:

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