Announcement

Collapse
No announcement yet.

Incorrect keyboard layout at login

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Incorrect keyboard layout at login

    My HD crashed, and while waiting for a new laptop for work, I put in an old HD I had laying around, and started trying some distro's.
    Opensuse KDE was nice, it had some more recent packages, for example Libre office, Also yast is very nice,
    but a number of small inconveniences led me back to Neon.

    I installed Neon 18.04 development_stable, and the keyboard layout in the login screen is not correct.
    In system settings I removed the US qwerty keyboard and replaced it by the FR azerty layout, so there is only one layout there.
    When rebooting, I could not log in, because the passwd field still has the qwerty layout.
    How can I fix this ? or should I file a bug for this ?

    As I am distro testing, I made myself a post install script to install all applications I want to have on my PC.
    Here it is, use it as an example for your own if you find it useful.
    It installs a number of extra packages from the repos, my Brother printer/scanner drivers, and some debs that are not in the repos.

    #!/bin/bash
    red=$'\e[31m'; nocolor=$'\e[0m';
    echo "${red} this postinstall script installs a number of packages"
    echo " that are not included in the default distro install"
    echo -e -n "\e[1;34m update existing packages first ? (y/n)? "; echo -e -n '\e[0;0m';read yesno
    sudo apt-get update
    sudo apt-get dist-upgrade
    echo " "
    echo -e -n "\e[1;34m adding extra packages now ? (y/n)? "; echo -e -n '\e[0;0m';read yesno
    sudo apt-get install akregator apt-xapian-index arj ark audacity build-essential bzip2 cifs-utils cdparanoia clonezilla chromium-browser diffutils darktable filezilla gdebi gparted gpodder gscan2pdf gzip iftop iotop p7zip-full kdiff3 kget kmail knode krename kshisen krusader libreoffice lsof monsterz numlockx openssl powertop powerstat putty sane-utils synaptic tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra tesseract-ocr-nld tesseract-ocr-osd unpaper unrar system-config-samba smbclient nmap pysolfc pysolfc-cardsets unzip rar tar usb-modeswitch laptop-detect vlc vlc-plugin-notify usbutils wireshark zip yakuake
    echo " "
    echo -e -n "\e[1;34m Install Brother MFC-9970CDW printer-scanner software y/n ? "; echo -e -n '\e[0;0m';read yesno
    if [ "$yesno" = "y" ]; then
    ipp 192.168.1.200
    sudo ./linux-brprinter-installer-2.2.0-1
    fi
    echo " "
    echo -e -n "\e[1;34m Install Teamviewer y/n ? "; echo -e -n '\e[0;0m';read yesno
    if [ "$yesno" = "y" ]; then
    sudo apt-get install ./teamviewer_13.2.13582_amd64.deb
    fi
    echo " "
    echo -e -n "\e[1;34m Install SecureCRT y/n ? "; echo -e -n '\e[0;0m';read yesno
    if [ "$yesno" = "y" ]; then
    sudo apt-get install ./scrt-7.0.4-537.ubuntu11-64.x86_64.deb
    fi
    echo " "
    echo -e -n "\e[1;34m Install Belgian EID software y/n ? "; echo -e -n '\e[0;0m';read yesno
    if [ "$yesno" = "y" ]; then
    sudo apt-get install ./eid-archive_2018.3_all.deb
    sudo apt-get update
    sudo apt-get install eid-viewer eid-mw
    fi
    Last edited by mbohets; Aug 31, 2018, 10:49 AM.
    Je suis Charlie, how many more people have to die for religions
    linux user #447706 on https://linuxcounter.net
    A good place to start:
    Topic: Top 20 Kubuntu FAQs & Answers


    #2
    A little add-on, the keyboard layout is only in qwerty on the login screen when the laptop just powered up.
    when loggin in again when the screen was locked, it is correctly in azerty
    Je suis Charlie, how many more people have to die for religions
    linux user #447706 on https://linuxcounter.net
    A good place to start:
    Topic: Top 20 Kubuntu FAQs & Answers

    Comment


      #3
      Sddm

      Originally posted by mbohets View Post
      .
      .
      .
      I installed Neon 18.04 development_stable, and the keyboard layout in the login screen is not correct.
      In system settings I removed the US qwerty keyboard and replaced it by the FR azerty layout, so there is only one layout there.
      When rebooting, I could not log in, because the passwd field still has the qwerty layout.
      How can I fix this ? or should I file a bug for this ?
      .
      .
      .
      A little add-on, the keyboard layout is only in qwerty on the login screen when the laptop just powered up.
      when loggin in again when the screen was locked, it is correctly in azerty
      Did you set the keyboard layout when you installed ?



      Are you using the SDDM ?

      Simple Desktop Display Manager - SDDM

      The KDE System Settings set the user settings. The SDDM does not use the user settings !

      The plasma lock screen is not using the SDDM. The plasma lock screen is part of the user plasma look and feel theme and is using user settings !

      The sddm keyboard layout can be set with the sddm from the /usr/share/sddm/scripts/Xsetup - Keyboard localisation on login screen (SDDM): https://forum.kde.org/viewtopic.php?f=309&t=138783

      By the AskUbuntu - Change from qwerty to azerty in command line: https://askubuntu.com/questions/5509...n-command-line
      Code:
      setxkbmap fr
      More of the SDDM settings

      - Language of the SDDM: https://askubuntu.com/questions/1040...-kubuntu-18-04
      - Breeze SDDM greeter icons / SDDM plasma theme: https://www.kubuntuforums.net/showth...060#post419060
      Last edited by Rog131; Sep 01, 2018, 09:11 AM.
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Thanks a lot, adding the KB layout in /usr/share/sddm/scripts/Xsetup solved the problem.
        You also were right of me doing the install with the US keyboard layout.

        But should KDE not also change this automatically when changing the keyboard layout from KDE system settings,
        is this not an oversight and easy to fix bug ?
        Je suis Charlie, how many more people have to die for religions
        linux user #447706 on https://linuxcounter.net
        A good place to start:
        Topic: Top 20 Kubuntu FAQs & Answers

        Comment


          #5
          Originally posted by mbohets View Post
          Thanks a lot, adding the KB layout in /usr/share/sddm/scripts/Xsetup solved the problem.
          You also were right of me doing the install with the US keyboard layout.

          But should KDE not also change this automatically when changing the keyboard layout from KDE system settings,
          is this not an oversight and easy to fix bug ?
          It is a usability issue/bug.

          Plasma desktop is a multiuser environment. When you click the login button the plasma session will be started with your settings. Your setting may differ from the system or other user defaults.

          The KDE has a control module for the user keyboard settings. It would not edit the system keyboard setting.

          Some distributions have solved this by adding own KDE control modules to edit the system defaults. The system tools and paths could be different between distributions. An example with the Manjaro:

          Last edited by Rog131; Sep 02, 2018, 03:21 AM.
          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment


            #6
            Nice to see that Manjaro took care of this, they really seem to take user friendlyness serious,
            I should try it out although it is not .deb based as I am used to.
            I filed a bug in the KDE bugtracker, mentioned that Manjaro has a fix and asked if they would also put a fix on KDE level, so that the problem would also be solved in any other distro using KDE.
            Je suis Charlie, how many more people have to die for religions
            linux user #447706 on https://linuxcounter.net
            A good place to start:
            Topic: Top 20 Kubuntu FAQs & Answers

            Comment


              #7
              The link to the bug/wish seem to be: https://bugs.kde.org/show_bug.cgi?id=398148
              Before you edit, BACKUP !

              Why there are dead links ?
              1. Thread: Please explain how to access old kubuntu forum posts
              2. Thread: Lost Information

              Comment


                #8
                Just got a sw update, and the login screen is back to qwerty
                So I changed /usr/share/sddm/scripts/Xsetup again, and made the file read only.
                I hope this will not disturb future apt-get or dpkg updates.
                Je suis Charlie, how many more people have to die for religions
                linux user #447706 on https://linuxcounter.net
                A good place to start:
                Topic: Top 20 Kubuntu FAQs & Answers

                Comment

                Working...
                X