View Single Post
Old 04-22-2013, 02:22 PM   #95
joris_
Junior Member
joris_ has a complete set of Star Wars action figures.joris_ has a complete set of Star Wars action figures.joris_ has a complete set of Star Wars action figures.joris_ has a complete set of Star Wars action figures.
 
Posts: 7
Karma: 364
Join Date: Apr 2013
Device: Kobo Glo
Home button simulation for the Glo (as long as the home button is displayed in the top left corner; in other words, this simulates a touch event in the top left corner where normally the home button would be located):

Code:
echo -e '\x40\x7F\x75\x51\x50\x28\x00\x00\x03\x00\x01\x00\xC7\x02\x00\x00\x40\x7F\x75\x51\x74\x28\x00\x00\x03\x00\x00\x00\x30\x00\x00\x00\x40\x7F\x75\x51\x7F\x28\x00\x00\x03\x00\x18\x00\x65\x00\x00\x00\x40\x7F\x75\x51\x8C\x28\x00\x00\x01\x00\x4A\x01\x01\x00\x00\x00\x40\x7F\x75\x51\x96\x28\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x7F\x75\x51\x02\x4B\x00\x00\x03\x00\x18\x00\x00\x00\x00\x00\x40\x7F\x75\x51\x10\x4B\x00\x00\x01\x00\x4A\x01\x00\x00\x00\x00\x40\x7F\x75\x51\x17\x4B\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' > /dev/input/event1
(I produced this using cat /dev/input/event1 > foo.bar; it's possible that simulating a home button input could be done with fewer bytes, but I tried a few times and this was about as short as I could do)
joris_ is offline   Reply With Quote