Stretch stopped suspending on laptop lid

If none of the more specific forums is the right place to ask

Stretch stopped suspending on laptop lid

Postby shakman » 2017-12-08 19:01

This is a live version off of a YUMI USB drive..

Sometimes this happens. Suspend upon "laptop close lid" just stops working. I then have to push the power button to suspend instead..

I would be curious to know why.

events are being registered:
Code: Select all
root@debian:~# acpi_listen
button/lid LID close
button/lid LID open
^C

as well as /proc/acpi/button/lid/LID0/state changing from opened-closed..

Thanks

ps. If I could "repair" this without logging off my current session that would be great.
PPS: When I suspend with the power button, then close the lid, THEN RE-OPEN the lid, it powers up perfectly (or if I don't close the lid but hit a key, or the mouse button...)

SO, the ONLY part that isn't working is the suspend upon lid CLOSE.
shakman
 
Posts: 26
Joined: 2014-01-17 04:54

Re: Stretch stopped suspending on laptop lid

Postby shakman » 2017-12-14 18:31

Bump... is there anybody out there that can help me solve this issue?

This happens intermittently (meaning upon different "boots")--

SO sometimes the "lid close" suspend works fine.. other times it simply ignores the lid closing and I can't fathom where to look.

thx
shakman
 
Posts: 26
Joined: 2014-01-17 04:54

Re: Stretch stopped suspending on laptop lid

Postby bw123 » 2017-12-14 18:53

I can't fathom where to look.


I don't know what a live version off of a YUMI is, but on my system there are settings for suspend and lid action all over the place.
Have you tried these?

/etc/systemd/logind.conf
/etc/Upower/UPower.conf

What desktop are you running? I think that would make a difference. Along with what laptop it is? Are you new at this forum thing?
User avatar
bw123
 
Posts: 2590
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Stretch stopped suspending on laptop lid

Postby shakman » 2017-12-14 19:12

YUMI can be found here: https://www.pendrivelinux.com/

Allows one to run several live OSs off of a flash drive.

Since the environment running is a live version of Stretch 9.20 iso logind.conf and UPower.conf are at their default untouched. Making any changes to variables within have zero effect.

Since on some boots suspending works as expected, and on others it simply ignores the lid state, DESPITE the lid state always being correctly reflected as I clearly indicated in the OP, it seems like a bug somewhere, but where?

This is an 2011 HP G72 laptop core i5 4GB.
shakman
 
Posts: 26
Joined: 2014-01-17 04:54

Re: Stretch stopped suspending on laptop lid

Postby bw123 » 2017-12-14 19:23

it seems like a bug somewhere, but where?


That is a good question, my take on who will ultimately own the bug is, probably nobody. It seems to be fashionable now to just ignore what your program actually does, and focus on what it 'should do' even if you get a bug report that could be fixed very easily by a small change in your app. If you write code that should work, and some other app you depend on fails, well that's somebody elses problem. No need to try and implement a hasty fix for the users. Why should I verify that my code works as intended, if the data I rely on to be provided by another doodad isn't correct?

I've seen it in dozens of cases, 'not our bug' becomes a way of life.

Suspend is a worse mess than it was when it was a mess in the first place.

Well, it's live but you can still drop a script and an event into acpi right? it's getting the message so why can't you just handle it there with systemctl suspend?
User avatar
bw123
 
Posts: 2590
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Stretch stopped suspending on laptop lid

Postby shakman » 2017-12-15 04:05

bw123 wrote:...Well, it's live but you can still drop a script and an event into acpi right? it's getting the message so why can't you just handle it there with systemctl suspend?

Look like it yeah. Was hoping for a clue and a potential legit bug submission to come of it to help improve but perhaps not. Ironically on this "boot" from the flash drive, it's working properly.

There are larger issues to take on anyway.
shakman
 
Posts: 26
Joined: 2014-01-17 04:54

Re: Stretch stopped suspending on laptop lid

Postby debiman » 2017-12-15 06:12

unless you get persistence on your live usb, there's no solution.
or just try out different live .isos until you hit one that "Just Works"...
User avatar
debiman
 
Posts: 1744
Joined: 2013-03-12 07:18

Re: Stretch stopped suspending on laptop lid

Postby shakman » 2017-12-15 09:00

debiman wrote:unless you get persistence on your live usb, there's no solution.
or just try out different live .isos until you hit one that "Just Works"...

persistence has nothing to do with this.

We're talking about suspend, not hibernate.

Fact is, as I stated, on some "loads" of Stretch (such as this one currently), lid-suspending (or sleeping if you will) works perfectly.

On other loads, it just ignores the lid-state.
shakman
 
Posts: 26
Joined: 2014-01-17 04:54

Re: Stretch stopped suspending on laptop lid

Postby bw123 » 2017-12-15 09:14

on some "loads" of Stretch (such as this one currently), lid-suspending (or sleeping if you will) works perfectly.

On other loads, it just ignores the lid-state


Probably related to this...

https://en.wikipedia.org/wiki/Race_condition
User avatar
bw123
 
Posts: 2590
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Stretch stopped suspending on laptop lid

Postby debiman » 2017-12-17 09:23

shakman wrote:persistence has nothing to do with this.

We're talking about suspend, not hibernate.


yes it does, because any fix you apply will be lost after reboot.
User avatar
debiman
 
Posts: 1744
Joined: 2013-03-12 07:18

Re: Stretch stopped suspending on laptop lid

Postby shakman » 2017-12-20 04:22

debiman wrote:
shakman wrote:persistence has nothing to do with this.

We're talking about suspend, not hibernate.


yes it does, because any fix you apply will be lost after reboot.


But that's not the point of my OP. You said:
unless you get persistence on your live usb, there's no solution.


This is false. There MUST be a sol'n becasue the laptop DOES suspend on some "boots" from the LIVE USB stick.

As it is doing correctly, RIGHT NOW.

Windows 7 is permanently installed. I was just in it before. I powered off, rebooted OFF the USB LIVE Stretch, opened a few terminals, and closed the lid.

Ta-da. The laptop went to sleep properly.

Now I could go through those same steps tomorrow, and closing the lid will NOT casue the laptop to sleep, only the screen to blank.

So, there is a bug, somewhere, which *could* be addressed.
shakman
 
Posts: 26
Joined: 2014-01-17 04:54

Re: Stretch stopped suspending on laptop lid

Postby debiman » 2017-12-24 07:07

shakman wrote:So, there is a bug, somewhere, which *could* be addressed.


do it, don't let me stop you!

just be aware of the sheer amount of different devices supported, and that

- someone with a different laptop might never see that problem
- someone with the same laptop might never see that problem after they installed
User avatar
debiman
 
Posts: 1744
Joined: 2013-03-12 07:18

Re: Stretch stopped suspending on laptop lid

Postby shakman » 2017-12-27 16:28

debiman wrote:
shakman wrote:So, there is a bug, somewhere, which *could* be addressed.


do it, don't let me stop you!



That was the whole point of the post; to see if someone (anyone) had come across this bug before as I am not versed enough to tackle it.

It will apparently remain unsolved for now.
shakman
 
Posts: 26
Joined: 2014-01-17 04:54

Re: Stretch stopped suspending on laptop lid

Postby debiman » 2017-12-27 18:29

shakman wrote:That was the whole point of the post; to see if someone (anyone) had come across this bug before as I am not versed enough to tackle it.

read:
i was hoping i could dump the tedious process of submitting a bug onto somebody else.
User avatar
debiman
 
Posts: 1744
Joined: 2013-03-12 07:18

Re: Stretch stopped suspending on laptop lid

Postby shakman » 2017-12-30 21:16

debiman wrote:
shakman wrote:That was the whole point of the post; to see if someone (anyone) had come across this bug before as I am not versed enough to tackle it.

read:
i was hoping i could dump the tedious process of submitting a bug onto somebody else.

Wow.

1) Not everyone is familiar with the bug submission process (read: me). Some don't even know it exists :roll:
2) Posting in a forum is what most people do first (after searching) to determine if the problem has been previously encountered/addressed to get help and direction, not nasty replies.

Perhaps a nice suggestion instead of an "eliteist", un-welcoming smart ass remark is more appropriate for civilized discourse.

Thanks for all your help.
shakman
 
Posts: 26
Joined: 2014-01-17 04:54

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable