konkor / cpufreq

System Monitor and Power Manager
https://konkor.github.io/cpufreq/
GNU General Public License v3.0
580 stars 60 forks source link

Please update to Gnome 42 #201

Open gilvbp opened 2 years ago

gilvbp commented 2 years ago

Please update to Gnome 42!

gilvbp commented 2 years ago

Geting this error: Object 0x3d1e2d6288f8 is not a subclass of GObject_Object, it's a Object

BloodyIron commented 2 years ago

Is this going to get Gnome 42 support or what?

konkor commented 2 years ago

I don't know what to say guys. I'm affected by war in Ukraine. Right now I'm at a temporary refugee camp in Lviv waiting for military recruiting agency's decision. My family is going to Canada. I don't have any laptop nearby to help you.

I wish that war will end soon and Russians will be punished for what they done and doing.

Slava Ukraine!

BloodyIron commented 2 years ago

I don't know what to say guys. I'm affected by war in Ukraine. Right now I'm at a temporary refugee camp in Lviv waiting for military recruiting agency's decision. My family is going to Canada. I don't have any laptop nearby to help you.

I wish that war will end soon and Russians will be punished for what they done and doing.

Slava Ukraine!

Hey that's totally understandable! Stay strong! I hope you make it! <3

neclimdul commented 2 years ago

Every day I find another awesome Ukrainian open source developer that built something I use daily. In its own way I think that says a lot about the sort of people Ukrainians are.

I also hope you and your family stay safe.

vulpesfoxnik commented 2 years ago

Geting this error: Object 0x3d1e2d6288f8 is not a subclass of GObject_Object, it's a Object

It wounds like some class needs a GObject interfaced object instead of a pain Javascript object somewhere. Without the stack trace, knowing the line or function upset a a plain object is going to have to be trial and error. I'm going to be looking into this, but first I need to get up and started to a suggested change. No promises. I'm going to be using: https://gjs.guide/extensions/upgrading/gnome-shell-42.html#metadata-json

vulpesfoxnik commented 2 years ago

JS ERROR: Extension cpufreq@konkor: TypeError: Object 0x33c051127940 is not a subclass of GObject_Object, it's a Object _construct@resource:///org/gnome/gjs/modules/script/_legacy.js:536:31 wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27 newClass@resource:///org/gnome/gjs/modules/script/_legacy.js:115:21 Class@resource:///org/gnome/gjs/modules/script/_legacy.js:66:16 @/home/enforcer/.local/share/gnome-shell/extensions/cpufreq@konkor/extension.js:113:28 _callExtensionInit@resource:///org/gnome/shell/ui/extensionSystem.js:440:13 loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:361:27 _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:620:18 collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:28 _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:595:19 _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:626:18 _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:646:14 init@resource:///org/gnome/shell/ui/extensionSystem.js:56:14 _initializeUI@resource:///org/gnome/shell/ui/main.js:293:22 start@resource:///org/gnome/shell/ui/main.js:170:5 @resource:///org/gnome/shell/ui/init.js:6:17

Ok I found the call stack of the error. The API for Lang.Class must have changed.

vulpesfoxnik commented 2 years ago

I found this post of anther extension having a similar issue and it's patches. I'm going to give it a shot: https://gitlab.manjaro.org/applications/pamac/-/issues/1252

vulpesfoxnik commented 2 years ago

Right it looks like it just needed to converted to a proper ES6 class. I've fixed it but I'm not quire sure how to upload a patch to github. I've got it working locally.

vulpesfoxnik commented 2 years ago

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

hworoshch commented 2 years ago

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

I confirm it works on Gnome 42. Thank you very much! It is good that there are people who can find and fix the problem instead of winding snot on their fist.

koroki commented 2 years ago

I confirm it works correctly!

Super thanks to @vulpesfoxnik

Also, Stay strong @konkor !!!

els8791 commented 2 years ago

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

Hi For me it works in Ubuntu 22.04, thanks @vulpesfoxnik I had to change the metadata.json and add "42" + replace with your extension.js

cpufreq@konkor.zip Copy the downloaded Zip to ~/.local/share/gnome-shell/extensions and unpack the zip file. Delete the zip file.

Log out / in from the running gnome session. Open gnome extension manager and activate the cpufreq extension. i hope it will help!

i wish @konkor all the best and STAY strong & save!

grafik

els8791 commented 2 years ago

Cio`e?

hermes83 @.***> schrieb am Sa., 23. Apr. 2022, 01:33:

Mi chiedo perchè la gente non sappia leggere un thread di messaggi in ordine cronologico

— Reply to this email directly, view it on GitHub https://github.com/konkor/cpufreq/issues/201#issuecomment-1107042499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY3IKIMSELT7NC24HLPL663VGMZOJANCNFSM5POTP4PQ . You are receiving this because you commented.Message ID: @.***>

Eimis-dev commented 2 years ago

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

Hi For me it works in Ubuntu 22.04, thanks @vulpesfoxnik I had to change the metadata.json and add "42" + replace with your extension.js

cpufreq@konkor.zip Copy the downloaded Zip to ~/.local/share/gnome-shell/extensions and unpack the zip file. Delete the zip file.

Log out / in from the running gnome session. Open gnome extension manager and activate the cpufreq extension. i hope it will help!

i wish @konkor all the best and STAY strong & save!

grafik

Thank you! The extension does work on Ubuntu 22.04

milhauzindahauz commented 2 years ago

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

Hi For me it works in Ubuntu 22.04, thanks @vulpesfoxnik I had to change the metadata.json and add "42" + replace with your extension.js

cpufreq@konkor.zip Copy the downloaded Zip to ~/.local/share/gnome-shell/extensions and unpack the zip file. Delete the zip file.

Log out / in from the running gnome session. Open gnome extension manager and activate the cpufreq extension. i hope it will help!

i wish @konkor all the best and STAY strong & save!

grafik

this didn't work for me on Fedora 36.

I made a built from #202 fix as follow in docs

./autogen.sh && make && make zip-file

Then I unzipped it and done the rest as follow in your instructions.

Thanks @hermes83 for the fix.

Cheers.

ni-ka commented 2 years ago

On arch / manjaro I used "yay --editmenu -S gnome-shell-extension-cpufreq-git" and replaced the url in the pkg file with https://github.com/hermes83/cpufreq.git.

Good luck @konkor !

pipes80-collab commented 2 years ago

good work hermes83, it's work with gnome 42 on arch linux. good luck @konkor

ferstar commented 2 years ago

https://pastebin.com/bZXLh0x6 Best I can do at the moment.

Hi For me it works in Ubuntu 22.04, thanks @vulpesfoxnik I had to change the metadata.json and add "42" + replace with your extension.js

cpufreq@konkor.zip Copy the downloaded Zip to ~/.local/share/gnome-shell/extensions and unpack the zip file. Delete the zip file.

Log out / in from the running gnome session. Open gnome extension manager and activate the cpufreq extension. i hope it will help!

i wish @konkor all the best and STAY strong & save!

grafik

Gnome itself support auto reloading by press "ALT + F2" and input r then press "Enter", and logout is not necessary.