это моя первая публикация здесь. Я попытался изо всех сил решить эту проблему самостоятельно, но это не сработало.
Мне не нужен тайм-аут в моем загрузочном меню GRUB, я хотел, чтобы он оставался на неопределенный срок, пока я не выбор. Поэтому я отредактировал свой файл настройки GRUB следующим образом:
sudo nano /etc/default/grub
GRUB_DEFAULT='Windows Boot Manager (on /dev/sda1)'
# GRUB_HIDDEN_TIMEOUT=0
# GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=-1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
, а затем я побежал
sudo update-grub
Затем попытался спящий режим и просыпаться, а таймаут был еще 30 секунд. Я хотел знать, как тайм-ауты в моем файле grub.cfg выглядят так, поэтому я выполнил эту команду:
cat /boot/grub/grub.cfg | grep timeout
set timeout=30
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=-1
# Fallback normal timeout code in case the timeout_style feature is
set timeout=-1
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
Мне кажется, что по умолчанию таймаут еще 30 .. Я подозреваю, что это спящий режим но я должен перезагрузиться, чтобы убедиться, что обратный отсчет существует только тогда, когда я спящий ...
EDIT: Это определенно является спящим. Когда я перезагружаюсь, меню загрузки остается неопределенным, но когда я спящий, он отсчитывает от 30.
EDIT2: Nevermind. Иногда эта проблема не возникает при перезагрузке или спячке, иногда это происходит с обоими, иногда это тоже. Я не знаю, как устранить эту проблему с таким непредсказуемым поведением ..
EDIT3: Вот мои конфигурации спящего режима:
sudo cat /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
[Re-enable hibernate by default for login1]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
[Re-enable hibernate for multiple users by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=yes
Посмотрите документацию на терминале с помощью info grub или онлайн на gnu.org
‘GRUB_TIMEOUT_STYLE’
If this option is unset or set to ‘menu’, then GRUB will display the menu and then wait for the timeout set by ‘GRUB_TIMEOUT’ to expire before booting the default entry. Pressing a key interrupts the timeout.
'GRUB_TIMEOUT'
Boot the default entry this many seconds after the menu is
displayed, unless a key is pressed. The default is '5'. Set to
'0' to boot immediately without displaying the menu, or to '-1' to
wait indefinitely.
If 'GRUB_TIMEOUT_STYLE' is set to 'countdown' or 'hidden', the
timeout is instead counted before the menu is displayed.
. Поэтому вы должны установить GRUB_TIMEOUT равным 0. И чтобы меню отображалось до тех пор, пока запись выбрана как indefenitvly, вы должны установить GRUB_TIMEOUT_STYLE в меню.
Правильно ли GRUB_DEFAULT? Вы хотите загрузиться в окна по умолчанию?
Посмотрите документацию на терминале с помощью info grub или онлайн на gnu.org
‘GRUB_TIMEOUT_STYLE’
If this option is unset or set to ‘menu’, then GRUB will display the menu and then wait for the timeout set by ‘GRUB_TIMEOUT’ to expire before booting the default entry. Pressing a key interrupts the timeout.
'GRUB_TIMEOUT'
Boot the default entry this many seconds after the menu is
displayed, unless a key is pressed. The default is '5'. Set to
'0' to boot immediately without displaying the menu, or to '-1' to
wait indefinitely.
If 'GRUB_TIMEOUT_STYLE' is set to 'countdown' or 'hidden', the
timeout is instead counted before the menu is displayed.
. Поэтому вы должны установить GRUB_TIMEOUT равным 0. И чтобы меню отображалось до тех пор, пока запись выбрана как indefenitvly, вы должны установить GRUB_TIMEOUT_STYLE в меню.
Правильно ли GRUB_DEFAULT? Вы хотите загрузиться в окна по умолчанию?