Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 26 May 2018, 06:19
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to suspend Dell e6400 laptop?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [21 Posts]   Goto page: Previous 1, 2
Author Message
yr1945

Joined: 17 Apr 2010
Posts: 208

PostPosted: Mon 12 Feb 2018, 00:16    Post subject:  

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...
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 10433
Location: Charleston S.C. USA

PostPosted: Mon 12 Feb 2018, 00:37    Post subject:  

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:
# 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

_________________
I have found, in trying to help people, that 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 Shocked
Back to top
View user's profile Send private message 
yr1945

Joined: 17 Apr 2010
Posts: 208

PostPosted: Mon 12 Feb 2018, 10:28    Post subject:  

Thanks, but I boot from a CD.
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1042
Location: SW Wisconsin

PostPosted: Mon 12 Feb 2018, 11:04    Post subject:  

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?
dmesg_suspend.gz
Description  dmesg output for a working suspend. False gz, remove to view.
gz

 Download 
Filename  dmesg_suspend.gz 
Filesize  2.22 KB 
Downloaded  27 Time(s) 

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
ally


Joined: 19 May 2012
Posts: 1817
Location: lincoln, uk

PostPosted: Mon 12 Feb 2018, 12:06    Post subject:  

@marv

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


grub4dos

Smile
Back to top
View user's profile Send private message Visit poster's website 
HerrBert

Joined: 03 Nov 2016
Posts: 19
Location: NRW, Germany

PostPosted: Mon 12 Feb 2018, 12:52    Post subject:  

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:
# 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!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [21 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0432s ][ Queries: 14 (0.0135s) ][ GZIP on ]