Coder Social home page Coder Social logo

Comments (10)

apocatarsis avatar apocatarsis commented on May 24, 2024

Thank YOU for using it!

I do not think you are doing something wrong. Maybe your device is different from the one we used!. You could try to run the naga executable alone and see if it works, without using nagastart. You will have to deal with the default mapping but its just one magic line (see Usage in the front page).

The chroma we use to add support showed up like this, as seen in naga.cpp
"/dev/input/by-id/usb-Razer_Razer_Naga_Chroma-if02-event-kbd"
"/dev/input/by-id/usb-Razer_Razer_Naga_Chroma-event-mouse" // NAGA CHROMA

Which you have in your /dev/input
And the rest of the /dev/input entries seems ok to me. So at least the executable should work as expected. If it does not manage to get control of the device it will give you an error message, if it works it wil tell you "reading from...".

Let us know if you manage to fix it!

from naga_keypadmapper.

c4tz avatar c4tz commented on May 24, 2024

Okay, it seems to work if I just sudo naga.. The button mapping is working, too. :)

So it seems like nagastart.sh just crashes because of the two IDs and can not start the daemon because of this. A workaround for me would be to just put the right ID in it, should be 9 in this case, shouldn't it?

Also, another quick question as we're already at it: where are buttons 13 + 14?

from naga_keypadmapper.

apocatarsis avatar apocatarsis commented on May 24, 2024

Glad to hear it!
Yeah, as every model appears different in xinput nagastart has to be a little hacky. You can replace nagastart with the lines in Usage with the correct id, find out wich one it is by trial and error I would say.

You can then put that lines in a script and create your own nagastart.sh, something like this:
xinput set-int-prop [id] "Device Enabled" 8 0
xinput set-button-map 2 1 2 3 4 5 6 7 11 10 8 9 13 14 15
naga

[id] would be 9 or 10 for you.
Keep in mind that the second line might not even be necessary, try without it first!.

If you manage to get it working please give us the lines so we can add it to the script!

As for the buttons, no idea, is a mess of buttons in my head. Could be the "lean left/right" thingy buttons in the scroll, or the forward/backward, or maybe just nothing.

Thanks for your feedback!

from naga_keypadmapper.

c4tz avatar c4tz commented on May 24, 2024

You meant:

xinput set-int-prop 11 "Device Enabled" 8 0
xinput set-button-map [id] 1 2 3 4 5 6 7 11 10 8 9 13 14 15
naga

right?

Yeah, the buttons just seem to be non-existant for me, or at least I cannot ctrl+z with any of mine ;)

from naga_keypadmapper.

apocatarsis avatar apocatarsis commented on May 24, 2024

Yes yes you are right, sorry

Use xinput get-button-map [id2] to get info about the available buttons

from naga_keypadmapper.

c4tz avatar c4tz commented on May 24, 2024

Okay well it only works if I do sudo naga, it won't work without root access.

If I try do it without (what would happen at every boot), it tells me:

No naga devices found or you don't have permission to access them.

from naga_keypadmapper.

Destroyer avatar Destroyer commented on May 24, 2024

This should get around it(it's in install script) - maybe u need to reload udev rules or reboot.
echo 'KERNEL=="event[0-9]*",SUBSYSTEM=="input",GROUP="razer",MODE="640"' > /etc/udev/rules.d/80-naga.rules

If that still doesn't work you can just use sudo chmod 644 /dev/input/event{ID1,ID2} (where ID1 and ID2 are the devices you wanna listen to. Then you should be able to use naga without sudo.

(I'll reply in more detail when I'll be home)

from naga_keypadmapper.

c4tz avatar c4tz commented on May 24, 2024

It works almost, after a reboot.

But I think there still is a permission issue. When I try to start Firefox with (button 9), it tells me the dbus-service is not running. When I start it manually, everything is fine.

from naga_keypadmapper.

Destroyer avatar Destroyer commented on May 24, 2024

Interesting, that has never happened to me. The only thing the executable does after catching a key is this:
test.c

#include <stdio.h>
int main (void)
{
system("setsid firefox &");
return 0;
}

if you run gcc test.c -o test and then run ./test does it work?

from naga_keypadmapper.

c4tz avatar c4tz commented on May 24, 2024

test.c works without a flaw..

Maybe its because of the razer group?

from naga_keypadmapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.