You are not logged in.
I'm still very new to arch and int doing some cursory searches, I realized I don't know how to search for this, so sorry if this question already exists. Search terms are a valid and welcome answer to this, I just don't know getty/tty/console well enough to know how to phrase things.
I am running arch on my raspberrypi and am connecting to the console via bluetooth. I found I had to start getty to get the console working and I used the command 'systemctl start getty@ttyAMA0' to do so. However, I realized that this was starting the console at 38400 and I needed 9600. So for a quick fix, I edited /usr/lib/systemd/system/getty@.service so that the AgentExe now had 9600 instead of 38400, restart the service and everything was hunky dory.
Now that I got that working though, I'm wondering two things:
1. How do I get this to happen at startup. I issued the command 'systemctl enable getty@ttyAMA0.service' to no avail.
2. How do I get ttyAMA0 to always be 9600, but not mess with the other ttys?
From a tutorial on the interwebs (http://scruss.com/blog/2012/12/18/addin … pberry-pi/) I set my /boot/cmdlin.txt console options to be 9600, but this does not appear to have changed anything.
Thanks in advance!
Last edited by cthrax (2013-01-14 02:09:25)
Offline
For number two, you should have separate service files, like getty@.service as the "normal" one, then getty9600@.service which you've editted for your purposes.
Are all raspberry pis still ARM? If so, you should be asking this on the archlinuxARM forums not here, as that is a different distro.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ah that makes sense on both accounts, sorry for the mispost. I got to the raspberrypi distro from the main-site, so I thought it would go here as well.
If I may though, since it seems distro agnostic, do I need to change the [Install] section to something else in order to enable this service separately from the getty@.service? I copied the file as suggested and for 'systemctl start btConsole' it works beautifully, but when I try to 'systemctl enable btConsole' it says "Failed to issue method call: File exists".
Presently, the [Install] section is "Alias=getty.target.wants/getty@tty1.service". I was concerned about changing that since it refers to tty1, which seems important.
Thanks a lot for the help!
Offline
Your normal one should have that, but the AMA0 shouldn't - otherwise you'll have the problem you have now: you can only enable one at a time.
All "enabling" a service does is create a link in /etc/systemd/* to the service file. If you want the same service starting twice you'd need two symlinks (with different names) to the same service file - here you want two different services starting, so you'll also need two symlinks, but to different files. Right now you're asking it to create a symlink with a name of an already existing symlink - and you don't want to replace your tty1 service.
So I'd change the install portion of your AMA0 service file. The name is technically irrelevant to it's function, but a sensible name will make logs a lot easier to read. I'd go with getty.target.wants/getty@AMA0.service.
Personally, I'd also change the target portion as well to something like "Alias=multi-user.target.wants/getty@AMA0.service". I'm still learning how this all works, but I'd be hesitant to put something experimental in the getty.target.wants folder as if it fails I'm not sure whether it could cause problems booting. If it is in multi-user.target.wants, then worst case scenario, you can still boot to another target like rescue.target. If this is confusing, don't bother trying to make sense of it as I may be spouting nonsense - but in short "Alias=multi-user.target.wants/getty@AMA0.service" would definitely be safe and seems the most reasonable place for your new service - getty@tty will still stay where it is.
Last edited by Trilby (2013-01-13 23:29:12)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline