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 Tue 21 Oct 2014, 23:48
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Cannot power off in JWM (all clear)
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Ray Manta

Joined: 21 Jul 2010
Posts: 37

PostPosted: Tue 03 Aug 2010, 23:10    Post_subject:  Cannot power off in JWM (all clear)
Sub_title: Not without killing X Server
 

Hi everyone,

I've got a full-install Puppy Linux 4.3.1, and I've got a problem when shutting down. When I click on "Shutdown --> Power Off Computer" in JWM, nothing seems to happen. But when I kill the X Server (ctrl+alt+backspace), the computer proceeds to power off (Puppy is shutting down... etc).

I'm not too sure what's going on, but all I can recall is that once I messed up the JWM Tray settings, which forced me to get a new copy of jwmrc.tray (or something like that) from the Live CD.

Can the Puppy Experts out there please tell me what might have gone wrong? Thanks in advance Very Happy.

Edited_time_total
Back to top
View user's profile Send_private_message 
upnorth


Joined: 11 Jan 2010
Posts: 262
Location: Wisconsin UTC-6 (-5 DST)

PostPosted: Wed 04 Aug 2010, 00:30    Post_subject:  

Hi Ray:

You can type in terminal wmpoweroff. If that works, then your .jwmrc likely has some corruption. First try typing fixmenus, then jwm -restart to see if that fixes the problem, otherwise:

Here is the section of .jwmrc that deals with shutdown:

Code:
<Menu label="Shutdown" icon="shutdown24.png" height="16">
<!-- <Exit confirm="false" label="Exit to prompt" icon="prompt16.xpm" /> -->
<Program label="Exit to prompt" icon="prompt16.xpm">exec wmexit</Program>
<Program label="Reboot computer" icon="mini-turn.xpm">exec wmreboot</Program>
<Program label="Power-off computer" icon="mini-stop.xpm">exec wmpoweroff</Program>
<Program label="Restart X server" icon="mini-x.xpm">restartwm</Program>
<Restart label="Restart JWM" icon="mini-windows.xpm"/>
<!-- <Program label="Change Window Manager" icon="mini-windows.xpm">changewm.sh</Program> -->
</Menu>


Just have a look at your .jwmrc about 60% down to see if it's missing anything. It is the last part of .jwmrc dealing with menu sections. If so, you could delete that section, then copy & paste from the snippet from above.

There are also templates in /etc/xdg/templates that contain all the building blocks of the menu.

I think something like this happened to me in the past. There might be an easier way to do it too - I just can't think of one. Maybe someone knows.
Back to top
View user's profile Send_private_message Visit_website 
Ray Manta

Joined: 21 Jul 2010
Posts: 37

PostPosted: Wed 04 Aug 2010, 01:02    Post_subject:  

Sorry... I managed to put my half brains together and figured out what was going on...

Some time ago I ran a command just for fun: xwin icewm-session. But I didn't have IceWM, so the interface didn't change. I forgot about it, and ran into this problem.

The fix? Kill X Server, and feed the codes into it: xwin jwm

Thank you for your help, Upnorth; besides, you were pretty FAST there Very Happy
Back to top
View user's profile Send_private_message 
upnorth


Joined: 11 Jan 2010
Posts: 262
Location: Wisconsin UTC-6 (-5 DST)

PostPosted: Wed 04 Aug 2010, 10:35    Post_subject:  

Well, glad you got it going anyway Cool

I forgot about that one, where /etc/windowmanager gets invalid info.

Also, if your .jwmrc ever does get borked, it could be easier to just copy the .jwmrc from the live cd session over the one on hard drive, then boot up and run fixmenus and jwm -restart. That should give you a new one with all your installed programs.
Back to top
View user's profile Send_private_message Visit_website 
`f00


Joined: 06 Nov 2008
Posts: 809
Location: the Western Reserve

PostPosted: Wed 04 Aug 2010, 11:43    Post_subject:
Sub_title: addenda - kicking the script
 

I used to run into that occasionally, but under somewhat different circumstances - ie the wm* commands (from a gui window or menu entry) would not do what they were supposed to until I 'kicked' them with a Ctrl+Alt+backspace. If you still have to kick them into action (and otherwise everything looks like it should just work), you might try uncommenting the kill lines at the end of those scripts or just the one that seems reluctant to act when you're in the wm.

also - edit (or copy) /etc/xdg/templates/_root_.jwmrc for the longer-lasting remedy if you need to.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0506s ][ Queries: 11 (0.0029s) ][ GZIP on ]