Ivan219
Posts: 118
Joined: Sun Jul 05, 2015 10:01 pm

Change layout

Thu Jun 16, 2016 3:05 pm

Hello, i try to change layout in raspi-config, but when I i press: "Change layout", i got
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Reloading keymap. This may take a short while
How I can resolve it? I have clear jessie raspabian.

SonOfAMotherlessGoat
Posts: 690
Joined: Tue Jun 16, 2015 6:01 am

Re: Change layout

Thu Jun 16, 2016 3:08 pm

Have you checked to see if the keyboard has changed the layout? I seem to recall from another thread that those error messages are spurious and your keyboard layout should be changed anyways. (Has something to do with the fact that Raspbian Jessie uses systemD instead of SysVInit's if I recall correctly.)
Account Inactive

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: Change layout

Thu Jun 16, 2016 4:17 pm

You'll get that message if you don't have a keyboard actually plugged into the RPi.

If it doesn't detect a keyboard the "Change Keyboard Layout" option will fail with

Code: Select all

update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Reloading keymap. This may take a short while
Plug in a keyboard, at least temporarily, then you can change the layout in raspi-config.

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Change layout

Thu Jun 16, 2016 5:11 pm

Ivan219 wrote:Hello, i try to change layout in raspi-config, but when I i press: "Change layout", i got
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Reloading keymap. This may take a short while
How I can resolve it? I have clear jessie raspabian.
The messages are not important.... ignore them.
You MUST reboot after changing keyboard layout.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Change layout

Thu Jun 16, 2016 5:15 pm

JimmyN wrote:You'll get that message if you don't have a keyboard actually plugged into the RPi.

If it doesn't detect a keyboard the "Change Keyboard Layout" option will fail with

Code: Select all

update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Reloading keymap. This may take a short while
Plug in a keyboard, at least temporarily, then you can change the layout in raspi-config.
You will get the same messages with or without a keyboard attached.
The keyboard setting is for the connected keyboard only and has no effect on any remote keyboards SSH, RDP etc.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
jojopi
Posts: 3268
Joined: Tue Oct 11, 2011 8:38 pm

Re: Change layout

Thu Jun 16, 2016 5:40 pm

klricks wrote:You MUST reboot after changing keyboard layout.
raspi-config offers a reboot if it has done anything that requires one (such as changing /boot/config.txt). It does not suggest a reboot after changing keyboard layout, because it goes to the trouble of activating the new layout, so a reboot should not be required. Are you saying there is still a bug with this?

(If you change keyboard layout by other methods, such as dpkg-reconfigure or editing /etc/default/keyboard, then you may indeed need to reboot, or manually activate the new layout.)

Ivan219
Posts: 118
Joined: Sun Jul 05, 2015 10:01 pm

Re: Change layout

Thu Jun 16, 2016 6:50 pm

Thank you!) It's works! And how send keys from remote-keyboard regardless of the layout on raspberry, for example: on raspi - en, but print ru symbols, before reinstall os it was...

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Change layout

Fri Jun 17, 2016 2:41 am

jojopi wrote:
klricks wrote:You MUST reboot after changing keyboard layout.
raspi-config offers a reboot if it has done anything that requires one (such as changing /boot/config.txt). It does not suggest a reboot after changing keyboard layout, because it goes to the trouble of activating the new layout, so a reboot should not be required. Are you saying there is still a bug with this?

(If you change keyboard layout by other methods, such as dpkg-reconfigure or editing /etc/default/keyboard, then you may indeed need to reboot, or manually activate the new layout.)
A reboot is still required. Here is the keyboard setting code in /usr/bin/raspi-config. The code calls the dpkg routine.

Code: Select all

do_configure_keyboard() {
  dpkg-reconfigure keyboard-configuration &&
  printf "Reloading keymap. This may take a short while\n" &&
  invoke-rc.d keyboard-setup start || return $?
  udevadm trigger --subsystem-match=input --action=change
  return 0
}
Note there is other keyboard code for NOOBS. I don't use NOOBS.

What confuses people I think is that the GUI setting utility is a different and independent configuration which has priority.

For example:
If both the GUI keyboard utility and raspi-config keyboard utility are both set to UK....
Now from GUI.... If the keyboard is changed from UK to US using sudo raspi-config then, the keyboard seems to be changed to US in the LXterminal. However if you then exit the GUI to CLI, the keyboard will still be UK until reboot.
Now reboot or not, when you go back to GUI (startx) the GUI will still be set to UK. This gives the impression that the keyboard setting in raspi-config did not work. (The CLI will now be US and the GUI will be UK).

IOW
-If you use GUI then you must use the GUI config in [Menu] --> [Preferences] to change keyboard. Reboot is not required
-If you use CLI then you must use sudo raspi-config. Reboot is required.
-The keyboard settings in GUI utility will override the raspi-config settings.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

Return to “Beginners”