Hello,
i tried the following 2 Distros with my RaspberryPi 3b+:
The 1. Distro is working fine and Amiberry runs great but every time i quit amiberry or i try to use another boot option without autologin into console, then i can't use the keyboard.
I get the screen with please enter login to continue but i can't enter anything.
Only if i change in dietpi.txt the boot option 7=Console+auto root login then the keyboard works.
Same problem with the 2. distro.
What i have to do to change all boot options to autologin?
At the moment my only possible way to change a file is with ftp-tool like FileZilla. I copy the dietpi.txt to pc, change it and overwrite the file on pi.
The implemented way that is described at your homepage with root:[email protected] don't work too. I tried different IP's ,including the IP that DietPi got from my fritzbox, but no way to get into it. Only FileZilla gets access but with FileZilla i can only transfer files but i can't get access to dietpi-config or another menu with it.
Sorry, i forgot to say that i have the problem with the latest Version from DietPi-Homepage i downloaded yesterday. Version 6.22.3
@Trigger58
Many thanks for reporting.
Okay if you tried DietPi_RPi_ARMv6-Stretch_Amiberry + DietPi_RPi_ARMv6-Stretch then it has not to do with latest changes since the first is much older then the second (which I updated a few days ago).
You did hit return one time right? Our login banner overprints the initial login: input field, to you need to hit return one time to have it appearing.
Aside from that very strange since the keyboard itself otherwise works fine. Did you try different USB ports or a different keyboard?
Good Morning,
i tried it with hitting one time return but nothing happens. I can press every key but i get no response.
I tried 2 keyboards with usb cable. a cheap and an expensive one. both with the same result.
Both are working only if i use the the autologin at startup.
it seems that in the other boot options the keyboard driver was not loaded or something else.
But there is a strange thing. during loading the bootoption with amiberry i can hit ESC key and then the screen change the color. this means that the pi get a response from keyboard but after starting in amiberry and then i quit it, the login screen appears and the keyboard don't work.
UPDATE:
i flashed now different microsd-cards and usb-sticks. i got the same result at all cards and sticks. no keyboard function during login screen.
i tried all usb-ports at pi too. no change.
UPDATE2:
I got it to work. Finally.
There the steps i did:
It seems that there is something wrong with fastboot. i have the same Problem with normal dietpi Image so could it be that there is fastboot enabled too?
@Trigger58
I think now I understand.
You only face the non-functional keyboard after exiting AmiBerry from fastboot mode, right? So on first boot login works but when you install AmiBerry, enable fastboot, then booting into AmiBerry and exiting to console, keyboard does not work?
dietpi.txt.I guess it has to do with the following:
[email protected] however is enabled on TTY1 as well. I guess either this service fails when AmiBerry is active (and bound to TTY1) or AmiBerry fastboot suppresses it actively from starting.[email protected] being active, no login is possible, since no agetty is listening to STDIN, that for sure.[email protected] is reached, either configured to require login or doing this automatically. So e.g. AmiBerry standard boot is starting as child process of [email protected] (agetty is the actual process binary). So when exiting AmiBerry you land in the login console that was already active as parent.AmiBerry fastboot is intended to interfere at very early boot stage and skip all the agetty stuff to allow starting that fast. Also preventing [email protected] makes sense, so there are no two separate processes listening to the same TTY for STDIN. But what indeed would be great is:
[email protected] should be started so users are presented with the default login prompt.@midwan @Fourdee
Perhaps you have an idea how to achieve that?
@MichaIng
I've noticed this problem also, but only on DietPi so far.
I haven't had time to look for a solution however... :-/
@midwan
Possibly the usually enabled systemd-logind does the getty spawn on other systems.
@Trigger58
You can access the system via SSH right, so e.g. using PuTTY to login from remote Windows system? Otherwise skip the following, as we then need to get SSH running first.
Could you please try to enable systemd-logind:
systemctl unmask systemd-logind
systemctl --now enable systemd-logind
Then boot into fastmode (autostart option 6) and test if exiting then brings you into a login prompt. In case it doesn't (getty on TTY1 does not spawn automatically), then you can switch to TTY2 by pressing F2 button. systemd-logind should then automatically spawn a getty (login prompt) there. From there you can revert autostart option.
As said first assure that SSH works, just in case.
@MichaIng
In my tests, SSH does work normally. And so do other TTYs, if you switch to them (e.g. with Ctrl-Alt-F2) you can login normally.
Hi,
I can Test it. SSH is working all time but i get only access through a PC Tools called FileZilla. The Tools in Dietpi to get access from a PC dont work. I cant get access through them.
I hole that the procedure you wrote works. Otherwise i cant get access to my System anymore.
--
Diese Nachricht wurde von meinem Android Mobiltelefon mit WEB.DE Mail gesendet.Am 12.04.19, 15:39, MichaIng notifications@github.com schrieb:
@midwan
Possibly systemd-logind does the getty spawn on other systemd.
@Trigger58
You can access the system via SSH right, so e.g. using PuTTY from remote Windows system? Otherwise skip the following, as we then need to get SSH running first.
Could you please try to enable systemd-logind:
systemctl unmask systemd-logind
systemctl --now enable systemd-logind
Then boot into fastmode (autostart option 6) and test if exiting then brings you into a login prompt. In case it doesn't (getty on TTY1 does not spawn automatically), then you can switch to TTY2 by pressing F2 button. systemd-logind should then automatically spawn a getty (login prompt) there. From there you can revert autostart option.
As said first assure that SSH works, just in case.
鈥擸ou are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/MichaIng/DietPi","title":"MichaIng/DietPi","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/MichaIng/DietPi"}},"updates":{"snippets":[{"icon":"PERSON","message":"@MichaIng in #2703: @midwan \r\nPossibly systemd-logind does the getty spawn on other systemd.\r\n\r\n@Trigger58 \r\nYou can access the system via SSH right, so e.g. using PuTTY from remote Windows system? Otherwise skip the following, as we then need to get SSH running first.\r\n\r\nCould you please try to enable systemd-logind:\r\n\r\nsystemctl unmask systemd-logind\r\nsystemctl --now enable systemd-logind\r\n\r\n\r\nThen boot into fastmode (autostart option 6) and test if exiting then brings you into a login prompt. In case it doesn't (getty on TTY1 does not spawn automatically), then you can switch to TTY2 by pressing F2 button. systemd-logind should then automatically spawn a getty (login prompt) there. From there you can revert autostart option.\r\n\r\nAs said first assure that SSH works, just in case."}],"action":{"name":"View Issue","url":"https://github.com/MichaIng/DietPi/issues/2703#issuecomment-482578190"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/MichaIng/DietPi/issues/2703#issuecomment-482578190",
"url": "https://github.com/MichaIng/DietPi/issues/2703#issuecomment-482578190",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
I installed PuTTY und conntected to Pi.
Then i used your commands but i dont know if the second command was successful.

