termux / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
2.35k stars 461 forks source link

Can't listen to "Orientation" sensor with -s flag #570

Open PalaBeaveR opened 1 year ago

PalaBeaveR commented 1 year ago

Problem description Trying to listen to the "Orientation" sensor with -s flag, instead listens to "DeviceOrientation" sensor even though there's an exact match.

image

If listening with the -a flag, the "Orientation" sensor works as expected.

Steps to reproduce

  1. Have both "Orientation" and "DeviceOrientation" sensors
  2. run termux-sensor -s "Orientation"

Expected behavior The "Orientation" sensor is used instead of "DeviceOrientation".

Additional information

TomoBossi commented 4 months ago

Bump, I'm having the same issue