Announcement

Collapse
No announcement yet.

Reverse-Engineering USB Keyboards For Linux Support

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reverse-Engineering USB Keyboards For Linux Support

    Phoronix: Reverse-Engineering USB Keyboards For Linux Support

    For those interested in reverse-engineering USB keyboards (or other input devices), there's a short yet effective guide by Julien Danjour for reverse-engineering a Logitech keyboard in order to provide Linux support...

    http://www.phoronix.com/vr.php?view=MTEzODU

  • #2
    I've tried this too. I got my K750 last summer and since then I've sniffed the packages using usbmon and figured out pretty much the same things that he had (how and where the information is stored). I just didn't have the experience to write even that libusb program he had. But it's great that someone has. Releasing keyboard's driver didn't seem to be a good idea (on a computer with only one keyboard), but then I figured out that the information is passed to hidraw and it can be read from /dev/hidraw[0-9] file and that can be used without disconnecting keyboard/receiver. Currently it needs root access (maybe some udev rule helps) and I can't know which device is correct without trying (usually /dev/hidraw3 for me). I'd also like to use solarbutton to lauch an app, but it doesn't seem to do anything but send the package that contains the information.

    Edit:
    Okay. There is some great information in that pdf. We just might get a program that does (at least) what Solar App does on Windows.
    Last edited by Tomin; 07-12-2012, 07:20 AM.

    Comment


    • #3
      Hopefully soon there will be a way to get the battery level/status from a lot more Logitech mice and keyboards, with luck someone will figure out how to (re)configure the device associations for unifying receivers.

      Comment


      • #4
        1) The keyboard is solar powered (really? Or is it solar CHARGED? -- big difference...), hence no need to monitor charge level unless you're consistently living in momma's basement outside of the realm of daylight (in which case you're subhuman and spend more time gnawing on the keyboard than actually typing, so no difference anyway).
        2) Proper place for charge monitoring is directly on the device in question. My wireless mouse has an array of LED's on the side that indicate the charge level.

        Conclusion: This is pointless.

        Comment


        • #5
          Michael, the name of the dev is misspelled.

          It should be Julien Danjou (note the absence of r in the end)...

          Of course, according to Muphry's Laws, I should have bade a mistake somewhere...

          Comment


          • #6
            Originally posted by droidhacker View Post
            1) The keyboard is solar powered (really? Or is it solar CHARGED? -- big difference...), hence no need to monitor charge level unless you're consistently living in momma's basement outside of the realm of daylight (in which case you're subhuman and spend more time gnawing on the keyboard than actually typing, so no difference anyway).
            Or you are in an office without much light, or you want to make sure the batteries aren't dying (I don't mean running out, I mean dying, like has happened with my solar watch), or you don't use it that often.

            Originally posted by droidhacker View Post
            2) Proper place for charge monitoring is directly on the device in question. My wireless mouse has an array of LED's on the side that indicate the charge level.
            Brilliant. Now go try to convince the designers of all the wireless mice and keyboards that don't have such LEDs.

            I have two wireless mice and a wireless keyboard, none of which have such LEDs. In the past I have had at least 6 other wireless mice and 3 other wireless keyboards, and not one had an array of LEDs. Looking at logitech's page right now, they have 18 wireless mice, only two of which appear to have an array of LEDs, and those two are both $99.

            Originally posted by droidhacker View Post
            Conclusion: This is pointless.
            Right, because there are no other features of logitech mice and keyboards that are available on windows but not Linux that could benefit from such an approach.

            Comment


            • #7
              Originally posted by TheBlackCat View Post
              Or you are in an office without much light, or you want to make sure the batteries aren't dying (I don't mean running out, I mean dying, like has happened with my solar watch), or you don't use it that often.


              Brilliant. Now go try to convince the designers of all the wireless mice and keyboards that don't have such LEDs.

              I have two wireless mice and a wireless keyboard, none of which have such LEDs. In the past I have had at least 6 other wireless mice and 3 other wireless keyboards, and not one had an array of LEDs. Looking at logitech's page right now, they have 18 wireless mice, only two of which appear to have an array of LEDs, and those two are both $99.


              Right, because there are no other features of logitech mice and keyboards that are available on windows but not Linux that could benefit from such an approach.
              dude, look at that guy's name. It's obvious he's a troll.

              Comment


              • #8
                Originally posted by Detructor View Post
                dude, look at that guy's name. It's obvious he's a troll.
                Shush. You need to feed the trolls to fatten them up before you devour them.

                Comment


                • #9
                  I'm glad the keyboard was made by Logitech and not Sony, otherwise that guy would've been sued for inovating by now.

                  Comment


                  • #10
                    Some older Logitech wireless devices (from before the Unifying receivers were introduced) are already able to monitor the battery power level through gnome-power-manager. It's good to have support for at least one Unifying device as well - perhaps it won't be too hard to add compatibility with other modern Logitech keyboards/mice as well.

                    Comment


                    • #11
                      I use the wireless trackball Logitech mouse, (M570), not sure how much it would help me. I believe when I turn on the mouse the light flashes green because I have good battery. But hey I would love to see development of Logitech devices under Linux as they are very trusted for me personally.

                      Comment


                      • #12
                        Originally posted by AlbertP View Post
                        Some older Logitech wireless devices (from before the Unifying receivers were introduced) are already able to monitor the battery power level through gnome-power-manager. It's good to have support for at least one Unifying device as well - perhaps it won't be too hard to add compatibility with other modern Logitech keyboards/mice as well.
                        Don't forget not all of us use gnome. Also just tried it with an M305 and gnome-power-manager doesn't even mention a mouse.

                        Comment


                        • #13
                          Originally posted by TheBlackCat View Post
                          Shush. You need to feed the trolls to fatten them up before you devour them.
                          Wise move

                          Comment


                          • #14
                            Originally posted by TheBlackCat View Post
                            Or you are in an office without much light, or you want to make sure the batteries aren't dying (I don't mean running out, I mean dying, like has happened with my solar watch), or you don't use it that often.


                            Brilliant. Now go try to convince the designers of all the wireless mice and keyboards that don't have such LEDs.
                            Every one I've seen has such indicators.

                            I have two wireless mice and a wireless keyboard, none of which have such LEDs. In the past I have had at least 6 other wireless mice and 3 other wireless keyboards, and not one had an array of LEDs. Looking at logitech's page right now, they have 18 wireless mice, only two of which appear to have an array of LEDs, and those two are both $99.
                            Congrats on buying china crap.


                            Right, because there are no other features of logitech mice and keyboards that are available on windows but not Linux that could benefit from such an approach.
                            A mouse is a mouse, a keyboard is a keyboard. Enough with the bullshit.

                            Comment


                            • #15
                              Originally posted by Detructor View Post
                              dude, look at that guy's name. It's obvious he's a troll.
                              Oh fuck off you worthless piece of shit.

                              Comment

                              Working...
                              X