OpenBSD Journal

The return of startx(1) for non-root users [with some caveats]

Contributed by rueda on from the your-mileage-may-vary dept.

Mark Kettenis (kettenis@) has recently committed changes which restore a certain amount of startx(1)/xinit(1) functionality for non-root users. The commit messages explain the situation:

CVSROOT:	/cvs
Module name:	src
Changes by:	kettenis@cvs.openbsd.org	2019/09/15 06:25:41

Modified files:
	etc/etc.amd64  : fbtab 
	etc/etc.arm64  : fbtab 
	etc/etc.hppa   : fbtab 
	etc/etc.i386   : fbtab 
	etc/etc.loongson: fbtab 
	etc/etc.luna88k: fbtab 
	etc/etc.macppc : fbtab 
	etc/etc.octeon : fbtab 
	etc/etc.sgi    : fbtab 
	etc/etc.sparc64: fbtab 

Log message:
Add ttyC4 to lost of devices to change when logging in on ttyC0 (and in
some cases also the serial console) such that X can use it as its VT
when running without root privileges.

ok jsg@, matthieu@
CVSROOT:	/cvs
Module name:	xenocara
Changes by:	kettenis@cvs.openbsd.org	2019/09/15 06:31:08

Modified files:
	xserver/hw/xfree86/common: xf86AutoConfig.c 

Log message:
Add modesetting driver as a fall-back when appropriate such that we can
use it when running withour root privileges which prevents us from
scanning the PCI bus.

This makes startx(1)/xinit(1) work again on modern systems with inteldrm(4),
radeondrm(4) and amdgpu(4).  In some cases this will result in using a
different driver than with xenodm(4) which may expose issues (e.g. when
we prefer the intel Xorg driver) or loss of acceleration (e.g. older
cards supported by radeondrm(4)).

ok jsg@, matthieu@

(Comments are closed)


Latest Articles

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]