Need help with DRI_PRIME=1 for ATLauncher

you sure its ok for me to install the amdgpu experimental… mine is a GCN 1 card ig

The point is to flip some options to enable amdgpu for your card. Sea Island and Southern Island cards are technically capable, but you need to enable ‘experimental support’ for them to use the amdgpu driver. If it works, and it does 99% of the time, you want that rather than the quite old radeon driver.

This will also work better with prime.

Ok, while its installing, i would also like to tell you that when i had tried the mesa-utils, back when it had crashed, it showed proper outputs, like theres that rendering of a sphere ig, it had done it properly… but the game is the only thing it had crashed on

ok, it has installed , should i reboot or something ?

Yes, reboot, then we can look at inxi again to make sure its using the amdgpu driver now:

inxi -Gazy

Why is it taking forever to boot ?

I dont currently have my crystal ball hooked up to your network.
I cannot know. Did you have other updates? Is it performing fsck?

If for whatever reason it doesnt want to get to a graphical session you might try dropping to TTY, using runlevel3, or any of the other options here:

This had also happened the last time, I force shutdown and while in grub I chose advanced boot options and the first one without initram fs ig, that had worked

What happened?
What last time?

I am not sure I understand what this means.

If you do this … then maybe your system is trying to perform fsck (disk repair) and you keep interrupting it. And the cycle of a broken partition that needs fixing continues.
Maybe. Again, I dont know.

The last time my pc crashed with dri prime, I had force shutdown, and it has stuck on boot screen… so I force shutdown it again and the next time I was on GRUB, I chose the advanced boot options , and there the first option, the one without fallback initramfs

I did that now and it booted this time

Which would be … the normal boot option.
Were you using the fallback option previously?

Idk, I didn’t do anything, it had booted into the bootloop automatically

Well … maybe we will come back to that.
If you have a graphical system, and its not ‘fallback’ … then what does inxi look like now?

first of all

(base) [arhero@arhero-hpnotebook ~]$ 

why does it say base, that didnt happen earlier ?

Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Hewlett-Packard driver: i915
    v: kernel arch: Gen-8 process: Intel 14nm built: 2014-15 ports: active: eDP-1
    empty: DP-1,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:1616 class-ID: 0300
  Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 M430 Radeon
    520 Mobile] vendor: Hewlett-Packard driver: amdgpu v: kernel
    alternate: radeon arch: GCN-1 code: Southern Islands process: TSMC 28nm
    built: 2011-20 pcie: gen: 2 speed: 5 GT/s lanes: 4 link-max: gen: 3
    speed: 8 GT/s lanes: 8 bus-ID: 0d:00.0 chip-ID: 1002:6660 class-ID: 0380
    temp: 41.0 C
  Device-3: Chicony HP TrueVision HD driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:4 chip-ID: 04f2:b56c
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.8 compositor: xfwm v: 4.18.0 driver:
    X: loaded: amdgpu,modesetting alternate: fbdev,vesa dri: iris,radeonsi
    gpu: i915 display-ID: :0.0 note: <missing: xdpyinfo/xrandr>
  Monitor-1: eDP-1 model: AU Optronics 0x70ec built: 2015 res: 1366x768
    dpi: 101 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1366x768
  API: EGL v: 1.5 hw: drv: intel iris drv: amd radeonsi platforms: device: 0
    drv: iris device: 1 drv: radeonsi device: 2 drv: swrast gbm: drv: kms_swrast
    surfaceless: drv: radeonsi x11: drv: iris inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 23.1.9-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 5500 (BDW GT2)
    device-ID: 8086:1616 memory: 7.49 GiB unified: yes

the inxi

I dont know. Something to do with your bashrc? Or are you using zsh?

Whatever the case - its not from that package you installed.

You might have a plethora of other issues … but for now I’m gonna focus on this one:

Great you are now using amdgpu for that card.

So … how does this go:

glxinfo | grep 'renderer string'
DRI_PRIME=1 glxinfo | grep 'renderer string'
OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
OpenGL renderer string: AMD Radeon R5 M330 (hainan, LLVM 16.0.6, DRM 3.54, 6.5.5-1-MANJARO)

Hurray. Prime seems to work as expected.

Now … your next order of business should be to handle your SWAP situation.
You dont have any.
And with 8 GB of RAM … that means you will freeze or crash rather easily.
(when you hit that 8GB ceiling).

My suggestion would be to use zram.

sudo pacman -Syu zram-generator

Then create file /etc/systemd/zram-generator.conf with content:

[zram0]
zram-size = ram / 2
compression-algorithm = zstd
swap-priority = 100
fs-type = swap

Reboot and you should see SWAP enabled. ex:

swapon

im sorry but how do i create that file ?

I would use

sudoedit /etc/systemd/zram-generator.conf

But you probably havent set the environment variables so it will default to some editor like vi

So instead lets make sure you have a sane editor:

sudo pacman -Syu micro micro-manjaro

Then you can use it:

sudo micro /etc/systemd/zram-generator.conf

nvm did it

NAME       TYPE      SIZE USED PRIO
/dev/zram0 partition 3.8G   0B  100

swapon output