Arch linux boot splash

Содержание
  1. Fbsplash
  2. Contents
  3. Installation
  4. Fbsplash
  5. Themes
  6. Configuration
  7. Preview
  8. Configuration file
  9. Kernel command line
  10. Other chargers
  11. Start Fbsplash
  12. Normal launch
  13. Early launch
  14. Console background images
  15. Plymouth
  16. Contents
  17. Preparation
  18. Installation
  19. The plymouth hook
  20. Alternative plymouth hook (systemd)
  21. The kernel command line
  22. Configuration
  23. Smooth transition
  24. Show delay
  25. Change background image
  26. Changing the theme
  27. Hidpi
  28. Tips and tricks
  29. Show kernel messages
  30. Adding Arch Logo to spinner and BGRT themes
  31. Replacing the Arch Logo and creating custom themes
  32. Disable vendor logo
  33. Troubleshooting
  34. «Unit configured to use KillMode=none» error message in logs
  35. Анимация загрузки «как в Windows»
  36. Arch Linux
  37. #1 2007-06-01 13:13:08
  38. Improved boot time splash screen support for Arch Linux
  39. Plymouth (Русский)
  40. Contents
  41. Подготовка
  42. Установка
  43. Включение Plymouth в Initcpio
  44. Альтернативный хук plymouth (systemd)
  45. Командная строка ядра и настройка загрузчика
  46. Конфигурация
  47. Плавный переход к дисплейному менеджеру
  48. Задержка загрузки
  49. Изменение фонового изображения темы
  50. Выбор темы
  51. Советы и рекомендации
  52. Отображение сообщений ядра
  53. Добавление логотипа ArchLinux к темам spinner и BGRT
  54. Замена логотипа Arch и создание кастомных тем
  55. Устранение неполадок
  56. Маленькие черные квадраты

Fbsplash

Fbsplash (formerly gensplash) is a user-space implementation of a splash screen for Linux systems. It provides a graphical environment at system startup using the Linux framebuffer layer.

Contents

Installation

Fbsplash

To have a background image of your virtual terminals you will need to install a kernel patched with fbcondecor, see below.

Themes

Themes are available as packages and can also be found at GNOME-Look.org or KDE-Look.org.

Configuration

Preview

This article or section needs language, wiki syntax or style improvements. See Help:Style for reference.

To choose from the themes that you will have installed without restarting or configuring anything, you can use splash_manager command.

This command must not be executed under X, but from a TTY).

For example to test the arch-black theme, after having installed it of course, in silent mode without restarting:

For more information:

Configuration file

Add the theme (s) you installed in /etc/conf.d/splash . You can also specify screen resolutions to save some space:

Kernel command line

To work with Fbsplash, you must pass certain options to your kernel via your bootloader:

For GRUB, Directly edit /boot/grub/grub.cfg :

Or better yet, go through /etc/default/grub and add the kernel options to the GRUB_CMDLINE_LINUX_DEFAULT line:

Do not forget to regenerate grub.cfg .

Other chargers

This article or section needs expansion.

For GRUB Legacy, LILO or Syslinux, all you have to do is add the options to the kernel in the appropriate configuration file (respectively /boot/grub/menu.lst , /etc/lilo.conf or /boot/syslinux/syslinux.cfg ):

Start Fbsplash

Normal launch

Once installed and configured, without doing anything more, fbsplash should load automatically the next time you boot, right after a few Arch messages on boot (right after udev).

Early launch

If you find these few messages unsightly (or just to enjoy your splash longer), it is possible to start fbsplash before the first messages at startup.

Just add fbsplash to HOOKS in /etc/mkinitcpio.conf :

or, in case of encryption of the system:

Rebuild your initcpio using mkinitcpio. See mkinitcpio#Image creation and activation for more info.

Then generate the initrd:

Console background images

With a kernel that supports Fbcondecor, you can have a background image of your virtual consoles.

Источник

Plymouth

