This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux FS: login with caps lock enabled

Hello! I'm using the linux file system that came with the BeagleBone we used to develop our own board. The file system is based on TI's release named ti-sdk-am335x-evm-07.00.00.00.

We are experiencing a strange behavior while logging in. If we type 'root', everything works fine and if we type something else, the expected error occurs. The only situation where this doesn't apply is if we type 'ROOT'.

With all upper case letters, not only the log in is validated, but the whole interface is switched to uppercase letters too... Even more problematic is the fact that from this point on, until the next reboot, there is nothing we can do (so far, at least) to make the console print lower case letters again. Commands works when they are typed with lower case, even though the console shows the input characters otherwise and all output is also in upper case.

Is this a default behavior? How can one prevent this from happening? Thanks in advance.

I'm pasting below an example for a better understanding:

Login: ROOT
ROOT@LOCAL:~# DATE # LOWER CASE
THU JAN 1 00:17:53 UTC 1970
ROOT@LOCAL:~# DATE # UPPER CASE
-SH: DATE: COMMAND NOT FOUND

  • Hi,
    Yes, its default behavior.
  • Is there anything I can do to disable it, like a configuration somewhere that can be turned off?
  • Hello Davi,

    Yes, lowering the names with upper case in getty within the tinylogin is responsible for this behaviour. You can disable it with this patch.

    Place it in:
    sources/oe-core/meta/recipes-core/tinylogin/tinylogin-1.4/disable-caps-lock.patch
    Add the corresponding line in order to be applied in sources/oe-core/meta/recipes-core/tinylogin/tinylogin_1.4.bb

    SRC_URI = "${PV}.tar.bz2 \
           file://cvs-20040608.patch \
           file://add-system.patch \
           file://adduser-empty_pwd.patch \
           file://remove-index.patch \
           file://use_O2_option.patch \
           file://passwd_rotate_check.patch \
           file://avoid_static.patch \
           file://glibc_crypt_fix.patch \
           file://disable-caps-lock.patch \
           "

    Compile it.

    MACHINE=am335x-evm bitbake -b tinylogin

    Then copy the compiled build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/tinylogin/1.4-r9/tinylogin-1.4/tinylogin to /bin/tinylogin

    0456.disable-caps-lock.patch.zip

    Best regards,
    Kemal