LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-04-2012, 07:29 PM   #1
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 94
Blog Entries: 10

Rep: Reputation: 18
slackware-14 xfce-4.10.0 logout fails


Logging out from xfce fails and hangs the window manager under the following circumstances - using a newly created user and the default panel configuration:

Log out using the "application menu" icon (bottom of dropdown menu). Log back in, then logout again the same way. After a couple of tries, the session manager hangs and the desktop is never cleared. After a lengthy timeout, the login screen reappears, and upon logging in, xfwm4 does not start/stay up (can't tell which). The desktop appears, but with no window manager it is pretty unusable! Have to delete and recreate the home/<user> directory to get back to working WM!

Same problem occurs if xfce-action-buttons is shifted to session-view and all the buttons except logout are unchecked (to conserve panel real estate. It MAY occur even if all the buttons are left in their default state - not sure.

The only reliable way to logout seems to be to leave xfce-action-buttons in its default (dropdown menu) state and use the "logout" on the action-button dropdown.

Whoops!
 
Old 10-04-2012, 08:13 PM   #2
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 94

Original Poster
Blog Entries: 10

Rep: Reputation: 18
Update to previous post. The bug is unrelated to the xfce-action-buttons state. It may relate to the time it took me to play with the properties. The following is the simplest failure mode:

Create new user directory (while in runlevel 3). Switch to runlevel 4 and logon. Select the default configuration. Logoff using the "application menu" dropdown. Immediately log back in. Logoff again. Repeat logon-logoff one more time. That last logoff takes a LONG time (maybe a minute or 2) to get back to a logon screen. Logon again and there will be no window manager.

Since I was able (in a real account) to actually logon and logoff without problems, but each session was fairly long, and I didn't immediately try to log back on, my guess is that one of the session/window manager programs is getting hung up and eventually something times out, leaving the user's session files in an unhappy state that breaks xfwm4.

My hardware is 'uname -m -p'

i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux

I'm running vmlinuz-generic-smp-3.2.29-smp and xfce-4.10.0 (using a clean install in another disk partition)
when the problem occurs. xfce-4.6.2 (on slackware-13.37-stable) works just fine
 
Old 10-04-2012, 08:25 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If the problem persists try adding your user account to the "wheel" group.
 
Old 10-05-2012, 01:32 PM   #4
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 94

Original Poster
Blog Entries: 10

Rep: Reputation: 18
Further update - the corrupted file (after the LONG logout) is /home/<user>/.cache/sessions/xfce4-session-<hostname>:0
It does not contain Client lines for xfwm2, which explains why the next logon doesn't have a window manager.
If one looks at the session directory right after the long logout, there is an xfce4-session-<hostname>:0.bak file
which IS complete. Replacing the broken session file with the backup fixes the problem (until the next time the logout
hangs up). I'm going to try unchecking the box in logout that saves a new session file to see if that stops the problem, at least until somebody fixes it.

I have no idea what is hanging up the logout and causing the corrupted session file to be written. It doesn't fail every time, but often enough to be a real problem.
 
Old 10-05-2012, 06:54 PM   #5
rc nai
Member
 
Registered: Jun 2008
Distribution: Slackware 13.37,14
Posts: 88

Rep: Reputation: 21
I had a similar problem, it also affected my taskbar not being able to save settings. Here's what I did to fix it:
I made sure that "logout saves session" was checked, then I logged out and went into a virtual terminal (ctrl-f6), then I deleted everything in ~/.cache/sessions/, and restarted computer. Logged back in and I didn't noticed any problems after that, so far.
 
1 members found this post helpful.
Old 10-05-2012, 07:17 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by rc nai View Post
...then I deleted everything in ~/.cache/sessions/, and restarted computer. Logged back in and I didn't noticed any problems after that, so far.
Thank you, that corrected a whole host of visual errors on login (rainlendar2 layout) and system performance sluggishness (logout, restart)
Logout is immediate, where it used to be >20'ish seconds.

Mad Props.

With credit here...

Last edited by Habitual; 10-05-2012 at 07:40 PM.
 
Old 10-06-2012, 10:31 AM   #7
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 94

Original Poster
Blog Entries: 10

Rep: Reputation: 18
All these workarounds are nice, but do not address the original issue - why does logout hang up, leaving a corrupted session file? I was kind of hoping that someone who understood the session management process better than I do might comment and help resolve the underlying issue. Unchecking the option to write a new session file upon logout seems to prevent the creation of new corrupted session files, but the check box exists for a reason, which this "fix" defeats.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xfce wont logout half the time. Daedra Slackware 1 03-18-2010 03:54 PM
XFCE logout button michaelinux Linux - Desktop 2 06-28-2009 05:24 AM
Running 'xfce-session-logout' from acpi script ewolf Linux - Software 3 12-06-2007 11:05 AM
Xfce logout button in FC6 Hitboxx Fedora 1 11-20-2006 06:51 PM
KDM+XFCE+Logout/poweroff/reboot menu? r_jensen11 Linux - Software 0 01-04-2004 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration