You are not logged in.
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 1I will get
bash: echo: command not found
bash: cut command not found
bash: grep: command not foundor 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
Check/post a journal. Sounds like you drive is potentially mounted read-only or so or worse.
Run
sudo journalctl -bafter 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-1Offline
Check/post a journal. Sounds like you drive is potentially mounted read-only or so or worse.
Run
sudo journalctl -bafter 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
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
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
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
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 found2. Some commands work
ex
bash $ cd /home
-bash: grep: command not found
-bash: cut: command not foundMy 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
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