Plymouth is a project from Fedora and now listed among the freedesktop.org’s official resources providing a flicker-free graphical boot process. It relies on kernel mode setting (KMS) to set the native resolution of the display as early as possible, then provides an eye-candy splash screen leading all the way up to the login manager.

Contents

Preparation

Plymouth primarily uses KMS (Kernel Mode Setting) to display graphics. In EFI/UEFI systems, plymouth can utilize the EFI framebuffer. If you cannot use KMS, e.g. because you are using a proprietary driver, or if you do not want to use the EFI framebuffer, consider using Uvesafb as it works with widescreen resolutions.

If you have neither KMS nor a framebuffer, Plymouth will fall back to text-mode.

Installation

Plymouth is available from the AUR: the stable package is plymouth AUR and the development version is plymouth-git AUR . Due to the fact that upstream plymouth release only happen on a spotty and highly unregular schedule, it is generally recommended to use plymouth-git AUR , because it is actually less likely to cause problems for most users than the stable package.

The plymouth hook

Add plymouth to the HOOKS array in mkinitcpio.conf. It must be added after base and udev for it to work:

Читайте также:  Автоматическая смена раскладки для windows

After adding the plymouth-encrypt hook, if input goes to the background in plaintext instead of into the password prompt you need to add your (kernel) graphics driver to your initramfs. For example, if using intel:

This might also be a step needed for some themes to work.

Alternative plymouth hook (systemd)

If your mkinitcpio.conf includes the systemd hook, then replace plymouth with sd-plymouth . Additionally, if using hard drive encryption, use sd-encrypt instead of encrypt or plymouth-encrypt :

The kernel command line

Append quiet vt.global_cursor_default=0 to the kernel parameters. See Silent boot for other parameters to limit the output to the console.

Configuration

Smooth transition

If using GDM, install gdm-plymouth AUR which supports smooth transition out of the box (no other steps are required as it cleanly replaces gdm ).

Optimus-manager users on GDM can install gdm-plymouth-prime AUR , which is a fork of gdm-plymouth AUR with the required patches to support Prime switching.

Users of other display managers (SDDM, LightDM or LXDM) will have to:

  1. Disable your display manager unit, e.g. lxdm.service .
  2. Enable the respective DM-plymouth unit provided, e.g. lxdm-plymouth.service .

Show delay

Plymouth has a configuration option to delay the splash screen:

On systems that boot quickly, you may only see a flicker of your splash theme before your DM or login prompt is ready. You can set ShowDelay to an interval (in seconds) longer than your boot time to prevent this flicker and only show a blank screen. The default is 5 seconds, but you may wish to change this to a lower value to see your splash earlier during boot.

Change background image

Certain themes (such as spinner) can have their background image changed. On spinner, by default it is a grey noise pattern. To change it, replace /usr/share/plymouth/themes/theme/background-tile.png with your desired image. You may want to copy and create a new theme when doing this, to prevent it from being overridden by updates to Plymouth. Do not forget to regenerate the theme once changed, see the next section for how.

Changing the theme

Plymouth comes with a selection of themes:

  1. Fade-in: «Simple theme that fades in and out with shimmering stars»
  2. Glow: «Corporate theme with pie chart boot progress followed by a glowing emerging logo»
  3. Script: «Script example plugin» (Despite the description seems to be a quite nice Arch logo theme)
  4. Solar: «Space theme with violent flaring blue star»
  5. Spinner: «Simple theme with a loading spinner»
  6. Spinfinity: «Simple theme that shows a rotating infinity sign in the center of the screen»
  7. BGRT: A variation of Spinner that keeps the OEM logo if available (BGRT stands for Boot Graphics Resource Table)
  8. (Text: «Text mode theme with tricolor progress bar»)
  9. (Details: «Verbose fallback theme»)

In addition you can install other themes from AUR, just have a look at the «Required by»-Array on plymouth AUR .

All currently installed themes can be listed by using this command:

