LinuxQuestions.org
Visit Jeremy's Blog.
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 01-17-2021, 10:28 PM   #1
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
startx issues


In runlevel=3 with -current (up to date) and Plasma5
I have recently developed a problem that startx does not start KDE5
but pauses and finally gives a timeout message from xauth.
Pressing ctrl-C two or three times starts X-- it seems to break what ever is hung and then kde starts and runs normally.
I created a new user and the new account does not have this problem.
What is the cause and how to fix it?
I have searched around and tried the various fixes recommended.

Last edited by Regnad Kcin; 01-17-2021 at 10:30 PM.
 
Old 01-17-2021, 11:14 PM   #2
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Rep: Reputation: 66
xwmconfig?

damnit bones I need logs. xlog?

whats your hardware? mobile laptop with intel/amd or nvidia?
 
1 members found this post helpful.
Old 01-17-2021, 11:48 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Regnad Kcin View Post
In runlevel=3 with -current (up to date) and Plasma5
I have recently developed a problem that startx does not start KDE5
but pauses and finally gives a timeout message from xauth.
Pressing ctrl-C two or three times starts X-- it seems to break what ever is hung and then kde starts and runs normally.
I created a new user and the new account does not have this problem.
What is the cause and how to fix it?
I have searched around and tried the various fixes recommended.
Have you tried diffing the config files for the new account with the one that's having the problem? Try:
Code:
$ sudo diff -y ~/config-file ~other-account/config-file
(Maximizing your terminal window -- if currently running X -- helps a lot when doing this.) Check the manpages if necessary to explain what differences are indicated.

If you've done an upgrade recently, it could be that something in an existing desktop config file is no longer compatible with the newer desktop software.

HTH...
 
1 members found this post helpful.
Old 01-18-2021, 12:33 AM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I'd suggest to have a look at your home permissions.
I recently had that after an upgrade + recompile. Couldn't hunt the culprit but might be some malformed slackbuilds that made root own top level of my home (chown root:root /home/$USER without -R flag)
 
1 members found this post helpful.
Old 01-18-2021, 05:59 AM   #5
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
I don't know that this will help in your case, but I seem to recall that happening to me one time

As I recall, I was able to successfully run startx as root and load "root's" desktop

Upon load I rebooted and my user account was able to login normally via startx
 
1 members found this post helpful.
Old 01-18-2021, 06:18 AM   #6
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Original Poster
Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
Quote:
Originally Posted by mrapathy View Post
xwmconfig?

damnit bones I need logs. xlog?

whats your hardware? mobile laptop with intel/amd or nvidia?
xwmconfig set to xinitrc.kde KDE: KDE Plasma Desktop

Desktop box running 2 monitors today.
Nvidia RTX2060 460.32.03 driver;
Intel i7-9700K (8) @ 4.900GHz; water-cooled
Asrock z390-itx/ac MB; 1TB SSD drive; 16 gb ram
Kernel: 5.10.8 x86_64 Slackware64 -current

One Error in the Xorg.0.log
[ 5630.715] (EE) Failed to open authorization file "/home/ewj/.serverauth.5913": No such file or directory
I am not sure that this error is meaningful...

Last edited by Regnad Kcin; 01-18-2021 at 06:21 AM.
 
Old 01-18-2021, 02:18 PM   #7
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 715
Blog Entries: 1

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
That is odd, I would try this:

1. Use xwmconfig and select any other window manager (I would chose twm)
2. $ startx

If it works then looks like KDE specific, which is beyond me.

If you get the same error, try these (no real order).

See if anything is running in background, maybe a detached GUI application is doing something odd ? Or even ssh could be holding something. I doubt any of that is the case but odd things can happen.

Also try removing ~/.Xauthority and maybe any files named ~/.serverauth* and try again with a twm and if twm works, try kde.

good luck

Last edited by jmccue; 01-18-2021 at 02:18 PM. Reason: grammer
 
1 members found this post helpful.
Old 01-18-2021, 02:49 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,078

Rep: Reputation: Disabled
Quote:
Originally Posted by Regnad Kcin View Post
One Error in the Xorg.0.log
[ 5630.715] (EE) Failed to open authorization file "/home/ewj/.serverauth.5913": No such file or directory
I am not sure that this error is meaningful...
THis is very common and usually harmless:
  1. Assuming that you run startx from ~ (as you should), make sure all files (including hidden ones are owned by you as regular user, not by root. As an aside this is one of the reasons to always use 'su -' not just 'su')
  2. rm ~/.serverauth.* as suggested by jmccue
  3. Las resort (not recommended) comment out this line in /usr/bin/startx:
    Code:
    enable_xauth=1
    or set enable_xauth to 0.

Last edited by Didier Spaier; 01-18-2021 at 03:33 PM.
 
1 members found this post helpful.
Old 01-18-2021, 11:21 PM   #9
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Original Poster
Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
Quote:
Originally Posted by Didier Spaier View Post
THis is very common and usually harmless:
  1. Assuming that you run startx from ~ (as you should), make sure all files (including hidden ones are owned by you as regular user, not by root. As an aside this is one of the reasons to always use 'su -' not just 'su')
  2. rm ~/.serverauth.* as suggested by jmccue
  3. Las resort (not recommended) comment out this line in /usr/bin/startx:
    Code:
    enable_xauth=1
    or set enable_xauth to 0.
I had already tried deleting .Xauthority and .serverauth ...
The problem does appear to be a KDE problem so I am suspecting some KDE configuration issues. Fluxbox is my fallback environment when KDE has trouble and it starts fine.
Killing xauth not only fixed the problem but gives me sort of a sense of satisfaction hearing it crunch, a sort of scapegoat carrying my frustrations away with it. I had tried running xauth from the command line. It seems a strange bird. From reading its man page I am not sure why we need it anyway...?
Quote:
DESCRIPTION
The xauth program is used to edit and display the authorization information used in connecting to the X server. This pro‐
gram is usually used to extract authorization records from one machine and merge them in on another (as is the case when us‐
ing remote logins or granting access to other users). Commands (described below) may be entered interactively, on the xauth
command line, or in scripts. Note that this program does not contact the X server except when the generate command is used.
Normally xauth is not used to create the authority file entry in the first place; the program that starts the X server (of‐
ten xdm or startx) does that.
But...as Mellencamp noted, "I fight authority; Authority always wins.
 
  


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
(nvidia) First startx = blank screen, second startx = works ?!? BuckRogers01 Linux - Hardware 2 04-07-2006 05:26 PM
WHY should I type startx twice to startx? hiux Debian 6 09-09-2005 09:12 AM
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 07:41 PM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM
startx vs startx -- :2 (font dimension is different!!) moly82 Linux - General 7 09-15-2003 12:11 PM

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

All times are GMT -5. The time now is 11:27 PM.

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