You are not logged in.

#1 2022-10-04 18:58:53

kammao
Member
Registered: 2022-09-28
Posts: 12

[SOLVED] Applications freezing after installing NVIDIA driver

Hello!

Yesterday I did a fresh install of arch on my PC. When I installed the nvidia driver with 'sudo pacman -S nvidia` I started experiencing a few issues. Applications like rocketchat and spotify started to freeze and the title bar of the apps had a bigger font. Also, all the windows are spawned now at the bottom right edge/upper right edge of the screen now (when you spawn a new terminal for example, with CTRL+ALT+T)

The titlebar was fixed by adding `Xft.dpi` setting in .Xresources:

 Base colors
*.foreground:  #E1E1E1
*.background:  #1C2023
*.cursorColor: #778899

*.color0:  #1C2023
*.color1:  #BF616A
*.color2:  #A3BE8C
*.color3:  #EBCB8B
*.color4:  #8FA1B3
*.color5:  #B48EAD
*.color6:  #96B5B4
*.color7:  #E1E1E1
*.color8:  #919BA0
*.color9:  #BF616A
*.color10: #A3BE8C
*.color11: #EBCB8B
*.color12: #8FA1B3
*.color13: #B48EAD
*.color14: #96B5B4
*.color15: #C0C5CE

! xterm
xterm*termName: xterm-256color
xterm*font: monospace
xterm*faceName: monospace:size=11
xterm*loginShell: true
xterm*vt100*geometry: 90x34
xterm*saveLines: 2000
xterm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48
xterm*eightBitInput: false
Xcursor.size: 16
Xft.dpi: 100
! These might also be useful depending on your monitor and personal preference:
Xft.autohint: 0
Xft.lcdfilter:  lcddefault
Xft.hintstyle:  hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

! URxvt
URxvt*saveline: 15000
URxvt*termName: rxvt-256color
URxvt*iso14755: false
URxvt*depth: 32
URxvt*background: [95]#1C2023
URxvt*scrollBar: false
URxvt*scrollBar_right: false
URxvt*internalBorder: 0
URxvt*externalBorder: 0
URxvt*letterSpace: -1
URxvt.font: xft:monospace:size=11
URxvt.copyCommand: xclip -i -selection clipboard
URxvt.pasteCommand: xclip -o -selection clipboard
URxvt.urlLauncher: exo-open
URxvt.underlineURLs: true
URxvt.urlButton: 1
URxvt.geometry: 90x34
URxvt.tabbed.tabbar-fg: 4
URxvt.tabbed.tabbar-bg: 16
URxvt.tabbed.tab-fg: 15
URxvt.tabbed.tab-bg: 4
URxvt*buffered: false

Another change I did was checking Force Full Composition Pipeline and Force Composition pipeline in `nvidia-setting` to get rid of tearing. This made changes in my `/etc/X11/xorg.conf`:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 515.76

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG Electronics LG HDR 4K"
    HorizSync       30.0 - 135.0
    VertRefresh     56.0 - 61.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce GTX 1070 Ti"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-5"
    Option         "metamodes" "DP-2: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DP-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Also, when starting `nvidia-settings` I get:

(nvidia-settings:4168): GLib-GObject-CRITICAL **: 21:46:23.267: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

But I've read that this is not an issue..


My xorg.log : https://pastebin.com/22C9CyAM

My glxinfo -b output:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8192 MB
    Total available memory: 8192 MB
    Currently available dedicated video memory: 6408 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 515.76
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 515.76
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 515.76
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

My lspci output:

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
00:1b.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #17 (rev f0)
00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0)
00:1c.3 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #4 (rev f0)
00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Z370 Chipset LPC/eSPI Controller
00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070 Ti] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

Any idea what could cause this?
Thank you!

Last edited by kammao (2022-10-05 11:27:24)

Offline

#2 2022-10-05 06:11:27

seth
Member
Registered: 2012-09-03
Posts: 59,812

Re: [SOLVED] Applications freezing after installing NVIDIA driver

Cause "what?

rocketchat and spotify started to freeze

Does the audio playback freeze as well or is this a purely visual thing?
Do the clients yell any errors at you? Are the processes in "D" state (waiting for IO)?
It's not likely that installing a driver leads to random clients hang randomly.

the title bar of the apps had a bigger font

