You are not logged in.

#1 2022-10-28 10:41:02

jimangel2001
Member
Registered: 2022-10-28
Posts: 14

Laptop doesn't wake up properly from sleep.

My laptop does not wake from sleep properly and I always have to force power off.

It's a Xiaomi RedmiBook, equipped with an AMD Ryzen 5 4500U.

After sleeping sometimes the SDDM doesn't work, or the login screen doesn't work. If I can login the background turns black and I cannot execute bash commands.
For example if I try to run

echo 1

I will get

bash: echo: command not found
bash: cut command not found
bash: grep: command not found

or something weird like that.

I cannot launch programs, and the running ones don't behave.

Do you have any idea what it could be?

Last edited by jimangel2001 (2022-10-28 10:41:47)

Offline

#2 2022-10-28 10:57:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: Laptop doesn't wake up properly from sleep.

Check/post a journal. Sounds like you drive is potentially mounted read-only or so or worse.

Run

sudo journalctl -b

after waking from sleep, post the output: https://wiki.archlinux.org/title/List_o … n_services

If you can't, reboot (normally/proper shutdown if possible) and post from the reboot

sudo journalctl -b-1

Offline

#3 2022-10-29 00:50:27

jimangel2001
Member
Registered: 2022-10-28
Posts: 14

Re: Laptop doesn't wake up properly from sleep.

V1del wrote:

Check/post a journal. Sounds like you drive is potentially mounted read-only or so or worse.

Run

sudo journalctl -b

after waking from sleep, post the output: https://wiki.archlinux.org/title/List_o … n_services

If you can't, reboot (normally/proper shutdown if possible) and post from the reboot

sudo journalctl -b-1

Couldn't normally shutdown:
http://ix.io/4emc

Offline

#4 2022-10-29 01:39:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Laptop doesn't wake up properly from sleep.

You probably need to get the journal after a normal shut down because that's not showing anything after you suspend. Can you switch to a TTY if sddm isn't working?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2022-10-31 10:38:27

jimangel2001
Member
Registered: 2022-10-28
Posts: 14

Re: Laptop doesn't wake up properly from sleep.

cfr wrote:

You probably need to get the journal after a normal shut down because that's not showing anything after you suspend. Can you switch to a TTY if sddm isn't working?

If I have already opened a tty I can get into it but, no command can be executed.

Offline

#6 2022-10-31 23:34:57

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Laptop doesn't wake up properly from sleep.

jimangel2001 wrote:

If I have already opened a tty I can get into it but, no command can be executed.

Do you mean you can switch to it and login, but then no command works or do you mean you can switch to it but not login?
Does it make a difference if you login as root?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2022-11-01 09:38:02

jimangel2001
Member
Registered: 2022-10-28
Posts: 14

Re: Laptop doesn't wake up properly from sleep.

cfr wrote:
jimangel2001 wrote:

If I have already opened a tty I can get into it but, no command can be executed.

Do you mean you can switch to it and login, but then no command works or do you mean you can switch to it but not login?
Does it make a difference if you login as root?

I have already made a login to tty. When I want to login to tty after sleep what happens is:
1. Login prompt pops up and I enter the user
2. It hangs without prompting for password
3. Black screen after few seconds

- If I have already connected to a non root tty shell:
1. Most commands don't work
ex.

bash $ ls
-bash : ls: command not found
-bash: grep: command not found
-bash: cut: command not found

2. Some commands work
ex

bash $ cd /home
-bash: grep: command not found
-bash: cut: command not found

My cwd actually changes in the shell to /home.

- In a root shell I don't get the same error messages, but the same commands work on both shells.

# ls
-bash: ls: command not found


# bash
-bash: Input/output error


# sh
-bash: sh: command not found

- I once got an error screen on SDDM:
The screen locker is broken and unlocking is not possible naymore.
In order to  unlock switch to a virtual terminal (e.g. ctrl+alt+f2)
log in an execute the command:
loginctl unlock-session 2
yada yada

That obviously does not work as I cannot run loginctl

Offline

#8 2022-11-01 12:58:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Laptop doesn't wake up properly from sleep.

Can you ssh into the system to get a journal? (I'm guessing not, but might be worth trying.)

What happens if you change your default shell to sh or zsh (if you install it)?

Is your system up to date? Which version of readline do you have?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB