You are not logged in.

#1 2016-06-14 15:39:10

tmathmeyer
Member
From: Kirkland, WA
Registered: 2013-09-17
Posts: 19

logging in _without_ getty

Just for fun I'm trying to make a simple replacement for getty that lets me load a background image onto the screen. I've managed to get PAM login (which should communicate with systemd-logind) to verify passwords and I can set up an environment and start a shell just fine. However when I start xorg (using startx), neither my mouse or my keyboard work. when I cat my Xorg.0.log, I get the following error messages:

[    23.437] (EE) systemd-logind: failed to get session: PID 385 does not belong to any known session
[    23.454] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    23.454] (EE) Failed to load module "vesa" (module does not exist, 0)
[    23.558] (EE) evdev: Power Button: Unable to open evdev device "/dev/input/event4".
[    23.558] (EE) PreInit returned 2 for "Power Button"
[    23.559] (EE) evdev: Video Bus: Unable to open evdev device "/dev/input/event13".
[    23.559] (EE) PreInit returned 2 for "Video Bus"
[    23.559] (EE) evdev: Sleep Button: Unable to open evdev device "/dev/input/event3".
[    23.559] (EE) PreInit returned 2 for "Sleep Button"
[    23.561] (EE) evdev: Integrated Camera: Unable to open evdev device "/dev/input/event12".
[    23.561] (EE) PreInit returned 2 for "Integrated Camera"
[    23.563] (EE) evdev: ELAN Touchscreen: Unable to open evdev device "/dev/input/event11".
[    23.563] (EE) PreInit returned 2 for "ELAN Touchscreen"
[    23.564] (EE) evdev: AT Translated Set 2 keyboard: Unable to open evdev device "/dev/input/event0".
[    23.564] (EE) PreInit returned 2 for "AT Translated Set 2 keyboard"
[    23.565] (EE) synaptics: SynPS/2 Synaptics TouchPad: no synaptics event device found
[    23.565] (EE) synaptics: SynPS/2 Synaptics TouchPad: Synaptics driver unable to detect protocol
[    23.565] (EE) PreInit returned 11 for "SynPS/2 Synaptics TouchPad"
[    23.566] (EE) evdev: TPPS/2 IBM TrackPoint: Unable to open evdev device "/dev/input/event15".
[    23.566] (EE) PreInit returned 2 for "TPPS/2 IBM TrackPoint"
[    23.567] (EE) evdev: ThinkPad Extra Buttons: Unable to open evdev device "/dev/input/event1".
[    23.567] (EE) PreInit returned 2 for "ThinkPad Extra Buttons"

The fbdev and vesa errors make sense, as this is a laptop and I use intel drivers (this happens on normal startx as well).
What I think is happening is that at some point I'm changing PID and logind doesn't like it, or I'm forgetting to do something with PAM.
Does anyone have any ideas as to what I've messed up? You can see the source code here: https://github.com/tmathmeyer/ttydm (specifically src/ttydm.c:175)

Offline

Board footer

Powered by FluxBB