I cant make to work wake up after suspend or hibernate actions.
Suspend goes to the black screen (after resume it shows screen successfully, but after one second goes to black).
Hibernate wake up to new session (as restart).
Iam using LTS kernel 5.4 and tried many more (4.19,5.9,5.10)
I tried these workarounds:
sudo mkinitcpio -p linux54
adding GRUB_CMDLINE_LINUX=“resume=UUID=d4473316-7e4b-4856-8ab3-b1025a4fb5f2 quiet splash” to /etc/default/grub (same UUID in /etc/fstab - type swap)
update-grub
Nothing helped me.
Anyone?
have you also added the “resume” keyword to the HOOKS in /etc/mkinitcpio.conf
?
Power management/Suspend and hibernate - ArchWiki
rebuild the initramfs for all the kernels you have:
sudo mkinitcpio -P
Options in GRUB_CMDLINE_LINUX
are always effective
Options in GRUB_CMDLINE_LINUX_DEFAULT
are effective ONLY during normal boot (NOT during recovery mode)
grub2 - What is the difference between GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub - Ask Ubuntu
therefore I’d move that “resume=UUID=d4473316-7e4b-4856-8ab3-b1025a4fb5f2” to the other line
GRUB_CMDLINE_LINUX_DEFAULT
… just in case …
I remember having also struggled with this.
I now have my swap listed in a different format:
like this:
resume=/dev/disk/by-uuid/d4473316-7e4b-4856-8ab3-b1025a4fb5f2
instead of this:
resume=UUID=d4473316-7e4b-4856-8ab3-b1025a4fb5f2
but in my case, it is not a swap partition - it is a swap file
and I also therefore have “resume_offset=xxxx” right after that
I have no idea whether that actually can make a difference - it seemed that way back then.
There is also a helper script called “hibernator”.
You’ll find it. Probably AUR (yes - just checked)
It helps setting this up.
Make a backup copy of /etc/default/grub and /etc/mkinitcpio.conf - if I recall correctly, there where duplicate entries
but that might have been me, running the script twice …
resume=/dev/disk/by-uuid/d4473316-7e4b-4856-8ab3-b1025a4fb5f2
Also tried.
There is also a helper script called “hibernator”.
It did only update-grub command and told me I have resume hook already present.
But, maybe hibernator did something more, but hiberation(suspend to disk) works now! Suspend to ram doesnt
Before tinkering with hibernation, resolve problems with suspend to RAM. After an unsuccessful attempt to wake from sleep and seeing a black screen, reboot, login, type journalctl --no-pager --no-hostname -b-1 -p3
and post everything thrown at you using “hide details” tag here.
System info is also necessary. Type inxi -Fazy
and post it too.
1 Like
As I wrote before, hibernation works now (after run hibernate script from aur) .
Suspend to ram doesnt:
-- Journal begins at Tue 2020-02-18 04:35:49 CET, ends at Sun 2021-02-14 08:05:03 CET. --
úno 14 07:48:54 kernel: proc: Bad value for 'hidepid'
úno 14 07:48:54 kernel: proc: Bad value for 'hidepid'
úno 14 07:48:54 kernel: proc: Bad value for 'hidepid'
úno 14 07:49:01 systemd[1261]: teamviewerd.service: Failed at step EXEC spawning /opt/teamviewer/tv_bin/teamviewerd: No such file or directory
úno 14 07:49:01 systemd[1]: Failed to start TeamViewer remote control daemon.
úno 14 07:49:03 sddm-helper[1404]: gkr-pam: unable to locate daemon control file
úno 14 07:49:26 kernel: proc: Bad value for 'hidepid'
úno 14 07:50:40 kernel: snd_usb_toneport 1-4:1.0: URB out #13 submission failed (-113)
úno 14 07:50:40 kernel: snd_usb_toneport 1-4:1.0: URB in #13 submission failed (-113)
úno 14 07:50:40 kernel: snd_usb_toneport 1-4:1.0: URB out #13 submission failed (-113)
úno 14 07:50:40 kernel: snd_usb_toneport 1-4:1.0: URB in #13 submission failed (-113)
úno 14 07:50:40 kernel: snd_usb_toneport 1-4:1.0: URB out #13 submission failed (-113)
úno 14 07:50:40 kernel: snd_usb_toneport 1-4:1.0: URB in #13 submission failed (-113)
úno 14 07:50:40 kernel: snd_usb_toneport 1-4:1.0: URB out #0 submission failed (-113)
úno 14 07:50:40 kernel: snd_usb_toneport 1-4:1.0: URB in #0 submission failed (-113)
úno 14 07:50:40 kernel: [drm:intel_mst_pre_enable_dp [i915]] *ERROR* failed to allocate vcpi
System:
Kernel: 5.4.95-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/vmlinuz-5.4-x86_64
root=UUID=366c4fcb-240a-4fe8-9f77-83a7487ec5d4 rw scsi_mod.use_blk_mq=1
resume=UUID=d4473316-7e4b-4856-8ab3-b1025a4fb5f2 quiet splash
resume=/dev/disk/by-uuid/d4473316-7e4b-4856-8ab3-b1025a4fb5f2
resume=/dev/disk/by-uuid/d4473316-7e4b-4856-8ab3-b1025a4fb5f2
Desktop: KDE Plasma 5.20.5 tk: Qt 5.15.2 wm: kwin_x11
dm: LightDM 1.30.0, SDDM Distro: Manjaro Linux
Machine:
Type: Laptop System: HP product: HP ProBook 650 G2 v: N/A serial: <filter>
Chassis: type: 10 serial: <filter>
Mobo: HP model: 8125 v: KBC Version 23.74 serial: <filter> UEFI: HP
v: N87 Ver. 01.51 date: 10/20/2020
Battery:
ID-1: BAT0 charge: 31.3 Wh condition: 32.8/48.0 Wh (68%) volts: 12.7/11.4
model: Hewlett-Packard Primary type: Li-ion serial: <filter> status: Unknown
cycles: 166
CPU:
Info: Quad Core model: Intel Core i7-6820HQ bits: 64 type: MT MCP
arch: Skylake-S family: 6 model-id: 5E (94) stepping: 3 microcode: E2
L2 cache: 8 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 43214
Speed: 1600 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 1600 2: 1600
3: 1601 4: 1600 5: 1601 6: 1601 7: 1600 8: 1600
Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable
Graphics:
Device-1: Intel HD Graphics 530 vendor: Hewlett-Packard driver: i915
v: kernel bus ID: 00:02.0 chip ID: 8086:191b class ID: 0300
Device-2: Chicony HP HD Camera type: USB driver: uvcvideo bus ID: 1-7:5
chip ID: 04f2:b51c class ID: 0e02
Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver:
loaded: intel unloaded: modesetting alternate: fbdev,vesa display ID: :0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: DP1-2 res: 1920x1080 hz: 60 dpi: 92 size: 530x300mm (20.9x11.8")
diag: 609mm (24")
OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 20.3.4
direct render: Yes
Audio:
Device-1: Intel 100 Series/C230 Series Family HD Audio
vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:1f.3
chip ID: 8086:a170 class ID: 0403
Sound Server: ALSA v: k5.4.95-1-MANJARO
Network:
Device-1: Intel Ethernet I219-LM vendor: Hewlett-Packard driver: e1000e
v: 3.2.6-k port: efa0 bus ID: 00:1f.6 chip ID: 8086:15b7 class ID: 0200
IF: enp0s31f6 state: down mac: <filter>
Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel port: efa0
bus ID: 01:00.0 chip ID: 8086:24f3 class ID: 0280
IF: wlp1s0 state: up mac: <filter>
Bluetooth:
Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
bus ID: 1-12:8 chip ID: 8087:0a2b class ID: e001
Message: Required tool hciconfig not installed. Check --recommends
Drives:
Local Storage: total: 476.94 GiB used: 253.37 GiB (53.1%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/sda maj-min: 8:0 vendor: LITE-ON model: CV1-8B512-HP
size: 476.94 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
rotation: SSD serial: <filter> rev: V182 scheme: GPT
Partition:
ID-1: / raw size: 84.65 GiB size: 82.82 GiB (97.84%) used: 61.37 GiB (74.1%)
fs: ext4 dev: /dev/sda4 maj-min: 8:4
ID-2: /boot raw size: 1 GiB size: 1023 MiB (99.80%) used: 155.3 MiB (15.2%)
fs: vfat dev: /dev/sda1 maj-min: 8:1
Swap:
Kernel: swappiness: 60 (default) cache pressure: 100 (default)
ID-1: swap-1 type: partition size: 10.29 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sda6 maj-min: 8:6
Sensors:
System Temperatures: cpu: 41.5 C mobo: 0.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 273 Uptime: 15m wakeups: 1 Memory: 15.06 GiB
used: 2.54 GiB (16.9%) Init: systemd v: 247 Compilers: gcc: 10.2.0
Packages: 1675 pacman: 1646 lib: 434 flatpak: 16 snap: 13 Shell: Bash
v: 5.1.0 running in: konsole inxi: 3.3.01
It certainly did!
As I said and tried to warn:
If the parameters are in place already in /etc/default/grub
(as they where in yours)
you will have duplicate entries in the line:
GRUB_CMDLINE_LINUX_DEFAULT=
after you have run the script.
One of them your original one
the other added by the script.
Check that file, repair it, run update-grub
again.
These 2 lines indicate a possible culprit. Try googling them.
First is a usb sound device, second is smth wrong with Intel graphics.
Also you could try installing linux510 and booting with it, it may behave correctly.