Skip to content
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

amd-hybrid-graphics module: remove #33915

Merged
merged 1 commit into from Jan 16, 2018

Conversation

lheckemann
Copy link
Member

Motivation for this change

This was only applicable to very specific hardware, and the only person
with an apparent interest in maintaining it (me) no longer uses the
hardware in question.

cc @wkennington , original author of the module

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

This was only applicable to very specific hardware, and the only person
with an apparent interest in maintaining it (me) no longer uses the
hardware in question.
@Mic92
Copy link
Member

Mic92 commented Jan 16, 2018

wkennington no longer uses nixos either.

@Mic92
Copy link
Member

Mic92 commented Jan 16, 2018

Is the module itself broken?

@lheckemann
Copy link
Member Author

Is the module itself broken?

I don't know.

Last time it was broken, I was the only one to notice and submit #21227 which was eventually merged with only me having tested it (see also my last comment on the PR). Since there's nobody known to be using it and clearly nobody interested in maintaining it, I think it would be better to remove it rather than keep it around, since keeping around would suggest that it actually works.

@Mic92 Mic92 merged commit 822c949 into NixOS:master Jan 16, 2018
@lheckemann lheckemann deleted the remove-amd-hybrid-graphics branch January 16, 2018 15:58
@k0001
Copy link
Contributor

k0001 commented Mar 2, 2018

I am using this, and I wouldn't like to see it go away in the next NixOS version. I will check that it is working as expected, and I will re-submit it. I'm happy to maintain this going for as long as I have this hybrid AMD hardware.

@Mic92
Copy link
Member

Mic92 commented Mar 2, 2018

If you can test the functionality, this should be ok.

@lheckemann
Copy link
Member Author

lheckemann commented Mar 2, 2018

Personally I'd suggest just keeping it in your own nixos config repo — having it inside nixpkgs upstream made it harder to use for me (and I basically never used it in its upstream form because the fix took so long to merge). That said, I'm not vehemently opposed to its reinclusion either.

@Mic92
Copy link
Member

Mic92 commented Mar 2, 2018

Set yourself as a maintainer for the module in this case. The overall complexity of the module is reasonable and kernel modules usually don't break with APIs.

@sondr3
Copy link
Contributor

sondr3 commented Apr 15, 2018

Hello, I was just asking around on IRC for some help creating a package for systemd-vgaswitcheroo-units for personal use and was directed to this package/pull request from @lheckemann.

This is something I used for a long time in Arch and I would love to have it in NixOS as well, however I mentioned in IRC that this isn't just for AMD hybrid graphics but for any kind of system with two graphics cards (AFAIK). I personally use it on a MacBook Pro with Nvidia/Intel and used it to disable the Nvidia card. I'd like to add this back and set myself as a maintainer but I think it'd be reasonable to rename the package as it's not just for AMD, would you be opposed to this @Mic92?

@Mic92
Copy link
Member

Mic92 commented Apr 15, 2018

@sondr3 no.

@plredmond
Copy link

I'm using this hardware (MacBookPro11,5). @sondr3 did you rename and add this back to nixpkgs? I don't see it anywhere on master.

I'm making some changes to make this machine draw less power, which I may eventually PR back to nixpkgs: nixos-20.03...plredmond:add/apple_set_os. I've tested the module which was removed in this PR and it works great; it reduces power consumption by about 30%.

@sondr3
Copy link
Contributor

sondr3 commented Jul 10, 2020

@plredmond I ended up just writing a simple unit file in my configuration instead of sending it upstream, mostly because I got a new laptop that didn’t require it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants