[SOLVED] Autlogin loop on Raspberry Pi 3 Model B

This forum is for discussion about general software issues.

[SOLVED] Autlogin loop on Raspberry Pi 3 Model B

Postby Keanu » Sun Jan 13, 2019 12:14 am

Hello everyone,

I was trying to configure auto login for my user on my Raspberry Pi 3 B so I can start a browser and display a dashboard on boot (if possible with i3 as desktop environment).
This is not working and I am getting this log from getty@tty1.service.

$this->bbcode_second_pass_code('', 'Jan 13 00:24:15 pi login[2019]: pam_unix(login:session): session opened for user keanu by LOGIN(uid=0)
Jan 13 00:24:18 pi systemd[1]: getty@tty1.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Jan 13 00:24:18 pi systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 76.
Jan 13 00:24:18 pi systemd[1]: Stopped Getty on tty1.
Jan 13 00:24:18 pi systemd[1]: Started Getty on tty1.
Jan 13 00:24:18 pi login[2040]: pam_unix(login:session): session opened for user keanu by LOGIN(uid=0)
Jan 13 00:24:22 pi systemd[1]: getty@tty1.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Jan 13 00:24:22 pi systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 77.
Jan 13 00:24:22 pi systemd[1]: Stopped Getty on tty1.
Jan 13 00:24:22 pi systemd[1]: Started Getty on tty1.
Jan 13 00:24:22 pi login[2062]: pam_unix(login:session): session opened for user keanu by LOGIN(uid=0)
Jan 13 00:24:25 pi systemd[1]: getty@tty1.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Jan 13 00:24:25 pi systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 78.
Jan 13 00:24:25 pi systemd[1]: Stopped Getty on tty1.
Jan 13 00:24:25 pi systemd[1]: Started Getty on tty1.')

Any ideas?

$this->bbcode_second_pass_code('', 'systemctl status getty@tty1.service
Warning: The unit file, source configuration file or drop-ins of getty@tty1.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● getty@tty1.service - Getty on tty1
Loaded: loaded (/usr/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/getty@tty1.service.d
└─override.conf
Active: active (running) since Sun 2019-01-13 00:28:08 CET; 1s ago
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html
Main PID: 3488 (login)
Tasks: 0 (limit: 2212)
CGroup: /system.slice/system-getty.slice/getty@tty1.service
‣ 3488 login -- keanu

Jan 13 00:28:08 pi systemd[1]: Started Getty on tty1.
Jan 13 00:28:08 pi login[3488]: pam_unix(login:session): session opened for user keanu by LOGIN(uid=0)')

$this->bbcode_second_pass_code('', 'ls -al /etc/systemd/system/getty.target.wants/
total 8
drwxr-xr-x 2 root root 4096 Jan 13 00:05 .
drwxr-xr-x 8 root root 4096 Jan 13 00:05 ..
lrwxrwxrwx 1 root root 38 Jan 13 00:05 getty@tty1.service -> /usr/lib/systemd/system/getty@.service')

$this->bbcode_second_pass_code('', 'cat /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
Type=idle
ExecStart=
ExecStart=-/usr/bin/agetty --autologin keanu --noclear %I 38400 linux')

$this->bbcode_second_pass_code('', 'cat ~/.bash_profile
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx /usr/bin/i3
fi')

What am I doing wrong?

Cheers
Keanu
Last edited by Keanu on Sun Jan 13, 2019 1:03 am, edited 1 time in total.
Keanu
 
Posts: 3
Joined: Sat Jan 12, 2019 11:47 pm

Re: Autlogin loop on Raspberry Pi 3 Model B

Postby Keanu » Sun Jan 13, 2019 12:54 am

Turns out you have to install xorg-server as well. Now xorg can't finde the screen, which is the official 7" touch screen.

$this->bbcode_second_pass_code('', '
[ 186.307] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_312
[ 186.308] (II) no primary bus or device found
[ 186.308] (II) LoadModule: "glx"
[ 186.308] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 186.322] (II) Module glx: vendor="X.Org Foundation"
[ 186.322] compiled for 1.20.3, module version = 1.0.0
[ 186.322] ABI class: X.Org Server Extension, version 10.0
[ 186.322] (==) Matched modesetting as autoconfigured driver 0
[ 186.322] (==) Matched fbdev as autoconfigured driver 1
[ 186.322] (==) Assigned the driver to the xf86ConfigLayout
[ 186.322] (II) LoadModule: "modesetting"
[ 186.323] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 186.327] (II) Module modesetting: vendor="X.Org Foundation"
[ 186.327] compiled for 1.20.3, module version = 1.20.3
[ 186.327] Module class: X.Org Video Driver
[ 186.327] ABI class: X.Org Video Driver, version 24.0
[ 186.327] (II) LoadModule: "fbdev"
[ 186.328] (WW) Warning, couldn't open module fbdev
[ 186.328] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 186.328] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 186.328] (WW) Falling back to old probe method for modesetting
[ 186.329] (EE) open /dev/dri/card0: No such file or directory
[ 186.329] (WW) Falling back to old probe method for modesetting
[ 186.329] (EE) open /dev/dri/card0: No such file or directory
[ 186.329] (EE) No devices detected.
[ 186.329] (EE)
Fatal server error:
[ 186.329] (EE) no screens found(EE)
[ 186.329] (EE)
')
Keanu
 
Posts: 3
Joined: Sat Jan 12, 2019 11:47 pm

Re: Autlogin loop on Raspberry Pi 3 Model B

Postby Keanu » Sun Jan 13, 2019 1:02 am

I solved it.

$this->bbcode_second_pass_code('', '
pacman -S xf86-video-fbdev lxde xorg-xinit dbus
')
Keanu
 
Posts: 3
Joined: Sat Jan 12, 2019 11:47 pm


Return to General

Who is online

Users browsing this forum: No registered users and 8 guests