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.
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
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.
I did it: I installed some packages from xorg and now when I type startx it starts xterm, and in xterm I type
systemctl start gdm.service
Get black screen, but after 1 minute it shows a screen with gdm finally.
gdm(gnome display manager) is an alternative to
kdm(the first is the default for a Raspbian install IIRC). That being the case I'd expect some part of the package handling system to have at least woken up at one point to ask "Do you want to use gdm or <insert current display manager utility here>, dear superuser?"