By default, the spinner theme is selected. The theme can be changed by editing /etc/plymouth/plymouthd.conf , for example:

Themes can be previewed without rebuilding, press Ctrl+Alt+F6 to switch to a text terminal, log in as root and type:

To quit the preview, press Ctrl+Alt+F6 again and type:

Every time a theme is changed, the initrd must be rebuilt. The -R option ensures that it is rebuilt (otherwise manually run mkinitcpio -P ):

Hidpi

Edit plymouthd.conf as

and rebuild the initrd.

Tips and tricks

Show kernel messages

During boot you can switch to kernel messages by pressing the Home or Esc keys.

Adding Arch Logo to spinner and BGRT themes

To add the Arch Logo to the spinner and BGRT themes copy the Arch logo to the spinner theme directory with the name watermark.png :

To center the logo (if not already centered), add the following lines to the theme’s configuration file (file name ending with .plymouth , e.g. spinner.plymouth ):

Replacing the Arch Logo and creating custom themes

The following themes use the Arch Linux logo supplied by Plymouth in /usr/share/plymouth/arch-logo.png : fade-in, script, solar, spinfinity. If you want to use another logo, you can take one of them or one of the plymouth themes in AUR, edit the file *.plymouth (and maybe *.script , too) and replace this image with one of your choice. You should create a package from your newly created theme, because changes in /usr/share/plymouth may not be persistent across package upgrades.

Читайте также:  Выключение компьютера через cmd windows 10

After installing and selecting your theme, you should rebuild the initrd image to use the new splash.

Troubleshooting

«Unit configured to use KillMode=none» error message in logs

As of plymouth v0.9.5-6 and systemd 247.2-1, the following error message appears with high frequency in the system log:

See the upstream issue for more details.

This issue has now been fixed by upstream. However, because a new versioned release with the fix has yet to be released, the plymouth AUR package also still has this issue. plymouth-git AUR already incorporates the fix (as of late February, 2021).

Источник

Анимация загрузки «как в Windows»

Под сабжем я подразумеваю сохранение логотипа UEFI и показ анимации загрузки на его фоне. Сама анимация может отличаться от виндовой.

Имеется Arch Linux с systemd-boot и plymouth, установленный в UEFI режиме. Так вот, обнаружил в возможных настройках systemd-boot с недавних пор опцию «console-mode keep». С ней получается следующее поведение: при запуске дисплейного менеджера (SDDM в моём случае) анимация plymouth исчезает и на секунду появляется логотип от UEFI и уже на его фоне появляется указатель мыши, а затем всё это сменяется запустившимся SDDM. То есть получается, что systemd-boot сохранил экран от UEFI при запуске ядра, а ядро умудрилось не затереть его содержимое и даже подсунуть дисплейному менеджеру в качестве начального содержимого экрана.

Иксы стартуют на tty1. Если переключиться на tty2, то также можно успеть заметить логотип UEFI, пока systemd не запустит getty и он не очистит консоль. При переключении на остальные консоли данный эффект уже не повторяется (возможно, getty запускается слишком быстро).

Раз пошло такое дело, то хочется заставить plymouth рисовать анимацию поверх логотипа UEFI, как это делает офтопик. Техническая возможность со стороны ядра точно есть, иначе бы этот логотип не мерцал при старте SDDM. Нужно как-то создать прозрачную тему plymouth или что-то вроде этого.

Кстати, если убрать опцию splash из параметров ядра, то логотип UEFI не появляется ни разу за всё время загрузки. Если переключиться в текстовую консоль с помощью Esc при работе plymouth, то там будут обычные информационные строчки на чёрном фоне.

Источник

Arch Linux

You are not logged in.

#1 2007-06-01 13:13:08

Improved boot time splash screen support for Arch Linux

I have just completed a set of initscripts with enhanced boot splash screen support for testing by the community. Currently only gensplash is supported but I plan to provide an implementation of splashy very soon. Support for bootsplash will almost certainly follow.

