Difference between revisions of "PinePhone (Pro) Keyboard"

Jump to navigation Jump to search
(→‎Software support: wiki style)
Line 33: Line 33:


=== User-space driver ===
=== User-space driver ===
The user-space driver is available [https://xff.cz/git/pinephone-keyboard/ here]. Use git to clone the repository. You're going to need sdcc 4.1+ installed to build it, so use your package manager to install that first. Next you'll cd into the directory you cloned pinephone-keyboard and use the command "make" to build. After the build is completed, cd into the build directory and you'll notice several new files starting with ppkb-. To use your keyboard case, you'll want to run the following command: <code>sudo ./ppkb-i2c-inputd</code> <!-- this isn't running as a daemon, if anyone knows how to make it do so please edit that info in! --> Open something you can type into like a new terminal window or text editor and you should now be able to use the keyboard case! One thing you may notice is that squeekboard is still opening whenever a text field is selected. This can quickly become annoying, so I made myself the following aliases to prevent this:
The user-space driver is available [https://xff.cz/git/pinephone-keyboard/ here]. Use git to clone the repository. You're going to need sdcc 4.1+ installed to build it, so use your package manager to install that first. Next you'll cd into the directory you cloned pinephone-keyboard and use the command "make" to build. After the build is completed, cd into the build directory and you'll notice several new files starting with ppkb-. To use your keyboard case, you'll want to run the following command: <code>sudo ./ppkb-i2c-inputd</code> <!-- this isn't running as a daemon, if anyone knows how to make it do so please edit that info in! --> Open something you can type into like a new terminal window or text editor and you should now be able to use the keyboard case!  


<code>alias kboff='gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false'</code>
=== Notes ===
Virtual keyboards such as <i>squeekboard</i> is still opening whenever a text field is selected.


<code>alias kbon='gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true'</code>
To disable this behavior under GNU/Linux running Phosh, you can run the following:


Change the alias names to whatever you want if you don't like the names I used for mine. The keyboard case becomes much more useful when squeekboard no longer toggles constantly, but you'll want a way to turn it back on easily before removing the keyboard case so you can keep using your phone!
To disable the virtual keyboard: <code>gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false</code>
 
To enable the virtual keyboard: <code>gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true</code>
 
The virtual keyboard needs to be activated before removing the keyboard case again.


== Keyboard layout ==
== Keyboard layout ==
Moderator
1,493

edits

Navigation menu