LorenzoMorelli / GPU_profile_selector

A simple gnome shell extension which provides a simple way to switch between GPU profiles on Nvidia Optimus systems (i.e laptops with Intel + Nvidia or AMD + Nvidia configurations) in a few clicks. In particular this extension is a graphic interface for envycontrol program.
GNU General Public License v3.0
64 stars 8 forks source link

not working on laptop without battery #1

Closed aaronrancsik closed 2 years ago

aaronrancsik commented 2 years ago

At extension "on" toggle I can see the following journal logs pop up: gnome-shell[53239]: clutter_actor_remove_child: assertion 'child->priv->parent != NULL' failed

LorenzoMorelli commented 2 years ago

Yes you are probably right. Since there isn't any battery button in the right corner menu the extension fails to load.

I think a good workaround could be to move the extension button in the topbar instead of the right corner menu in the case the battery section is "not available".

I guess this alternative of the file "extension.js" should solve the issue.

As soon as possible (after weekend) I'll share a new version for solving this issue here. Since I don't have the possibility to remove battery from my laptop, can you test it? I would be really grateful.

aaronrancsik commented 2 years ago

Of course, thank you very much!

LorenzoMorelli commented 2 years ago

Hi, I updated a new version that solves this issue. I would be pleased if you will give me a feedback! The update will be available on official Gnome-shell Extension official website in few days I guess. If everything works and then I'm going to close this issue, let me know!!

aaronrancsik commented 2 years ago

Hi, thank you! It's working fine!