Hi all!
Was testing the live CD and noticed that my laptop does not suspend when the lid is closed, It just moves the primary screen to my external monitor, connected via HDMI.
I enabled the suspend option in GNOME Tweaks, is there anything else I can try before I go and install the OS?
System information:
Lenovo IdeaPad 320-15ast, 8GB RAM, 64 bits AMD CPU
Thanks!
Hello,
The read and write cycles are to slow on flash drives, hence a Live System aka an install media is never prepared to make use of sleep/suspend and/or hibernate.
In many cases on installed system you have to make use of this
https://wiki.archlinux.org/index.php/Power_management
Many laptops might also require this
Difficulty: ★★☆☆☆
The introduction of Optimus laptops have created new challenges for Linux users. One of the biggest issues is having the proprietary graphics card work when the system boots. Many times the advice given is to add an Advanced Configuration and Power Interface (acpi ) kernel parameter to grub. While a specific acpi kernel parameter may be given, it is sometimes not appropriate to the hardware it is being applied to. This can cause system instability and some functions of the lap…
afonsosantos:
Lenovo IdeaPad 320
If this are the same models, then i recomend reading this
https://vincent-ventures.com/2018/12/arch-linux-on-lenovo-ideapad-miix-320/
see the Sleep mode part …
Thanks @anon89812132 , I will try to install the OS and play with those settings.
HI again,
Just installed Manjaro with GNOME and the laptop won’t suspend, even with the GNOME Tweaks option and logind file settings set to ‘suspend’.
You might have to go trough those links i mentioned and see where the issue is, or provide some more information about your setup, as described here How to provide good information
That way, someone will guide you in the right direction.
I followed those links and can’t seem to fix the issue.
Here’s my system information:
Kernel: 5.9.11-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64
root=UUID=00e74dcd-e761-486b-9930-bc5243bbf8f1 rw quiet splash apparmor=1
security=apparmor resume=UUID=cb4d1f4d-497e-4229-92cf-79b5985db108
udev.log_priority=3
Desktop: GNOME 3.38.1 tk: GTK 3.24.23 wm: gnome-shell dm: GDM 3.38.2
Distro: Manjaro Linux
Machine:
Type: Laptop System: LENOVO product: 80XV v: Lenovo ideapad 320-15AST
serial: <filter> Chassis: type: 10 v: Lenovo ideapad 320-15AST
serial: <filter>
Mobo: LENOVO model: LNVNB161216 v: SDK0J40700WIN serial: <filter>
UEFI: LENOVO v: 5PCN24WW date: 10/29/2018
Battery:
ID-1: BAT0 charge: 8.8 Wh condition: 20.6/30.0 Wh (69%) volts: 8.1/7.5
model: SMP L16M2PB1 type: Li-poly serial: <filter> status: Charging
CPU:
Info: Dual Core model: AMD A4-9120 RADEON R3 4 COMPUTE CORES 2C+2G bits: 64
type: MCP arch: Excavator family: 15 (21) model-id: 70 (112) stepping: N/A
microcode: 6006705 L2 cache: 1024 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 8787
Speed: 1297 MHz max: 1300 MHz boost: enabled Core speeds (MHz): 1: 1297
2: 1296
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
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 AMD retpoline, IBPB: conditional, STIBP:
disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Stoney [Radeon R2/R3/R4/R5 Graphics] vendor: Lenovo
driver: amdgpu v: kernel bus ID: 00:01.0 chip ID: 1002:98e4
Device-2: Chicony EasyCamera type: USB driver: uvcvideo bus ID: 2-1.3:4
chip ID: 04f2:b5d7 serial: <filter>
Display: wayland server: X.Org 1.20.10 compositor: gnome-shell
driver: amdgpu note: display driver n/a - try sudo/root display ID: :0
screens: 1
Screen-1: 0 s-res: 2806x900 s-dpi: 96 s-size: 742x238mm (29.2x9.4")
s-diag: 779mm (30.7")
Monitor-1: XWAYLAND2 res: 1366x768 hz: 60 dpi: 102
size: 340x190mm (13.4x7.5") diag: 389mm (15.3")
Monitor-2: XWAYLAND4 res: 1440x900 hz: 60 dpi: 89
size: 410x260mm (16.1x10.2") diag: 485mm (19.1")
OpenGL: renderer: AMD STONEY (DRM 3.39.0 5.9.11-3-MANJARO LLVM 11.0.0)
v: 4.5 Mesa 20.2.3 direct render: Yes
Audio:
Device-1: AMD vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:01.1
chip ID: 1002:15b3
Device-2: AMD Family 15h Audio vendor: Lenovo driver: snd_hda_intel
v: kernel bus ID: 00:09.2 chip ID: 1022:157a
Device-3: C-Media USB PnP Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-1.1:3 chip ID: 0d8c:0134
Sound Server: ALSA v: k5.9.11-3-MANJARO
Network:
Device-1: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter
vendor: Lenovo driver: rtl8821ae v: kernel port: 2000 bus ID: 02:00.0
chip ID: 10ec:8821
IF: wlp2s0 state: up mac: <filter>
Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Lenovo
driver: r8169 v: kernel port: 1000 bus ID: 03:00.0 chip ID: 10ec:8136
IF: enp3s0 state: down mac: <filter>
Drives:
Local Storage: total: 223.57 GiB used: 7.02 GiB (3.1%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/sda vendor: Kingston model: SA400S37240G size: 223.57 GiB
block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter>
rev: 0102 scheme: GPT
Partition:
ID-1: / raw size: 214.47 GiB size: 210.11 GiB (97.96%) used: 7.02 GiB (3.3%)
fs: ext4 dev: /dev/sda2
Swap:
Kernel: swappiness: 60 (default) cache pressure: 100 (default)
ID-1: swap-1 type: partition size: 8.80 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sda3
Sensors:
System Temperatures: cpu: 44.9 C mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: amdgpu temp: 41.0 C device: amdgpu temp: 44.0 C
Info:
Processes: 208 Uptime: 34m Memory: 6.68 GiB used: 1.80 GiB (27.0%)
Init: systemd v: 246 Compilers: gcc: N/A Packages: pacman: 1171 lib: 321
flatpak: 0 Shell: Zsh v: 5.8 running in: gnome-terminal inxi: 3.1.08
What is this command returning from terminal
cat /sys/power/mem_sleep
That command returned cat /sys/power/mem_sleep
Please don’t rush to post. Take another look. You should have something like
s2idle [deep]
or
[s2idle] deep
Sorry, copied the wrong bit.
It returned s2idle [deep]
From this part
https://wiki.archlinux.org/index.php/Power_management#Suspend_and_hibernate
run the commands from terminal and report the error you get.
Examples:
systemctl suspend
systemctl hybrid-sleep
systemctl hibernate
Test each separate, collect the errors you get, reboot, test the next. See what helps for your case and adapt the conf file.
Sorry, but how do I collect the errors, if any?
Balzac
28 December 2020 23:58
13
Have you enabled swap when you installed? (and make sure it is the size of your ram, otherwise if its a smaller partition it can’t save all the ram to disk).
Afaik suspend/hibernate doesn’t work without swap. And if you haven’t, enable systemd-swap, it can dynamically assign the swap size as needed, which is more disk size efficient than a fixed size partition (howtos are all over the place).
Hi, I had a 8GB swp partition, but no joy - also my problem was with suspension.
I don’t Manjaro installed anymore, due to many bugs with my GPU also.
Any guess about the following machine - will it suspend fine or not with Manjaro Linux? In Linux Mint 20.2 Cinnamon with all updates (including nVidia 460.91.03 proprietary driver via Driver manager), it doesn’t. Although booting from Linux Mint 20.2 Cinnamon ISO, suspending works. Therefore just testing with live ISO, it might not show the final truth.