sleep does not work

The sleep power management was working until recent updates. My desktop would go into sleep and wake up ok.Now it goes into sleep if set under power management but will not wake up requiring pressing the power button to shut down and restart.
If I try sleep from the log in screen it just comes back to the login screen. I’m using kde desktop.

@1chip:

On this machine,


Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.14.21-150400.24.11-default (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 3400G with Radeon Vega Graphics
Memory: 13.5 GiB of RAM
Graphics Processor: AMD Radeon™ Vega 11 Graphics

suspending to RAM (ACPI S3 sleep state) either via the KDE Plasma program starter (Application Launcher) or, a 1 minute Timer in the System Settings functions exactly as expected –

  • The power button on the case begins blinking;
  • The screen receives no signal and drops into Standby Mode;
  • Hitting the Shift Key brings the machine out of the ACPI S3 sleep state – pressing the case’s power button also brings the machine out of the sleep state.

Do you have the KDE Power Management module package – “powerdevil5” – installed and, all the required dependent packages?

yes I checked powerdevil5 is installed.

@1chip:

Then, you’ll have to inspect the systemd Journal to see what’s going on – with the user “root”: “journalctl --list-boots” – select a boot where the issue occurred and then:“journalctl -b «(negative) number from the left hand column»”.
You didn’t mention if, all the package dependencies are satisfied – you’ll have to also, execute “zypper verify” and then, to check that all the files in each installed package are present and correct: “rpm --verify --all”.

  Retrieving repository 'OBS:Server:Unstable' metadata ...................................................................................................................................................................................................................[done] 
Building repository 'OBS:Server:Unstable' cache ........................................................................................................................................................................................................................[done] 
Loading repository data... 
Reading installed packages... 
Dependencies of all installed packages are satisfied. 
**localhost:~ #** rpm --verify --all 
.M....G..  g /etc/brlapi.key 
........P    /usr/lib64/libexec/ksysguard/ksgrd_network_helper 
.M.......  g /usr/share/fonts/100dpi/encodings.dir 
.M.......  g /usr/share/fonts/100dpi/fonts.scale 
.M.......  g /usr/share/fonts/75dpi/encodings.dir 
.M.......  g /usr/share/fonts/75dpi/fonts.scale 
.M....G..  g /etc/brlapi.key 
.M.......  g /var/log/boot.log 
....L....  c /etc/pam.d/common-account 
....L....  c /etc/pam.d/common-auth 
....L....  c /etc/pam.d/common-password 
....L....  c /etc/pam.d/common-session 
.M.......    /var/lib/AccountsService/icons 
.M.......  g /var/lib/flatpak 
.M.......  g /run/avahi-daemon 
.M.......  g /var/lib/ca-certificates/ca-bundle.pem 
.M.......  g /var/lib/ca-certificates/java-cacerts 
S.5....T.  c /etc/zypp/repos.d/repo-backports-debug-update.repo 
S.5....T.  c /etc/zypp/repos.d/repo-sle-debug-update.repo 
S.5....T.  c /etc/speech-dispatcher/speechd.conf 
S.5....T.  c /etc/unixODBC/odbcinst.ini 
.M....G..  g /var/log/lastlog 
....L....    /etc/cifs-utils/idmap-plugin 
.M.......  g /var/cache/gdm 
......G..    /etc/cups/ssl 
.M.......  c /var/log/NetworkManager 
....L....  d /usr/share/man/man1/ftp.1.gz 
/usr/bin/clockdiff: cannot verify root:root 0755 - not listed in /etc/permissions 
.M.......  g /etc/aliases.lmdb 
S.5....T.  c /etc/postfix/main.cf 
S.5....T.  c /etc/postfix/master.cf 
.....UG..  g /run/sddm 
S.5....T.  c /etc/sane.d/dll.conf 
.M.......  g /usr/share/fonts/Type1/encodings.dir 
.M.......  g /usr/share/fonts/cyrillic/encodings.dir 
.M.......  g /usr/share/fonts/cyrillic/fonts.scale 
.M.......  g /usr/share/fonts/truetype/encodings.dir 
.M.......  g /etc/xml/catalog-d.xml 
S.5....T.  c /etc/chrony.conf 
.M.......  g /var/lib/chrony/drift 
.M.......  g /var/cache/PackageKit 
.M.......  g /run/mcelog 
....L....    /etc/ImageMagick-7 
.M.......  g /var/lib/pulseaudio 
SM5....T.  c /etc/fonts/conf.d/30-metric-aliases.conf 
.......T.  c /etc/login.defs 
/etc/cron.d/: cannot verify root:root 0755 - not listed in /etc/permissions 
/etc/cron.daily/: cannot verify root:root 0755 - not listed in /etc/permissions 
/etc/cron.hourly/: cannot verify root:root 0755 - not listed in /etc/permissions 
/etc/cron.monthly/: cannot verify root:root 0755 - not listed in /etc/permissions 
/etc/cron.weekly/: cannot verify root:root 0755 - not listed in /etc/permissions 
.M.......  g /run/netconfig 
.M.......  g /run/netconfig/resolv.conf 
.M.......  g /run/netconfig/yp.conf 
missing     /usr/lib64/libreoffice/program/intro-highres.png 
missing     /usr/lib64/libreoffice/program/shell/logo.svg 
missing     /usr/lib64/libreoffice/program/shell/logo_inverted.svg 
S.5....T.  c /etc/fonts/conf.d/10-rendering-options.conf 
S.5....T.  c /etc/fonts/conf.d/58-family-prefer-local.conf 
S.5....T.  c /etc/default/grub 
.M.......  g /var/lib/power-profiles-daemon 
.M.......  g /var/log/alternatives.log 
.M.......  g /run/cryptsetup 
.M.......  g /usr/share/fonts/misc/encodings.dir 
.M.......  g /usr/share/fonts/misc/fonts.scale 
**localhost:~ #** 

 

Oh dear – you’re using and Unstable Repository – and, unstable is unstable – as the name indicates …
[HR][/HR]Further down your paste →

  • You can safely ignore the “missing” files – the LibreOffice package installs them and then, something else removes them …

[INDENT=2]This is a behaviour which we’re all living with – until we can discover why it happens …
[/INDENT]

@1chip:

I believe that I’ve discovered what’s going on with the suspend to RAM (ACPI S3 sleep state) –

  • On the other machine, I use X11 in place of Wayland due to plasmashell crashes when logging in.
  • On this machine, I was using Wayland:

Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.14.21-150400.24.11-default (64-bit)
Graphics Platform: X11
Processors: 4 × AMD A10-5750M APU with Radeon(tm) HD Graphics
Memory: 7.0 GiB of RAM
Graphics Processor: AMD ARUBA

When I suspended the machine and then hit the “Shift” key to wake it up, the “Lock” screen was tearing – completely unusable – had to <Ctrl-Alt-Backspace-Backspace> (hit Backspace twice) to restart the Display Manager.

  • I logged in again with X11 and, suspend behaved exactly as it should do …

I suspect that, Wayland and suspend are not suited to one another yet – there may well be a repair available with a newer KDE Plasma Version.
[HR][/HR]How are you waking up from Suspend?

  • Mouse movements don’t work – you have to hit either the <Shift> key or, the <Shift-Lock> key or, the <Left-Ctrl> key.
    I haven’t tried the <Right-Ctrl> key yet …

well that didn’t work well. I marked everything under unstable repository to delete and now I’m missing a bunch of things including yast

When moving away from a Repository, you have to MOVE the packages rather than DELETE them …

  • If, you were to use the graphical YaST interface and, you simply disabled the unstable repositories then, in the YaST Software Manager, in the “Installation Summary
    ” tab, you will possibly find everything you deleted as being “ready for re-installation”. - If not, you’ll have to move over to the “View
    ” tab and, choose the “Patterns” option and, for each Pattern you wish to have installed, select the “**patterns- . . . **” packages.

[INDENT=2]For a working KDE Plasma system, you need the following list of Patterns packages:
[/INDENT]


S  | Name                             | Summary                                            | Type
---+----------------------------------+----------------------------------------------------+--------
i+ | patterns-base-apparmor           | AppArmor                                           | package
i+ | patterns-base-base               | Minimal Base System                                | package
i  | patterns-base-basesystem         | Base System (alias pattern for base)               | package
i  | patterns-base-documentation      | Help and Support Documentation                     | package
i+ | patterns-base-enhanced_base      | Enhanced Base System                               | package
i  | patterns-base-minimal_base       | Minimal Appliance Base                             | package
i+ | patterns-base-sw_management      | Software Management                                | package
i+ | patterns-base-x11                | X Window System                                    | package
i+ | patterns-base-x11_enhanced       | X Window System                                    | package
i+ | patterns-desktop-imaging         | Graphics                                           | package
i+ | patterns-desktop-multimedia      | Multimedia                                         | package
i+ | patterns-devel-C-C++-devel_C_C++ | C/C++ Development                                  | package
i+ | patterns-devel-base-devel_basis  | Base Development                                   | package
i  | patterns-fonts-fonts             | Fonts                                              | package
i  | patterns-fonts-fonts_opt         | Fonts                                              | package
i+ | patterns-kde-kde                 | KDE Applications and Plasma 5 Desktop              | package
i+ | patterns-kde-kde_imaging         | KDE Graphics                                       | package
i+ | patterns-kde-kde_internet        | KDE Internet                                       | package
i+ | patterns-kde-kde_multimedia      | KDE Multimedia                                     | package
i+ | patterns-kde-kde_office          | KDE Office                                         | package
i  | patterns-kde-kde_pim             | KDE PIM Suite                                      | package
i+ | patterns-kde-kde_plasma          | KDE Plasma 5 Desktop Base                          | package
i+ | patterns-kde-kde_utilities       | KDE Utilities                                      | package
i+ | patterns-kde-kde_utilities_opt   | KDE Utilities                                      | package
i  | patterns-kde-kde_yast            | YaST KDE User Interfaces                           | package
i+ | patterns-network-network_admin   | Network Administration                             | package
i+ | patterns-office-office           | Office Software                                    | package
i+ | patterns-server-file_server      | File Server                                        | package
i+ | patterns-server-lamp_server      | Web and LAMP Server                                | package
i+ | patterns-yast-x11_yast           | YaST User Interfaces                               | package
i  | patterns-yast-yast2_basis        | YaST Base Utilities                                | package
i  | patterns-yast-yast2_desktop      | YaST Desktop Utilities                             | package

With the possible exception of the Development patterns …

Yast is gone, I can’t access any of that. I would think I would not be allowed to do this but it happened.

Then use, from a Terminal Window (the KDE Plasma application “Konsole”) and, the user “root” «either “su --login” at a normal user’s CLI prompt or, use the “Root” Konsole session profile», execute the following command:

 # *zypper install --force patterns-yast-yast2_basis patterns-yast-x11_yast patterns-yast-yast2_desktop*

You will be amazed at the number of packages which will be installed – simply answer “yes” at the Zypper prompt.

ok everything is back, had to put kde pattern back in. Now my login screen looks different.
I disabled the OBS experimental repository. Can I delete it? Not sure where it came from.

sleep does not work with x11 or wayland

If you’re planning to do some work doing experimental builds and repairs with newer package versions then, simply disable it and disable the automatic refresh – until such time as you begin working the issues around newer package versions.

  • If you’re not interested in working on software maintenance then, delete the thing.

Then, there’s some system files on your system which have been sourced from the experimental repositories.

  1. Assuming that, you’ve only enabled the openSUSE Leap 15.4 Repositories plus a couple of other non-openSUSE repositories such as, the Packman (Essentials) repository and the VideoLAN repository, then execute “zypper refresh --force
    ”. 1. Then, execute “zypper verify
    ”. 1. Forcibly re-install all the indicated packages.
  2. Then, in YaST Software Management, select the “Repositories
    View and then, on the “@System” selection, click the “Installed (Available)” column (probably) twice to sort on the newest changes.

[INDENT=2]Work through the changes until all packages which were sourced from the experimental repositories have been replaced by packages from the openSUSE repositories.[/INDENT]
Once you’ve done that, you’ll possibly have to select the “Package Groups” view and, the selection “Orphaned Packages” – remove all the orphaned packages – unlike children, packages without a parent repository can have unwanted effects on the system.

Ok I deleted it. Sleep and power work fine with windows 11. However not with leap 15.4 anymore.

With a little bit of housekeeping, the suspend/sleep may well begin to function as expected again … >:)

