View Single Post
Old 11-16-2019, 05:52 PM   #7
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Oh, sure, you can now fake an USBMS session without any actual user interaction.

c.f., UNCaGED for a similar (albeit slightly more complex) use-case.

For your use-case, something as simple as

Code:
echo "usb plug add" >> /tmp/nickel-hardware-status
button_scan -pu
Would probably do.

(See FBInk for button_scan binaries).

You could then arguably stick that in a shell script triggered via a KFMon icon, and it becomes computerless. Not painless, because the fake USBMS session takes time, but, that's currently the best we can do.

Last edited by NiLuJe; 11-16-2019 at 06:05 PM. Reason: Fixed the button_scan flags
NiLuJe is offline   Reply With Quote