[OE-core] [PATCH v2] serial-getty service: Add linux as default TERM

Joel Fernandes joelf at ti.com
Sun May 4 20:32:46 UTC 2014


On 05/04/2014 05:17 AM, Jonathan Liu wrote:
> On 4/05/2014 9:36 AM, Joel Fernandes wrote:
>> In poky with systemd enabled, vt102 is selected for getty
>> causing user to experience a very crappy terminal. Default
>> TERM to linux.
>>
>> Signed-off-by: Joel Fernandes <joelf at ti.com>
>> ---
>> v2: Dropped PR bump
>>
>>   .../systemd-serialgetty/serial-getty at .service      |    1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git
>> a/meta/recipes-core/systemd/systemd-serialgetty/serial-getty at .service
>> b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty at .service
>> index 865de34..eb2280b 100644
>> --- a/meta/recipes-core/systemd/systemd-serialgetty/serial-getty at .service
>> +++ b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty at .service
>> @@ -20,6 +20,7 @@ Before=getty.target
>>   IgnoreOnIsolate=yes
>>     [Service]
>> +Environment="TERM=linux"
>>   ExecStart=-/sbin/agetty --keep-baud %I @BAUDRATE@ $TERM
>>   Type=idle
>>   Restart=always
> I would prefer:
> Environment="TERM=xterm"
> ExecStart=-/sbin/agetty -8 --keep-baud %I @BAUDRATE@ $TERM
> 
> "xterm" as it is much more widely supported than "linux". Also, PuTTY
> uses "xterm" by default.
> -8 to assume the tty is 8-bit clean and disable parity detection. I have
> had some issues where parity sometimes gets enabled even though the
> serial line is 8-bit clean and I end up with garbage on the serial
> terminal.

Fair enough, I tested and it works fine for me. Will submit a patch.

-Joel



More information about the Openembedded-core mailing list