Did all that and still does not sleep at all.

Then, an inspection of the systemd Journal for the boot where the Suspend/Sleep issue happened is needed.

  • Near the last entries of the Journal for the boot where it happened, there should be some entries indicating why the Suspend/Sleep didn’t.

We also need an indication of the machine you’re using –

  • Open the KDE Plasma Info Center – on the first window, bottom left, there’s a button → “Copy to Clipboard
    ”.For non-English KDE sessions, the button is usually located bottom centre.
ul 30 07:59:57 localhost kernel: **Linux version 5.14.21-150400.24.11-default (geeko@buildhost**> 
Jul 30 07:59:57 localhost kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.14.21-150400.24.11> 
Jul 30 07:59:57 localhost kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating poin> 
Jul 30 07:59:57 localhost kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' 
Jul 30 07:59:57 localhost kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' 
Jul 30 07:59:57 localhost kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256 
Jul 30 07:59:57 localhost kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 b> 
Jul 30 07:59:57 localhost kernel: signal: max sigframe size: 1776 
Jul 30 07:59:57 localhost kernel: BIOS-provided physical RAM map: 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usab> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] rese> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000009cfffff] usab> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x0000000009d00000-0x0000000009ffffff] rese> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usab> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x000000000a200000-0x000000000a20afff] ACPI> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x000000000a20b000-0x000000000affffff] usab> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x000000000b000000-0x000000000b01ffff] rese> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x000000000b020000-0x00000000d9e81fff] usab> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000d9e82000-0x00000000db363fff] rese> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000db364000-0x00000000db3e0fff] ACPI> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000db3e1000-0x00000000db4f5fff] ACPI> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000db4f6000-0x00000000dc36dfff] rese> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000dc36e000-0x00000000deffffff] usab> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000df000000-0x00000000dfffffff] rese> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] rese> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x00000000fd000000-0x00000000ffffffff] rese> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x0000000100000000-0x000000039effffff] usab> 
Jul 30 07:59:57 localhost kernel: BIOS-e820: [mem 0x000000039f000000-0x000000041effffff] rese> 
Jul 30 07:59:57 localhost kernel: NX (Execute Disable) protection: active 
Jul 30 07:59:57 localhost kernel: e820: update [mem 0xd3a7a018-0xd3a87457] usable ==> usable 
Jul 30 07:59:57 localhost kernel: e820: update [mem 0xd3a7a018-0xd3a87457] usable ==> usable 
lines 1-31
 


Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.14.21-150400.24.11-default (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 PRO 3400G with Radeon Vega Graphics
Memory: 13.6 GiB of RAM
Graphics Processor: AMD Radeon™ Vega 11 Graphics