ayekat / localdir

Personal configuration files
65 stars 3 forks source link

Improve starting X11 #26

Closed ayekat closed 4 years ago

ayekat commented 6 years ago

Currently, xinit on its own doesn't quite work as correctly as it used to (either it doesn't start X at all, or it does, but random things like the audio¹ are broken). As a consequence, I have to resort to using startx, which is annoying, because it completely ignores the XINITRC environment variable, and thus my invocation looks something like this:

exec startx .local/etc/X11/xinitrc

The reason for xinit not working correctly on its own is probably related to setting up Xauth and something with the virtual terminal (VT), so some additional arguments are usually required (which startx is there to handle):

grawity > what I've always used is xinit "$@" -- "$DISPLAY" "$vt" -noreset -auth "$XAUTHORITY" -quiet -background none
grawity > $vt being just "vt$(fgconsole)"

Possible ways to improve starting X11 are:

  1. Repackage xorg-xinit on Arch Linux to patch in support for the XINITRC environment variable in startx (as this fix would be very Arch Linux specific, certainly also ask upstream to have it fixed globally).
  2. Consider switching to earnestly's sx, an alternative to xinit and startx (experimental, according to him).
  3. Write an xinit (or even X client&server invocation) wrapper myself.

¹ This is actually really awkward: I get access permission errors for /dev/snd/controlC0 from X, but not in the TTY.

ayekat commented 6 years ago
  1. Repackage xorg-xinit on Arch Linux to patch in support for the XINITRC environment variable in startx (as this fix would be very Arch Linux specific, certainly also ask upstream to have it fixed globally).

https://gitlab.com/ayekat/PKGBUILDs/commit/562ca6491bf2cc9a704aa7b81668d311b3710192

But as stated in that commit message, it's not a long-term solution. I'm strongly in favour of asking upstream to fix it as well. If they refuse to do so, maybe search for an alternative option.

ayekat commented 6 years ago

Reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=107308

EDIT: FreeDesktop.org moved their bugtracking to a new place: https://gitlab.freedesktop.org/xorg/app/xinit/issues/14

ayekat commented 4 years ago

I have recently started using GDM on my desktop machine at home (which unfortunately broke after a couple of days), and I've made good experiences with it so far (I mean—it allows me to log in, and it looks pretty :smile:)

Also, for the startx approach, I'm already in the business of repkg'ing software anyway (and that will not end soon or at all), so I guess I can go ahead and consider this issue solved (at least in the context of this repository).

Closing as "meh, it's fine".