Games seem to have stuttering

Hello.
Im brand new user of linux (This is my first personal install) and i have some issues while gaming after setup.The games look to go fine, system monitor mark everything on hw under the spected, but when it comes to playing, i feel like it has stuttering (it never happends to me rlly)
I try to follow the guide of AmdGPU Pro from arch, but i see the driver i use still Open source

[spyro@spyropc ~]$ inxi -Ga
Graphics:
Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: Micro-Star MSI
driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 03:00.0 chip-ID: 1002:73ff
class-ID: 0300

For what i see idk if iths the drivers or i’m just missing something basic.

My pc is a r5 7600x and a RX 6600, i am using Zen kernel, KDE Plasma.

can you return

inxi -Fza

you can add on boot kernel
“iommu=pt amd_pstate=passive processor.max_cstate=5”

if possible use linux-zen ( in version 6.3.x )
and disable fTPM in your motherboard

2 Likes

Thank you!!
I Will try it as son as i get home from work.
Hope It works <3
Anyway, un using Zen but i almost shure i am on a 6.3.x (i cant check but almost shure because setting defaylt kernel yesterday was a long process for the grub dont want to be used)

I update as soon as i can

here you are :slight_smile:
[ code ]
System:
Kernel: 6.3.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: initrd=\68a01fcd71bb48a2bb9131e855c7f8a3\6.3.2-zen1-1-zen\initrd
nvme_load=YES nowatchdog rw
root=UUID=2fb68b7a-4eac-455c-a46b-61c24da2d797
systemd.machine_id=68a01fcd71bb48a2bb9131e855c7f8a3
Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.9 wm: kwin_x11 vt: 1 dm: SDDM
Distro: EndeavourOS base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial:
Mobo: ASUSTeK model: ROG STRIX B650E-F GAMING WIFI v: Rev 1.xx
serial: UEFI: American Megatrends v: 1616
date: 05/16/2023
CPU:
Info: model: AMD Ryzen 5 7600X bits: 64 type: MT MCP arch: Zen 4 gen: 5
level: v4 note: check built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25)
model-id: 0x61 (97) stepping: 2 microcode: 0xA601203
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 6 MiB desc: 6x1024 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 5197 high: 5250 min/max: 3000/5453 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 5246 2: 4700
3: 5233 4: 5241 5: 5250 6: 5246 7: 5246 8: 5225 9: 5250 10: 5250 11: 5239
12: 5248 bogomips: 112806
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB:
conditional, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: Micro-Star MSI
driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 03:00.0 chip-ID: 1002:73ff
class-ID: 0300
Device-2: AMD Raphael vendor: ASUSTeK driver: amdgpu v: kernel
arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie:
gen: 4 speed: 16 GT/s lanes: 16 ports: active: none empty: DP-4,HDMI-A-2
bus-ID: 0d:00.0 chip-ID: 1002:164e class-ID: 0300 temp: 36.0 C
Display: x11 server: X.Org v: 21.1.8 compositor: kwin_x11 driver: X:
loaded: amdgpu unloaded: modesetting,radeon alternate: fbdev,vesa
dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 3200x1080 s-dpi: 96 s-size: 844x285mm (33.23x11.22")
s-diag: 891mm (35.07")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,left
model: LG (GoldStar) MP59G serial: built: 2019 res: 1920x1080
hz: 75 dpi: 102 gamma: 1.2 size: 480x270mm (18.9x10.63")
diag: 690mm (27.2") ratio: 16:9 modes: max: 1920x1080 min: 640x480
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: right model-id: HIC 0x0001
serial: built: 2011 res: 1280x960 hz: 60 dpi: 127 gamma: 0.97
size: 256x192mm (10.08x7.56") diag: 378mm (14.9") ratio: 4:3, 5:4 modes:
max: 1024x768 min: 640x480
API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon RX 6600 (navi23 LLVM
15.0.7 DRM 3.52 6.3.2-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Rembrandt Radeon High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0d:00.1 chip-ID: 1002:1640 class-ID: 0403
Device-3: ASUSTek USB Audio driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:3
chip-ID: 0b05:1a52 class-ID: 0300
API: ALSA v: k6.3.2-zen1-1-zen status: kernel-api
tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 0.3.70 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie:
gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 09:00.0 chip-ID: 8086:15f3
class-ID: 0200
IF: eno1 state: down mac:
Device-2: MEDIATEK MT7921K Wi-Fi 6E 80MHz driver: mt7921e v: kernel pcie:
gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 0a:00.0 chip-ID: 14c3:0608
class-ID: 0280
IF: wlan0 state: up mac:
Bluetooth:
Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-11:6 chip-ID: 0e8d:0608
class-ID: e001 serial:
Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: disabled
rfk-block: hardware: no software: no address: see --recommends
Drives:
Local Storage: total: 1.36 TiB used: 119.72 GiB (8.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WDS500G2B0A-00SM50 size: 465.76 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s tech: SSD serial: fw-rev: 00WD
scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000DM003-1SB10C
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 7200 serial: fw-rev: CC41 scheme: GPT
Partition:
ID-1: / raw-size: 464.78 GiB size: 456.41 GiB (98.20%)
used: 119.57 GiB (26.2%) fs: ext4 dev: /dev/sda2 maj-min: 8:2
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 49.5 C mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: amdgpu temp: 36.0 C device: amdgpu temp: 48.0 C mem: 56.0 C
fan: 0 watts: 17.00
Info:
Processes: 358 Uptime: 43m wakeups: 0 Memory: available: 14.78 GiB
used: 9.94 GiB (67.3%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 Packages: pm: pacman pkgs: 1139
libs: 384 tools: yay Shell: Bash v: 5.1.16 running-in: konsole inxi: 3.3.27
[/ code ]

add theses options on boot kernel
“iommu=pt amd_pstate=passive processor.max_cstate=5”

1 Like

Where i paste this, on the grub file? (/etc/default/grub || /boot/grub/grub || /etc/kernel/cmdline)
Sorry for the ignorance :frowning:

you have to add theses options on
GRUB_CMDLINE_LINUX_DEFAULT=

sudo nano /etc/default/grub ( Ctrl+ X for save )
sudo grub-mkconfig -o /boot/grub/grub.cfg
1 Like

GRUB_CMDLINE_LINUX_DEFAULT=“loglevel=3 quiet”
Thats what i got
GRUB_CMDLINE_LINUX_DEFAULT=“iommu=pt amd_pstate=passive processor.max_cstate=5”
Thats what i paste

I reboot and paste the inxi -Fza

Still the same.
GRUB seems to not respondig, i change the seconds to select a kernel from 5 to 3 and not make the change (still waiting 5 seconds)

GRUB boot loader configuration

GRUB_DEFAULT=saved
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=“EndeavourOS”
GRUB_CMDLINE_LINUX_DEFAULT=“iommu=pt amd_pstate=passive processor.max_cstate=5”
GRUB_CMDLINE_LINUX=“”

Also found:

Activating the freesync ON the monitor make the games run smooth (whith or whithout vsync enabled) but my 2nd monitor gets disabled.
The Freesync one: lg 75Hz to DVI 16:9
The non FreeSync one : lg 60HZ to HDMI 4:3

I never had this issue with windows, and i as a newbie don’t know what it can be…

[spyro@spyropc ~]$ inxi -Fza
System:
Kernel: 6.3.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: initrd=\68a01fcd71bb48a2bb9131e855c7f8a3\6.3.2-zen1-1-zen\initrd
nvme_load=YES nowatchdog rw
root=UUID=2fb68b7a-4eac-455c-a46b-61c24da2d797
systemd.machine_id=68a01fcd71bb48a2bb9131e855c7f8a3
Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.9 wm: kwin_x11 vt: 1 dm: SDDM
Distro: EndeavourOS base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial:
Mobo: ASUSTeK model: ROG STRIX B650E-F GAMING WIFI v: Rev 1.xx
serial: UEFI: American Megatrends v: 1616
date: 05/16/2023
CPU:
Info: model: AMD Ryzen 5 7600X bits: 64 type: MT MCP arch: Zen 4 gen: 5
level: v4 note: check built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25)
model-id: 0x61 (97) stepping: 2 microcode: 0xA601203
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 6 MiB desc: 6x1024 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 3880 high: 5225 min/max: 3000/5453 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 4700 2: 3000
3: 5225 4: 5225 5: 3000 6: 5225 7: 3000 8: 2985 9: 5207 10: 3000 11: 3000
12: 3000 bogomips: 112797
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB:
conditional, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: Micro-Star MSI
driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-1
off: HDMI-A-1 empty: DP-2,DP-3 bus-ID: 03:00.0 chip-ID: 1002:73ff
class-ID: 0300
Device-2: AMD Raphael vendor: ASUSTeK driver: amdgpu v: kernel
arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie:
gen: 4 speed: 16 GT/s lanes: 16 ports: active: none empty: DP-4,HDMI-A-2
bus-ID: 0d:00.0 chip-ID: 1002:164e class-ID: 0300 temp: 40.0 C
Display: x11 server: X.Org v: 21.1.8 compositor: kwin_x11 driver: X:
loaded: amdgpu unloaded: modesetting,radeon alternate: fbdev,vesa
dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 506x285mm (19.92x11.22")
s-diag: 581mm (22.86")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary
model: LG (GoldStar) MP59G serial: built: 2016 res: 1920x1080
hz: 75 dpi: 102 gamma: 1.2 size: 480x270mm (18.9x10.63")
diag: 690mm (27.2") ratio: 16:9 modes: max: 1920x1080 min: 640x480
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 note: disabled model-id: HIC 0x0001
serial: built: 2011 res: 1920x1080 dpi: 87 gamma: 0.97
size: 256x192mm (10.08x7.56") diag: 378mm (14.9") ratio: 4:3, 5:4 modes:
max: 1024x768 min: 640x480
API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon RX 6600 (navi23 LLVM
15.0.7 DRM 3.52 6.3.2-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Rembrandt Radeon High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0d:00.1 chip-ID: 1002:1640 class-ID: 0403
Device-3: ASUSTek USB Audio driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:3
chip-ID: 0b05:1a52 class-ID: 0300
API: ALSA v: k6.3.2-zen1-1-zen status: kernel-api
tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 0.3.70 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie:
gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 09:00.0 chip-ID: 8086:15f3
class-ID: 0200
IF: eno1 state: down mac:
Device-2: MEDIATEK MT7921K Wi-Fi 6E 80MHz driver: mt7921e v: kernel pcie:
gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 0a:00.0 chip-ID: 14c3:0608
class-ID: 0280
IF: wlan0 state: up mac:
Bluetooth:
Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-11:6 chip-ID: 0e8d:0608
class-ID: e001 serial:
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
rfk-block: hardware: no software: no address: see --recommends
Drives:
Local Storage: total: 1.36 TiB used: 120.02 GiB (8.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WDS500G2B0A-00SM50 size: 465.76 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s tech: SSD serial: fw-rev: 00WD
scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000DM003-1SB10C
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 7200 serial: fw-rev: CC41 scheme: GPT
Partition:
ID-1: / raw-size: 464.78 GiB size: 456.41 GiB (98.20%)
used: 119.87 GiB (26.3%) fs: ext4 dev: /dev/sda2 maj-min: 8:2
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 77.4 C mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: amdgpu temp: 36.0 C mem: 40.0 C fan: 0 watts: 3.00
device: amdgpu temp: 40.0 C
Info:
Processes: 318 Uptime: 28m wakeups: 0 Memory: available: 14.78 GiB
used: 7.4 GiB (50.1%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 Packages: pm: pacman pkgs: 1140
libs: 384 tools: yay Shell: Bash v: 5.1.16 running-in: konsole inxi: 3.3.27

I am searching, and it looks like im not using the grub, instead i am using /efi/loader/loader.conf, and thats why the grub apparently doesnt apply changes.
I am working on the reaserch to change this :confused:

then is dracut and systemd-boot
https://forum.endeavouros.com/search?q=systemd-boot%20dracut

1 Like

Okay, i just whipe the boot manager.
Reinstall IS done so i Will set Up everything now
(It Will hapoend again, i know jajaja)

I reinstall endeavour (bc i broke it XD)
The solution i found:

  • Choosing grub as bootloader
  • Adding the comand in /etc/grub/default
GRUB_CMDLINE_LINUX_DEFAULT=“iommu=pt amd_pstate=passive processor.max_cstate=5*
  • Use the AmdVlk software and preintalled
yay amdvlk

Options 1,2 and 3, you might check the options

  • Install GameMode
sudo pacman –S gamemode lib32-gamemode

And apply to games in Steam: Go to the game: Right Mouse button → propertys → Add to launch parametersgamemoderun %command%

Now games run smooth as soon as they load pre-cache shadows (Tested Apex, Weird West, Hot wheels unleashed)

Thank you Stephane for the support, its been a great start in the community

amdvlk usually is the much worse Vulkan option. vulkan-radeon lib32-vulkan-radeon have proven in several benchmarks to work much better and have less compatibility issues.

okay, but now i have to unstall amdvlk and install those?
i mean, just whith tthat it will be done and automatically use that?

Command lines i guess i have to make:

sudo pacman -R amdvlk lib32-amdvlk
sudo pacman -S vulkan-radeon lib32-vulkan-radeon

Just asking so i make all this changes as soon as i get home :blush:

Also found these to install mesa

Sorry for asking so much but i just want to be shure and end the “Installation proccess” for now

that are the correct commands to switch, yes.

the Pro-drivers come with a lot more hazzle and are not worth it. They are designed for enterprise distributions that don’t receive new kernels and mesa in time. The topic you linked is specific for those pro drivers.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.