Troubleshooting & How-Tos 📡 🔍 Linux

PineTab2 Notes: Getting Things Working

Things I’ve had to do on my PineTab2 to get various features working and/or usable.

Charging

It won’t charge from zero while off. I have to I plug it in, then turn it on, then let it charge.

Automatic Screen Rotation (Overall and Plasma)

I had to install the package to detect the rotation sensors:

sudo pacman -S iio-sensor-proxy

And uncheck the “tablet mode only” box in KDE Plasma

Via frtodd

Performance: LXQt

KDE Plasma is really nice! It’s also really slow on this hardware. I switched to LXQt to speed things up.

sudo pacman -S lxqt

Via IPXFong

LXQt Network Manager

To be able to connect and disconnect to networks under LXQt, I installed nm-tray from AUR. TODO: add notes on building AUR packages.

XOrg and LXQt: Rotate Touchscreen Inputs

The touchscreen input doesn’t automatically rotate along with the display under all desktop environments. Plasma seems to be fine, but LXQt needs help.

I got the touchscreen rotated in LXQt (on X11), based on cgbarros’ posts on fixing it in Sway. I just had to locate the X11 way of doing it and figure out which package xinput and xrandr were in!

This installs xinput:

sudo pacman -Sy xorg-xinput

Now put this in a file, say rotate-touchscreen.sh and make it executable. It can be in your own directory if you’re the only user, since it’s going to be run under your login.

#!/bin/sh
xinput map-to-output 'pointer:Goodix Capacitive TouchScreen' DSI-1

Go to LXQt Settings>Session Settings>Autostart and add a new entry to the global list called “Rotate Touchscreen” pointing to the script.

Check the box for “Wait for system tray.”

WiFi Network

At the time the PineTab2 shipped, the network driver for the built-in WiFi chip was not complete. I used a USB WiFi dongle for a few months.

Steps to get it working:

Update the system using a network adapater:

sudo pacman -Syu

Reboot to the new kernel.

Test the network access:

sudo modprobe bes2600

Enable it on boot:

sudo -i
echo bes2600 | sudo tee /etc/modules-load.d/bes2600.conf
exit

via moobythegoldensock

BlueTooth

Same chip as the WiFi. According to the same post, enabling Bluetooth support:

sudo pacman -S bluez-deprecated-tools
sudo -i
echo ifname:bt cmd:BT_ON > /dev/bes2600
rfkill unblock bluetooth
hciattach -s 1500000 /dev/ttyS1 any 1500000 flow nosleep
hciconfig hci0 up
exit
sudo systemctl enable bluetooth

again, via moobythegoldensock

Eventually I’ll get around to trying this with a mouse or something.

Suspend/Resume Hanging

I was having issues under LXQt where the screen would turn off for inactivity and then not turn back on until I rebooted. This may be fixed.

AUR Packages Without ARM Support

Upstream Arch Linux is all about x86_64. The Danctnix project is a port to aarch64. Packages in the Arch User Repository (AUR) don’t always support building for ARM…but the upstream projects often do. At the time I installed nm-tray, I had to change the arch= line in the PKGBUILD file to read:

arch=('x86_64' 'aarch64')

After I reported to the package owner that it works, they updated the config so it’ll be simpler next time.

This won’t always work! Not every upstream package will support ARM64 and some that do will require different configuration options. And then there are binary-only packages.

Though I did manage to get Vivaldi installed! There’s an AUR package that downloads the official x86_64 RPM, extracts the contents and repackages it for Arch. And Vivaldi does provide an RPM for ARM64 as well. So I used the same trick with the PKGBUILD file, swaping in aarch64 for the architecture and then changing the download URL to point to the other RPM.

File Management and Cloud Syncing

Nextcloud clients and GUI integration can be installed natively. To get it to log in automatically, it does require a keyring manager like kwallet or gnome-keyring to already be running. That’s fine under Plasma or GNOME, but I had to add /usr/lib/pam_kwallet_init to my autostart config to get it to stay logged in under LXQt.

Dropbox doesn’t seem to support ARM at all.

Web access to both Nextcloud and Dropbox are really slow on this hardware when run on something like Firefox. And both complain about “non-supported” browsers like Falkon and Angelfish (which are a lot faster!)

USB Ports

The port closest to the power button is for data, but doesn’t provide a lot of power. So some devices work fine, but others won’t turn on. (Unfortunately this includes all my USB-C hubs) The other port is only for charging. It’s not clear whether this is a hardware limitation or software.