Skip to content

Screensharing issues with 11bit support on NixOS not documented #1008

@luksquaresma

Description

@luksquaresma

I was going to make a PR with the required modifications but found that may be better to document it here first.

I'm running hyprland in NixOS an lately had some problems with screen-sharing, which did work fine before some changes in my system.

Investigating the issue i was able to pinpoint the change who broke this feature for me: the 10 bit support configuration for monitors on hyprland.

I haven't found this issue documented anywhere, specially not in the screen-sharing page of the wiki: https://wiki.hyprland.org/Useful-Utilities/Screen-Sharing/

Also, it's not documented on the monitors page: https://wiki.hyprland.org/Configuring/Monitors/

Hence, I propose the addition of warnings on both pages.

Additional details:

In my config.nix:

  programs.hyprland = {
    enable = true;
    xwayland.enable = false;
    portalPackage = pkgs.xdg-desktop-portal-hyprland;
  };
  services.hypridle.enable = true;
  xdg.portal = {
    enable = true;
    extraPortals = [
      pkgs.xdg-desktop-portal-gtk
    ];
  };
  fonts.packages = with pkgs; [ nerdfonts ];

My hyprland.conf that did not work for sharing:

monitor=DP-2, 3440x1440@100,   0x0, 1, bitdepth, 10
monitor=DP-3, 1920x1080@60, 3440x0, 1, bitdepth, 10, transform, 3

My hyprland.conf that did work for sharing:

monitor=DP-2, 3440x1440@100,   0x0, 1
monitor=DP-3, 1920x1080@60, 3440x0, 1, transform, 3

I`ll also can create a PR and include the warnings.


EDIT:

The issue occurs in the same way when using programs.hyprland.xwayland.enable = true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions