On 6/13/23 20:21, Philip Webb wrote:
My new machine has no problem with graphics using System Rescue etc
nor using 'startx' as root with Gentoo, but it refuses to start as user.
I've had a series of errors :
parse_vt_settings : can't open /dev/tty0 (permission denied)
after adding my user to 'tty input' in 'group' :
can't open virtual console 7 : permission denied
after adding 'elogind' to 'default' runlevel & starting it :
xf86EnableIO : failed to enable I/O ports 0000-03ff
(operation not permitted)
yes, my user is in the 'video' group & 'xorg-server' has USE="elogind" .
In my current machine, there is a /dev/fb0 with permission 660 .
but there is no such device in the new machine.
I've looked at several "solved" cases of the same error messages,
but they don't seem to help my problem.
Can anyone offer possible solutions ?
what does "ll /dev/tty*" show? I see lots of them, including 0,
although I can't say which are relevant. It does seem odd if you don't
have any. Have you compared kernel config on the machine that works and
the one that doesn't?
what does /var/log/Xorg.0.log show? It's likely to be more voluminous
than output to console.
what's in ~/.xinitrc? I don't actually suspect anything there, but it
might be relevant.
In my case, X is started on the same virtual console it is invoked from,
but I don't remember where the change from always using 7 shows up in
any config file. However, that does suggest some permission error MIGHT
be relevant (but no guarantees.)