Calculate linux установка nvidia

Optimus. Calculate-linux. Prime.

Таки решил я попробовать этот ваш прайм и включить таки мою нвидиа на третий год использования ноута. И со старта получаю вот такое:

calculate diver # xrandr --listproviders Providers: number : 1 Provider 0: id: 0x46 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:Intel 
calculate diver # lspci |grep VGA 00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] 01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1) 
 Найдено 4 совпадение. calculate diver # eix nvidia -I [I] sys-firmware/nvidia-firmware Доступные версии: 340.32-r1^md Установленные версии: 340.32-r1^md(05:12:31 12.03.2021) Домашняя страница: https://nouveau.freedesktop.org/wiki/VideoAcceleration/ Описание: Kernel and mesa firmware for nouveau (video accel and pgraph) [I] x11-drivers/nvidia-drivers Доступные версии: 390.157(0/390) 470.161.03(0/470) 510.108.03(0/510) 515.86.01(0/515) [M]~525.47.07(0/vulkan) 525.85.05(0/525) ~525.89.02(0/525) Установленные версии: 525.85.05(0/525)(16:25:13 25.02.2023)(X driver static-libs tools wayland -dist-kernel -kernel-open -persistenced ABI_X86="32 64") Домашняя страница: https://www.nvidia.com/download/index.aspx Описание: NVIDIA Accelerated Graphics Driver 

Ноувеаю выгрузил. Нвидиа и нвидиа_дрм загрузил. А куда дальше то?

Источник

Поставить NVIDIA драйвер на Calculate

При перезагрузке черный экран. После этого пробовал еще так:

eselect opengl set nvidia eselect opencl set nvidia nvidia-xconfig 

Вот Xorg.conf (который получился после запуска nvidia-xconfig):

# nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 358.16 (buildmeister@swio-display-x64-rhel04-12) Mon Nov 16 19:59:11 PST 2015 #------------------------------------------------------------------------------ # Modified Calculate-core 3.4.5.22 # Processed template files: # /var/lib/layman/calculate/profiles/templates/3.3/3_ac_install_live/1-merge/x11-base/xorg-server/X11/xorg.conf # For modify this file, create /etc/X11/xorg.conf.clt template. #------------------------------------------------------------------------------ Section "ServerLayout" Identifier "Xorg Configured" Screen "Monitor" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" FontPath "/usr/share/fonts/corefonts" FontPath "/usr/share/fonts/misc" FontPath "/usr/share/fonts/droid" EndSection Section "Module" Load "dbe" # Double buffer extension Load "glx" # OpenGL X protocol interface Load "extmod" # Misc. required extension EndSection Section "InputDevice" # generated from default Identifier "Keyboard0" Driver "keyboard" EndSection Section "InputDevice" # generated from data in "/etc/conf.d/gpm" Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "Monitor" Identifier "StandardMonitor" HorizSync 31.5 - 60.0 VertRefresh 60.0 - 160.0 Option "DPMS" EndSection Section "Device" Identifier "nvidiaVGA" Driver "nvidia" EndSection Section "Screen" Identifier "Monitor" Device "nvidiaVGA" Monitor "StandardMonitor" DefaultDepth 24 Option "RenderAccel" "True" Option "AllowGLXWithComposite" "True" Option "NoLogo" "True" Option "NvAgp" "1" Option "DPI" "96x96" SubSection "Display" Viewport 0 0 Depth 24 Modes "3840x1080" EndSubSection EndSection Section "Extensions" Option "Composite" "On" EndSection 
lspci -k | grep -A 2 -E "(VGA|3D)" 130 ↵ 01:00.0 VGA compatible controller: NVIDIA Corporation GF104 [GeForce GTX 460] (rev a1) Subsystem: ASUSTeK Computer Inc. Device 835d Kernel driver in use: nvidia 

Последний вывод я взял из Arch, который стоит параллельно и в котором Nvidia драйвера работают.

Читайте также:  Create bootable usb with windows in linux

Источник

Calculate Container Games

Steam Link

Calculate Container Games is a container for running Steam on a Calculate Scratch Server. You can use Steam Link running on Android/iOS, AppleTV, Raspberry Pi, Samsung Smart TV or Steam client to play Steam games in streaming mode. Calculate Container Games allows you to run Steam at an unsupported monitor resolution, or on a system with no monitor connected, to use the idle capacity of your home server.

Host configuration

Install the firmware for full video card support:

emerge -a sys-kernel/linux-firmware

Specify » host» as the system type to support running containers with a graphical environment:

Update the system settings and reboot the host computer:

Installing and configuring Calculate Container Games

Setting up an LXC container

Install Calculate Container Games and configure it as described in the manual. Set the distribution name to and the container name to games ~.

Video settings

Configure your video card with cl-setup-video . To list the supported drivers, please run:

Video driver: [default] Auto * [radeon] AMD Radeon (radeon) [amdgpu] AMD AMDGPU (amdgpu) [modesetting] Framebuffer device (modesetting) [intel] Intel (intel) [nouveau] Nvidia Nouveau (nouveau)

For instance, to select AMDGPU and 1920×1080 , run:

cl-setup-video —video amdgpu -X 1920×1080

Add user

Add user guest ~ in the container, configure their profile and auto login settings:

useradd —groups audio,input,video guest

You will need either physical or remote access to the server with a monitor for the initial setup of Steam. To enable remote VNC access, set a password for user guest :

su guest -c «x11vnc -storepasswd»

Enter VNC password: Verify password: Write password to /home/guest/.vnc/passwd? [y]/n y Password written to: /home/guest/.vnc/passwd

