[SOLVED] All games laggy

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
angryduck1
Level 1
Level 1
Posts: 20
Joined: Sat Aug 13, 2022 2:02 pm

[SOLVED] All games laggy

Post by angryduck1 »

Hello! I recently installed Linux Mint 21 Cinnamon Edition, and whenever I play any games, they are laggy. For example, playing Minecraft is laggy. I am dual-booting Windows 10 with Linux Mint 21, for reference. The games I played on Windows 10 on the same computer were not laggy at all, and in Linux Mint, they are. I am using a GeForce RTX 2060 GPU. I tried out both the suggested driver for that GPU and also tried out the x.org open source alternative, and both were laggy. Disabling VSYNC in games does not seem to fix the lag. Would repartioning my hard drive to make it only single-boot remove the lag? Please let me know if I need to give any more hardware specs or logs of any kind.
Last edited by LockBot on Thu Feb 16, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
angryduck1
Level 1
Level 1
Posts: 20
Joined: Sat Aug 13, 2022 2:02 pm

Re: All games laggy

Post by angryduck1 »

Here is the output of inxi -Fxxxrz

Code: Select all

System:
  Kernel: 5.15.0-46-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: Cinnamon 5.4.10 tk: GTK 3.24.33 wm: Mutter vt: 7
    dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: HP product: OMEN 30L Desktop GT13-0xxx v: N/A
    serial: <superuser required> Chassis: type: 3 serial: <superuser required>
  Mobo: HP model: 87C3 v: 00 serial: <superuser required> UEFI: AMI v: F.23
    date: 03/24/2022
Battery:
  Device-1: hidpp_battery_0
    model: Logitech G305 Lightspeed Wireless Gaming Mouse serial: <filter>
    charge: 100% (should be ignored) rechargeable: yes status: Discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP smt: enabled
    arch: Zen 2 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 4044 high: 4220 min/max: 2200/4426 boost: enabled
    cores: 1: 4169 2: 4187 3: 3560 4: 4161 5: 4220 6: 4213 7: 3446 8: 4090
    9: 4217 10: 4048 11: 4170 12: 4186 13: 4178 14: 4071 15: 3852 16: 3943
    bogomips: 114988
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] vendor: Hewlett-Packard
    driver: nouveau v: kernel pcie: speed: 2.5 GT/s lanes: 16 ports:
    active: DP-1 empty: DVI-D-1,HDMI-A-1 bus-ID: 23:00.0 chip-ID: 10de:1f08
    class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: nouveau display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Monitor-1: DP-1 model: Samsung LC27RG50 serial: <filter> res: 1920x1080
    hz: 60 dpi: 92 size: 532x304mm (20.9x12.0") diag: 613mm (24.1") modes:
    max: 1920x1080 min: 720x400
  OpenGL: renderer: NV166 v: 4.3 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 16
    bus-ID: 23:00.1 chip-ID: 10de:10f9 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 25:00.4 chip-ID: 1022:1487 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-46-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtw_8822ce v: N/A pcie: speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 21:00.0 chip-ID: 10ec:c822 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp34s0 state: down mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-10:3 chip-ID: 0bda:b00c class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.1 sub-v: 6d7d hci-v: 5.1 rev: 19b7
