ecraven / g13

libusb driver for the g13
134 stars 80 forks source link

Some FAQ ideas to your next readme, plus some errors #1

Closed Miscni closed 13 years ago

Miscni commented 13 years ago

For your FAQ Readme. 1.A libusb couldn't open USB device /dev/bus/usb/002/004: Permission denied. 2.A libusb requires write access to USB device nodes. (/dev/uinput doesn't grant write permissions)

1.B sudo chmod a+rw /dev/bus/usb/002/004 2.B sudo chmod a+rw /dev/uinput

Now for my problem.

When I type ./g13 starcraft2.bind or war.bind etc, I get this errors here: Invalid LCD data size 352, should be 960 Invalid LCD data size 4294967295, should be 960 and no matter what key I push on the G13, I only get the letter a shown up, but the Joystick seems to react correctly, but I cant be certain.

I also looked over your code in g13.cc, and under line 647, I found this here "map[i] = KEY_A;" I dont know, if that could have anything to do with it. I really hope you will answer, because if you can get it to work, then I would gladly make a new tutoriel, for you nice work.

Hope to hear back from you soon.

Cheers.

Doc-Smimble commented 13 years ago

Hi Miscni

First of all please checkout that no other programs like g15-tools,etc runs at the same time in the background. Your write this: "When I type ./g13 starcraft2.bind or war.bind etc, I get this errors here: Invalid LCD data size 352, should be 960 Invalid LCD data size 4294967295, should be 960" Please start only the program like this "./g13" nothing more. after that you must see the gnu logo on your g13 devices. ecraves writes: The daemon creates a pipe at /tmp/g13-0, you can send commands via that pipe (e.g. by running "echo "rgb 0 255 0" > /tmp/g13-0") One way to use the bind files is this: echo "$(cat starcraft2.bind)" > /tmp/g13-0

You write this: "I also looked over your code in g13.cc, and under line 647, I found this here "map = KEY_A;" Thats ok, the KEY_A binds automatic all not reserved keys. This is a function demo, to give you feedback that all your keys of the g13 working. Your can disable this with writing the follow code: "map[i] = 0;"

Hope it helps you.

Thanks Doc.

Miscni commented 13 years ago

Well I only use ecravens on this computer here. And I found out the problem, and many thx to you.

I really like that are being made here.

Cheers...