Thread: keyboard driver

  1. #1
    Registered User Annonymous's Avatar
    Join Date
    Apr 2011
    Location
    Jackson, New Jersey, United States
    Posts
    302

    keyboard driver

    Does anyone have any references for URL's, PDF's, books, for absolute beginners on programming keyboard drivers for Linux in C? I have been programming in C for about a year, and have been using Linux for 5+. But I know nothing about keyboard drivers but would love to learn if possible! Some board members just helped me learn the basics of Linux kernel modules the other day. Anyone??

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Linux comes complete with free source code - maybe you could start with the existing implementation.

    Consider this piece of personal initiative good practice for when things get really hard for you, such as your latest programming effort is causing kernel panics.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User Annonymous's Avatar
    Join Date
    Apr 2011
    Location
    Jackson, New Jersey, United States
    Posts
    302
    I know that Linux comes with free source code. It's always a .......... to find though! And that device driver source code is really advanced! We're talking about an OS(Ubuntu) that is very mainstream! I was thinking about something less advanced and aimed towards the complete beginner. You know, something noob friendly! But thanks for the advice man!

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Most keyboards wont require a driver as they present themselves as HIDs to the OS and the OS does its own thing with them.

    Your best bet is to spend some time reading - the source, the docs, some articles and a few good books. The books have been suggested in a previous post and the rest is available with a google search.

    If you are looking for something "noob friendly" in kernel code then you will struggle, I'm sorry to say.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C++] USB gadget driver, unbound kernel driver?
    By Jelte in forum C++ Programming
    Replies: 0
    Last Post: 01-13-2010, 08:53 AM
  2. Keyboard port using other that a keyboard
    By antoinelac in forum C++ Programming
    Replies: 4
    Last Post: 06-12-2008, 02:46 PM
  3. Right to the driver.
    By Yarin in forum C++ Programming
    Replies: 3
    Last Post: 09-10-2007, 01:58 PM
  4. Secondary keyboard driver
    By bennyandthejets in forum Networking/Device Communication
    Replies: 0
    Last Post: 01-06-2004, 04:36 AM
  5. how to know a driver is in use?
    By orcher in forum C++ Programming
    Replies: 0
    Last Post: 06-12-2002, 07:59 AM