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 22 Oct 2014, 10:06
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Suspend/hibernal editing GUI
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
kros54

Joined: 17 May 2009
Posts: 103
Location: member of Hungarian Puppy Linux Community

PostPosted: Fri 25 Oct 2013, 02:59    Post subject:  Suspend/hibernal editing GUI  

In modern computers, laptop, very easy to use tool for uspend/hibernate.
Many puplet you can do this is that it is not necessary to install the package acpitool.
(http://murga-linux.com/puppy/viewtopic.php?t=77560)

For convenience, I modified a small GUI: (bookmanshutdown.sh)

Code:
#!/bin/sh
#edited by Kros54 (hibernal/suspend)
export BOOKMAN_SHUTDOWN="
<window title=\"Shutdown\" icon-name=\"gtk-preferences\" window-position=\"1\">
 <vbox>
  <hbox>
   <text>
    <label>Prompt</label>
   </text>
   <button>
    <label>Prompt</label>
    <action>exec wmexit</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>Shutdown, save</label>
   </text>
   <button>
    <label>Poweroff</label>
    <action>exec wmpoweroff</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>Reboot</label>
   </text>
   <button>
    <label>Reboot</label>
    <action>exec wmreboot</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>X restart</label>
   </text>
   <button>
    <label>X restart</label>
    <action>exec restartwm</action>
   </button>
  </hbox>
  <hbox>
   <text>
    <label>Hibernal</label>
   </text>
   <button>
    <label>Hibernal</label>
    <action>exec /usr/local/bin/acpitool -s</action>
   </button>
  </hbox>
   <hbox>
   <button cancel></button>
  </hbox>

 </vbox>

</window>
"

gtkdialog3 --program=BOOKMAN_SHUTDOWN
unset BOOKMAN_SHUTDOWN


You must be copied to / usr / local / bin / folder.
Because of the path replace the desktop-file is the file shutdown.desktop.

Code:
[Desktop Entry]
Encoding=UTF-8
Name=Shutdown
Name[hu]=Leállítás
Icon=/usr/local/PupShutdown/icons/shutdown48.png
Comment=Shutdown GUI
Exec=/usr/local/bin/bookmanshutdown.sh
Terminal=false
Type=Application
Categories=Utility
GenericName=Shutdown GUI


I think this is the easiest way.
hibernal.png
 Description   
 Filesize   42.95 KB
 Viewed   406 Time(s)

hibernal.png


Last edited by kros54 on Fri 25 Oct 2013, 09:28; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
kros54

Joined: 17 May 2009
Posts: 103
Location: member of Hungarian Puppy Linux Community

PostPosted: Fri 25 Oct 2013, 09:19    Post subject: Re: Suspend/hibernal editing GUI  

false post
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.0458s ][ Queries: 13 (0.0047s) ][ GZIP on ]