So i changed autoboot to 6 and made a reboot. Amiberry starts fast. After quitting Amiberry it happens nothing. The bootprocess was killed during start from amiberry so i needed the CTRL-ALT-F2 combo to get access.
TTY1 dont work.
Ok, i have to correct my last answer. Now it seems to work.
To start in fastboot and then quit amiberry direct after loading is not helpful. Now i waited 2 Minutes and then i quit amiberry and hey, now i got a login screen :)
@Trigger58
Thanks for testing. Jep the second command above was expected to fail since systemd-logind is (usually) a static service. So it is always enabled, if not masked. I just added this as kind of failsafe.
I think AmiBerry does not really kill the boot process, but it goes on in background, printing to TTY3 (you should see boot process output when pressing F3, if still done). When exiting too fast, I guess systemd-logind is not yet at a stage to spawn on TTY1 automatically. When you hit F2 then I guess boot was already far enough to allow getty spawn by logind. And if you wait a bid longer than it is already when exiting AmiBerry.
However long story short:
As well on our pre-installed AmiBerry image(s) we need to have logind unmasked. I can update our RPi AmiBerry image this weekend, only need to know about the install procedure outside of DietPi-Software.
@Fourdee
How do/did you create this image? Simply create (or use as basis) the regular RPi image and place AmiBerry code + service manually (+ symlink to enable) + autostart option to 6 in dietpi.txt?
Okay fix merged for v6.23: https://github.com/MichaIng/DietPi/pull/2718