Day: November 11, 2021

Remap Windows keyboard to Mac layout

Remap Windows keyboard to Mac layout

MacOS keyboard preference can remap keys for individual keyboard. This is not a global key remapping, it will not impact other keyboards except the one selected.

Steps

  • Go to System Preferences
  • Click on Keyboard
  • Click on Modifier Keys
  • Select keyboard to be modified in Select keyboard option
  • Map Option key to Command key, and Command key to Option key

How-To: Remap Windows keyboards to match the Mac keyboard layout

GRUB Basic

GRUB Basic

Access grub menu

For hidden menu, it can be accessed by holding down the Shift key at the very start of the boot-up process.

If still cannot be started, then provide following lines in /etc/defaults/grub could fix the issue.

GRUB_TERMINAL_OUTPUT="console"

Power down monitor

Power down monitor can be done via command line as below.

setterm --blank 1 --powerdown 2

It blanks screen after 1 min and turn it off after 2 min.

By adding the kernel parameter consoleblank=60 will lets screen off in 60 seconds if no one touch it.

Regenerate /boot/grub/grub.cfg

Run following command can regenerate /boot/grub/grub.cfg using /etc/defaults/grub

update-grub
# or
update-grub2

Update /boot/efi/EFI/ubuntu/grub.cfg

Run following command can update this file according to current envirnment structure.

dpkg-reconfigure grub-efi-amd64

It is also update /boot/grub too.

References

GRUB2 101: How to Access and Use Your Linux Distribution’s Boot Loader
How To Configure GRUB2 Boot Loader Settings In Ubuntu
How to power down display on terminal?
How to Configure the GRUB2 Boot Loader’s Settings