These scripts should provide a framework for all splash implementations and remove the need for customized initscripts for each splash type. There may even be the possibility of having the splash screens officially supported.

If you are happy to assist in testing the new scripts please feel free to download them and feedback here. Also, any bash experts may like to cast an eye over the gensplash scripts because I am sure that some optimizations and improvements can be made.

Initial testing has shown a virtually identical bootchart profile with the new implementation so I’m confident that there will be absolutely no loss in performance and that testing can only result in improvements.

You can grab the new initscripts-splash and gensplash packages from here:

Note that these two pkgs replace the old gensplashutils and initscripts-genplash pkgs. PLEASE make back-ups of your important initscripts files — don’t count on pacman to be smarter than you!

You can view bootcharts from the old and new gensplash pkgs here — as you can see there is virtually no difference. It’s also worth noting that the old gensplash scripts were based on old initscripts. Boot time is just under 55 seconds on a P3 1 Ghz laptop.

You can also see the diff showing the changes to the initscripts here

Источник

Plymouth (Русский)

Plymouth — это проект из Fedora, обеспечивающий загрузку системы без бегущих надписей (логов) на экране. Он базируется на kernel mode setting (KMS, установка разрешения и глубины цвета на уровне ядра) для обеспечения родного разрешения экрана на раннем этапе загрузки, после чего отображает привлекательный загрузочный экран вплоть до этапа выбора пользователя.

Contents

Подготовка

‘Plymouth главным образом использует KMS (Kernel Mode Setting) для отображения графики. На EFI/UEFI системах plymouth может использовать EFI framebuffer. Если вы не можете использовать KMS, например, из-за использования проприетарного драйвера или не хотите использовать EFI framebuffer, обратите внимание на Uvesafb, поскольку он поддерживает широкоформатные разрешения.

Читайте также:  Linux active directory ввод

Если у вас не настроены ни KMS ни framebuffer, то Plymouth вернется в текстовый режим.

Установка

Plymouth пока недоступен в официальных репозиториях и должен быть установлен из AUR.

Стабильная версия называется plymouth AUR , но можно использовать версию plymouth-git AUR .

Включение Plymouth в Initcpio

Добавьте Plymouth в HOOKS в mkinitcpio.conf. Он обязательно должен быть добавлен после base и udev :

Если после добавления хука plymouth-encrypt вводимый пароль попадает в фон в текстовом виде, необходимо добавить модуль radeon (для видеокарт radeon), i915 (для видеокарт Intel) или nouveau (для видеокарт nvidia) в строку MODULES в /etc/mkinitcpio.conf

Также этот шаг может потребоваться для работоспособности некоторых тем.

Альтернативный хук plymouth (systemd)

Если в mkinitcpio.conf используется хук systemd , необходимо заменить plymouth на sd-plymouth . На зашифрованной системе вместо encrypt или plymouth-encrypt используйте sd-encrypt :

Переконфигурация образа ядра (см. статью mkinitcpio для более детальной информации)

Командная строка ядра и настройка загрузчика

Необходимо установить quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0 в параметрах ядра загрузчика. Для Grub2 наиболее простым и безопасным способом сделать это является редактирование файла /etc/default/grub . Приведите указанные переменные к следующему виду:

Можно заставить KMS принудительно запускаться раньше добавив «radeon.modeset=1» (для видеокарт radeon) или «i915.modeset=1» (для видеокарт Intel) в опции ядра:

Чтобы сгенерировать grub.cfg , выполните:

Для GRUB и LILO шаблон аналогичен.

Конфигурация

Плавный переход к дисплейному менеджеру

Для активации плавного перехода следует заменить существующий сервис дисплейного менеджера на поставлющийся вместе с Plymouth (на примерe LightDM):

  1. Отключите существующий сервис: systemctl disable lightdm.service
  2. Включите аналогичный сервис, совместимый с Plymouth: systemctl enable lightdm-plymouth.service

