Author |
Message |
vaskoiii
Joined: 18 Mar 2010 Posts: 7
|
Posted: Mon 29 Mar 2010, 06:29 Post subject:
When the lid is closed, I want only the screen to turn off. |
|
Is there something I can do so when the lid is closed on my laptop nothing happens other than the screen turning off.
currently I am running Puppy 4.31JP.
Also another annoying side effect is that when the computer does suspend the mouse doesn't work on resume...
Maybe there are power options somewhere that I am not seeing.
Laptop:
fujitsu p1120
Please advise!
|
Back to top
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11775 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: Mon 29 Mar 2010, 07:24 Post subject:
|
|
Find the acpitool pet and install it.
_________________ Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
|
Back to top
|
|
 |
Shel
Joined: 11 Apr 2009 Posts: 103 Location: Seattle, WA, USA, or Southern France
|
Posted: Mon 29 Mar 2010, 15:25 Post subject:
|
|
All this stuff is controlled (I think) from scripts in the /etc/acpi subdirectory, under the control of the configuration files in /etc/acpi/events. This assumes your laptop's BIOS isn't doing something beyond Puppy's comtrol when you close the lid.
Have a look at the file /etc/acpi/events/lid ... it points to the script that gets run when you close the lid. If you rename the script (probably /etc/acpi/lid.sh) to something else (say /etc/acpi/lid.sh.disabled) I believe Puppy will do nothing when you close the lid.
To find out if you have acpitool, command "which acpitool" ... if you get a pathname, you already have it.
If you install the acpitool pet (I think Jemimah posted it originally) you can change what happens when you close the lid. In my case, I wanted standby mode, not "hibernation," but I had to write a new script to refresh the screen after the computer woke up. If not, I didn't get the whole screen.
acpitool is a command-line program; as far as I know, there's no GUI to set or change any of this stuff.
-Shel
|
Back to top
|
|
 |
vaskoiii
Joined: 18 Mar 2010 Posts: 7
|
Posted: Tue 30 Mar 2010, 00:14 Post subject:
|
|
I just did something like:
mv /etc/acpi/???/suspend.sh /etc/acpi/???/suspend.sh.bak
vi /etc/acip/???/suspend.sh
TY!
|
Back to top
|
|
 |
johnywhy

Joined: 20 Aug 2011 Posts: 721
|
Posted: Sat 20 Aug 2011, 11:13 Post subject:
clarify? |
|
would someone be willing to explain the above code for a noob, or offer a simpler command (acpi or other) to disable suspend on closing the lid?
thanks!
|
Back to top
|
|
 |
vaskoiii
Joined: 18 Mar 2010 Posts: 7
|
Posted: Mon 29 Aug 2011, 17:43 Post subject:
|
|
Basically all you have to do is to open the file:
suspend.sh
:in a text editor and from there I think you should be able to configure things without to much trouble.
The line:
vi /etc/acip/???/suspend.sh
:should help you find where you can locate the suspend.sh file.
|
Back to top
|
|
 |
johnywhy

Joined: 20 Aug 2011 Posts: 721
|
Posted: Mon 29 Aug 2011, 20:04 Post subject:
|
|
Thanks!
|
Back to top
|
|
 |
JurviZ
Joined: 11 Mar 2012 Posts: 3
|
Posted: Mon 12 Mar 2012, 08:43 Post subject:
|
|
Thanks from me, too. This was a big help.
Just to clarify to anyone who finds this thread, if you don't want anything to happen to the system when you close the lid, just replace
/etc/acpi/actions/suspend.sh
with an empty file.
Back up the original, though, etc. etc.
|
Back to top
|
|
 |
veejay
Joined: 16 Dec 2010 Posts: 28
|
Posted: Fri 01 Dec 2017, 08:51 Post subject:
|
|
Hai JurviZ, It worked for me. Thanks. Now as laptop lid closed, working with external 18" monitor.
|
Back to top
|
|
 |
|