# The following line should solve the problem of Ubuntu resetting
# the brightness level back to maximum after every reboot.
echo 50 > /sys/class/backlight/radeon_bl0/brightness
Вот как выглядит весь файл сейчас:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# The following line should solve the problem of Ubuntu resetting
# the brightness level back to maximum after every reboot.
echo 50 > /sys/class/backlight/radeon_bl0/brightness
exit 0
Хотя я не уверен на сто процентов, если это лучший способ сделать это, все, кажется, работает отлично для меня Теперь.
Как я обычно справляюсь с этой проблемой (относительно старых ядер) с помощью
удаление зависимых пакетов (в любом случае это в основном мета-пакеты) очистка / освобождение дискового пространства, переустановка этих метапакетовВ вашем случае я начну с
sudo apt remove linux-image-generic linux-headers-generic linux-generic
, и после очистки вы восстановите старую ситуацию с помощью
sudo apt install linux-generic
(это приведет к тому, что другой мета-пакеты)
Прочитайте man apt-get, особенно части о
-m, --ignore-missing, --fix-missing
Ignore missing packages; if packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back those
packages and handle the result. Use of this option together with -f may produce an error in some situations. If a package is selected for installation
(particularly if it is mentioned on the command line) and it could not be downloaded then it will be silently held back. Configuration Item:
APT::Get::Fix-Missing.
Как я обычно справляюсь с этой проблемой (относительно старых ядер) с помощью
удаление зависимых пакетов (в любом случае это в основном мета-пакеты) очистка / освобождение дискового пространства, переустановка этих метапакетовВ вашем случае я начну с
sudo apt remove linux-image-generic linux-headers-generic linux-generic
, и после очистки вы восстановите старую ситуацию с помощью
sudo apt install linux-generic
(это приведет к тому, что другой мета-пакеты)
Прочитайте man apt-get, особенно части о
-m, --ignore-missing, --fix-missing
Ignore missing packages; if packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back those
packages and handle the result. Use of this option together with -f may produce an error in some situations. If a package is selected for installation
(particularly if it is mentioned on the command line) and it could not be downloaded then it will be silently held back. Configuration Item:
APT::Get::Fix-Missing.