Если вы предпочитаете GDM, установите пакет gdm-plymouth AUR , содержащий патчи для «бесшовного» перехода от анимации Plymouth к дисплейному менеджеру.

Задержка загрузки

Если система загружается настолько быстро, что загрузочная анимация не успевает нормально воспроизвестись до запуска DM, можно установить задержку загрузки ShowDelay (в секундах), чтобы вместо мерцания темы показать пустой экран. По умолчанию время задержки равно 5 секундам, однако его можно изменить, чтобы увидеть анимацию на более ранних этапах загрузки.

Изменение фонового изображения темы

В некоторых темах (таких как spinner) можно изменить фоновое изображение. Для этого следует заменить файл /usr/share/plymouth/themes/theme/background-tile.png на собственный. Во избежание перезаписи измененной темы при обновлении plymouth, все действия проводите над копией темы.

Выбор темы

Plymouth поставляется со следующими темами:

  1. Fade-in: «Простая тема с затухающими и разгорающимися мерцающими звездами»
  2. Glow: «Производственная тема, показывающая процесс загрузки в виде круговой диаграммы»
  3. Script: «Пример скрипта» (Несмотря на описание выглядит очень симпатичной темой с логотипом Arch)
  4. Solar: «Космическая тема, голубая звезда с протуберанцами»
  5. Spinner: «Простая тема с вращающимся индикатором загрузки»
  6. Spinfinity: «Простая тема, показывающая вращающийся знак бесконечности в центре экрана»
  7. (Text: «Текстовый режим с трехцветной полосой прогресса»)
  8. (Details: «Резервная тема с подробностями загрузки»)

Список установленных тем можно вызвать командой:

Изначально выбрана тема spinner. Чтобы выбрать другую, следует изменить строку Theme= в /etc/plymouth/plymouthd.conf или воспользоваться командой

При каждой смене темы необходимо пересобирать initrd . Это произойдет автоматически при выборе темы темы с помощью plymouth-set-default-theme с опцией -R (в противном случае самостоятельно запустите mkinitcpio -P ).

Для просмотра тем без перезагрузки следует нажать Ctrl+Alt+F6 , войти как root и набрать:

Для выхода из просмотра нажать Ctrl+Alt+F6 снова и набрать:

Советы и рекомендации

Отображение сообщений ядра

Чтобы включить отображение сообщений ядра, во время загрузки нажмите Home или Esc .

Добавление логотипа ArchLinux к темам spinner и BGRT

Чтобы добавить логотип к темам spinner и BGRT, нужно поместить его в папку темы с названием watermark.png :

Замена логотипа Arch и создание кастомных тем

Темы, поставляемые с plymouth (fade-in, script, solar, spinfinity), используют логотип, расположенный в /usr/share/plymouth/arch-logo.png . Чтобы заменить логитип, можно позаимствовать любой по вкусу из тем в AUR, изменить *.plymouth (и, возможно, *.script ), заменив изображение на выбранное. Из созданной темы следует создать пакет, поскольку изменения в /usr/share/plymouth могут быть переписаны при обновлении.

Устранение неполадок

Маленькие черные квадраты

По каким-то причинам после выполнения команды выйти, Plymouth может оставить черные квадраты вверху экрана видимые поверх всех окон. Два подтвержденных случая, это ноутбук с видеокартой ATI при использовании KMS, и десктоп с видеокартой nVidia использующий framebuffer. Источником проблемы является опция —retain-splash , которая требуется для максимально плавного отображения в процессе загрузки. Обходным путем является принудительное закрытие Plymouth после логина, когда опция —retain-splash более не требуется.

/.xinitrc и добавить следующую линию перед линией запускающей менеджер окружения рабочего стола (подобной «exec openbox-session») чтобы выключить Plymouth:

Чтобы получить разрешение на принудительное отключение Plymouth без пароля, нужно отредактировать /etc/sudoers :

Источник

Оцените статью