I have a foot pedal that is implemented as a USB HID device, and it sends one input: in binary, 0001, 0010, or 0100 corresponds to each pedal, respectively; combination of pedal presses sends combination of those binary number, and releases of pedal trigger input of whatever pedal still being pressed (if all pedal is up, 0000 is sent). My intention is to have the pedal buttons behave as normal keyboard keys (ctrl, alt, and pgdn). I've read many writeup on related topics, some of them a few years old, and I'm still confused as to where to start: do I need to patch the kernel? write a driver translate the input to keycode? do both? I would really appreciate a pointer to some tutorials on how to get started and example codes if there are any. Many thanks, T.
Hi Sandeep, Thanks a lot for your reply Corresponding messages from /var/log/messages file. Jul 21 01:14:56 anup-laptop kernel: [ 5151.712119] *pde = 00000000 Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] Modules linked in: iftl af_packet binfmt_misc sco bridge stp bnep rfcomm l2cap bluetooth ppdev ipv6 cpufreq_ondemand cpufreq_conservative cpufreq_stats cpufreq_userspace cpufreq_powersave freq_table sbs video output processor sbshc container pci_slot iptable_filter ip_tables x_tables lp snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy evdev snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event parport_pc snd_seq serio_raw psmouse parport battery ac snd_timer snd_seq_device snd button pcspkr i2c_piix4 soundcore i2c_core snd_page_alloc ext3 jbd mbcache sd_mod crc_t10dif sr_mod cdrom sg pata_acpi ata_piix ata_generic ohci_hcd ehci_hcd libata floppy usbcore pcnet32 mii scsi_mod thermal fan fuse [last unloaded: iftl] Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] Pid: 5238, comm: a.out Tainted: G D (2.6.30-rc4 #1) VirtualBox Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] EIP: 0060:[<c0252931>] EFLAGS: 00010202 CPU: 0 Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] EIP is at generic_make_request+0xa1/0x5b0 Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] EAX: 00000008 EBX: d4a6bf00 ECX: 00000000 EDX: 00000575 Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] ESI: d4a6bf00 EDI: 00000000 EBP: df92fd00 ESP: df92fc28 Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0069 Jul 21 01:14:57 anup-laptop kernel: [ 5151.712119] 0000080e 00e69000 ff0726f3 0000000a 00000012 00e69000 0000270f 0000270f Jul 21 01:14:59 anup-laptop kernel: [ 5151.933190] ---[ end trace e9f702dc2ed6eebd ]--- Instead of filling buffer_heads and passing it to the submit_bh(), I created the BIO structure passed a page through it. It worked fr ...
what does your /proc/bus/input/devices say ? regards vibi sreenivasan -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
On Tue, May 19, 2009 at 2:40 AM, vibi sreenivasan It did not show up in input/devices. I don't think it is seen as an input device since it show up as /dev/usb/hiddev0. Thanks, T.
Will this help ? http://www.linuxjournal.com/article/7353 Thanks - -- Thanks - Manish -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
