Giter VIP home page Giter VIP logo

Comments (9)

Baldomo avatar Baldomo commented on May 27, 2024 1

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.

flukejones avatar flukejones commented on May 27, 2024 1

See also https://gitlab.com/asus-linux/asusctl/-/blob/main/CHANGELOG.md?ref_type=heads#breaking

from asusctltray.

michlinux avatar michlinux commented on May 27, 2024 1

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.

Baldomo avatar Baldomo commented on May 27, 2024

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.

openwick avatar openwick commented on May 27, 2024

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.

openwick avatar openwick commented on May 27, 2024

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.

michlinux avatar michlinux commented on May 27, 2024

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.

Baldomo avatar Baldomo commented on May 27, 2024

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.

https://github.com/michlinux/asusctltray
michlinux@8de20e0

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.

Baldomo avatar Baldomo commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.