启用 Mediacom WinPad W700 的触摸屏

Sco*_*ion 6 tablet firmware kernel touchscreen

这款平板电脑默认运行 Windows 10,但我安装了 Lubuntu 18.04。我试图用这个问题作为指导,但我的情况不同。

一种ELAN设备是触摸板和每一个命令别什么回报确实如此。该命令sudo dmesg | grep i2c返回:

[    3.211266] i2c /dev entries driver
[    3.328881] i2c_designware 80860F41:04: I2C bus managed by PUNIT
[   37.847473] axp20x-i2c i2c-INT33F4:00: AXP20x variant AXP288 found
[   37.872164] silead_ts i2c-MSSL1680:00: i2c-MSSL1680:00 supply vddio not found, using dummy regulator
[   37.872202] silead_ts i2c-MSSL1680:00: i2c-MSSL1680:00 supply avdd not found, using dummy regulator
[   37.872740] silead_ts i2c-MSSL1680:00: Silead chip ID: 0xB4820000
[   37.928036] axp20x-i2c i2c-INT33F4:00: AXP20X driver loaded
[   38.024519] silead_ts i2c-MSSL1680:00: Direct firmware load for silead/mssl1680.fw failed with error -2
[   38.024529] silead_ts i2c-MSSL1680:00: Firmware request error -2
[   38.027163] silead_ts: probe of i2c-MSSL1680:00 failed with error -2
[   39.030645] input: axp20x-pek as /devices/platform/80860F41:04/i2c-4/i2c-INT33F4:00/axp221-pek/input/input6
Run Code Online (Sandbox Code Playgroud)

我发现 Mediacom 的驱动程序与 TrekStor(一家也与 Mediacom 合作的公司)的驱动程序相同,并在 github 上找到了这个很棒的项目。Mediacom WinpadW700 对应于 SurfTab wintron 7.0 (ST70416-6)。

该项目是关于平板电脑和 Ubuntu 的,并指出:

该存储库包含各种平板电脑(和其他)设备中的 Silead 触摸屏控制器的固件映像 [. . .]

固件文件是从设备制造商发布的 Android 和 Windows 设备驱动程序中提取的。它们适用于喜欢用通用 Linux 发行版(如 Debian 或 Ubuntu)替换随附操作系统的人。

我认为我应该使用该silead_ts.fw文件(即从原始驱动程序中提取的固件gslx680-acpi获取firmware.fw的固件)。

所以silead_ts.fw固件是专门为我的问题设计的。我怎样才能使用它?https://github.com/onitake/gsl-firmware#silad_ts 的这一部分应该解释如何做:
我必须drivers/platform/x86/silead_dmi.c在源代码中编辑文件。然后重新编译内核(使用该文件),并在某处添加我在修改后的文件中引用的固件。

如何重新编译内核?我正在尝试这份指南。

我使用apt-get source linux-headers-4.15.0-33-generic并获得了linux-4.15800 MB的文件夹。那有drivers/platform/x86/silead_dmi.c我已经制作drivers/platform/x86/silead_dmi.c文件的路径。按照我使用的指南apt-get source linux-image-$(uname -r)并获得了linux-signed-4.15.0118 kB的文件夹。

现在使用fakeroot debian/rules editconfigs我得到一个错误:

dh editconfigs
dh: Unknown sequence editconfigs (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:35: recipe for target 'editconfigs' failed
make: *** [editconfigs] Error 2
Run Code Online (Sandbox Code Playgroud)

如何修复此错误并重新编译内核?

Sco*_*ion 1

适用silead_ts.fw于这个已弃用的项目https://github.com/onitake/gslx680-acpi
您应该至少使用https://github.com/onitake/gsl-firmware/blob/master/firmware/trekstor/surftab7new/firmware.fw, fimrware 仅提取而不是针对旧项目进行修改。

但你必须使用这个https://github.com/onitake/gsl-firmware/blob/master/firmware/linux/silead/gsl1686-surftab-wintron70-st70416-6.fw,将文件放入/lib/firmware/silead(创建文件夹silead) 。还制作了一份名称为mssl1680.fw(备份固件)的副本。

现在按照本指南重新编译内核https://debian-handbook.info/browse/squeeze/sect.kernel-compilation.html
用于apt-cache search ^linux-source查找内核的源代码(如指南所述)。

在文件中silead_dmi.c添加:

static const struct property_entry mediacom_w700_props[] = {
    PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
    PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
    PROPERTY_ENTRY_STRING("firmware-name",
                  "gsl1686-surftab-wintron70-st70416-6.fw"),
    PROPERTY_ENTRY_U32("silead,max-fingers", 10),
    PROPERTY_ENTRY_BOOL("silead,home-button"),
    { }
};
Run Code Online (Sandbox Code Playgroud)

最重要的是在 DMI_MATCH 添加:

 {
        /* Mediacom WinPad 7.0 W700 */
        .driver_data = (void *)&surftab_wintron70_st70416_6_data,
        .matches = {
            DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
                DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
        },
    },
Run Code Online (Sandbox Code Playgroud)