Stefan Dirsch <sndirsch@suse.de> writes:
On Mon, Nov 11, 2019 at 09:06:36AM +0000, Dan Cermak wrote:
Hi list,
about a week ago I have rebooted into the (at that point) newest snapshot and since then I can no longer use xinit to launch i3 on Tumbleweed from a tty as an ordinary user. `startx` fails with the following error message:
xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
(this is also the only error in ~/.local/share/xorg/Xorg.0.log)
I seriously doubt this logfile has been created by xinit or startx. IIRC gnome writes the X logfile there for the Xserver which is being used for the usersession itself (gdm greeter uses its own Xserver or Wayland).
You can very well doubt that, but I wouldn't have posted it here if 1.) startx itself hadn't pointed me to this logfile, 2.) the logfile was consistently being filled with content on each startx and 3.) I have already used this logfile for debugging purposes in the past. gnome/gdm is definitely not creating this file, because it is not installed on my system, as is no other display manager.
To make this even stranger: switching the graphics driver to Nvidia via `prime-select nvidia` makes X start again (unfortunately with all the Nvidia related downsides).
Switching back to the intel driver via `prime-select intel` breaks `startx` again.
This sounds weird, since the only change is an additional X config file, so NVIDIA GPU is being used for rendering instead of Intel GPU.
Yes it is very weird. That's why I asked on this list.
Does anyone have an idea what might be the cause of this?
Well, I would have hoped people have stopped using xinit/startx nowadays given that we no longer support it since decades. :-( Just use a proper displaymanager like gdm, sddm, lightdm, xdm like everyone is doing and you'll be happy. Even sound and access to nvidia devices for 3D rendering will just work ...
Stefan
Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE Software Solutions Germany GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ---------------------------------------------------------------- (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer ----------------------------------------------------------------
-- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nuremberg Germany (HRB 36809, AG Nürnberg) Managing Director: Felix Imendörffer