g13 icon indicating copy to clipboard operation
g13 copied to clipboard

no /tmp/g13-0 created

Open anthonyclarka2 opened this issue 9 years ago • 1 comments

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!

anthonyclarka2 avatar Dec 11 '15 02:12 anthonyclarka2

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).

james-fowler avatar Dec 11 '15 05:12 james-fowler