View Single Post
Old 11-24-2022, 03:36 AM   #902
fennectech
Connoisseur
fennectech will become famous soon enoughfennectech will become famous soon enoughfennectech will become famous soon enoughfennectech will become famous soon enoughfennectech will become famous soon enoughfennectech will become famous soon enoughfennectech will become famous soon enough
 
Posts: 57
Karma: 748
Join Date: Aug 2016
Device: Kobo Clara HD, Kobo Clara E2, Kindle 4 Keyboard 3G
Ive been working on implimenting a gadget toggle for my kobo using a glag file
```
menu_item : main : Toggle USB OTG : cmd_output : 500 : quiet : test -e /tmp/otg_enabled
chain_success : skip : 4
chain_always : cmd_spawn : quiet: touch /tmp/otg_enabled
chain_always : cmd_spawn : quiet: mount -t debugfs none /sys/kernel/debug
chain_always : cmd_spawn : quiet: echo host > /sys/kernel/debug/ci_hdrc.0/role
chain_always : dbg_toast : USB OTG IS ENABLED
chain_failure : skip : 3
chain_always : cmd_spawn : quiet: rm /tmp/otg_enabled
chain_always : cmd_spawn : quiet: echo gadget > /sys/kernel/debug/ci_hdrc.0/role
chain_always : dbg_toast : USB OTG IS DISABLED
```
here are the commands to do that
https://www.mobileread.com/forums/sh...d.php?t=340418


Can somebody fix this for me? i tried
fennectech is offline   Reply With Quote