How to suspend Dell e6400 laptop?

Using applications, configuring, problems
Message
Author
yr1945
Posts: 212
Joined: Sat 17 Apr 2010, 18:38

#16 Post by yr1945 »

the command... echo -n mem > /sys/power/state... makes my laptop go to sleep for just one second and then the screen immediately comes back on again...

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#17 Post by bigpup »

Are you booting and running Puppy from a USB drive.
USB Flash drive or hard drive?

I remember something about suspend made to not work if running from a USB drive.

This code is in suspend.sh

Code: Select all

# do not suspend if usb media mounted
USBS=$(probedisk2|grep '|usb' | cut -d'|' -f1 )
for USB in $USBS
do
mount | grep -q "^$USB" && rm -f "$LOCKFILE" && exit 0
done
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

yr1945
Posts: 212
Joined: Sat 17 Apr 2010, 18:38

#18 Post by yr1945 »

Thanks, but I boot from a CD.

User avatar
Marv
Posts: 1264
Joined: Wed 04 May 2005, 13:47
Location: SW Wisconsin

#19 Post by Marv »

Invoking suspend with the echo command bypasses that USB check. The 1 second delay 'seems' like something is sending an interrupt that the kernel interprets as a power button press. I don't have any hardware that behaves in this manner so it's a bit of a 'thought experiment' for me. Doing that echo command and then entering dmesg in terminal and then looking at the final lines of the output (after a line that contains "suspend entry" in my system) might shed some light on what the kernel is doing. I'll attach those lines from my system doing a normal suspend and wake as an example. When you're ready to call a halt say so, otherwise I'm still puzzled.

@ally Thanks for the check. I replied but must have just previewed and slept. How are you booting?
Attachments
dmesg_suspend.gz
dmesg output for a working suspend. False gz, remove to view.
(2.22 KiB) Downloaded 122 times
Pups currently in kennel :D Older LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64 and upupEF for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#20 Post by ally »

@marv

Code: Select all

  kernel /xenial64_7.5/vmlinuz   psubdir=xenial64_7.5 pmedia=atahd pfix=fsck intel_pstate=disable acpi_osi="!Windows 2012"
grub4dos

:)

HerrBert
Posts: 152
Joined: Thu 03 Nov 2016, 15:11
Location: NRW, Germany

#21 Post by HerrBert »

bigpup wrote:Are you booting and running Puppy from a USB drive.
USB Flash drive or hard drive?

I remember something about suspend made to not work if running from a USB drive.

This code is in suspend.sh

Code: Select all

# do not suspend if usb media mounted
USBS=$(probedisk2|grep '|usb' | cut -d'|' -f1 )
for USB in $USBS
do
mount | grep -q "^$USB" && rm -f "$LOCKFILE" && exit 0
done
the question should not be if you boot from a USB drive. the script exits if ANY USB MEDIA mounted!

Post Reply