You are not logged in.

#1 2022-05-21 19:33:11

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Desktop with old Nvidia GPU won't wake from suspend using nouveau

I have an old desktop whose nvidia GPU was supported as far as the 340xx driver which hasn't been supported since 2019. There's an AUR package with a patched version, but I'm hesitant to use it given that new kernel updates seem to break it often

The built-in nouveau driver seems to work fine in terms of performance, but it seems to have issues suspending. On Fedora, the system correctly suspends (causing the power button glow to go from white to orange) and waking works perfectly fine

However, on arch the screen turns off and the computer seems to stop its fans, but the power button glow never turns to the proper orange and I can't seem to wake it

Is there any way to figure out why Arch has this issue while Fedora doesn't?

Offline

#2 2022-05-21 19:44:46

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

Are you even sure that it's related to the GPU/driver?
Can you suspend/wake the system (from the console) when you boot it w/ "nomodeset" (and possibly blacklist/unload nouveau)?

https://01.org/node/3721

Offline

#3 2022-05-21 19:52:59

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

I won't be able to check how suspending from the console goes till later in the day, but I tested out Linux Mint as well before installing Arch and suspending there worked fine with the proprietary driver, but not the open-source one. The drawback was that the Nvidia driver resulted in the system freezing often, though, so I'm trying to avoid it

Thanks for the link, though. I'll try some of these debugging steps tonight

Offline

#4 2022-05-22 20:27:52

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

I've had the chance to test it, and it seems like it suspends and wakes correctly with the console alone. However, starting any display manager is what seems to break it

Offline

#5 2022-05-22 20:43:45

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

Do you have to unload/blacklist nouveau (or run "nomodeset") or does the S3 work fine w/ nouveau loaded?

However, starting any display manager is what seems to break it

Did you try them all? tongue

What if you just "startx xterm"?

Edit, next: what if you switch to a console VT and S3 from there?

Last edited by seth (2022-05-22 20:44:49)

Offline

#6 2022-05-22 22:02:36

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

Without blacklisting nouveau or using nomodeset, S3 works just fine. The issue pops up after starting gdm, sddm, or lightdm. Suspending from tty2 while any of those are active on tty1 doesn't make a difference

I've also never used startx before, and i couldn't figure out how to get it to work for the last hour.

Offline

#7 2022-05-23 05:33:43

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

https://wiki.archlinux.org/title/Xinit
Boot the multi-user.target (no DM), login as your regular user and run startx. For "startx xterm" to (ignore the xinitrc and) work, you must have xorg-xterm installed.

Offline

#8 2022-05-23 15:16:32

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

Startx xterm throws the error "shell already was /usr/bin/xterm xterm: bad command line option "xterm""

I'm assuming that means i should just use startx, and that pulls up a black screen with three white terminals. Trying to suspend from there causes the same suspend issue

I guess the problem is with X itself?

Offline

#9 2022-05-23 18:26:37

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

I guess the problem is with X itself?

It certainly triggers it - do you use xf86-video-nouveau or the modesetting driver?

Offline

#10 2022-05-23 20:34:06

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

I was using the modesetting driver since xf86-video-nouveau wasn't installed, but I've installed xf86-video-nouveau with pacman (and it seems like it gets loaded according to /var/log/Xorg.0.log) and I'm not seeing a difference

Offline

#11 2022-05-24 01:11:58

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

I can confirm that openSuse Tumbleweed also suspends correctly just like Fedora

Do you know about anything I might want to consider taking a look at in either of those two distros that might shed light on what I could do differently in Arch?

Last edited by Zodigram (2022-05-24 01:51:03)

Offline

#12 2022-05-24 05:39:40

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

Are you maybe running wayland sessions there?
And on which kernel?
Or maybe even the 340xx nvidia driver?

Offline

#13 2022-05-24 22:07:38

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

Both are on kernel 5.17, use nouveau, and work correctly on both X11 and Wayland

Offline

#14 2022-05-25 05:25:13

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

W/ the modesetting or xf86-video-nouveau X11 driver?
You can also compare "systool -vm nouveau"

Offline

#15 2022-05-26 20:21:46

Zodigram
Member
Registered: 2022-05-16
Posts: 15

Re: Desktop with old Nvidia GPU won't wake from suspend using nouveau

Neither uses their equivalent of xf86-video-nouveau, and the output of each systool -vm nouveau is

FEDORA 36

Module = "nouveau"

  Attributes:
    coresize            = "2412544"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "6"
    rhelversion         = "9.99"
    taint               = ""
    uevent              = <store method only>

  Parameters:

  Sections:

OPENSUSE TUMBLEWEED

Module = "nouveau"

  Attributes:
    coresize            = "2732032"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "2"
    srcversion          = "B6C8A7BD38595392F602D67"
    taint               = ""
    uevent              = <store method only>

  Parameters:

  Sections:

ARCH

Module = "nouveau"

  Attributes:
    coresize            = "2752512"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "1"
    srcversion          = "B6C8A7BD38595392F602D67"
    taint               = ""
    uevent              = <store method only>

  Parameters:

  Sections:

Offline

Board footer

Powered by FluxBB