Tweaks for the Pinetab

Document tweaks for the PineTab especially, but not exclusively.

Phosh it to landscape (inverted)

To change the view after every reboot or suspend to landscape again it's a good idea to make a script and a desktop icon.

First install wlr-randr

sudo apt install wlr-randr

Make a script (e.g. ~/.local/bin/

# set pinetab landscape mode (it is landscapeInverted)
wlr-randr --output DSI-1 --transform 270

For a desktop icon you need a file under .local/share/applications (e.g. ~/.local/share/applications/pt-landscape.desktop)

[Desktop Entry]

Not working atm

To let Phosh start in landscape (theoreticaly) you need a rotate in /etc/phosh/phoc.ini look like this. Wired that a rotation of 90 degrees looks to be the right value, not 270. But the landscape login screen is not persistent.


scale = 1
rotate = 90


Automount issue phosh and gnome-shell

Edit: after a fresh flash it's gone. May be it was a result of to many experiments.

Using mobian on a sdcard to conserve UT on the emmc of the device caused an automount loop (check with 'sudo journalctl -f' in a terminal) using gnome-tweaks or try to edit preferences (ex. App Balsa Edit→Preferences→Settings). It makes the UI unresponsive!

The only way I could fix it as user mobian was

systemctl --user mask gvfs-udisks2-volume-monitor.service

After that, this can be found in the log, but UI ist responsive

Okt 05 14:50:44 mobian dbus-daemon[1761]: [session uid=1000 pid=1761] Activating via systemd: service name='org.gtk.vfs.UDisks2VolumeMonitor' unit='gvfs-udisks2-volume-monitor.service' requested by ':1.81' (uid=1000 pid=2554 comm="balsa ")
Okt 05 14:50:44 mobian dbus-daemon[1761]: [session uid=1000 pid=1761] Activation via systemd failed for unit 'gvfs-udisks2-volume-monitor.service': Unit gvfs-udisks2-volume-monitor.service is masked.
Okt 05 14:50:44 mobian org.desktop.Balsa.desktop[2554]: Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.UDisks2VolumeMonitor: Unit gvfs-udisks2-volume-monitor.service is masked. (g-io-error-quark, 36)

Autoswitching OSK with udev

With the update of sqeekboard to version 1.10, the honoring of the variable screen-keyboard-enable is supported. So using this combined with some udev magic can give us a rule: mechanical keyboard attached → disable On-Screen-Keyboard and vice versa.

To do this create two script in /home/mobian/scripts. One named with

gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true

and the other one named with

gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false

Then create a file /etc/udev/rules.d/99-attach-keyboard.rules with following code

ACTION=="add", SUBSYSTEM=="usb", ENV{PRODUCT}=="258a/1e/100", RUN+="/bin/su mobian --command='/home/mobian/scripts/'"
ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="258a/1e/100", RUN+="/bin/su mobian --command='/home/mobian/scripts/'"

After this issue

udevadm control --reload

and enjoy your new keyboard switching!