Turning off after closing lid or (dis)connecting charger

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Turning off after closing lid or (dis)connecting charger

Postby pmr » Apr 24th, '24, 09:41

After installing Mageia on a new notebook I can observe problem with making it sleep.

The machine can go to the sleeping state after selecting "Sleep" from Menu, everything seems to work properly (LEDs flash slowly, pressing any key wakes it) but closing the lid or (dis)connecting the charger results in turning the computer completely off - it has to be then turned on via the hardware switch and go through a full starting procedure. Especially a reaction for the charger (dis)connecting is weird.

I made some experiments with energy management settings (changing the actions for the lid closing, moving to sleep through selection of a menu point or through closing the lid), but with no satisfying results.

Some small research resulted in the information that I am not alone - several users of Ryzen notebooks reported similar behavior. I am not sure whether the bug is related more to the kernel (I think so) or distribution. I observed the same behavior for AFAIR 6.6.18, 6.6.22 and 6.6.28 kernels.

Code: Select all
System:
  Host: think Kernel: 6.6.28-desktop-1.mga9 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.10 Distro: Mageia 9
Machine:
  Type: Laptop System: LENOVO product: 21LF v: ThinkBook 14 G6+ AHP
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76479 WIN
    serial: <superuser required> UEFI: LENOVO v: NLCN23WW date: 01/04/2024
Battery:
  ID-1: BAT1 charge: 66.5 Wh (76.5%) condition: 86.9/85.0 Wh (102.2%)
CPU:
  Info: 8-core AMD Ryzen 7 8845H w/ Radeon 780M Graphics [MT MCP] speed (MHz):
    avg: 1745 min/max: 1600/6680
[...]


Do you suggest any workaround or just some patience for kernel developers?
pmr
 
Posts: 16
Joined: Sep 29th, '21, 11:41
Location: Poland

Re: Turning off after closing lid or (dis)connecting charger

Postby morgano » Apr 25th, '24, 17:17

Have you checked if this also happens in another desktop, like Xfce?
I wonder it it may also depend on the DM.
Maybe also try our linus kernel, which is less patched by us.
(not my cup of tea, but in absence of other ideas...)
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1475
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Turning off after closing lid or (dis)connecting charger

Postby Garthhh » Apr 26th, '24, 05:23

I have a few thinkpads, I always set them to do nothing when I close the lid on both cord & battery on Plasma system settings
They all have a switch that shuts off the screen when I close the lid
I set to hibernate if the battery gets to 5%
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Turning off after closing lid or (dis)connecting charger

Postby pmr » Apr 27th, '24, 13:17

THX for suggestions.

I checked with Plasma and Xfce - the same.
I installed and checked also the linus flavor (uname -a returns 6.6.28-1.mga9 - is this a linus indeed?) - the same :-/

The "set to do nothing when close the lid" and just closing the lid works - thank you - but it cannot be considered as anything more than a very temporary dirty workaround, at least assuming my usage profile: I suspend the computer quite frequently, sometimes for short, sometimes for much longer; either a strict procedure would have to to be followed (either select "Sleep" or close the lid - no both of them) and just closing the lid would result in a quick battery drain due to a system that just works.

I filed also a kernel bug (https://bugzilla.kernel.org/show_bug.cgi?id=218771), but with no reaction yet.
pmr
 
Posts: 16
Joined: Sep 29th, '21, 11:41
Location: Poland

Re: Turning off after closing lid or (dis)connecting charger

Postby morgano » Apr 27th, '24, 13:54

pmr wrote:small research resulted in the information that I am not alone - several users of Ryzen notebooks reported similar behavior.


You could in the bug report mention that and link to those places.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1475
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Turning off after closing lid or (dis)connecting charger

Postby pmr » May 22nd, '24, 09:09

It seem that the ideapad_laptop module is responsible for this:

https://bbs.archlinux.org/viewtopic.php ... 2#p2172632
pmr
 
Posts: 16
Joined: Sep 29th, '21, 11:41
Location: Poland

Re: Turning off after closing lid or (dis)connecting charger

Postby morgano » May 22nd, '24, 12:46

Have you tried blacklisting it?
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1475
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron