NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.28k stars 14.26k forks source link

mutter: Enabling rt-scheduler fails #219926

Open ghost opened 1 year ago

ghost commented 1 year ago

Describe the bug

It fails with the Failed to set RT scheduler: Cannot invoke method; proxy is for the well-known name org.freedesktop.RealtimeKit1 without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag message. I have rtkit enabled because of pipewire.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enable rtkit
  2. Enable the rt-scheduler experimental feature of gnome-shell
    xserver.desktopManager.gnome.extraGSettingsOverridePackages = [ pkgs.gnome.mutter ];
                extraGSettingsOverrides = ''
                    [org.gnome.mutter]
                    experimental-features=['rt-scheduler']
                '';
            };
  3. Get the error message upon reboot.

Expected behavior

It works.

Notify maintainers

@jtojnar @bobby285271 @maxeaubrey (no idea how to ping the rest)

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.2.2-zen1, NixOS, 23.05 (Stoat), 23.05pre460365.3c5319ad3aa`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos"`
 - channels(l911p): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
jtojnar commented 1 year ago

How did you enable rtkit? Are you sure you have security.rtkit.enable = true; in your configuration?

On Mon, Mar 6 2023 at 20:26:27 -08:00:00, Luis O. @.***> wrote:

Steps to reproduce the behavior: Enable rtkit Message ID: @.***>

ghost commented 1 year ago

yup! i have it enabled because of pipewire

kirillrdy commented 1 year ago

@L911P I've added this to my flake.nix

+                  services.xserver.desktopManager.gnome.extraGSettingsOverridePackages = [ pkgs.gnome.mutter ];
+                  services.xserver.desktopManager.gnome.extraGSettingsOverrides = ''
+                                                       [org.gnome.mutter]
+                                                       experimental-features=['rt-scheduler']
+                                               '';

and it looks like its working image

you can have a look my base configuration https://github.com/kirillrdy/dotfiles/blob/master/flake.nix

maybe this will help you to investigate this further

ghost commented 1 year ago

can you do "journalctl --boot=0 | grep scheduler" and see if you get the same message as i do on the title

kirillrdy commented 1 year ago

can you do "journalctl --boot=0 | grep scheduler" and see if you get the same message as i do on the title

yes you right, i get same error

Mar 10 06:19:07 osaka .gnome-shell-wr[1851]: Enabling experimental feature 'rt-scheduler'
Mar 10 06:19:07 osaka .gnome-shell-wr[1851]: Failed to set RT scheduler: Cannot invoke method; proxy is for the well-known name org.freedesktop.RealtimeKit1 without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag