LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-16-2019, 06:35 AM   #1
Fruchtenstein
LQ Newbie
 
Registered: Nov 2013
Location: Russia
Distribution: Ubuntu. And FreeBSD, too.
Posts: 12

Rep: Reputation: Disabled
Can't start Xorg after upgrade to Debian Buster


Hi, folks,

I never was good at configuring Xorg I've upgraded my PC from Debian Stretch to Buster two days ago. The process was pretty straightforward, but I can't run my favorite window manager anymore. I know they have switched from Xorg to Wayland in this release, but the situation is not that simple.

My setup is: a PC with Intel chipset and i915 video. Two monitors, identified as VGA-1 and HDMI-2, both with equal resolutions 1920x1080.

I can run all kinds of Gnome from gdm3, including Gnome under Xorg.

I can run Plasma from gdm3, but I can see the desktop only on VGA-1.

Other desktop managers, like sddm and slim, fail to show login form.

I can run startx from command line when gdm is down, but I don't see anything on displays. So, if I leave .xinitrc empty, I can only see my own command line and then I get 'Server terminated successfully' in Xorg log file. So far, so good. But if I add something to .xinitrc, like 'xterm', and run startx again, I see the starting messages of Xorg and then nothing else. It seems that Xterm is running, but is not visible. If I try to switch to another virtual terminal, Xorg crashes with messages:

Quote:
[ 17344.449] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 17344.496] (II) systemd-logind: got pause for 13:64
[ 17344.496] (II) systemd-logind: got pause for 13:66
[ 17344.496] (II) systemd-logind: got pause for 13:69
[ 17344.496] (II) systemd-logind: got pause for 226:0
[ 17344.497] (II) systemd-logind: got pause for 13:70
[ 17344.497] (II) systemd-logind: got pause for 13:68
[ 17344.497] (II) systemd-logind: got pause for 13:67
[ 17344.497] (II) systemd-logind: got pause for 13:71
[ 17344.497] (II) systemd-logind: got pause for 13:65
[ 17346.258] (II) systemd-logind: got resume for 13:64
[ 17346.275] (II) systemd-logind: got resume for 13:66
[ 17346.291] (II) systemd-logind: got resume for 13:69
[ 17346.291] (II) systemd-logind: got resume for 226:0
[ 17346.291] (II) AIGLX: Resuming AIGLX clients after VT switch
[ 17346.301] (EE) modeset(0): failed to set mode: Invalid argument
When I try to run Xorg using xinit instead of startx, it fails right now with the following message:

parse_vt_settings: Cannot open /dev/tty0 (Permission denied).

But Gnome and, partially, KDE manage to run under Xorg! There must be a way to run it. Any ideas?
 
Old 07-17-2019, 12:01 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

