Page 1 of 1

Losing laptop display by suspend.sh (sleep)

Posted: Fri Jan 05, 2024 1:15 am
by houndstooth

Noticing on just one laptop while attached to an external monitor running /etc/acpi/actions/suspend.sh permanently turns off the laptop monitor in spite of being on in lxrandr.

Is there a way to get the internal display on again without rebooting?


Re: Losing laptop display by suspend.sh (sleep)

Posted: Fri Jan 05, 2024 1:39 am
by Marv

A step short of rebooting, first try running restartwm in terminal. If that does it for you, there is a line about 5 lines from the end of the suspend.sh script where that could be uncommented. Simple things first...


Re: Losing laptop display by suspend.sh (sleep)

Posted: Fri Jan 05, 2024 3:02 am
by houndstooth

@Marv pardon, I should have prefaced by stating a reboot without knowing the issue is necessary.

restartwm does not fix it.

I run the script, the laptop monitor blinks out. The 1st time it happened I was scared it failed, debating whether I wanted to continue using the device sans monitor. Thankfully a reboot brought it back.


Re: Losing laptop display by suspend.sh (sleep)

Posted: Fri Jan 05, 2024 4:56 am
by MochiMoppel
houndstooth wrote: Fri Jan 05, 2024 1:15 am

Noticing on just one laptop while attached to an external monitor running /etc/acpi/actions/suspend.sh permanently turns off the laptop monitor in spite of being on in lxrandr.

Just to be clear: Your external monitor wakes up normally while your laptop display stays off?
Please run the xrandr command in a terminal window and post the output. Run this command before and after the suspend period. If the output is different (it probably is not), then post both outputs, otherwise the output after the suspend would be sufficient.


Re: Losing laptop display by suspend.sh (sleep)

Posted: Fri Jan 05, 2024 7:47 am
by houndstooth
MochiMoppel wrote: Fri Jan 05, 2024 4:56 am

Just to be clear: Your external monitor wakes up normally while your laptop display stays off?

Yes

Please run the xrandr command in a terminal window and post the output. Run this command before and after the suspend period. If the output is different (it probably is not), then post both outputs, otherwise the output after the suspend would be sufficient.

The problem is intermittent, fixed by reboot. I will come back to this post when it happens again.


Re: Losing laptop display by suspend.sh (sleep)

Posted: Fri Jan 05, 2024 11:16 am
by houndstooth

@MochiMoppel after losing LVDS1 with suspend.sh:

Code: Select all

root# xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1366x768      60.36*+
   1360x768      59.80    59.96  
1280x720 60.00
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
680x384 60.00
640x360 60.00
DP1 disconnected (normal left inverted right x axis y axis) VGA1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm 1920x1080 74.97* 60.00
1680x1050 74.89 59.95
1680x945 60.02
1400x1050 74.87 59.98
1600x900 60.00
1280x1024 75.02 60.02
1440x900 74.98 59.89
1280x960 60.00
1366x768 59.79
1360x768 60.02
1280x800 74.93 59.81
1152x864 75.00
1280x768 74.89 59.87
1280x720 60.00
1024x768 75.08 70.07 60.00
1024x576 59.97
832x624 74.55
800x600 72.19 75.00 60.32 56.25 gruen 848x480 60.00
640x480 75.00 72.81 66.67 60.00
720x400 70.08
VIRTUAL1 disconnected (normal left inverted right x axis y axis) root#

Laptop LCD Monitor is off.


Re: Losing laptop display by suspend.sh (sleep)

Posted: Fri Jan 05, 2024 12:53 pm
by MochiMoppel

@houndstooth Looks normal to me.
Try to "kick-start" the laptop display with

Code: Select all

xrandr --output LVDS1 --mode 1366x768 --rate 60.36

Re: Losing laptop display by suspend.sh (sleep)

Posted: Mon Jan 08, 2024 4:25 am
by houndstooth
MochiMoppel wrote: Fri Jan 05, 2024 12:53 pm

@houndstooth Looks normal to me.
Try to "kick-start" the laptop display with

Code: Select all

xrandr --output LVDS1 --mode 1366x768 --rate 60.36

@MochiMoppel it only happens on one device & intermittently. When I posted that, restarting X returned both displays, but it does not happen every time.

When a monitor blinks out it seems like a hardware failure.

I will try your kickstart when it happens again.


Re: Losing laptop display by suspend.sh (sleep)

Posted: Mon Jan 22, 2024 12:44 pm
by houndstooth

@MochiMoppel no dice, kickstart does not work.

(trigger) My computers do not suspend in Puppy without this command sequence:

Code: Select all

awk '/enabled/{print $1}' /proc/acpi/wakeup | while read a
do
echo "$a" > /proc/acpi/wakeup
  1. Fossapup

  2. both monitors on

  3. NOT executing the wakeup sequence prior

  4. executing suspend.sh in /etc/acpi/actions

  5. laptop LCD (1366x768) turns off

The only way I know to turn the laptop LCD back on is to reboot.

It might still work if I had remembered to execute the wakeup sequence prior (next test).