diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2020-07-11 10:19:02 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2020-07-11 10:19:02 +0300 |
| commit | 5bcd5d0f01856cc59a60bac82114b1efb12b240e (patch) | |
| tree | f9df4d0e536f3caf53e284f34e1cabf0b10ed8b0 | |
| parent | 5d36ec5af3db0402a5c8e46d3f489c9e328f421c (diff) | |
| download | hid-tmff2-5bcd5d0f01856cc59a60bac82114b1efb12b240e.tar.gz hid-tmff2-5bcd5d0f01856cc59a60bac82114b1efb12b240e.zip | |
updated README and fixed range_show
| -rw-r--r-- | Module.symvers | 0 | ||||
| -rw-r--r-- | README.md | 7 | ||||
| -rw-r--r-- | hid-tminit.ko | bin | 0 -> 419984 bytes | |||
| -rw-r--r-- | hid-tminit.mod | 2 | ||||
| -rw-r--r-- | hid-tminit.mod.c | 55 | ||||
| -rw-r--r-- | hid-tminit.mod.o | bin | 0 -> 143264 bytes | |||
| -rw-r--r-- | hid-tminit.o | bin | 0 -> 278312 bytes | |||
| -rw-r--r-- | hid-tmt300rs.c | 5 | ||||
| -rw-r--r-- | hid-tmt300rs.ko | bin | 0 -> 537720 bytes | |||
| -rw-r--r-- | hid-tmt300rs.mod | 2 | ||||
| -rw-r--r-- | hid-tmt300rs.mod.c | 68 | ||||
| -rw-r--r-- | hid-tmt300rs.mod.o | bin | 0 -> 144104 bytes | |||
| -rw-r--r-- | hid-tmt300rs.o | bin | 0 -> 395160 bytes | |||
| -rw-r--r-- | modules.order | 2 |
14 files changed, 139 insertions, 2 deletions
diff --git a/Module.symvers b/Module.symvers new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Module.symvers @@ -43,3 +43,10 @@ Use the default evdev ways, i.e. https://www.kernel.org/doc/html/v5.1/input/ff.html + Currently there is no support for this driver in oversteer(https://github.com/berarma/oversteer), but ffbwrap(https://github.com/berarma/ffbtools) should work. + + If the wheel has a deadzone in games, you can set up a udev rule: + `/etc/udev/rules.d/99-joydev.rules`: + `SUBSYSTEM=="input", ATTRS{idVendor}=="044f", ATTRS{idProduct}=="b66e" + + RUN+="/usr/bin/evdev-joystick --evdev %E{DEVNAME} --deadzone 0"` + This should make sure that the wheel behaves like you'd want from a + wheel. diff --git a/hid-tminit.ko b/hid-tminit.ko Binary files differnew file mode 100644 index 0000000..f7a0f97 --- /dev/null +++ b/hid-tminit.ko diff --git a/hid-tminit.mod b/hid-tminit.mod new file mode 100644 index 0000000..821c012 --- /dev/null +++ b/hid-tminit.mod @@ -0,0 +1,2 @@ +/home/kimi/Documents/Projects/hid-tmff2/hid-tminit.o + diff --git a/hid-tminit.mod.c b/hid-tminit.mod.c new file mode 100644 index 0000000..7029581 --- /dev/null +++ b/hid-tminit.mod.c @@ -0,0 +1,55 @@ +#include <linux/module.h> +#include <linux/build-salt.h> +#include <linux/vermagic.h> +#include <linux/compiler.h> + +BUILD_SALT; + +MODULE_INFO(vermagic, VERMAGIC_STRING); +MODULE_INFO(name, KBUILD_MODNAME); + +__visible struct module __this_module +__section(.gnu.linkonce.this_module) = { + .name = KBUILD_MODNAME, + .init = init_module, +#ifdef CONFIG_MODULE_UNLOAD + .exit = cleanup_module, +#endif + .arch = MODULE_ARCH_INIT, +}; + +#ifdef CONFIG_RETPOLINE +MODULE_INFO(retpoline, "Y"); +#endif + +static const struct modversion_info ____versions[] +__used __section(__versions) = { + { 0x7ca88ad8, "module_layout" }, + { 0x817489f6, "hid_unregister_driver" }, + { 0xb7aa9422, "__hid_register_driver" }, + { 0x414fc2a1, "hid_hw_start" }, + { 0xcd9e657d, "hid_open_report" }, + { 0x316d1bda, "_dev_err" }, + { 0xdecd0b29, "__stack_chk_fail" }, + { 0x37a0cba, "kfree" }, + { 0x82fea2ff, "usb_alloc_urb" }, + { 0xc30561e7, "usb_interrupt_msg" }, + { 0x69acdf38, "memcpy" }, + { 0xc27f683d, "kmem_cache_alloc_trace" }, + { 0x46a9479b, "kmalloc_caches" }, + { 0x70bce9a, "__dynamic_dev_dbg" }, + { 0xfeba7354, "current_task" }, + { 0x648538a5, "usb_kill_urb" }, + { 0x7f02188f, "__msecs_to_jiffies" }, + { 0xadd72fe9, "usb_free_urb" }, + { 0x4a3ad70e, "wait_for_completion_timeout" }, + { 0xedb8a9, "usb_submit_urb" }, + { 0x608741b5, "__init_swait_queue_head" }, + { 0x4a0c79b0, "hid_hw_stop" }, + { 0x59e59766, "_dev_info" }, + { 0xbdfb6dbb, "__fentry__" }, +}; + +MODULE_INFO(depends, "hid,usbcore"); + +MODULE_ALIAS("hid:b0003g*v0000044Fp0000B65D"); diff --git a/hid-tminit.mod.o b/hid-tminit.mod.o Binary files differnew file mode 100644 index 0000000..ae7e374 --- /dev/null +++ b/hid-tminit.mod.o diff --git a/hid-tminit.o b/hid-tminit.o Binary files differnew file mode 100644 index 0000000..ae3404b --- /dev/null +++ b/hid-tminit.o diff --git a/hid-tmt300rs.c b/hid-tmt300rs.c index 5415fa6..8287042 100644 --- a/hid-tmt300rs.c +++ b/hid-tmt300rs.c @@ -662,10 +662,11 @@ static ssize_t t300rs_range_show(struct device *dev, struct device_attribute *at char *buf){ struct hid_device *hdev = to_hid_device(dev); struct t300rs_device_entry *t300rs; + size_t count; t300rs = t300rs_get_device(hdev); - - return t300rs->range; + count = scnprintf(buf, PAGE_SIZE, "%u\n", t300rs->range); + return count; } static DEVICE_ATTR(range, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH, t300rs_range_show, t300rs_range_store); diff --git a/hid-tmt300rs.ko b/hid-tmt300rs.ko Binary files differnew file mode 100644 index 0000000..2f2b411 --- /dev/null +++ b/hid-tmt300rs.ko diff --git a/hid-tmt300rs.mod b/hid-tmt300rs.mod new file mode 100644 index 0000000..8a429e9 --- /dev/null +++ b/hid-tmt300rs.mod @@ -0,0 +1,2 @@ +/home/kimi/Documents/Projects/hid-tmff2/hid-tmt300rs.o + diff --git a/hid-tmt300rs.mod.c b/hid-tmt300rs.mod.c new file mode 100644 index 0000000..fe7c152 --- /dev/null +++ b/hid-tmt300rs.mod.c @@ -0,0 +1,68 @@ +#include <linux/module.h> +#include <linux/build-salt.h> +#include <linux/vermagic.h> +#include <linux/compiler.h> + +BUILD_SALT; + +MODULE_INFO(vermagic, VERMAGIC_STRING); +MODULE_INFO(name, KBUILD_MODNAME); + +__visible struct module __this_module +__section(.gnu.linkonce.this_module) = { + .name = KBUILD_MODNAME, + .init = init_module, +#ifdef CONFIG_MODULE_UNLOAD + .exit = cleanup_module, +#endif + .arch = MODULE_ARCH_INIT, +}; + +#ifdef CONFIG_RETPOLINE +MODULE_INFO(retpoline, "Y"); +#endif + +static const struct modversion_info ____versions[] +__used __section(__versions) = { + { 0x7ca88ad8, "module_layout" }, + { 0x817489f6, "hid_unregister_driver" }, + { 0xb7aa9422, "__hid_register_driver" }, + { 0x414fc2a1, "hid_hw_start" }, + { 0xcd9e657d, "hid_open_report" }, + { 0x59e59766, "_dev_info" }, + { 0x1ee7d3cd, "hrtimer_init" }, + { 0x7d42edf, "device_create_file" }, + { 0xb3e1146a, "input_ff_create" }, + { 0x70bce9a, "__dynamic_dev_dbg" }, + { 0xfeba7354, "current_task" }, + { 0x648538a5, "usb_kill_urb" }, + { 0x7f02188f, "__msecs_to_jiffies" }, + { 0x4a3ad70e, "wait_for_completion_timeout" }, + { 0x608741b5, "__init_swait_queue_head" }, + { 0xdecd0b29, "__stack_chk_fail" }, + { 0xdc21e866, "hrtimer_forward" }, + { 0x20000329, "simple_strtoul" }, + { 0x2ea2c95c, "__x86_indirect_thunk_rax" }, + { 0xc27f683d, "kmem_cache_alloc_trace" }, + { 0x46a9479b, "kmalloc_caches" }, + { 0xedb8a9, "usb_submit_urb" }, + { 0x82fea2ff, "usb_alloc_urb" }, + { 0x37a0cba, "kfree" }, + { 0x4a0c79b0, "hid_hw_stop" }, + { 0xa0c6befa, "hrtimer_cancel" }, + { 0x9c59e5d5, "device_remove_file" }, + { 0xfbdfc558, "hrtimer_start_range_ns" }, + { 0xb4ff6bb6, "hrtimer_active" }, + { 0x15ba50a6, "jiffies" }, + { 0x96848186, "scnprintf" }, + { 0xc85d768e, "_dev_warn" }, + { 0xadd72fe9, "usb_free_urb" }, + { 0x316d1bda, "_dev_err" }, + { 0x3812050a, "_raw_spin_unlock_irqrestore" }, + { 0x51760917, "_raw_spin_lock_irqsave" }, + { 0xbdfb6dbb, "__fentry__" }, +}; + +MODULE_INFO(depends, "hid,usbcore"); + +MODULE_ALIAS("hid:b0003g*v0000044Fp0000B66E"); diff --git a/hid-tmt300rs.mod.o b/hid-tmt300rs.mod.o Binary files differnew file mode 100644 index 0000000..2543ad8 --- /dev/null +++ b/hid-tmt300rs.mod.o diff --git a/hid-tmt300rs.o b/hid-tmt300rs.o Binary files differnew file mode 100644 index 0000000..bc55519 --- /dev/null +++ b/hid-tmt300rs.o diff --git a/modules.order b/modules.order new file mode 100644 index 0000000..a0e2376 --- /dev/null +++ b/modules.order @@ -0,0 +1,2 @@ +/home/kimi/Documents/Projects/hid-tmff2/hid-tminit.ko +/home/kimi/Documents/Projects/hid-tmff2/hid-tmt300rs.ko |
