You are not logged in.

#1 2024-08-22 22:36:45

Dantes
Member
Registered: 2024-07-31
Posts: 30

After waking up, Archlinux cannot use the NVIDIA graphics card normall

NVIDIA graphics card, under normal boot, OLLAMA can use the AI large model through the GPU without issue. However, once it goes into sleep mode and then wakes up, it cannot use the AI through the GPU properly.

and I have to use the bash shell restart NVIDIA Drive so that OLLAMA can use the AI.

#!/usr/bin/env bash

sudo systemctl daemon-reload 
sudo systemctl restart ollama && sudo modprobe -r nvidia-drm && sudo modprobe -r nvidia-uvm

Offline

#2 2024-08-23 03:18:30

cloverskull
Member
Registered: 2018-09-30
Posts: 277

Re: After waking up, Archlinux cannot use the NVIDIA graphics card normall

Potentially unrelated but I do some AI work using CUDA with a combination of python and docker. I’ve noticed that after going into sleep mode, I had to fully reboot for the AI work to be able to run. Perhaps I can try some of the steps you listed here.

Offline

#3 2024-08-23 04:03:22

Dantes
Member
Registered: 2024-07-31
Posts: 30

Re: After waking up, Archlinux cannot use the NVIDIA graphics card normall

cloverskull wrote:

Potentially unrelated but I do some AI work using CUDA with a combination of python and docker. I’ve noticed that after going into sleep mode, I had to fully reboot for the AI work to be able to run. Perhaps I can try some of the steps you listed here.

Every time I wake Arch Linux, I am required to manually execute the script above. This is the best solution I have at the moment, but it still falls short of my expectations. I don't wish to manually run the script each time, and even incorporating it into an automated script doesn't seem to be satisfactory. Of course, I haven't implemented that yet.

Offline

#4 2024-08-23 04:21:29

cloverskull
Member
Registered: 2018-09-30
Posts: 277

Re: After waking up, Archlinux cannot use the NVIDIA graphics card normall

Agree with you but perhaps these details can be somewhat diagnostic. Anything interesting in dmesg?

Offline

#5 2024-08-23 14:05:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,177

Re: After waking up, Archlinux cannot use the NVIDIA graphics card normall

https://wiki.archlinux.org/title/Power_ … stem-sleep
https://wiki.archlinux.org/title/NVIDIA … er_suspend (the volatile VRAM won't get refreshed during the sleep, a hallmark of this problem is that very short sleep cycles would not have that problem)

Offline

#6 2024-08-23 14:46:14

Dantes
Member
Registered: 2024-07-31
Posts: 30

Re: After waking up, Archlinux cannot use the NVIDIA graphics card normall

cloverskull wrote:

Agree with you but perhaps these details can be somewhat diagnostic. Anything interesting in dmesg?

I know the reason but not clearly, It is relation with nvidia's status and wake up status, hard to explain. use the command to refresh the status that it will work.

Offline

#7 2024-08-23 14:48:32

Dantes
Member
Registered: 2024-07-31
Posts: 30

Re: After waking up, Archlinux cannot use the NVIDIA graphics card normall

seth wrote:

https://wiki.archlinux.org/title/Power_ … stem-sleep
https://wiki.archlinux.org/title/NVIDIA … er_suspend (the volatile VRAM won't get refreshed during the sleep, a hallmark of this problem is that very short sleep cycles would not have that problem)

ok,  thank you very much , I will try it late.

Offline

Board footer

Powered by FluxBB