modern X11 like what is on Buster should work without any custom configuration. Do you have something strange in /etc/X11/xorg.conf of in /etc/X11/xorg.conf.d/*? If so, please try removing it.

It would also be useful to know more about your graphics setup. Install inxi (if you don't already have it), then run and post the output of the following:
Code:
inxi --graphics
Evo2.
 
1 members found this post helpful.
Old 07-17-2019, 02:58 AM   #3
Fruchtenstein
LQ Newbie
 
Registered: Nov 2013
Location: Russia
Distribution: Ubuntu. And FreeBSD, too.
Posts: 12

Original Poster
Rep: Reputation: Disabled
No, there are no config files. I did try to create a config file with 'Xorg --configure' and play with settings, but it didn't help and I deleted the file.

Code:
$ inxi --graphics

Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Haswell Desktop v: 4.5 Mesa 18.3.6

Last edited by Fruchtenstein; 07-17-2019 at 03:35 AM.
 
Old 07-17-2019, 03:16 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

so that looks fine. I'm trying to understand what the problem is.

Quote:
I can run all kinds of Gnome from gdm3, including Gnome under Xorg.

I can run Plasma from gdm3, but I can see the desktop only on VGA-1.

Other desktop managers, like sddm and slim, fail to show login form.
Is the issue that only one of your displays works when using gdm3 and a secondary problem is that X crashes when you try to run it with startx?

Evo2.

P.S. Please use [code] tags when displaying text from a terminal not [quote] tags

Last edited by evo2; 07-17-2019 at 03:18 AM. Reason: P.S.
 
1 members found this post helpful.
Old 07-17-2019, 03:35 AM   #5
Fruchtenstein
LQ Newbie
 
Registered: Nov 2013
Location: Russia
Distribution: Ubuntu. And FreeBSD, too.
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Is the issue that only one of your displays works when using gdm3 and a secondary problem is that X crashes when you try to run it with startx?
Well, not really. When Xorg is started from gdm with window managers other than Gnome and KDE, the screen remains black.

When Xorg is started from command line, it kinda works without errors, but the image on the screen remains unchanged, just text console with Xorg startup messages. If at this moment I try to switch to another virtual console, Xorg exits with error message.

However, when Xorg is started from gdm with Gnome, it works correctly. When it is started from gdm with KDE Plasma, only one monitor of the two works.
 
Old 07-18-2019, 12:36 AM   #6
Fruchtenstein
LQ Newbie
 
Registered: Nov 2013
Location: Russia
Distribution: Ubuntu. And FreeBSD, too.
Posts: 12

Original Poster
Rep: Reputation: Disabled
Did some more research. If I run 'startx xterm', what I see on the screen is just plain text console with some typical messages of running Xorg. However, if I log in via SSH and make a screenshot, I see a desktop with xterm.
https://imgur.com/74QFRLe
 
Old 07-18-2019, 12:48 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I'm really at a loss as to what is going on. So gnome-shell and KDE sessions both work fine when starting with gdm, but starting just a window manager does not. I run just a window manager started from my .xsession with gdm and have no issues on two machines that I recently upgraded to Buster. Did your upgrade really complete correctly?

Evo2.
 
Old 07-18-2019, 02:42 AM   #8
Fruchtenstein
LQ Newbie
 
Registered: Nov 2013
Location: Russia
Distribution: Ubuntu. And FreeBSD, too.
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Did your upgrade really complete correctly?
I thought so, till I started to run my window manager.
 
Old 07-18-2019, 02:58 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

ok so have you tried checking your package manager? Eg
Code:
dpkg --audit
dpkg --configure --pending
apt update
apt upgrade
etc.

Evo2.
 
Old 07-18-2019, 04:56 AM   #10
Fruchtenstein
LQ Newbie
 
Registered: Nov 2013
Location: Russia
Distribution: Ubuntu. And FreeBSD, too.
Posts: 12

Original Poster
Rep: Reputation: Disabled
No, no, as far as packages are concerned, everything is fine. There's a number of packages of non-Debian origin, but neither of them has 'xorg' in its name.
 
Old 07-18-2019, 07:47 PM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

well, I don't think I can provide any help since I have no experience running X without a display manager and the output from "xini --graphics" indicates that both displays are working correctly. For all I know what you are seeing is the expected behaviour in buster.

Evo2.
 
Old 07-19-2019, 01:11 AM   #12
Fruchtenstein
LQ Newbie
 
Registered: Nov 2013
Location: Russia
Distribution: Ubuntu. And FreeBSD, too.
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for help, evo2! I think I did it, using https://wiki.archlinux.org/index.php/Intel_graphics. First, I created xorg.conf and enabled "intel" driver:

Code:
Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
EndSection
And here it is! It gave me two identical pictures on two monitors. Then I added a bit more to make them one single desktop:

Code:
Section "Monitor"
    Identifier  "VGA1"
    Option      "Primary" "true"
EndSection
Section "Monitor"
    Identifier  "HDMI2"
    Option      "LeftOf" "VGA1"
EndSection
And here is my favorite StumpWM
 
Old 07-19-2019, 01:44 AM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I'm quite surprise you had to do that. Had you tried using xrandr? That's how I configure multiple displays if I'm not using a fancy desktop.

What is the output of "inxi --graphics" now?

Evo2.
 
Old 07-19-2019, 02:02 AM   #14
Fruchtenstein
LQ Newbie
 
Registered: Nov 2013
Location: Russia
Distribution: Ubuntu. And FreeBSD, too.
Posts: 12

Original Poster
Rep: Reputation: Disabled
Yes, I use xrandr to rotate one of my monitors to portrait mode.

The output of "inxi --graphics" has not changed:
Code:
Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Haswell Desktop v: 4.5 Mesa 18.3.6
 
Old 07-19-2019, 02:37 AM   #15
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by Fruchtenstein View Post
Yes, I use xrandr to rotate one of my monitors to portrait mode.
Hmm, but it wouldn't turn your second display on etc? You could only get that to work with the xorg.conf.

The output of "inxi --graphics" has not changed:
Code:
Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Haswell Desktop v: 4.5 Mesa 18.3.6
[/QUOTE]
Hmm, that really makes me think you shouldn't need that xorg.conf. Just turning displays on and off, and positioning them with xrandr should be enough.

Evo2.
 
  


Reply

Tags
debian, xorg



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
[SOLVED] [Solved] Debian 9 Stretch to Debian 10 Buster upgrade catastrophe sudowtf Debian 2 07-12-2019 10:55 AM
LXer: How to Upgrade Debian 9 Stretch to Debian 10 Buster LXer Syndicated Linux News 0 07-07-2019 05:54 PM
LXer: Debian 11 "Bullseye" and Debian 12 "Bookworm" Are Coming After Debian 10 "Buster" LXer Syndicated Linux News 0 04-18-2018 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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