LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-23-2022, 05:43 AM   #1
Gold_Thing
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Rep: Reputation: 0
My xserver is broken and I don't know how to fix it


I've tried asking on the Ubuntu forums in this thread but they stopped responding. I cannot open the display manager, use graphical programs or use a desktop environment. Before it happened I suspended the Network Manager service which needed a root password because I was testing something. The next time I booted into Linux, I couldn't login to any desktop environments I have installed. I can only get to the SDDM login screen and I have to use ctrl+alt+F2 and use the tty to do things.

I have tried to troubleshoot this for 4 days and none of the solutions work. All of their solutions work for a different type of problem. Their graphics not displaying had something to do with SSH which I'm not doing, my computer is a normal desktop computer. When I echo the $DISPLAY variable, it's empty ('''') unless I export 0.0. xhost + fixed it for most people that have my problem, but it doesn't work. I just get
Code:
Invalid MIT-MAGIC-COOKIE-1 keyxhost: unable to open display ":0.0"
But when I start X with superuser privelleges, it actually starts up. I don't know why I'm getting this message or what it was that was changed.
 
Old 02-24-2022, 02:17 PM   #2
rayfward
Member
 
Registered: May 2009
Location: Leeds Uk
Distribution: Linux Mint 20.2
Posts: 136

Rep: Reputation: 17
Lightbulb

So is it your personal login? If so I may have a solution.
 
Old 02-25-2022, 12:37 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Are all the files and directories in your homedir owned by your username?
 
Old 02-25-2022, 04:17 AM   #4
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
what do the logs say?
Check in /var/log, the Xorg.0.log, messages, or syslog files should have an error message that can point to the problem.

Try creating a new user and see if they can log in, if so then the issue is with the current user, else it could be a different issue.
 
Old 02-25-2022, 04:39 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
I wonder if you have inadvertently transferred your X authentication file to the ownership of root. If so, you will no longer be able to access it as an unprivileged user. You say you had to do something as root and that started the problem. How did you become root? Did you use gksu or sudo or su? gksu and similar programs are supposed to protect your environment from root so that this can't happen, but sudo and su usually leave you in the same environment.

Try deleting .Xauthority at the console, then logging in again
 
Old 02-25-2022, 11:36 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
the most important thing is to post what you have tried exactly and the respond you got exactly.
Telling "it doesn't work" or dropping in a single line from the error message is not enough. Also telling us you found something in dmesg is insufficient. Most probably post #5 is correct.
You can try to create a new user and try X with that - without root.
 
Old 03-03-2022, 07:08 AM   #7
Gold_Thing
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Deleting Xauthority file and creating a new one and using chmod 600 on it didn't fix it. When I read the message after startx fails, the log file goes to xorg.1.log rather than xorg.0.log.

For the log file, should I just copy it to a txt file and attatch it to a post?

Last edited by Gold_Thing; 03-03-2022 at 07:09 AM.
 
Old 03-03-2022, 07:12 AM   #8
Gold_Thing
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
You say you had to do something as root and that started the problem. How did you become root? Did you use gksu or sudo or su?
I opened the system monitor (Ksysguard) and suspended Network Manager. I was prompted for the root password to suspend it.
 
Old 03-03-2022, 08:06 AM   #9
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Xorg.1.log is for the X server on display 1. If you don't have multiple displays, then something is wrong in your configuration.

You can grep for lines starting with EE and post them.

Edit: most likely you have started 2 X servers, so the second one is logging to 1.
See https://askubuntu.com/q/951260/1030912

Last edited by smallpond; 03-03-2022 at 08:09 AM.
 
1 members found this post helpful.
Old 03-03-2022, 05:29 PM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by Gold_Thing View Post
Deleting Xauthority file and creating a new one
Delete it and do not create a new one. Creating an Xauthority file is for the system to do, not the user.
 
Old 03-05-2022, 10:32 AM   #11
Gold_Thing
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
These are the Xorg logs. I only use one monitor so there shouldn't be two of them.
Attached Files
File Type: log Xorg.0.log (49.7 KB, 8 views)
File Type: log Xorg.1.log (32.3 KB, 8 views)

Last edited by Gold_Thing; 03-05-2022 at 10:34 AM.
 
Old 03-05-2022, 12:22 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Gold_Thing View Post
These are the Xorg logs. I only use one monitor so there shouldn't be two of them.
Right; a new one gets created when the X server starts a second time. One thing you may try is by logging in (on a terminal) as your 'regular' user, and deleting the Xorg log files like the ones you noted here, along with any files in the the $HOME/.local/share/xorg directory. Had a nagging X issue, and just removing those log files and typing in "startx" brought things up.
 
Old 03-05-2022, 05:55 PM   #13
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Looking at the Xorg.1.log I see entries stating that all of the ati, vesa and fbdev modules failed to load. That could be what is causing the issue. You can try installing xf86-video-fbdev or xf86-video-vesa . (Not sure about the package for ati)
 
Old 03-05-2022, 06:24 PM   #14
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Fbdev and vesa are crude, unaccelerated, fallback drivers. Installing them is optional. When not installed, they cannot be loaded. As long as an optimal driver is loaded and working properly, their failure to load is a non-issue. Their most significant use is to enable any X at all for the purpose of diagnosis and/or reconfiguration, to get X working the way it's supposed to work using KMS-supported drivers modesetting, amdgpu, intel, nouveau, and several others for uncommon GPUs. Ati is not an actual driver, but a driver selector, available for determining which among 3 old drivers to load for ancient ATI GPUs. Optimal driver for OP's CPU is most likely the amdgpu DDX display driver, with competent fallback to modesetting DIX display driver if the amdgpu is not available.
 
Old 03-06-2022, 03:14 PM   #15
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by mrmazda View Post
Fbdev and vesa are crude, unaccelerated, fallback drivers. Installing them is optional. When not installed, they cannot be loaded. As long as an optimal driver is loaded and working properly, their failure to load is a non-issue. Their most significant use is to enable any X at all for the purpose of diagnosis and/or reconfiguration, to get X working the way it's supposed to work using KMS-supported drivers modesetting, amdgpu, intel, nouveau, and several others for uncommon GPUs. Ati is not an actual driver, but a driver selector, available for determining which among 3 old drivers to load for ancient ATI GPUs. Optimal driver for OP's CPU is most likely the amdgpu DDX display driver, with competent fallback to modesetting DIX display driver if the amdgpu is not available.
Thanks for the clarification and details. I will try to do a bit more research over the next few days to learn more about this topic as I now know that I need to learn a lot more
 
  


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
Cannot fix broken package using "sudo apt --fix-broken install" to fix XFCE packages for Zorin OS 16 Core AltFantasy Zorin OS 8 09-25-2021 06:51 AM
What I know, looking for what I don't know I don't know Dontpanic Linux - Newbie 18 07-23-2019 07:37 PM
LXer: Xubuntu 12.04: don't fix what is not broken LXer Syndicated Linux News 0 05-02-2012 05:20 PM
xserver-xfree86: Xserver could not start on my ATI-radeon video card Shankarrajus Debian 2 07-17-2006 07:00 AM
xserver-xorg config warning: migrating xserver-xfree86 templates doctorwebbox Debian 9 07-27-2005 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 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