![让 Wacom Intuos CTL-490 在 Ubuntu Crouton 中工作吗?](https://linux22.com/image/901544/%E8%AE%A9%20Wacom%20Intuos%20CTL-490%20%E5%9C%A8%20Ubuntu%20Crouton%20%E4%B8%AD%E5%B7%A5%E4%BD%9C%E5%90%97%EF%BC%9F.png)
我通过 crouton 在我的 Acer Chromebook 上安装了 Ubuntu,但却费了好大劲才让我的 Wacom Intuos CTL-490 正常工作。
它根本无法识别,无论是光标移动还是点击,所以我开始按照说明操作这里,然而第一步就给我带来了问题。
sudo apt-get 安装 linux-headers-$(uname -r) build-essential
输出以下内容:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.18.0-17554-g9194949d4df2
E: Couldn't find any package by glob 'linux-headers-3.18.0-17554-g9194949d4df2'
E: Couldn't find any package by regex 'linux-headers-3.18.0-17554-g9194949d4df2'
如上所示,但为了清楚起见,输出uname -r
是:
3.18.0-17554-g9194949d4df2
我尝试编辑它/etc/apt/sources.list
,使它看起来像这样:
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse contrib non-free
deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
我将其添加contrib non-free
到第一行的末尾。
我继续尝试按照上面链接的说明进行操作,但最终运行了以下命令:
如果测试-x./autogen.sh;则./autogen.sh;否则./configure;fi&&make&&sudomakeinstall||echo“构建失败”
我收到以下构建错误(在其他看起来成功的输出末尾):
checking for kernel source/headers... not found
configure: WARNING: Unable to find build config in any of:
[/lib/modules/3.18.0-17554-g9194949d4df2/source],
[/lib/modules/3.18.0-17554-g9194949d4df2/build],
[/usr/src/linux],
[/usr/src/linux-3.18.0-17554-g9194949d4df2],
[/usr/src/linux-2.6]
configure: WARNING: Kernel directory does not appear to have needed config files
checking kernel version...
configure: WARNING: Spcified '3.18.0-17554-g9194949d4df2' kernel, but found '' instead
configure: error: We could not find the development environment to build modules for the '3.18.0-17554-g9194949d4df2' kernel within the '' directory. Please install the kernel source or the kernel development package and try again.
Build Failed
我认为这是因为我无法linux-headers...
从上面安装依赖项。
如果有人对此有任何见解,我将不胜感激,这太令人沮丧了,我只想画画。
答案1
笔记:我没有 Chromebook,因此没有测试以下任何步骤。请在备份重要数据后尝试此操作
步骤 1:构建内核头文件
所有命令均在 chrooted Ubuntu Shell 中执行
a)获取内核源
安装以下软件包以获取内核源:
sudo apt-get install git-core make kernel-package bc
现在chromeos-3.18
从内核仓库中提取:
git clone https://chromium.googlesource.com/chromiumos/third_party/kernel -b chromeos-3.18
现在可能有多个版本的内核可以在 3.18 版本以下(这是 3.18 之后的数字指定的uname - r
因此,请执行以下步骤:
cd kernel
./chromeos/scripts/prepareconfig chromeos-intel-pineview
make oldconfig
make kernelrelease
如果上面 uname 命令中的版本与显示的版本不匹配,而是更高版本,则需要找出构建内核的正确提交,以执行此操作
git reset --hard origin/chromeos-3.18
git checkout HEAD~[commits-before]
./chromeos/scripts/prepareconfig chromeos-intel-pineview
make oldconfig
make kernelrelease
替换[commits-before]
为数字。你可能需要多次执行此操作,直到获得由以下代码指定的正确内核版本:uname -r
b) 制作内核镜像和头文件
通过以下方式禁用警告暂停:
cd kernel && sed -i s/CONFIG_ERROR_ON_WARNING=y/CONFIG_ERROR_ON_WARNING=n chromeos/config/base.config
现在制作内核
./chromeos/scripts/prepareconfig chromeos-intel-pineview
make oldconfig
现在我们必须使用以下命令创建内核映像和头文件的 deb 包
sudo make-kpkg --rootcmd fakeroot kernel_image kernel_headers
确保.deb
使用ls ~/linux-*.deb
暂时不要安装它们,因为这将导致 ChromeOS 无法启动,因为/lib/modules
仍然安装在 chroot 中
创建以下 /etc/rc.local 或将其添加到您的 /etc/rc.local(如果您已经有)。
#!/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.
# umount bindmounts /lib/modules from enter-chroot
for m in `cat /proc/mounts | /usr/bin/cut -d ' ' -f2 | grep /lib/modules| grep -v "^/$" `; do
umount "$m"
done
# try to load wacom drivers
if [ `find /sys/module/ -name "wacom*" -type d` ]; then
# check if module_locking is disabled
if ! grep -q "module_locking=0" /proc/cmdline; then
exit 2
fi
modprobe wacom
modprobe wacom_w8001
fi
exit 0
将其标记为可执行文件sudo chmod +x /etc/rc.local
,然后注销并重新登录。检查 /lib/modules 中的所有内容是否都已卸载,以便我们可以安装两个 deb 文件:
cat /proc/mounts | grep /lib/modules
现在安装我们的 debs
sudo dpkg -i linux-*.deb
重新启动并继续
步骤 2::安装 wacom 驱动程序
下载 wacom 驱动程序的源代码:
git clone https://github.com/linuxwacom/input-wacom
现在安装驱动程序:
cd input-wacom && if test -x ./autogen.sh; then ./autogen.sh; else ./configure; fi && make && sudo make install || echo "Build Failed"
重新启动系统后,更新的驱动程序将自动加载。
资料来源: 在 Crouton 上安装 VirtualBox