sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
408 stars 43 forks source link

Mouse / Touch input support for DRM-GBM Backend #217

Closed Arna-Maity closed 10 months ago

Arna-Maity commented 10 months ago

Are mouse and touch inputs supported for DRM-GBM Backends?

HidenoriMatsubayashi commented 10 months ago

Yes. Thanks.

Arna-Maity commented 10 months ago

@HidenoriMatsubayashi Actually I was unable to use the mouse/trackpad using the GBM backend on an x64 PC.

Also, is there a way to terminate the app once it is already running?

HidenoriMatsubayashi commented 10 months ago

Does an user who you are using for running your flutter app have a permission to access input devices(/dev/input/xxx)?

Also, is there a way to terminate the app once it is already running?

This is a general question. Please google it.

Arna-Maity commented 10 months ago

Does an user who you are using for running your flutter app have a permission to access input devices(/dev/input/xxx)?

My user account does have RW access, does it also need the execute (X) bit set?

Inputs

This is a general question. Please google it.

Tried most of the general ways to close the application but the issue is once the application is opened (in DRM/GBM mode), it doesn't seem to respond to any kind of user input. It was also not possible to switch to a different tty session to kill the process. Maybe I suppose this is related to my inputs not working when the application is running in DRM/GBM mode.

talksik commented 10 months ago

@Arna-Maity were you able to change the permissions and get this working?

@HidenoriMatsubayashi I believe a post like this should be re-opened if the issue is not resolved.

Arna-Maity commented 10 months ago

were you able to change the permissions and get this working?

@talksik Not yet. Still facing this issue.

talksik commented 10 months ago

@Arna-Maity please let me know when you have changed the permissions with chmod and tested.

Arna-Maity commented 10 months ago

So I tried giving RW permissions to the Others field of all the input devices /dev/input/event*, /dev/input/mouse* and /dev/input/mice using the following:

sudo chmod 666 /dev/input/event* /dev/input/mouse* /dev/input/mice

That seemed to do the job.

Thanks, @talksik @HidenoriMatsubayashi .

talksik commented 10 months ago

Perfect thank you for closing the loop!