Open tymscar opened 2 months ago
I have tried a reboot as mentioned by #305688 but it does not fix this particular issue.
Reproduced on nixos. Hardware (not sure if it matters) 5950x + 4090 running NixOS unstable. Command used to reproduce:
nix shell -L --expr 'let nixpkgs_r = builtins.getFlake "github:NixOS/nixpkgs/c230c3ecc26a8390b94e7202769365c4ef93b8e2"; in let pkgs = import nixpkgs_r { system = "x86_64-linux"; config = { allowUnfree = true; }; }; in with pkgs; (sunshine.override {cudaSupport = true;})'
then
sudo sunshine
sunshine.override {cudaSupport = true;}
seems changed something, but there is still another problem: with it, the black screen shows some text: "Bluetooth: hci0: No support for _PRR ACPI method"
After reboot, there is still black screen:
$ vainfo --display drm --device /dev/dri/renderD128 | grep -E "((VAProfileH264High|VAProfileHEVCMain|VAProfileHEVCMain10).*VAEntrypointEncSlice)|Driver version"
libva info: VA-API version 1.21.0
libva info: Trying to open /run/opengl-driver/lib/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva error: /run/opengl-driver/lib/dri/nvidia_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit
My Machine:
$ neofetch --stdout
lc@home-pc
----------
OS: NixOS 24.05.20240515.33d1e75 (Uakari) x86_64
Host: ASUSTeK COMPUTER INC. TUF GAMING X670E-PLUS
Kernel: 6.6.30
Uptime: 21 mins
Packages: 2915 (nix-system), 244 (nix-user)
Shell: zsh 5.9
Resolution: 3840x2160
DE: Plasma 5.27.11
WM: KWin
Icons: Papirus-Dark [GTK2/3]
Terminal: .konsole-wrappe
CPU: AMD Ryzen 9 7950X (32) @ 5.000GHz
GPU: AMD ATI Raphael
GPU: NVIDIA GeForce RTX 4090
Memory: 7303MiB / 63429MiB
and, I found that the sunshine nixos module doesn't work with journalctl:
$ journalctl -u sunshine
-- No entries --
I think one of the issues with Bluetooth: hci0: No support for _PRR ACPI method
we're solved by downgrading to revision 56aeedf456e676d46af2595c3f66de9cf95f2cdd
. Can you give that a go @luochen1990 ?
After upgrading from NixOS 23.11 to 24.05 I am seeing the exact same error with sunshine.
Config:
{ config, pkgs, lib, ...}:
let
sunshineOverride = pkgs.sunshine.override {
cudaSupport = true;
stdenv = pkgs.cudaPackages.backendStdenv;
};
in
with lib;
{
environment.systemPackages = with pkgs; [
sunshineOverride
];
services.sunshine = {
package = sunshineOverride;
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
}
Is this '
following "stdenv" a typo on unstable?
Suddenly started working after forcing the capture method?
Haven't fully tested yet.
Is this
'
following "stdenv" a typo on unstable?
No, that's normal. It's a convention called prime notation.
Suddenly started working after forcing the capture method?
That does not work for me sadly.
For me trying to force the capture method worked only on X11 but not wayland
boot.kernelParams = ["nvidia_drm.fbdev=1"]
fixed this for me on X11. If your error logs complain about simpledrm, this might work.
Describe the bug
Most of the sunshine versions posted on nixpkgs do not work with CUDA enabled. I have tried manually to pin sunshine to each of the last 20 commits and only around 5 managed to detect my display/encoder at startup. The nixpkgs revision that works with my machine is
56aeedf456e676d46af2595c3f66de9cf95f2cdd
. That is sunshinev21.0
Steps To Reproduce
Steps to reproduce the behavior:
pkgs.sunshine.override { cudaSupport = true; };
Expected behavior
I would expect every version to work like the one from revision
56aeedf456e676d46af2595c3f66de9cf95f2cdd
where it would detect my gpu, my screen and codecs.Additional context
The errors I am getting on the homepage are:
Here are the full logs:
Notify maintainers
@devusb
Metadata
Add a :+1: reaction to issues you find important.