Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspend/wake issues #1933

Open
sn4201 opened this issue Nov 16, 2024 · 8 comments
Open

Suspend/wake issues #1933

sn4201 opened this issue Nov 16, 2024 · 8 comments
Labels
bug Something isn't working upstream Something that likely isn't us

Comments

@sn4201
Copy link

sn4201 commented Nov 16, 2024

Describe the bug

Sadly although suspend/wake was working when I first rebased to bluefin, it has since become broken again. Manual suspend seems to just shut off the laptops screen and does not allow it to turn back on, requiring forced power off.

Not sure if maybe enabling secure boot broke it again, or something else? @tulilirockz

What did you expect to happen?

Laptop sleep/wake should put the system to sleep and wake it up when interacted with

Output of rpm-ostree status

❯ rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
● ostree-unverified-registry:ghcr.io/ublue-os/bluefin-nvidia:stable
                   Digest: sha256:7f08312f76342d80523ab53fbb34133188a68f7288a60591fcf2a79f27434550
                  Version: 41.20241112.1 (2024-11-12T21:05:36Z)
          LayeredPackages: brave-browser librewolf mullvad-vpn

Output of groups

❯ groups
alex wheel

Extra information or context

Sat Nov 16 12:44:45 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.57.01              Driver Version: 565.57.01      CUDA Version: 12.7     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   46C    P8             11W /   35W |      13MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      3074      G   /usr/bin/gnome-shell                            2MiB |
+-----------------------------------------------------------------------------------------+

~ 
@m2Giles
Copy link
Member

m2Giles commented Nov 16, 2024

Suspend is currently broken in the Nvidia driver.

@dosubot dosubot bot added the bug Something isn't working label Nov 16, 2024
@sn4201
Copy link
Author

sn4201 commented Nov 16, 2024

Suspend is currently broken in the Nvidia driver.

It did work when i first tested it after rebasing to bluefin-stable, so could there be something that I did which caused it to break again? I enabled secure boot and tweaked a couple other things yesterday

Or is it just universally broken for everyone with nvidia?

Is there any workaround? @tulilirockz mentioned possibly using nvidia-open yesterday, is there a way to install that to try it out or is it affected by the same issue?

Thanks

@m2Giles
Copy link
Member

m2Giles commented Nov 16, 2024

Bluefin currently doesn't build an nvidia-open image.

It's been broken on 565 series driver. The Nvidia GPU doesn't recover from suspend.

@sn4201
Copy link
Author

sn4201 commented Nov 16, 2024

So i used a workaround:

sudo rpm-ostree rebase ostree-unverified-registry:ghcr.io/ublue-os/bluefin:stable

Using the non-nvidia release seems to be perfect for my use case since I dont game. The NVK driver seems to work great in terms of suspend/wake. No performance issues in browsers using HW accel video (at least none i've found yet). Bonus is that power consumption on my laptop is even lower now than before! Hope this helps someone else in the future

@castrojo
Copy link
Member

ujust toggle-nvk will rebase you properly, you've inadvertantly rebased without confirming the signature.

sudo bootc switch ghcr.io/ublue-os/bluefin:stable --enforce-container-sigpolicy should get you back on track!

@castrojo castrojo added the upstream Something that likely isn't us label Nov 17, 2024
@tulilirockz
Copy link
Collaborator

ujust toggle-nvk will rebase you properly, you've inadvertantly rebased without confirming the signature.

sudo bootc switch ghcr.io/ublue-os/bluefin:stable --enforce-container-sigpolicy should get you back on track!

Yeah! Its just that they were switching off of Fedora Silverblue, they had to do the unsigned -> signed step thing before that

@sn4201
Copy link
Author

sn4201 commented Nov 18, 2024

sudo bootc switch ghcr.io/ublue-os/bluefin:stable --enforce-container-sigpolicy

I tried this command (without first doing ujust toggle-nvk, and received:


(process:13526): GLib-CRITICAL **: 17:41:34.373: g_atomic_ref_count_dec: assertion 'old_value > 0' failed

(process:13526): GLib-CRITICAL **: 17:41:34.705: g_atomic_ref_count_dec: assertion 'old_value > 0' failed

(process:13526): GLib-CRITICAL **: 17:41:34.705: g_atomic_ref_count_dec: assertion 'old_value > 0' failed

(process:13526): GLib-CRITICAL **: 17:41:34.705: g_atomic_ref_count_dec: assertion 'old_value > 0' failed

(process:13526): GLib-CRITICAL **: 17:41:34.727: g_atomic_ref_count_dec: assertion 'old_value > 0' failed

(process:13526): GLib-CRITICAL **: 17:41:34.729: g_atomic_ref_count_dec: assertion 'old_value > 0' failed

(process:13526): GLib-CRITICAL **: 17:41:34.729: g_atomic_ref_count_dec: assertion 'old_value > 0' failed

(process:13526): GLib-CRITICAL **: 17:41:34.732: g_atomic_ref_count_dec: assertion 'old_value > 0' failed

(process:13526): GLib-CRITICAL **: 17:41:34.745: g_atomic_ref_count_dec: assertion 'old_value > 0' failed
Queued for next boot: ostree-image-signed:docker://ghcr.io/ublue-os/bluefin:stable
  Version: 41.20241117.3
  Digest: sha256:0062e05c043c6887d4d9f01c7c9f27abf27440b089d31a172372e1baef8ca9f6

Is this expected?

@castrojo
Copy link
Member

castrojo commented Nov 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Something that likely isn't us
Projects
None yet
Development

No branches or pull requests

4 participants