-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
mcontrolcenter: init at 0.4.1 #306216
mcontrolcenter: init at 0.4.1 #306216
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3847 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-december/1711/21 |
Result of 1 package built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you could move this to pkgs/by-name
. I think using libsForQt5.callPackage
is not needed, and you can maybe directly extract packages from libsForQt5
. Could you try ?
I applied all the suggested changes and tested the package on
@nim65s con you confirm the pool request looks fine to you now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks !
I do not know if we have a better solution for this DBus .service file.
Discussions on matrix raised that maybe this .service file (and maybe the desktop file btw) should be proposed upstream. Maybe you can contribute a PR there with those files ? Also, using pkgs.writeText instead of those echo would be a bit cleaner. |
Built and tested, launches fine on linux-x86-64 (msi GF75 thin) once the ec-sys kernel module is actually loaded. |
It seams to be an upstream issue, someone else reported the same problems for the same model which apparently is not fully supported. For me the battery options are working correctly, it might be a problem related to |
Ah upstream lists my precise model (GF75 thin 10SDR) as fully unsupported currently, soo i guess thats my hardware just not being supported then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, i would however actually make use of the upstream dbus service file and use substituteInPlace to fix the paths on it.
Also remember to squash your commits eventually, you want two commits:
maintainers: add Tommimon
where you only add the entry in the maintainers filemcontrolcenter: init at 0.4.1
where all the rest is squashed into it
The maintainer addition should come first in the history.
In an effort to learn more about nix, i tried doing just that; turns out getting the $out path for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good now 👍
I added the suggested changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good ! I still have another nit suggestion, but feel free to ignore it if you are tired of those changes 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving again because weganks bot will discard my approval otherwise
@Aleksanaa, can I ask you if you approve the current state of this pr? After I applied the last changes. |
Co-authored-by: Nadim Kobeissi <[email protected]>
MControlCenter provides a relatively full-featured control panel for MSI laptops, written in Qt. It allows users to control MSI laptop power plans, fan speed, battery charging limits, keyboard backlight settings, USB power sharing and more.
The application comes with strong desktop integration: shortcuts, taskbar item, etc. etc. -- screenshots here
The package comes with a patch that corrects MControlCenter's path to the
modprobe
binary, allowing it to automatically load theec_sys
kernel module (included with NixOS by default) with the right settings when launched.This package has been previous requested by the NixOS community (#244881). Another pull request (#251816) was submitted for this same package. The pull request has been reviewed but I contacted the author personally and he is not interested in completing it any more. For this reason I'm opening a new pull request incorporating all the changes suggested in the review.
This NixOS package has been tested on a NixOS Plasma5 and GNOME 45 desktops.
fixes: #244881
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.