Git Product home page Git Product logo

Comments (5)

askervin avatar askervin commented on August 16, 2024

Possibly they are using wrong input device on your hardware. Would you go through the following steps, please:

  1. launch fmbt-scripter from fMBT's devel branch.
  2. Choose File -> New Tizen.
  3. Press the Rec button.
  4. Press the Power key on your Tizen device.
  5. Press the Home key on your Tizen device.
  6. Copy-paste here what was printed by fmbt-scripter below the editor. I'm especially interested about the lines starting with "GestureEvent(time=...", because it shows correct input device for both buttons. (The device may be different for different buttons.)

from fmbt.

madhav-pai avatar madhav-pai commented on August 16, 2024

GestureEvent(time=371.753121, event="keydown", key=Power, pos=None, device='qpnp_pon')
GestureEvent(time=372.366826, event="keyup", key=Power, pos=None, device='qpnp_pon')
GestureEvent(time=379.71038, event="keydown", key=KEY_MENU, pos=None, device='gpio-keys')
GestureEvent(time=380.300362, event="keyup", key=KEY_MENU, pos=None, device='gpio-keys')

from fmbt.

askervin avatar askervin commented on August 16, 2024

Thanks! I added a patch. If you update the latest fMBT devel version, pressPower(), pressHome() (that is equal to pressKey("MENU")) should work fine now. Feel free to repen this issue, if they do not.

from fmbt.

madhav-pai avatar madhav-pai commented on August 16, 2024

The issue does not seem to working.... Please re-open

from fmbt.

madhav-pai avatar madhav-pai commented on August 16, 2024

root@madhav:~/fMBT/utils# sdb shell
sh-4.1# grep qpnp_pon /tmp/fmbttizen-agent.py
sh-4.1# python /tmp/fmbttizen-agent.py --debug
FMBTAGENT OK {'input devices': ['accelerometer_sensor', 'max77803-muic', 'sec_touchkey', 'sec_touchscreen', 'light_sensor', 'qpnp_pon', 'gpio-keys', 'sii8240_rcp', 'magnetic_sensor', 'gyro_sensor', 'proximity_sensor']}
kp POWER
FMBTAGENT OK None
kp POWER
FMBTAGENT OK None
kp MENU
Traceback (most recent call last):
File "/tmp/fmbttizen-agent.py", line 928, in
if iAmRoot: rv, msg = sendHwKey(cmd[3:], 0, 0)
File "/tmp/fmbttizen-agent.py", line 416, in sendHwKey
except: fd = keyboard_device._fd
NameError: global name 'keyboard_device' is not defined
sh-4.1# kp HOME
sh: kp: command not found
sh-4.1# kp HOME
sh: kp: command not found
sh-4.1#

root@madhav:~/fMBT# python -c 'import fmbttizen;c=fmbttizen.Device; c.pressPower()'
Traceback (most recent call last):
File "", line 1, in
TypeError: unbound method pressPower() must be called with Device instance as first argument (got nothing instead)

sh-4.1# grep qpnp_pon /tmp/fmbttizen-agent.py
sh-4.1#

from fmbt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.