Driver Installation
53
DMI-1040
4.2.8
USB Wakeup Function (optional)
For customers who need the mouse and touch screen to wake up
from S3, S4 and S5, the software BSP provides a driver (usbhid)
patch for this function.
Download the kernel source as shown below.
#cd ~/kernel_src
//Assume the kernel is 4.13.16
#wget
https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.13.16.tar.gz
#tar –zxvf linux-4.13.16.tar.gz
#cp /boot/config-`uname -r` kernel_src/
//Mark Red words for wake up
#vim drivers/hid/usbhid/hid-core.c
…
if (interface->desc.bInterfaceSubClass == USB_INTERFACE_SUBCLASS_BOOT
/*&&
interface->desc.bInterfaceProtocol ==
USB_INTERFACE_PROTOCOL_KEYBOARD*/
) {
usbhid_set_leds(hid);
device_set_wakeup_enable(&dev->dev, 1);
}
…
//make kernel
#make dep-pkg
//Wait a moment depend by your system performance
#cd ../
#dpkg -i *.deb
Summary of Contents for DMI-1040
Page 8: ...viii Table of Contents This page intentionally left blank...
Page 10: ...x List of Figures This page intentionally left blank...
Page 12: ...xii List of Tables This page intentionally left blank...
Page 27: ...Getting Started 15 DMI 1040 6 Disconnect the cable connecting the speakers to the main board...
Page 40: ...28 Getting Started This page intentionally left blank...
Page 45: ...Driver Installation 33 DMI 1040 Click Next The system will begin installing the Wi Fi driver...
Page 66: ...54 Driver Installation This page intentionally left blank...