You are not logged in.

#1 2022-06-26 19:44:10

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

[SOLVED] unintended shutdown on lidclose (asus rog laptop)

hi,

For a period of time now whenever i close my lid, the machine seems to shut down. I don't know exactly when this started to occur. I've tried the /etc/systemd/logind.conf and added HandleLidSwitch=ignore. This does not seem to help much. Also, i did check the xfce "power manager" to make sure there is no shutdown (but only disable screen or such) for a lid close on both battery and powered system.

I cant seem to find anything in the log either. journalctl -b -1 does not seem to give much, or at least, nothing that indicates any form of shutdown.

If i add acpi=off to the boot parameters, the system just does not come up.  So i undid that.

How can i go about analyzing this problem?

Last edited by BottleNeck (2022-11-20 17:54:48)

Offline

#2 2022-06-26 20:15:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [SOLVED] unintended shutdown on lidclose (asus rog laptop)

BottleNeck wrote:

I cant seem to find anything in the log either. journalctl -b -1 does not seem to give much, or at least, nothing that indicates any form of shutdown.

Are you sure?  Can you share one of these?

If there truly is no sign of a either a kernel panic, or software-initiated power down, then I'd suspect a hardware issue like the lid a bad power connection broken by the lid movement.

Aside from that, I'd also test in a tty with no GUI session running at all; does the same thing happen?

A third approach would be to look for ways to replicate other than with the lid: do either attempts to suspend or hibernate result in the same shut down?

Last edited by Trilby (2022-06-26 20:16:23)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2022-06-26 20:37:30

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: [SOLVED] unintended shutdown on lidclose (asus rog laptop)

The log (journalctl -b -1) is now located at:
https://pastebin.com/aZ7krYE0

This log was created after a reboot from the TTY as per your suggestion. The issue also happens here.  I got there due to a stopped desktop manager (lightdm). I don't think that's relevant, but still.

Suspend functions as it should. No shutdowns there.

Additionally, the shutdown is consistent and takes about equally as long. So i doubt it is a wire or something, could be something in the bios, but than it's weird that is is only a recent problem (no recent bios update)

Last edited by BottleNeck (2022-06-26 20:54:05)

Offline

#4 2022-06-26 21:31:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [SOLVED] unintended shutdown on lidclose (asus rog laptop)

BottleNeck wrote:

Additionally, the shutdown is consistent and takes about equally as long. So i doubt it is a wire or something

Given that new info with the journal log, I'd agree - disregard the hardware suggestion.

The journal registers logind's lid closed event ... but then just stops.  To rule out oddities in how the journal presents the log getting a journal with --since= (and optionally paired with --untill=) rather than the -b flag would be useful; specifically I'd like to rule out journalctl for some reason treating the lid close event as the end of that "boot" and not showing subsequent messages.

Last edited by Trilby (2022-06-26 21:31:49)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2022-06-26 21:51:52

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: [SOLVED] unintended shutdown on lidclose (asus rog laptop)

i fear that doesn't give a lot more info. I started the log basically where the other ended.

jun 26 22:24:31 strix systemd-logind[677]: Lid closed.
-- Boot 3fa8bd8b587a466f823b1a57f20e7ca6 --
jun 26 22:24:59 strix kernel: Linux version 5.15.49-1-lts (linux-lts@archlinux) (gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP Wed, 22 Jun 2022 12:52:35 +0000
jun 26 22:24:59 strix kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=0dca9317-1800-416d-bd3c-9288c4960d8f rw loglevel=3 rcutree.rcu_idle_gp_delay=1 acpi>
jun 26 22:24:59 strix kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
jun 26 22:24:59 strix kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
jun 26 22:24:59 strix kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
jun 26 22:24:59 strix kernel: x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
jun 26 22:24:59 strix kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
jun 26 22:24:59 strix kernel: x86/fpu: xstate_offset[9]:  832, xstate_sizes[9]:    8
jun 26 22:24:59 strix kernel: x86/fpu: Enabled xstate features 0x207, context size is 840 bytes, using 'compacted' format.
jun 26 22:24:59 strix kernel: signal: max sigframe size: 3376
jun 26 22:24:59 strix kernel: BIOS-provided physical RAM map:

It really somehow just... stops....

Last edited by BottleNeck (2022-06-26 22:15:17)

Offline

#6 2022-07-12 19:51:45

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: [SOLVED] unintended shutdown on lidclose (asus rog laptop)

EDIT:
Seems like it might have been the asusd service (AUR) that was running. It seems to take over a lot of stuff. I have disabled it and for now it seems to have resolved the isue. I acturally forgot it was running. For future google searches, this seems to be it.

Last edited by BottleNeck (2022-07-12 20:32:38)

Offline

#7 2022-07-30 18:46:29

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: [SOLVED] unintended shutdown on lidclose (asus rog laptop)

Nope, have to reajust this post. After uninstalling the asusctl program, indeed, the problem was goine for a bit.

Than after a while, it came back worse even. Now when i am still in the bios, this problem occurs. Also in the bootloader. This was not the case previously. I'm confused, but pretty sure this is a laptop specific thing. I'm going to write it down as "by design"  from asus.

Offline

#8 2022-11-20 17:54:33

BottleNeck
Member
Registered: 2019-03-12
Posts: 35

Re: [SOLVED] unintended shutdown on lidclose (asus rog laptop)

Bit of a necro, but still fun to read for the next.

So after a long long search, i figured it out. I thought initially it might be the asus controll. But it was not. After testing further, i found the problem to also occur in the bios. Did a couple of bios upgrades, with no result.

In the end, long story short, the bezel was "unclicked" at a crucial point. This caused the power button to be pressed for a long time doing a hard reset. And a power-off. Causing a whole heap of problems due to hardware management of the laptop.

After clicking in the bezel again, problem was gone.

Let this be a testament to the fact that i will never escape the newbie corner.

Offline

#9 2022-11-20 19:45:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [SOLVED] unintended shutdown on lidclose (asus rog laptop)

So it was a hardware issue tongue


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB