You are not logged in.

#1 2021-12-23 07:34:34

gabekings
Member
Registered: 2021-12-23
Posts: 5

NVENC breaks after suspend

If I put my computer to sleep and awakes it, OBS would refuse to record, saying that some libraries is missing and Sunshine starts using x246 as your default encoder. if I launch a game, it seems like the Graphics Card is working just fine. Everything is updated. Is something that im missing?

Nvidia:1070
CPU: 7700k
Driver: 495.46 (tested with older drivers and got same behavior)
DE: Gnome

$ uname -a
Linux archlinux 5.15.10-arch1-1 #1 SMP PREEMPT Fri, 17 Dec 2021 11:17:37 +0000 x86_64 GNU/Linux

$ pacaman -Q | grep nvidia
lib32-nvidia-cg-toolkit 3.1-7
lib32-nvidia-utils 495.46-1
nvidia-cg-toolkit 3.1-6
nvidia-dkms 495.46-1
nvidia-settings 495.46-1
nvidia-utils 495.46-1

$ lsmod | grep nvidia
nvidia_drm             73728  8
nvidia_modeset       1155072  17 nvidia_drm
nvidia_uvm           2564096  2
nvidia              36966400  995 nvidia_uvm,nvidia_modeset

$ nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.46       Driver Version: 495.46       CUDA Version: 11.5     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0  On |                  N/A |
| 32%   40C    P2    40W / 220W |   1204MiB /  8111MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1099      G   /usr/lib/Xorg                     221MiB |
|    0   N/A  N/A      1150      C   /usr/bin/sunshine                 109MiB |
|    0   N/A  N/A      1168      G   /usr/bin/gnome-shell              450MiB |
|    0   N/A  N/A      1774      G   ...e/Steam/ubuntu12_32/steam       36MiB |
|    0   N/A  N/A      1849      G   ./steamwebhelper                    2MiB |
|    0   N/A  N/A      1918      G   ...ef_log.txt --shared-files      236MiB |
|    0   N/A  N/A      2980      G   /usr/lib/firefox/firefox          137MiB |
|    0   N/A  N/A      3519      G   /usr/lib/firefox/firefox            2MiB |
+-----------------------------------------------------------------------------+

$ cat /etc/default/grub | grep nvidia
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"

Obs error:

$ journalctl | grep obs

dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: share/obs/obs-studio/locale/en-US.ini
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: share/obs/obs-studio/locale.ini
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: /usr/share/obs/obs-studio/locale.ini
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: share/obs/obs-studio/locale/pt-BR.ini
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: /usr/share/obs/obs-studio/locale/pt-BR.ini
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Using preferred locale 'pt-BR'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: share/obs/obs-studio/themes/Dark.qss
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: CPU Name: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: CPU Speed: 4200.000MHz
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Physical Cores: 4, Logical Cores: 8
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Physical Memory: 15836MB Total, 6036MB Free
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Kernel Version: Linux 5.15.10-arch1-1
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Distribution: "Arch Linux" Unknown
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Session Type: x11
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Qt Version: 5.15.2 (runtime), 5.15.2 (compiled)
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Portable mode: false
dez 23 04:35:46 archlinux obs[4635]: QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
dez 23 04:35:46 archlinux obs[4635]: QMetaObject::connectSlotsByName: No matching signal for on_actionShowTransitionProperties_triggered()
dez 23 04:35:46 archlinux obs[4635]: QMetaObject::connectSlotsByName: No matching signal for on_actionHideTransitionProperties_triggered()
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: OBS 27.1.3.r277.ge35b8d588 (linux)
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ---------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ---------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: audio settings reset:
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         samples per sec: 48000
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         speakers:        2
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ---------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Initializing OpenGL...
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce GTX 1070/PCIe/SSE2
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: OpenGL loaded successfully, version 3.3.0 NVIDIA 495.46, shading language 3.30 NVIDIA via Cg compiler
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ---------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: video settings reset:
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         base resolution:   1920x1080
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         output resolution: 1920x1080
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         downscale filter:  Bicubic
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         fps:               60/1
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         format:            NV12
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         YUV mode:          709/Partial
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: NV12 texture support not available
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Audio monitoring device:
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         name: Padrão
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]:         id: default
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ---------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: warning: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: libDeckLinkAPI.so: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: No blackmagic support
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: warning: v4l2loopback not installed, virtual camera disabled
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: [obs-browser]: Version 2.17.2
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: [obs-browser]: CEF Version 87.1.14+ga29e9a3+chromium-87.0.4280.141
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: NVENC supported
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: FFMPEG VAAPI supported
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: [vlc-video]: VLC 3.0.16 Vetinari found, VLC video source enabled
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ---------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:   Loaded Modules:
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     vlc-video.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     text-freetype2.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     sndio.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     rtmp-services.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     obs-x264.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     obs-vst.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     obs-transitions.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     obs-outputs.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     obs-libfdk.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     obs-filters.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     obs-ffmpeg.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     obs-browser.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     linux-v4l2.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     linux-pulseaudio.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     linux-jack.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     linux-decklink.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     linux-capture.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     linux-alsa.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     image-source.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     frontend-tools.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     decklink-ouput-ui.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     decklink-captions.so
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ---------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ==== Startup complete ===============================================
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Switched to Preview/Program mode
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ------------------------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: All scene data cleared
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ------------------------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: pulse-input: Server name: 'pulseaudio 15.0'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: pulse-input: Started recording from 'alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: [Loaded global audio device]: 'Áudio do desktop'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: pulse-input: Server name: 'pulseaudio 15.0'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: pulse-input: Started recording from 'alsa_input.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: [Loaded global audio device]: 'Mic/Aux'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: xshm-input: Geometry 1920x1080 @ 1920,0
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Switched to scene 'Cena'
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ------------------------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: Loaded scenes:
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: - scene 'Cena':
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info:     - source: 'Captura de Tela (XSHM)' (xshm_input)
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: ------------------------------------------------
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: share/obs/obs-studio/images/overflow.png
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: Attempted path: /usr/share/obs/obs-studio/images/overflow.png
dez 23 04:35:46 archlinux com.obsproject.Studio.desktop[4635]: info: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux)
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]: info: ---------------------------------
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]: info: [NVENC encoder: 'simple_h264_stream'] settings:
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         rate_control: CBR
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         bitrate:      6000
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         cqp:          0
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         keyint:       120
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         preset:       hq
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         profile:      high
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         width:        1920
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         height:       1080
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         2-pass:       false
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         b-frames:     2
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         psycho-aq:    1
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]:         GPU:          0
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]: [h264_nvenc @ 0x558ffa0ca1c0] The selected preset is deprecated. Use p1 to p7 + -tune or fast/medium/slow.
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]: [h264_nvenc @ 0x558ffa0cd400] dl_fn->cuda_dl->cuCtxCreate(&ctx->cu_context_internal, 0, cu_device) failed -> CUDA_ERROR_UNKNOWN: unknown error
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]: [h264_nvenc @ 0x558ffa0cd400] No capable devices found
dez 23 04:35:48 archlinux com.obsproject.Studio.desktop[4635]: warning: [NVENC encoder: 'simple_h264_stream'] Failed to open NVENC codec: Generic error in an external library

Last edited by gabekings (2021-12-23 07:40:08)

Offline

Board footer

Powered by FluxBB