Beacuse

[     4.882] (--) NVIDIA(0): DPI set to (162, 161); computed from "UseEdidDpi" X config

so the server is now running at 162dpi instead of (likely) 96
Instead of overriding that, you may want to fix the font configuration of clients where you selected too large fonts.

Also, all the windows are spawned now at the bottom right edge/upper right edge of the screen now

That's probably down to your WM config and because the output names will have changed (what is unfortunately "normal", even when changing between the modesetting driver and eg. xf86-video-nouveau)

Another change I did was checking Force Full Composition Pipeline and Force Composition pipeline in `nvidia-setting` to get rid of tearing. This made changes in my `/etc/X11/xorg.conf`:

Delete that file.
Static server configs aren't a good idea.

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce GTX 1070 Ti"
    Option    "ForceCompositionPipeline"    "On"
    Option    "ForceFullCompositionPipeline"    "On"
EndSection

should™ do itr.

Offline

#3 2022-10-05 07:41:55

kammao
Member
Registered: 2022-09-28
Posts: 12

Re: [SOLVED] Applications freezing after installing NVIDIA driver

Cause "what?

It just froze. On spotify I was getting a program specific error, therefore I think it is beyond the scope of this post:

strace -eopen spotify
spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by spotify)
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
/proc/self/exe: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)

On rocketchat, things seem to work now..

One thing I did was remove: xf86-input-evdev,  xf86-input-synaptics,  xf86-input-vmouse,  xf86-input-void, xf86-video-amdgpu,  xf86-video-ati,  xf86-videodummy,  xf86--video-fbdev,  xf86-video-intel,  xf86-video-nouveau,  xf86-video-openchrome,  xf86-video-qxl,  xf86-video-vesa,  xf86-video-vmware,  xf86-video-vodoo. I don't think I had to have any one of those?

Instead of overriding that, you may want to fix the font configuration of clients where you selected too large fonts.

To be honest, I'm not quite sure how to do that. Every single application has a larger title font - and only that part of the apps interfaces is bigger.

That's probably down to your WM config and because the output names will have changed (what is unfortunately "normal", even when changing between the modesetting driver and eg. xf86-video-nouveau)

I'm using openbox. I'll try and figure something out.

Static server configs aren't a good idea.

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce GTX 1070 Ti"
    Option    "ForceCompositionPipeline"    "On"
    Option    "ForceFullCompositionPipeline"    "On"
EndSection

should™ do itr.

I assume I need to add this to `/etc/X11/xorg.conf`? According to this: https://wiki.archlinux.org/title/NVIDIA … figuration, it would be ideal to add it to `/etc/X11/xorg.conf.d/20-nvidia.conf` but I don't have that folder created. Anyhow, I replaced my xorg.conf with your aforementioned snippet and now I set the config for my 2 monitors from ARandR.

---

Regarding the removal of the xf86 packages - I'll add the output of my `pacman -Qqe` just to be sure I didn't mess up anything smile

