mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
d8100dd17e
This solves Debian Bug report 1008760: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008760. Solution was inspired by this kernel bug report message: https://bugzilla.kernel.org/show_bug.cgi?id=204967#c15. My measured pad dimensions with a ruler were 85x44mm. But I decided to take the 2x size reported by the current kernel when invoking the touchpad-edge-detector command from the libdev-tools package. Because this comment claims that the old vs new kernel reportings differ by factor 2: https://bugzilla.kernel.org/show_bug.cgi?id=204967#c3 . Therefore I have used this command to get the new entry to 60-evdev.hwdb: "root@pb:~# touchpad-edge-detector 80x34 /dev/input/event2 Touchpad ETPS/2 Elantech Touchpad on /dev/input/event2 Move one finger around the touchpad to detect the actual edges Kernel says: x [0..1254], y [0..528] Touchpad sends: x [0..2472], y [-524..528] -^C Touchpad size as listed by the kernel: 40x17mm User-specified touchpad size: 80x34mm Calculated ranges: 2472/1052 Suggested udev rule: # <Laptop model description goes here> evdev:name:ETPS/2 Elantech Touchpad:dmi:bvnPackardBell:bvrV1.21:bd08/09/2012:br21.240:svnPackardBell:pnEasyNoteTS11HR:pvrV1.21:rvnPackardBell:rnSJV50_HR:rvrBaseBoardVersion:cvnPackardBell:ct10:cvrV1.21:* EVDEV_ABS_00=0:2472:31 EVDEV_ABS_01=-524:528:31 EVDEV_ABS_35=0:2472:31 EVDEV_ABS_36=-524:528:31 " |
||
---|---|---|
.. | ||
.gitattributes | ||
.gitignore | ||
20-acpi-vendor.hwdb | ||
20-acpi-vendor.hwdb.patch | ||
20-bluetooth-vendor-product.hwdb | ||
20-dmi-id.hwdb | ||
20-net-ifname.hwdb | ||
20-OUI.hwdb | ||
20-pci-classes.hwdb | ||
20-pci-vendor-model.hwdb | ||
20-sdio-classes.hwdb | ||
20-sdio-vendor-model.hwdb | ||
20-usb-classes.hwdb | ||
20-usb-vendor-model.hwdb | ||
20-vmbus-class.hwdb | ||
60-autosuspend-fingerprint-reader.hwdb | ||
60-autosuspend.hwdb | ||
60-evdev.hwdb | ||
60-input-id.hwdb | ||
60-keyboard.hwdb | ||
60-seat.hwdb | ||
60-sensor.hwdb | ||
70-analyzers.hwdb | ||
70-av-production.hwdb | ||
70-cameras.hwdb | ||
70-joystick.hwdb | ||
70-mouse.hwdb | ||
70-pda.hwdb | ||
70-pointingstick.hwdb | ||
70-touchpad.hwdb | ||
80-ieee1394-unit-function.hwdb | ||
acpi_id_registry.html | ||
acpi-update.py | ||
ids_parser.py | ||
ma-large.txt | ||
ma-medium.txt | ||
ma-small.txt | ||
meson.build | ||
parse_hwdb.py | ||
pci.ids | ||
pnp_id_registry.html | ||
README | ||
sdio.ids | ||
usb.ids |
Files in this directory specify a description of hardware devices, in the form of mappings from modalias-like keys (which identify specific hardware devices) to udev properties. Files in this directory are not read by udev directly. Instead, man:systemd-hwdb(8) compiles them into a binary database. See man:hwdb(7) for an overview of the configuration file format, and man:systemd-udevd.service(8) for a description of the udev daemon. Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.