#PC failing to sleep properly

130 messages · Page 1 of 1 (latest)

slender hedge
#

I am running an Arch based system (EndeavourOS) with KDE plasma as my DE, and I am running into an issue that when I tell my PC to sleep, the screens go black yet the PC is still lit up and sounds like it's still running? Pressing mouse or keyboard inputs doesn't wake the system up, the PC still chugs like it's under light load but won't turn the screens back on

I have to force shutdown after sleep, and upon rebooting. This began after a regular system update through yay yesterday, and unfortunately I didn't remember to install Timeshift after reinstalling the operating system some months ago so I have no backup of the working version

#

My PC passed memtest86+ without error, and logs include these errors:
kernel asus_wmi: failed to register LPS0 sleep handler in asus-wmi

craggy pagoda
#

first of all

#

do u have secure boot on?

slender hedge
#

No

craggy pagoda
#

your sysrem probably blocked sleeping because theres a kernel taint.

#

i had same issue in ubuntu.

slender hedge
#

Aug 25 16:30:31 mossbox systemd[1]: Starting System Suspend...
Aug 25 16:30:31 mossbox systemd-sleep[4408]: Performing sleep operation 'suspend'...
Aug 25 16:30:31 mossbox kernel: PM: suspend entry (s2idle)
Aug 25 16:31:09 mossbox kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 25 16:31:09 mossbox kernel: PM: suspend exit
Aug 25 16:31:09 mossbox systemd-sleep[4408]: System returned from sleep operation 'suspend'.

#

This is the journal log if I grep suspend

#

Wdym by kernel taint?

craggy pagoda
#

do u have a nvidia graphics card

slender hedge
#

No, I run AMD. It's a 6950 xt

craggy pagoda
#

sudo journalctl -b | grep -i suspend
sudo dmesg | grep -i acpi

#

u can write this, to enable deep sleep. cat /sys/power/mem_sleep
echo deep | sudo tee /sys/power/mem_sleep

#

for sanity check, i will also want this. cat /proc/sys/kernel/tainted

slender hedge
#

The first journalctl command returns nothing

#

cat /proc/sys/kernel/tainted returns 12801

#

What will change if I enable deep sleep?

craggy pagoda
#

lsmod | grep -E "vbox|wl|nvidia|zfs|vmware"

#

can u do this, to check propritiary drivers

#

if they re tainting

slender hedge
#

iwlmvm 798720 0
mac80211 1769472 1 iwlmvm
iwlwifi 638976 1 iwlmvm
ptp 49152 2 iwlmvm,igb
wl 6529024 0
cfg80211 1445888 4 wl,iwlmvm,iwlwifi,mac80211
rfkill 45056 8 iwlmvm,asus_wmi,bluetooth,cfg80211

craggy pagoda
#

okay. lsmod | grep -vE "snd|hid|i2c|amdgpu|drm|kvm"

#

now the drm stuff if they are loaded

slender hedge
#

I am on linux-zen if it helps anything

craggy pagoda
#

zen?

slender hedge
#

The zen kernel

craggy pagoda
#

yeah

#

thats the problem lol

#

it uses own flags and stuff.

#

so most is okay.

slender hedge
craggy pagoda
#

can u write me dkms status

craggy pagoda
#

they are stable

slender hedge
#

Switching back to the arch kernel could be the fix?

craggy pagoda
#

can u edit the /etc/default/grub linux dafault line as such: quiet splash mem_sleep_default=deep acpi_osi= amdgpu.aspm=1

#

then this sudo grub-mkconfig -o /boot/grub/grub.cfg

#

we will try manual commands if this doesnt work

#

then sudo reboot

slender hedge
#

is there somewhere I should be looking specifically to paste that in or overwrite another option with?

#

oh wait duh

craggy pagoda
#

write sudo nano /etc/default/grub

#

theres GRUB_CMDLINE_LINUX_DEFAULT line.

slender hedge
#

just add the command to the rest of the things in that option then?

craggy pagoda
#

select whats in there. " .... "

craggy pagoda
#

"quiet splash" (prolly what it is right now) "quiet splash mem_sleep_default=deep acpi_osi= amdgpu.aspm=1"

#

then control O to save

#

control X to exit

#

systemctl reboot

#

then leave a journalctl -f running, open another terminal and write systemctl suspend

slender hedge
craggy pagoda
#

else it wont be saved

#

to linux command line

slender hedge
#

I did it and now my PC won't get past the grub loader

craggy pagoda
#

hm?

#

what do u mean

#

did u not let it complete the build?

craggy pagoda
slender hedge
#

I did the command ended and then I rebooted

craggy pagoda
#

what ur facing rn

slender hedge
#

I know how to fix the sparse thing I just haven't done it yet, but this is the screen I'm frozen on

#

Uhhhhhb

#

Uhhhhhhhhh

craggy pagoda
#

brother

#

do u not have a swapfile

slender hedge
#

I do

craggy pagoda
#

okau

#

hold shift key while rebooting

#

for me

slender hedge
#

Ok

#

Nothing happened

craggy pagoda
#

press e when u see grub menu

#

do a hard reboot

slender hedge
#

Okay I've pressed e

craggy pagoda
#

okay nice

#

just second im reading a forum for being sure

slender hedge
#

I think I'm just gonna go replace the grub file with the backup copy I saved, unless this is salvageable from here?

#

I have a live USB available to me

craggy pagoda
#

can u write nomodeset to the end of the line linux

#

delete what we wrote

#

so it will be, deleting till splash, and writing nomodeset.

#

nomodeset will disable graphics card drivers and dkms.

#

so your pc will boot right up.

slender hedge
#

Okay it booted

craggy pagoda
#

good

#

can u show me where u re right now?

slender hedge
#

Homescreen

craggy pagoda
#

can u write this to rerminal to test something. its forced suspend. if this is true. we will change security. sudo sh -c 'echo deep > /sys/power/mem_sleep'
sudo sh -c 'echo devices > /sys/power/pm_test'
sudo systemctl suspend

#

if the system sleeps and boots right back up but u didnt touch nothing

#

its security related

slender hedge
#

Okay so it "suspended", my screen went dark but my PC is still active. Pushing a keyboard button woke up the PC again tho

craggy pagoda
#

the screen was on and black, yes?

slender hedge
#

Yeah

#

Yes

craggy pagoda
#

can u do sudo pacman -Syu && sudo pacman linux-firmware

#

then sudo nano /etc/default/grub

slender hedge
#

Update is happening very very slowly

craggy pagoda
#

its okay

craggy pagoda
slender hedge
#

Okay the command completed, nomodeset is not in there

craggy pagoda
#

also see journalctl -b for me

#

paste it here.

#

-b is current boot.

slender hedge
craggy pagoda
#

what?

#

when did journalctl look like that?

#

anyway.

#

thats not all of the journalctl

slender hedge
#

I'm out of time to work on this, thank you for your help though

craggy pagoda
#

awh man

#

sorry

#

not enough info

slender hedge
#

It's okay

craggy pagoda
#

and

#

zen..

#

why

#

i had the same shit happen to me

slender hedge
#

I dunno, I loaded the regular arch kennel though just now after setting things back up, but the sleep function still isn't behaving properly

craggy pagoda
#

u could do journalctl -xeu systemctl