accountsservice
acpi
alsa-firmware
alsa-lib
alsa-plugins
arandr
arc-gtk-theme
archlabs-baph
archlabs-common
archlabs-fonts
archlabs-icons
archlabs-keyring
archlabs-kickshaw
archlabs-pipemenus
archlabs-scripts
archlabs-skel-base
archlabs-skel-openbox
archlabs-themes
archlabs-wallpapers
autoconf
automake
b43-firmware
base
bash-completion
bind
bison
blueman
brave-bin
brightnessctl
chromium
conky
ddrescue
dhclient
dhcpcd
diffutils
dmraid
dnsmasq
docker
docker-compose
dosfstools
dunst
efibootmgr
ethtool
exfat-utils
exo
f2fs-tools
feh
ffmpeg
firefox
flameshot
flatpak
flex
fsarchiver
gcc
git
gnome-keyring
gnome-themes-extra
grub
gsimplecal
gst-libav
gst-plugins-base
gst-plugins-good
gstreamer
gtk3
gvfs
hdparm
htop
imagemagick
intel-ucode
jgmenu
kubectl
lftp
libmad
libmatroska
libreoffice-fresh
lightdm
lightdm-gtk-greeter
lightdm-gtk-greeter-settings
linux
linux-firmware
linux-firmware-marvell
lm_sensors
lsb-release
lsscsi
lxappearance
lxmenu-data
m4
make
man-db
man-pages
mdadm
mesa-utils
mousepad
mtools
neofetch
neovim
network-manager-applet
networkmanager
networkmanager-openvpn
nfs-utils
nilfs-utils
nitrogen
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
ntp
nvidia
nvidia-settings
obconf
openbox
openconnect
openssh
openvpn
os-prober
p7zip
pacman-contrib
pamixer
partclone
parted
partimage
patch
pavucontrol
pcmanfm
picom
pkgconf
polkit-gnome
ppp
pptpclient
pulseaudio
pulseaudio-alsa
qt5ct
ranger
reflector
rocketchat-desktop
rofi
rp-pppoe
rsync
scrot
sdparm
sg3_utils
slack-desktop
sof-firmware
strace
sudo
tcpdump
teams
terminator
terminus-font
testdisk
texinfo
tint2
ttf-anonymous-pro
ttf-dejavu
ttf-fira-code
ttf-font-awesome
ttf-meslo-nerd-font-powerlevel10k
tumbler
usb_modeswitch
usbutils
vi
vim
virtualgl
visual-studio-code-bin
vlc
volumeicon
wget
wireless-regdb
wireless_tools
wmctrl
wpa_supplicant
wvdial
xarchiver
xclip
xdg-user-dirs
xdotool
xf86-input-libinput
xfce4-settings
xorg-bdftopcf
xorg-docs
xorg-font-util
xorg-fonts-100dpi
xorg-fonts-75dpi
xorg-fonts-encodings
xorg-iceauth
xorg-mkfontscale
xorg-server
xorg-server-common
xorg-server-devel
xorg-server-xephyr
xorg-server-xnest
xorg-server-xvfb
xorg-sessreg
xorg-setxkbmap
xorg-smproxy
xorg-x11perf
xorg-xauth
xorg-xbacklight
xorg-xcmsdb
xorg-xcursorgen
xorg-xdpyinfo
xorg-xdriinfo
xorg-xev
xorg-xgamma
xorg-xhost
xorg-xinit
xorg-xinput
xorg-xkbcomp
xorg-xkbevd
xorg-xkbutils
xorg-xkill
xorg-xlsatoms
xorg-xlsclients
xorg-xmodmap
xorg-xpr
xorg-xrandr
xorg-xrdb
xorg-xrefresh
xorg-xsetroot
xorg-xvinfo
xorg-xwayland
xorg-xwd
xorg-xwininfo
xorg-xwud
xterm
yay-git
zsh

Offline

#4 2022-10-05 08:25:57

seth
Member
Registered: 2012-09-03
Posts: 59,812

Re: [SOLVED] Applications freezing after installing NVIDIA driver

it would be ideal to add it to `/etc/X11/xorg.conf.d/20-nvidia.conf`

Yes.

but I don't have that folder created

So? Create it and put the file there.

To be honest, I'm not quite sure how to do that

There's gonna be a global config for the toolkits (Qt/gtk) default fonts but next to that for each client individually.
If you've been running a 162dpi output at 96dpi you either have previously configured bigger fonts or have been running w/ toosmall™ fonts all along.
You can force a DPI in 20-nvidia.conf

…
        Option  "DPI"                                   "96x96"
        Option  "UseEdidDpi"                    "False"
…

Offline

#5 2022-10-05 11:26:50

kammao
Member
Registered: 2022-09-28
Posts: 12

Re: [SOLVED] Applications freezing after installing NVIDIA driver

Thank you for the help! The options in 20-nvidia.conf did the trick.

Seems like everything is behaving alright now.

Offline

#6 2022-10-05 11:32:14

jonno2002
Member
Registered: 2016-11-21
Posts: 718

Re: [SOLVED] Applications freezing after installing NVIDIA driver

pacman -Qqe wrote:

archlabs-baph
archlabs-common
archlabs-fonts
archlabs-icons
archlabs-keyring
archlabs-kickshaw
archlabs-pipemenus
archlabs-scripts
archlabs-skel-base
archlabs-skel-openbox
archlabs-themes
archlabs-wallpapers

in future ask on the archlabs support forums, archlabs is NOT arch so we cannot provide accurate help

Offline

Board footer

Powered by FluxBB