Comments (9)
The gi
module is just Python bindings for GObject and other GTK libraries. I doubt it is totally broken otherwise way more apps would crash on your system, maybe cpupower-gui
has other issues.
Are they any commands so I can manually turn on or off the boosting of CPUs?
See asusctltray lines 181-192. Replace {path}
with the path above and run the commands for off
and on
.
from asusctltray.
See also https://gitlab.com/asus-linux/asusctl/-/blob/main/CHANGELOG.md?ref_type=heads#breaking
from asusctltray.
PS : I turned off boosting before the application is working and I dont know whether boosting is on or not. Are they any commands so I can manually turn on or off the boosting of CPUs?
boost is controlled via sysfs depends on your brand of cpu... (note the boolean is reversed from each other)
AMD:(1 = boost is on, 0 = boost is off): /sys/devices/system/cpu/cpufreq/boost
Intel(0 = boost is on, 1 = boost is off): /sys/devices/system/cpu/intel_pstate/no_turbo
to find out if your boost is on or not:
AMD: cat /sys/devices/system/cpu/cpufreq/boost
Intel: cat /sys/devices/system/cpu/intel_pstate/no_turbo
to turn on boost:
AMD: echo 1 | sudo tee -a /sys/devices/system/cpu/cpufreq/boost
Intel: echo 0 | sudo tee -a /sys/devices/system/cpu/intel_pstate/no_turbo
to turn off boost:
AMD: echo 0 | sudo tee -a /sys/devices/system/cpu/cpufreq/boost
Intel: echo 1 | sudo tee -a /sys/devices/system/cpu/intel_pstate/no_turbo
from asusctltray.
Thank you for the bug report! It seems like asusctl
changed their DBus API for the 100th time, sadly I don't have much free time this week (I'm on vacation with slow internet) but I should be able to investigate in a couple days time. Would you kindly send the output of asusctl -v
?
from asusctltray.
Here is the output for asusctl -v
(base) [wick@sanganaka ~]$ asusctl -v
asusctl v4.7.0-RC3
asusctl version: 4.7.0-RC3
Product family: ROG Zephyrus G14
Board name: GA402RK
Optional arguments:
-h, --help print help message
-v, --version show program version number
-s, --show-supported show supported functions of this laptop
-k, --kbd-bright <off, low, med, high>
-n, --next-kbd-bright Toggle to next keyboard brightness
-p, --prev-kbd-bright Toggle to previous keyboard brightness
-c, --chg-limit Set your battery charge limit <20-100>
led-mode Set the keyboard lighting from built-in modes
led-pow-2 Set the LED power states
profile Set or select platform_profile
fan-curve Set, select, or modify fan curves if supported
graphics Set the graphics mode (obsoleted by supergfxctl)
anime Manage AniMe Matrix
bios Change bios settings
Extra help can be requested on any command or subcommand:
asusctl led-mode --help
asusctl led-mode static --help
PS : I turned off boosting before the application is working and I dont know whether boosting is on or not. Are they any commands so I can manually turn on or off the boosting of CPUs?
from asusctltray.
Also I think any python based application which is using this gi module is broken. I am suing an application called cpupowercontrol-gui and it is also broken.
Here is the log for it
(base) [wick@sanganaka ~]$ cpupower-gui
Traceback (most recent call last):
File "/usr/bin/cpupower-gui", line 361, in <module>
import gi
File "/home/wick/anaconda3/lib/python3.9/site-packages/gi/__init__.py", line 40, in <module>
from . import _gi
ImportError: /usr/lib/libgirepository-1.0.so.1: undefined symbol: g_string_free_and_steal
(base) [wick@sanganaka ~]$ conda deactivate
[wick@sanganaka ~]$ cpupower-gui
Traceback (most recent call last):
File "/usr/bin/cpupower-gui", line 361, in <module>
import gi
File "/home/wick/anaconda3/lib/python3.9/site-packages/gi/__init__.py", line 40, in <module>
from . import _gi
ImportError: /usr/lib/libgirepository-1.0.so.1: undefined symbol: g_string_free_and_steal
[wick@sanganaka ~]$
Perhaps the issue is some update which broke module gi ??
cpucontrol-gui have the similar issue raised but I think it is related to dbus vagnum08/cpupower-gui/issues/107
from asusctltray.
ive fixed the errors at least for my laptop.
I dont have much experience with GTK/DBUS in python... so use at your own risk.
https://github.com/michlinux/asusctltray
michlinux@8de20e0
from asusctltray.
Sorry for the lack of a response, I've been swamped with work in the last month so I couldn't publish a release.
ive fixed the errors at least for my laptop.
I dont have much experience with GTK/DBUS in python... so use at your own risk.
Thanks, the fix I implemented locally is something quite similar. Be careful when using the labels of the widget as data because they are just what's shown on the UI, they never guarantee consistency on the data below. Other than that, thank you for reminding me of fixing this!
from asusctltray.
This has been fixed! I'm deeply sorry to have taken so long and I have no excuses. Thank you all for using my projects and contributing to them.
from asusctltray.
Related Issues (20)
- supergfxctl 4.x support HOT 1
- Unrecognised graphics mode with index (int(vendor)). HOT 3
- another DBus exception error. HOT 4
- Installing from AUR HOT 3
- Add dGPU power status to tray HOT 2
- Real-time dGPU power status update HOT 7
- Missing tray icon on sway + waybar HOT 3
- Boost control HOT 3
- Wrap the project into a namespace for easy killing on WM reset HOT 7
- No Desktop Icon on gnome on arch HOT 2
- Dbus.string error HOT 1
- Not launching on Hyprland HOT 3
- Unable to start asusctltray on endeavouros HOT 2
- Licensing HOT 1
- asusctl 4.x support HOT 2
- new graphics Dbus interface support
- DBusException error HOT 2
- Does not install in ubuntu No such file or directory: '/etc/supergfxd.conf' HOT 2
- Support for supergfxctl v3.x.x HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asusctltray.