Я думаю, что мы можем получить источники ddccontrol пакета от Xenial и построить его на Trusty.
Обычно этот метод не рекомендуется, но я не представляю другого эффективного метода.
Мы будем строить deb-пакеты с источниками пакета ddccontrol из Xenial 1].
Выполните следующие команды:
# update package lists and install all needed build dependencies
sudo apt-get update
sudo apt-get install -y build-essential dpkg-dev libxml2-dev \
libpci-dev libgtk2.0-dev devscripts autotools-dev \
intltool xsltproc tidy gksu libgksu2-0 libgtop2-7 libgtop2-common
# add universe source from xenial
echo "deb-src http://archive.ubuntu.com/ubuntu/ xenial universe" | \
sudo tee /etc/apt/sources.list.d/xenial.list
sudo apt-get update
# create directory and get source package of ddccontrol from xenial
mkdir ddccontrol-xenial
cd ddccontrol-xenial
apt-get source ddccontrol
# go to ddccontrol-0.4.2 directory, compile and build deb-packages
cd ddccontrol-0.4.2
debuild -i -us -uc -b
# get ddccontrol-db from xenial and install it manually
wget http://mirrors.kernel.org/ubuntu/pool/universe/d/ddccontrol-db/ddccontrol-db_20061014-4_all.deb
sudo dpkg -i ddccontrol-db_20061014-4_all.deb
# install all
sudo dpkg -i ../*ddc*.deb
# remove universe source from xenial
sudo rm /etc/apt/sources.list.d/xenial.list
sudo apt-get update
Я нашел реальную машину с Ubuntu 14.04 LTS.
Необходимо загрузить модуль ядра i2c-dev:
sudo modprobe i2c-dev
Затем запустить sudo ddccontrol -p из терминала или gddccontrol из меню.
Андерссон смог решить проблему, используя этот ответ.
Скопируйте рабочий файл / etc / default / keyboard в каталог, содержащий файл Docker. Добавьте следующую строку в свой файл Docker перед установкой xdm или lightdm.COPY ./keyboard /etc/default/keyboard
Пример файла клавиатуры: # Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT="intl"
XKBOPTIONS=""
# If you don't want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
BACKSPACE="guess"
Андерссон смог решить проблему, используя этот ответ.
Скопируйте рабочий файл / etc / default / keyboard в каталог, содержащий файл Docker. Добавьте следующую строку в свой файл Docker перед установкой xdm или lightdm.COPY ./keyboard /etc/default/keyboard
Пример файла клавиатуры: # Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT="intl"
XKBOPTIONS=""
# If you don't want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
BACKSPACE="guess"
Андерссон смог решить проблему, используя этот ответ.
Скопируйте рабочий файл / etc / default / keyboard в каталог, содержащий файл Docker. Добавьте следующую строку в свой файл Docker перед установкой xdm или lightdm.COPY ./keyboard /etc/default/keyboard
Пример файла клавиатуры: # Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT="intl"
XKBOPTIONS=""
# If you don't want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
BACKSPACE="guess"