The VNC server will now start at the same time as the Xorg server.

Configuring proprietary Nvidia

Installation and configuration

Unlike open source drivers, the Nvidia legacy must be installed both on the host and in the container, and it must be the same version. You also need to link the directory containing the kernel source code on the host computer to build the driver inside the container, and give access to modify the 195 char devices for the driver to work properly.

Читайте также:  Ssd for linux ubuntu

Install and configure the Nvidia driver package on the host system:

emerge -a x11-drivers/nvidia-drivers

cl-setup-video —video nvidia

Reboot the host and make sure that the Nvidia module is loaded:

nvidia_drm 53248 5 nvidia_modeset 1175552 9 nvidia_drm nvidia 33525760 374 nvidia_modeset drm_kms_helper 200704 1 nvidia_drm drm 462848 8 drm_kms_helper,nvidia_drm i2c_core 49152 4 drm_kms_helper,nvidia,i2c_piix4,drm 

Add access to the video card and enable the kernel source code in the container by uncommenting two lines in the container config file:

# Nvidia driver support lxc.cgroup.devices.allow = c 195:* rwm lxc.mount.entry = /usr/src usr/src none bind,create=dir 

Stop the container and start again:

Install and configure the Nvidia driver in the container with resolution 1920×1080 :

emerge -a x11-drivers/nvidia-drivers

cl-setup-video —video nvidia -X 1920×1080

Update

To update the Nvidia drivers or the kernel, first update the kernel on the host, then the video driver:

emerge -a sys-kernel/calculate-sources x11-drivers/nvidia-drivers

Restart the container. Make a stop to enable the kernel sources:

Update the Nvidia driver in the container:

emerge -a x11-drivers/nvidia-drivers

Setting a custom resolution

If your monitor does not support the resolution you want to use, you can specify it in the Xorg configuration file. Resolution in the examples below is Full HD ( 1920×1080 ).

Nvidia

If you are a user, uncomment the following lines:

# Nvidia settings Section "Screen" Identifier "Monitor" Option "UseEDID" "true" Option "CustomEDID" "DFP-0:/usr/share/edid/1920x1080.bin" EndSection

Intel and AMD

If you are an or an user, specify the port the monitor is connected to:

==> /sys/class/drm/card0-DP-1/status  connected ==> /sys/class/drm/card0-DP-2/status /sys/class/drm/card0-HDMI-A-1/status /sys/class/drm/card0-HDMI-A-2/status /sys/class/drm/card0-HDMI-A-3/status 

Uncomment the following lines, replacing Monitor-DVI-I-0 with your value ( in the example above):

# Intel, AMDGPU settings Section "Monitor" Identifier "StandardMonitor" ModeLine "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync EndSection Section "Device" Identifier "Video" Option "Monitor-DVI-I-0" "StandardMonitor" EndSection

Xorg no-monitor configuration

If no monitor is connected, Steam will not detect the supported resolutions nor run games.

Nvidia

With Nvidia, you can solve this problem within the software: just specify the videocard output expressly, even if there is no monitor connected to it. To do this, uncomment the following lines:

# Nvidia displayless Section "Device" Identifier "Video" Option "ConnectedMonitor" "DFP-0" EndSection

Intel and AMD

If you want to use Intel or AMD graphics without any loss of performance, the only possible solution is a hardware one. You can follow these instructions. Or use a HDMI emulator, as shown below:

HDMI emulator 4K

Connecting to a graphical session in the container

To access the container, you can use the monitor connected to the server, or connect remotely via VNC, for instance with Remmina. To connect, set as the protocol and 192.168.0.10 as the container IP:

Remmina VNC client

The first time you start the container with the configured user guest account, it will automatically install Steam over the network:

Steam download

Once the installation process is completed, Steam will be launched in Big Picture mode:

Steam login

Running games

To broadcast games from the server, the client and the server need to be in the same network. If they are not in the same network, they can be combined into one via [VPN] (wireguard).

To connect Android OS to a running instance of Steam, use the [Steam Link] client (https://store.steampowered.com/steamlink/about/):

Steam Link for Android

Unfortunately, Steam Link is not available for Linux. Instead, you can install Steam, log in with the same account, and connect to the server by selecting to use its processing power:

Steam

To install Steam on your Calculate Linux system, run the following command:

emerge -a games-util/steam-launcher

Troubleshooting

Screen blinking

Sometimes, the screen may be blinking on Steam Link if you use Nvidia graphics. To correct this, quit Steam and run NVIDIA X Server Settings. In OpenGL settings, turn off the and options:

Nvidia disable sync

Now open Steam in the menu.

Low quality graphics

The quality of the image streamed over the network may be considerably affected. This may be due not only to network performance issues, but also to Steam autodetecting the network speed, which may cause it to drop the transfer to 3 Mbit/sec. To solve this, specify a fixed minimum required speed. For example, 10-15 Mbit/sec speed will be quite enough for Full HD broadcasts. You can set this up either in Steam Link or in Steam running on the server, by selecting Settings -> Remote Play -> Advanced Client Settings -> Bandwidth Limit -> 15Mbps :

Steam maximum bandwidth

Configuring your Steam controller

You may experience trouble when trying to connect the Steam controller to an Android device with a USB adapter. If this is the case, use a Bluetooth connection. You might have to update the controller's firmware. Look here for more details.

Steam Controller

You will also need to enable Xbox in Steam. To do this, go to Settings in the menu, then to the controller settings and enable custom settings for xbox:

Источник

Оцените статью
Adblock
detector