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

logkeys: Error opening input event device '': No such file or directory #149

Open
deekshith1410 opened this issue Apr 22, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@deekshith1410
Copy link

commented Apr 22, 2016

"sudo logkeys --start --output filename.log" is giving this error

@kernc

This comment has been minimized.

Copy link
Owner

commented Apr 22, 2016

Please attach your /proc/bus/input/devices.

@deekshith1410

This comment has been minimized.

Copy link
Author

commented Apr 22, 2016

@deekshith1410

This comment has been minimized.

Copy link
Author

commented Apr 22, 2016

It says, logkeys: Error opening input event device ' ' : No such file or directory
why would event device null?

@jzohrab

This comment has been minimized.

Copy link
Contributor

commented Apr 22, 2016

That error is this line in the code: https://github.com/kernc/logkeys/blob/master/src/logkeys.cc#L431

The device is found by grepping the file you supplied, https://github.com/kernc/logkeys/blob/master/src/logkeys.cc#L335, but that regex should have matched on the line in your attached file that says EV=120013, and then there's another regex.

@kernc - would the regex not have found the Handlers line in the file, Handlers=sysrq kbd event3 leds ?

@kernc

This comment has been minimized.

Copy link
Owner

commented Apr 24, 2016

$ command grep -E 'Handlers|EV=' /tmp/devices.txt |
      command grep -B1 'EV=1[02]001[3Ff]' | 
      command grep -Eo 'event[0-9]+' 
event3

I believe it should.

Does returning string like that work with all compiler flags?

@jzohrab

This comment has been minimized.

Copy link
Contributor

commented Apr 24, 2016

It ought to, but I can't say for sure for all compilers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.