-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make custom profiles system? #12
Comments
I can't see any rational reason to do this yet... |
May I ask why not yet? |
@RicardoEPRodrigues we have talked about it at #14. And nobody replayed to this issue. |
@RicardoEPRodrigues I want make this extension lighter as possible so. |
Personally I would create 3 profiles and maybe it can go as an example.
It would be easier to switch from one to another with profiles, but for now I have to make all the changes manually. I agree that the extension must be light. |
Nice. I'll reopen this issue) |
I can't add new profiles 😢 I write the name of the new profile then I hit enter nothing happens, try to click check mark and it turns back to I think that for now the
|
@RicardoEPRodrigues There is no keyboard handler yet. Press OK icon to add a profile. It's collecting settings and add menu entry but u can't save now. I want be sure in the format before savings... I'll write when it's completely ready for testings. |
So for now I can't save profiles right? Just to be sure 😄 The When I press the check mark, OK icon, it does not add a profile. It returns to |
@RicardoEPRodrigues ty again) U are n1!!! It's look like in new gtk versions this events masked. |
@RicardoEPRodrigues It was a bug. Yesterday I reported this bug. And today It is closed. TY for improving Gnome :) |
OMG The Profiles makes about +50% of the master code. If someone test it I would be glad to see some comments profiles.zip |
It works like a charm. Yet I'm having trouble understanding when the profile is saved. Could you explain it a little bit? How to create a profile 101. |
@RicardoEPRodrigues when you select 'New...' and enter some name (My very own Profile :)) press Return or OK button... that it. To switch profile you have to select profile. If you want remember profile for next boot u should switch ON Preferences->'Remember Settings' (if it's off) and select profile name. To rename profile select (properties). to delete press last icon. |
@RicardoEPRodrigues So It's saving profile at same time u created some profile. Even if 'Remember Settings' option is OFF. |
There is keyboard hotkeys in edit mode too. 'Esc' - cancel edit and 'Enter/Return' to save changes. |
Is it possible that the UI allows saving changes to a profile? Maybe a button next to edit or something like that. Maybe another button may make the UI too crowded, but it would help the users make all changes with a mouse only. |
No. I think It's too much for me. I like minimalism so and don't like to add extra code. So profile creating is not an everyday task. There is no difficulty to create some new profile even with same name and delete old. Just make once your settings and give it a name. I want to add more important functionality to extension so i want to keep it light like possible. PS: So it's no difficulty to make it. Maybe we leave it for now only. There is one problem: remember all changes in edit mode or only on the saving (enter or OK). It's like 2 extra strings... @RicardoEPRodrigues LoL But there is other problem when it's going to edit mode should it load profile before editing? Bcs now it's allow you just renaming and doesn't require loading the editing profile. Ehh, one question creates 2 other... |
@RicardoEPRodrigues Don't blame me if my commends sound hard. I just want to discuss and make good for the project. I really appreciate all your comments and opinions! |
@konkor I do like to have these conversations. What I'm thinking is that the I was thinking that if you can easily create a new profile, why not just remove the edit mode. Less confusion on when does it save. Just an idea. 😄 |
@RicardoEPRodrigues maybe you are right. Actually It's not edit mode just renaming mode. I can hide edit button for now... wasted time heh |
@RicardoEPRodrigues Eh, here is full editing support now. You can set parameters before and while editing. Press So just to rename profile you have to load profile before editing!!! |
I'll get to that this weekend 😄 |
@konkor daaaaamn looks soooo good! |
@terencode ty very much. It's very 1st step yet. I'm working on the Info Panel. So I'm going to publish this brunch and make issue to talk about the info in this widget. For now I'm want to show CPU model, Linux/kernel version, system loading, temperature, thermal throttle, governors per CPU if they are Mixed, and WARN MESSAGE PLACE to say 'Your System OK', 'Hey, something wrong (to loaded, to hot, have throttling, low memory....) |
@konkor so much things to do, good luck! |
@konkor I've tested the extension of Fedora 22 Live Boot and the problem persists when I switch from a Performance profile to a Powersaver one (switching the number of active cores). Additionally the problem with the Network bugging out also exists in Fedora. I think it might be related to specific WiFi drivers... |
@RicardoEPRodrigues I made a some crazy full delayed (like JavaScript can) profile loading with 2 seconds (2000 msec) delay for each stage. So this version will load a profile about 10 secs. Run in the terminal
You have to play with this timeouts. You have to increase all this from timeouts 2000 ms to 5000-10000 until ur profiles isn't loaded. Then decrease 1 by 1 to 1000/500/100/50 ms delays to find optimal ranges and find weak places. So I am pretty sure ur problem in the 'intel_pstate' driver. So test it without intel_pstate once at least... |
Ok this bug was tricky, but I found the solution. It has nothing to do with the delays. It's weird, but what happens is if a CPU has the performance governor (even if it is disabled) it forces the Turbo Boost ON, because of that even if I have cores on powersave they are always on 100%... it must be I'm making a pull request that basically sets all cores to the selected governor in |
But you still can do it manually... So there is a question... If you are going to ur Performance profile (switch Remember setting OFF to be sure) and after that:
|
@RicardoEPRodrigues now we have sequence:
So if you want change all governors 1st you have to add You could play with _load_stage function too... |
I made a pull request #32. Could you see if it is a good solution? All the profiles define all the cores even if they are disabled. |
OMG Is it working for you? |
So #12 (comment) dont work? |
So i'm waiting for answer #12 (comment) too... |
When I do those steps I get the same bug. For some reason if I have any core on Performance, they all behave has if they are on performance... It's truly weird... |
My pull request fixes the issue for |
Finally, I get an answer. So can you reduce delays from 2000 ms to 50 ms and tell me how it works? If you think it only sequence issue. |
Damn... We do have to turn on all cores before making changes...
Because not all cores are active, setting the governor for all fails. Reducing the delays worked well. |
Cool. So is it working in all your cases now? |
Yes 😄 |
Wow finally... we can go on, after my finally test and so. I'll merge profiles to master... Congrats |
When testing could you check on mixed profiles. That is something that I didn't test a lot. |
OK I think it's time to close this issue. Profiles branch merged to master and gnome... Latest version has a changes in the profiles! There is a new property type of driver (acpi:boolean). I'll do checking for the types later because profiles in pstate can't work properly in acpi and so... I'm going merge profiles/master to info branch for next development. Thank you all! |
PS: Someone maintained the extension on Arch Linux https://aur.archlinux.org/packages/gnome-shell-extension-cpufreq-git/ |
Gnome moderator is in shock of changes. |
Good shock or bad shock? |
How is know? Maybe because we are going to oversize Gnome-shell... Or just a lot changes like +50%... |
@RicardoEPRodrigues he asked |
Then my pull request should be 2 separate things: Code reordering, Profiles on Top. Separate. |
Ability to create/save new profiles and apply them.
The text was updated successfully, but these errors were encountered: