Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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:
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.
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.
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
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?
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.
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.
[/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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.