You are not logged in.

#1 2021-09-16 11:54

schnappi
Member
Registered: 2020-03-25
Posts: 14

OS reboot fails when laptop lid is closed.

Hello

For whatever reason, I have teamviewer installed on my q4os laptop and also the other laptop.

When the q4os laptop lid is closed, and from my other laptop, I restart q4os laptop, the reboot process hangs.

Please help.

laptop1 q4os with TV. Laptop2 also has a TV.
Lid of laptop1 is closed.
I can connect to LT1 using LT2 via TV.
On LT1 (q4os), via TV, do a restart computer.

Issue : reboot hangs. Laptop1/q4os never reboots.

Thx

Offline

#2 2021-09-17 00:12

schnappi
Member
Registered: 2020-03-25
Posts: 14

Re: OS reboot fails when laptop lid is closed.

Any traces or anything dev team needs to fix? Or some solution?

Offline

#3 2021-09-17 06:25

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,301

Re: OS reboot fails when laptop lid is closed.

If the lid of LT1 is open, does the reboot work OK via teamviewer from LT2?

If so I would be looking at the power manager settings on LT1

What happens if you try to remote reboot LT2 with the lid closed from LT1 - in other words, the other way round.

You don't say which version of Q4OS you're using - that may have some bearing on other help.

Offline

#4 2021-09-17 07:46

schnappi
Member
Registered: 2020-03-25
Posts: 14

Re: OS reboot fails when laptop lid is closed.

If the lid of LT1 is open, does the reboot work OK via teamviewer from LT2?
...Yes

If so I would be looking at the power manager settings on LT1

What happens if you try to remote reboot LT2 with the lid closed from LT1 - in other words, the other way round.
...i use samsung dex on win10 on lt2. hence not possible to check.

You don't say which version of Q4OS you're using - that may have some bearing on other help.
...latest centaurus

Offline

#5 2021-09-17 08:20

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: OS reboot fails when laptop lid is closed.

You may need to disable the lid switch, I needed this for a laptop I used as a server once.
edit the file /etc/systemd/logind.conf and find the line that says

#HandleLidSwitch=suspend

change it to

HandleLidSwitch=ignore

this should do what you want now after you reboot (or restart logind with systemctl restart systemd-logind)

Note: I'm not sure if TdePowersave might override this option but it worked with Debian systems.

Offline

#6 2021-09-18 15:59

schnappi
Member
Registered: 2020-03-25
Posts: 14

Re: OS reboot fails when laptop lid is closed.

In TDESettings > General settings tab > Button event > Lid close button > I have set it to nothing.
Doesnt work.
Will try your solution. Thx.

Offline

#7 2021-09-18 16:07

schnappi
Member
Registered: 2020-03-25
Posts: 14

Re: OS reboot fails when laptop lid is closed.

Your solution worked. Thx a lot.

Offline

#8 2021-09-20 08:21

schnappi
Member
Registered: 2020-03-25
Posts: 14

Re: OS reboot fails when laptop lid is closed.

With your solution, now the screensaver + lock screen doesnt appear when lid is closed.

Offline

#9 2021-09-20 08:47

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: OS reboot fails when laptop lid is closed.

That is one downside of this solution, although your screensaver should still activate on a timer if set that way.

Offline

#10 2021-09-27 12:40

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: OS reboot fails when laptop lid is closed.

I just accessed the server/laptop I used this way and I have screenon/off scripts to manually turn the screen off or on (via ssh) quite simply the scripts are like this :-

OFF

#!/bin/bash

xset -display :0.0 dpms force off

ON

#!/bin/bash

xset -display :0.0 dpms force on

I simply name them screenon and screenoff accordingly and place them in my $PATH to have them easily accessible.

Note: When the screen is off I can simply hit the return key to enable the display, but as this machine was housed in a hard to access place I did not need that very often.

Just thought I would post as it may help.

Offline

Board footer

Powered by FluxBB