fix kmscon module#391574
Conversation
|
As per fbcon fashion, there's rendering issues. I guess the PR will get much more complicated if this doesn't turn out to be a fluke. |
|
Ok, this might just be a greetd issue I'm having. Either way, it would be great if someone would test this under "normal" circumstances |
|
Enabled with GNOME and it seems to work like it used to. Didn’t test extensively, but at least GDM is able to start now. |
|
Yeah, I suspect the current rev we're in actually works as intended and we actually have to disable DRM specifically. There also is the option to patch kmscon to allow it to free the gpu on demand. However, we would also have to modify every single derivation that starts a graphical session or needs /dev/dri/cardX so it also tells kmscon to free the GPU, just so we use DRM for kmscon (and I don't know any benefits of using DRM over fbcon for kmscon) |
|
how do i undo this git has played me |
|
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/5352 |
|
That's strange considering i copied the service verbatim. I don't have the issue on agetty. What's your setup? |
This comment was marked as resolved.
This comment was marked as resolved.
|
I'm using zsh too and it's working well for me when the VT is opened first time, which covers 90% of my use. But if I open another VT and then I go back into an already open VT:
However both problems still exist when I don't use this PR, so it looks like an upstream issue. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
| ''; | ||
| }; | ||
|
|
||
| kmscon = mkOption { |
There was a problem hiding this comment.
| kmscon = mkOption { | |
| kmsconGettyArgs = mkOption { |
| cfg = config.services.kmscon; | ||
|
|
||
| autologinArg = lib.optionalString (cfg.autologinUser != null) "-f ${cfg.autologinUser}"; | ||
| gettyCmd = config.services.getty.kmscon; |
There was a problem hiding this comment.
| gettyCmd = config.services.getty.kmscon; | |
| gettyCmd = config.services.getty.kmsconGettyArgs; |
| package = mkPackageOption pkgs "kmscon" { }; | ||
|
|
||
| hwRender = mkEnableOption "3D hardware acceleration to render the console"; | ||
| hwRender = mkEnableOption "Enable hardware acceleration + DRM backend"; |
There was a problem hiding this comment.
| hwRender = mkEnableOption "Enable hardware acceleration + DRM backend"; | |
| hwRender = mkEnableOption "hardware acceleration + DRM backend"; |
mkEnableOption adds "Enable" or something like that to the description already.
| cfg.package | ||
| ]; | ||
|
|
||
| systemd.services."kmsconvt@" = { |
There was a problem hiding this comment.
Why are you repeating here a bunch of settings that will already be loaded by the service included in the package? I think you should only set the options that are not already in the upstream service.
There was a problem hiding this comment.
We'd have to patch kmscon for that.
After all, some consistency regarding agetty would be nice.
There was a problem hiding this comment.
Why is that? You can just load the service from the package and then set additional settings in the nixos module, or unset and reset. We do that in so many places.
There was a problem hiding this comment.
OK, why did you open a new PR? This one can be closed then?
I'm traveling today, so I'll probably only be able to try out the other PR tomorrow.
There was a problem hiding this comment.
OK, why did you open a new PR? This one can be closed then?
I'm traveling today, so I'll probably only be able to try out the other PR tomorrow.
There was a problem hiding this comment.
Why is that? You can just load the service from the package and then set additional settings in the nixos module, or unset and reset. We do that in so many places.
Because you'd have to edit kmscon@vt.service.in, or edit it a posteriori.
There was a problem hiding this comment.
There's no need to manually modify the systemd unit files. Changes made in the config will be saved as an overlay.
My PR utilizes the unit files provided by kmscon. It has now passed testing and is ready.
There was a problem hiding this comment.
Yes indeed, that's what I meant, I didn't notice that the new PR is by a different author.
I'll have a look at it tomorrow.
@hustlerone are you OK with this? Attribution was maintained in the new PR for your commit that was cherry-picked from here.
|
Cherry-picked from NixOS#391574 Co-authored-by: ccicnce113424 <ccicnce113424@gmail.com>
Cherry-picked from NixOS#391574 Co-authored-by: ccicnce113424 <ccicnce113424@gmail.com>
Cherry-picked from NixOS#391574 Co-authored-by: ccicnce113424 <ccicnce113424@gmail.com>
|
Closed as #489469 has been merged. |
Things done
Adjusted the systemd unit for kmscon to fix #385497
This however will completely disable DRM for kmscon and now seats will be unspecified.
If someone absolutely requires DRM for kmscon, let me know.
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.