Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no /tmp/g13-0 created #14

Open
anthonyclarka2 opened this issue Dec 11, 2015 · 1 comment
Open

no /tmp/g13-0 created #14

anthonyclarka2 opened this issue Dec 11, 2015 · 1 comment

Comments

@anthonyclarka2
Copy link

Hey,

This is great, thank you so much for writing it!

My c++ is very weak, is there a way to get any debugging info from the g13d executable? It's not creating the /tmp/g13-0 file and I wanted to try to figure out why. I don't have SELinux, it's running on Fedora 23 latest patches and definitely finds the G13 OK.

Thanks!

@james-fowler
Copy link
Collaborator

Unfortunately there's no command line option to add more debugging output. The part where it says "Found 1 G13s" comes before opening the pipe. The pipe open() call isn't checked for error (-1), so it's plausible that it would silently continue if the open failed (whether or not that would case errors later trying to use a bad fid I haven't checked). Do you get keyboard action, i.e. if you go to a terminal and starting hitting G keys on the G13, do you get a bunch of "a"s? If so, you might want to make sure you don't have a permissions problem. Try "echo Hello > /tmp/g13-0". If that fails creates a new file, you're permissions are probably wrong (if it succeeds, don't forget to "rm /tmp/g13-0" - don't want the file causing more problems).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants