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 Wed 03 Jun 2020, 11:21
All times are UTC - 4
 Forum index » Advanced Topics » Hardware
Laptop suspend works w/ Tahr 6.0 CD but not USB install
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
3guesses

Joined: 30 Sep 2014
Posts: 172

PostPosted: Thu 02 Jan 2020, 19:46    Post subject:  Laptop suspend works w/ Tahr 6.0 CD but not USB install
Subject description: On an old Sony Vaio VGN-T150(UC) netbook
 

I was originally booting my old Sony Vaio VGN-T150 into the live CD of Tahr 6.0 (tahr-6_0-CE_noPAE.iso) on a USB stick created with Unetbootin, where closing the lid would successfully put the netbook into suspend mode. However, I have now installed Tahr 6.0 to a USB stick and upgraded it to 6.0.2, but subsequently suspend doesn't seem to work: it doesn't suspend when the lid is closed, and I have installed the PupShutdown 3.0 pet and the Suspend to RAM option there does nothing. Pressing the power button and clicking Suspend similarly does nothing. Is there some diagnostics I can run to find out why this feature is not working on the installed version?
Last edited by 3guesses on Wed 08 Jan 2020, 16:00; edited 1 time in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 13823
Location: S.C. USA

PostPosted: Thu 02 Jan 2020, 22:34    Post subject:  

You are using some of the versions of Tahrpup that still had bugs.
The final release version is Tahrpup 6.0.5

You should be able to install Tahrpup 6.0.5 and use the old Tahrpup save, you now use, with it.


It may be because Tahrpup is running from a USB flash drive.
How the save is handled is different than a live CD.
Because the save could be in the process of being written to, at any time.
Suspend would mess it up.
So, suspend is deactivated for USB flash drive operations.

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 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
YaPI(any iso installer)
Back to top
View user's profile Send private message 
3guesses

Joined: 30 Sep 2014
Posts: 172

PostPosted: Fri 03 Jan 2020, 12:00    Post subject:  

bigpup wrote:
You are using some of the versions of Tahrpup that still had bugs.
The final release version is Tahrpup 6.0.5

You should be able to install Tahrpup 6.0.5 and use the old Tahrpup save, you now use, with it.


It may be because Tahrpup is running from a USB flash drive.
How the save is handled is different than a live CD.
Because the save could be in the process of being written to, at any time.
Suspend would mess it up.
So, suspend is deactivated for USB flash drive operations.

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


OK, thanks very much, that's very useful. I was prompted by Puppy Package Manager (I think) to upgrade to either 6.0.2 or 6.0.1 - how do I go to 6.0.5? And I take it that doing so still won't allow me to suspend the netbook if 6.0.5 is installed to a USB memory stick?
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 13823
Location: S.C. USA

PostPosted: Fri 03 Jan 2020, 15:09    Post subject:  

I assume you have Tahrpup installed as a frugal or live USB install using a save.

Make a copy of the save, for backup, to make sure you have it.
On another device, like a hard drive, another USB drive, etc.... would be best.

Iso is here:
http://distro.ibiblio.org/puppylinux/puppy-tahr/iso/tahrpup%20-6.0-CE/
Note:
There is a Tahrpup 6.0.6, but it was not fully tested. It may have bugs.

The best way to update to 6.0.5 is to download the Tahrpup 6.0.5 iso.
Do a frugal or live install with it.
Copy the old save into the exact location as this Tahrpup 6.0.5 install.
When you boot it, the save should be converted to one for 6.0.5 and used.

Yes. still no suspend, booting from a USB.

_________________
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
YaPI(any iso installer)
Back to top
View user's profile Send private message 
Dry Falls

Joined: 16 Dec 2014
Posts: 616
Location: Upper Columbia

PostPosted: Sat 04 Jan 2020, 02:52    Post subject:  

Many pups still have "do not suspend if usb media mounted" on or about line 29 of /etc/acpi/actions/suspend.sh (or /etc/acpi/suspend.sh ); comment out that block and usb installation should suspend fine. Also at end of script, make sure <rm -f "$LOCKFILE> has a quote to end the command (missing in several pups).
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 13823
Location: S.C. USA

PostPosted: Sat 04 Jan 2020, 07:41    Post subject:  

If you do what Dry Falls suggests.
I strongly suggest you setup the save to never save at a set time.
Only save when the save icon is clicked or you shutdown.

_________________
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
YaPI(any iso installer)
Back to top
View user's profile Send private message 
3guesses

Joined: 30 Sep 2014
Posts: 172

PostPosted: Sat 04 Jan 2020, 16:55    Post subject:  

Brilliant, thanks bigpup, Dry Falls. I will move to 6.0.5, disable the auto Pupsave and comment out that block of code in suspend.sh Very Happy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware
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.0450s ][ Queries: 12 (0.0090s) ][ GZIP on ]