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

After starting repeated return code is send #3

Open
ijskegel opened this issue Dec 10, 2019 · 5 comments
Open

After starting repeated return code is send #3

ijskegel opened this issue Dec 10, 2019 · 5 comments

Comments

@ijskegel
Copy link

ijskegel commented Dec 10, 2019

After starting spacefn-evdev return code is send repeatedly. This is on Debian 10.

I start the application with:
sudo ./spacefn /dev/input/......

And get the following output:
state 0
and after that a lot of empty lines (carriage returns) that keeps continuing.

After pressing the space bar once everything is fine.

If I start spacefn in the background and redirect all output to /dev/null the same happens.

BTW: Thanks for this amazing tool that makes using space-fn on a laptop keyboard possible!

@abrasive
Copy link
Owner

abrasive commented Dec 10, 2019 via email

@ijskegel
Copy link
Author

ijskegel commented Dec 10, 2019

Ok, that makes sense. I'm not very familiar with key presses and release in linux. Can you give me a hint on how I can work out what the actual problem is?

I've added a print statement to the read_one_key function:
fprintf(stdout, "type:%d, code:%d, value:%d\n", ev->type, ev->code, ev->value);
fflush(stdout);

Now it shows the following after starting spacefn:

state 0
type:4, code:4, value:28
type:1, code:28, value:0
type:0, code:0, value:0
<newline>
<newline>
<newline>
<newline>
...

If I hit the space bar then it shows:

type:4, code:4, value:57
type:1, code:57, value:1
state 1

@maciejmotyka
Copy link

maciejmotyka commented Dec 10, 2019

I observe the same behavior on Ubuntu 19.10.

@hoanglongcao
Copy link

hoanglongcao commented May 11, 2020

I also have it with Linux Mint. Somehow the input device sends Enter-press without Enter-release.

@TimApplepie
Copy link

I can confirm the issue on Ubuntu 20.04.

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

5 participants