I need to run GDM on raspberry pi 2 with a fresh arch linux. I installed:
xf86-video-fbdev xorg-xinit gdm
I created a
But when I use
startx I get some text then a black screen.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
GDM is a display manager. As described in that wikipedia article:
In the X Window System, an X display manager is a graphical login manager which starts a session on an X server from the same or another computer.
A display manager presents the user with a login screen. A session starts when a user successfully enters a valid combination of username and password.
Genrally what happens after you log in is the DM then runs your
But this is not how you are using it. You are logging in on the console, then trying to start X and run GDM as if it were a desktop environment, which is a very different thing.
If you wish to use GDM as a display manager (i.e., a graphical login), you will have to enable that through systemd, probably:
sudo systemctl set-default graphical.target
Should work, although I am not an arch user and do not know any potential caveats about their configuration.
However, you will still need something other than a display manager listed in your xinitrc.
According to the ArchWiki article on xinitrc you should have copied the working default in
/etc/X11/xinit/xinitrc to your
~/.xinitrc and modified that to meet your requirements because the former has some stuff that you need, specifically:
if [ -d /etc/X11/xinit/xinitrc.d ] ; then for f in /etc/X11/xinit/xinitrc.d/?* ; do [ -x "$f" ] && . "$f" done unset f fiFurther reading of that specific article does look to be very helpful in this area.