Drives:
  Local Storage: total: 1.14 TiB used: 94.46 GiB (8.1%)
  ID-1: /dev/nvme0n1 vendor: Western Digital
    model: PC SN530 SDBPNPZ-256G-1006 size: 238.47 GiB speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: HPS2 temp: 36.9 C scheme: GPT
  ID-2: /dev/sda vendor: Seagate model: ST1000DM003-1SB102 size: 931.51 GiB
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: HPH5 scheme: GPT
Partition:
  ID-1: / size: 777.39 GiB used: 94.37 GiB (12.1%) fs: ext4 dev: /dev/sda3
  ID-2: /boot/efi size: 256 MiB used: 90.9 MiB (35.5%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 66.0 C mobo: N/A gpu: nouveau temp: 39.0 C
  Fan Speeds (RPM): N/A gpu: nouveau fan: 885
Repos:
  Packages: 2425 apt: 2418 flatpak: 7
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com vanessa main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/protonvpn-stable.list
    1: deb [signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https://repo.protonvpn.com/debian stable main
Info:
  Processes: 365 Uptime: 1h 40m wakeups: 10 Memory: 15.54 GiB
  used: 3.98 GiB (25.6%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.2.0 alt: 11 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13
Last edited by SMG on Tue Aug 16, 2022 8:19 pm, edited 1 time in total.
Reason: Changed c tags around inxi to code tags. Code tags are for multi-line code output. C tags are just for short snippets of code.
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: All games laggy

Post by SMG »

angryduck1 wrote: Tue Aug 16, 2022 7:38 pmI tried out both the suggested driver for that GPU and also tried out the x.org open source alternative, and both were laggy.
Welcome to the forum, angryduck1.

It is unusual for games to be laggy using the proprietary Nvidia driver. It makes me wonder whether the driver did install properly. Please install the driver and reboot and then post the output of inxi -Gx so we can verify the drivers are loaded.

Also, it is possible the game versions and or settings you are using may need some tweaking.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
angryduck1
Level 1
Level 1
Posts: 20
Joined: Sat Aug 13, 2022 2:02 pm

Re: All games laggy

Post by angryduck1 »

Thank you, I appreciate your response. I ran the .run file from NVIDIA's website that installs the driver in the terminal and it says "ERROR: You appear to be running an X server; please exit X before installing." and "ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details.'" The log says this:

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Aug 16 22:04:05 2022
installer version: 515.65.01

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> Detected 16 CPUs online; setting concurrency level to 16.
-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '1252' of a running X server.
ERROR: You appear to be running an X server; please exit X before installing.  For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com.
I believe that this is running due to installing the x.org driver. I tried to stop the X server by entering sudo service lightdm stop, but after I enter this, my screen becomes black with a blinking cursor and I cannot do anything. The only way to get back into my computer is to turn it off and back on.

It should be worth mentioning that I did switch back to the NVIDIA driver using Driver Manager before doing any of this, but I am unsure if it installed correctly. Even though I couldn't install the driver using the terminal, here are the results of inxi -Gx if it helps:

Code: Select all

Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] vendor: Hewlett-Packard
    driver: N/A bus-ID: 23:00.0
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nouveau,vesa
    unloaded: fbdev,modesetting gpu: N/A resolution: 1920x1080~77Hz
  OpenGL: renderer: llvmpipe (LLVM 13.0.1 256 bits) v: 4.5 Mesa 22.0.5
    direct render: Yes
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: All games laggy

Post by SMG »

angryduck1 wrote: Tue Aug 16, 2022 10:13 pm Thank you, I appreciate your response. I ran the .run file from NVIDIA's website that installs the driver in the terminal
We do not recommend installing the driver that way. We also do not recommend using more than one method to install drivers. They do not install the exact same files and you can end up with problems.
angryduck1 wrote: Tue Aug 16, 2022 10:13 pmIt should be worth mentioning that I did switch back to the NVIDIA driver using Driver Manager before doing any of this, but I am unsure if it installed correctly. Even though I couldn't install the driver using the terminal, here are the results of inxi -Gx if it helps:

Graphics:
Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] vendor: Hewlett-Packard
driver: N/A bus-ID: 23:00.0
Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nouveau,vesa
unloaded: fbdev,modesetting gpu: N/A resolution: 1920x1080~77Hz
OpenGL: renderer: llvmpipe (LLVM 13.0.1 256 bits) v: 4.5 Mesa 22.0.5
direct render: Yes
That data shows there is no driver installed. That would definitely give you laggy performance because you are running in software rendering mode.

What happened when you installed the driver using Driver Manager and the rebooted the computer? What was the output?

You may need to take into account whether or not your computer has secure boot enabled. You can check by running mokutil --sb-state in a terminal. If secure boot is enabled and you did not create MOK, then the Nvidia driver can not load even if it is installed properly. Please check this post for an explanation of the difference between the Nvidia driver files being installed and them loading at boot time. If you disable secure boot, then the driver can load.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
zcot
Level 9
Level 9
Posts: 2838
Joined: Wed Oct 19, 2016 6:08 pm

Re: All games laggy

Post by zcot »

Are we supposed to be on Mutter, or Muffin with Mint 21? The releases "what's new" mentions the Mutter rebase but I don't get that they are exactly equal. I don't know if it matters.
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: All games laggy

Post by SMG »

zcot wrote: Wed Aug 17, 2022 2:05 am Are we supposed to be on Mutter, or Muffin with Mint 21? The releases "what's new" mentions the Mutter rebase but I don't get that they are exactly equal.
I do not know at what point Mutter becomes Muffin with regards to the code. All the LM21 outputs I've seen are showing Mutter in inxi. I just assumed the reason is because the code is now much closer to the base Mutter that wherever inxi gets the info is now saying Mutter.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
angryduck1
Level 1
Level 1
Posts: 20
Joined: Sat Aug 13, 2022 2:02 pm

Re: All games laggy

Post by angryduck1 »

What happened when you installed the driver using Driver Manager and the rebooted the computer?
The computer seemed to work just fine, except graphics-heavy things lagged significantly.
You can check by running mokutil --sb-state in a terminal.
I did this and it was disabled. I went to my UEFI settings and disabled it. I booted back into Linux Mint and the driver seems to be working correctly now. I ran inxi -Gx in a terminal and the output was this:

Code: Select all

Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 Rev. A] vendor: Hewlett-Packard
    driver: nvidia v: 515.65.01 bus-ID: 23:00.0
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia
    resolution: 1920x1080~60Hz
  OpenGL: renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2
    v: 4.6.0 NVIDIA 515.65.01 direct render: Yes
I ran a very graphics-heavy game (No Man's Sky) and the lag is completely gone and everything is now running smoothly. Thank you so much for your help.
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: All games laggy

Post by SMG »

angryduck1 wrote: Wed Aug 17, 2022 11:27 amI ran a very graphics-heavy game (No Man's Sky) and the lag is completely gone and everything is now running smoothly. Thank you so much for your help.
You're welcome Glad to hear it is working well for you now. Your inxi output looks good. Enjoy your Linux Mint install. :)
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Beginner Questions”