Quote:
Originally Posted by Frogm4n
Ah, ha. I've figured out some of my keyboard issues! This BT keyboard of mine has multiple modes for different OSs, such as Android, Windows, and iOS. The default keys are different across the modes. Turns out it was in iOS mode likely due to being used with an iPad earlier, and that means it wasn't out putting PgUp and PgDn keycodes, on top of using media keys instead of the F-keys. Putting it into Android mode will send PgUp/PgDN keycodes, but still defaults to media keys. Windows mode defaults to F-keys and all other expected keycodes.
Still haven't gotten any page turn response in the stock Kindle reader, though. I'm curious what evtest output codes people get on keyboards that do work to turn pages in the stock Kindle UI.
|
There's an unfortunate snag with the page up/page down to turn the page: it depends on your Kindle model
These keys are handled specially by the window manager (in
/etc/xdg/awesome/lab126_whisper_touch.lua). These keys are used by Kindles with physical page turn buttons, and the downside is the window manager
checks device capabilities to decide whether these will be permitted key presses.
If you don't have a device with these buttons, you'll see an error in
/var/log/messages along the lines of:
Code:
E WindowManager:whisperTouchButton Handled By WinMgr:reason:featureNotEnabled
Similarly, newer models with an accelerometer and the double-tap-to-turn feature use this same system. For these,
F7 will turn the page. Pressing it on a device without the accelerometer will also get blocked by the window manager.
If you have
xdotool (which you can grab from another Linux distro), you can work around this by sending to the X window of the reader directly. (Using the default root window will cause it to get blocked by the WM.)
Code:
xdotool key --window $(xdotool getactivewindow) Page_Down
I have a small program in the works (useful with my 8bitdo micro, functioning as a gamepad or normal keyboard) to forward along/remap these key presses (and a bit more, like changing brightness and orientation). It's not quite ready for release yet, but once I write a bit of documentation and put together some KUAL helpers, I'll be sure to share it here too