We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Where are bluetooth input devices mounted?

asked 2015-05-11 18:50:24 +0300

tetris11 gravatar image

I've paired an iPega bluetooth gamepad with the Jolla phone (only the volume buttons work but it does respond), but I can't see anything that would give a clue to which device it is under /dev/input/

edit retag flag offensive close delete

Comments

Did you check Settings/Bluetooth? With activated Bluetooth you can see your paired devices and if they are connected or not at the moment. I don't have any input devices set up, but assume they would appear there as well?

molan ( 2015-05-11 21:02:39 +0300 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2015-05-22 15:36:19 +0300

hmallat gravatar image

It's been a while since I tried an ipega gamepad but I remember at least the model I tried has operating mode selection when you turn it on. That is, depending on what you do when turning the device on affects what capabilities it has.

One of the four modes I tried worked nicely in the sense all of the controllers provided reasonable inputs while the other three modes were limited in various ways. I verified with "evtest" program (compiled it from sources) that all sticks and buttons produced sensible events in the good mode. But as it was a long time ago and I don't have the controller at hand right now I can't immediately check which mode the good one was.

For the question you had, the device will be most probably the /dev/input/eventXX device with the largest index (as it most likely appears last). You can check /sys/class/input/event*/name -- for a BT device the name will be the device address.

edit flag offensive delete publish link more

Comments

excellent, so i know for sure that the device works properly. The source of my woes is likely the android app um using then

tetris11 ( 2015-05-22 19:40:11 +0300 )edit
2

Also evdev_trace is usefull command. It is installed with mce-tools package.

To see input events, use evdev_trace -t

kimmoli ( 2015-05-22 22:23:01 +0300 )edit

Android app support for Bluetooth input events is still on the todo list, so currently you can get controller events to native apps but they aren't passed to Android apps. It will be done in a future sw update though.

hmallat ( 2015-05-25 09:18:15 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-05-11 18:50:24 +0300

Seen: 401 times

Last updated: May 22 '15