meta data for this page
Table of Contents
If you have random crashes/freezes this might be related to your RAM. Please look at this pine64 forum thread.
If using a slower DRAM frequency solves your problem, please leave a vote in the thread.
Year 2115 Problem
Sometimes, inexplicably (for now), the system clock will shift to the year 2115, often also to the month of August. Fiddling with the data and time settings sometimes don't work. A quick workaround is to bring up “King's Cross” or some terminal program and run “sudo hwclock -s” This will force the system clock to the hardware real time clock (RTC), but that will only work if the RTC has the correct time.
Initial investigation suggests that there's something that goes wrong with the automatic time synchronization. Recommendation is to turn it off in Settings→Date & Time→Automatic Date & Time and Automatic Time Zone and manually set the date and time to see if this helps to resolve the problem. A reboot might also be required to get back into a good state.
One hypothesis is that the timesyncd, which is used in stock Debian can have problems when there are unreliable network connections since it is meant mostly for servers. It turns out that Ubuntu Touch uses ntpd instead. Chrony appears to be a very good solution and installs easily into Debian with “apt install chrony.” Time will tell if this fixes the problem.
As of 2020-07-08 chrony is used in mobian, which should prevent the problem to occur, but it is still present!
Taps not registering on the lock screen (Double-Tap Problem)
If you go to the lock screen and the taps don't seem to be registering. Subsequent taps show previous taps in other locations. The problem appears to be that end of tap event is not being seen by the windowing system. Tapping twice in the same location each time can sometimes get you enough control to reboot the device.
Debugging this problem might be achieved by installing “evtest” and posting the output from “evtest /dev/input/event3” when tapping so that the nature of the events can be captured and analyzed to figure out the failure.
create a /etc/systemd/system/phosh.service.d/debug.conf file with following content:
and then execute
sudo systemctl daemon-reload sudo systemctl restart phosh
and now you'll have phoc displaying all the touch points for you to see what's happening
Note, with kernel 5.10, it seems that this problem is not occuring any longer…
GNSS(GPS) and cell signal problems
In PinePhone, if you are unable to get GPS fix or have problems in connecting to your mobile provider, you may check if the connections of the RF cable are loose. The RF cable is a cable, which connects the mainboard with the smaller board. It becomes accessible after removing the back cover and the middle part, which is fastened with screws.
The antennas, including the wifi antenna, may also be not working, if the middle part is not fastened correctly and there is a gap between the middle part and the front part. On GNSS/GPS see also Location. Note that the modem and consequently also the GPS cannot be enabled without a SIM card.
If the phone doesn't start completely, and you boot from sdcard, you can try to fix things from a shell on a computer, using chroot:
install qemu-user-static if it is not there yet
apt-get install qemu-user-static
mount the sdcard
mount /dev/mmcblk?p2 /mnt/ -o noatime mount /dev/mmcblk?p1 /mnt/boot -o noatime
copy the qemu emulator inside the chroot
cp -u /usr/bin/qemu-aarch64-static /mnt/usr/bin
enter the chroot
chroot /mnt qemu-aarch64-static /bin/bash
now, mount some basic filesystems in the chroot
mount none -t devtmpfs /dev mount none -t devpts /dev/pts mount none -t proc /proc mount none -t tmpfs /tmp
here try to fix things! perhaps start from the logs?
when you are done, unmount the filesystems before exiting:
umount /dev/pts /dev /proc /tmp exit
finally unmount the root fs
umount /mnt/boot /mnt
apt upgrade hangs
If your apt upgrade is hanging it could be an issue with time-sync. You can confirm this by listing the systemd jobs and checking for the time-sync.target and systemd-time-wait-sync.service:
root@mobian:/home/mobian# systemctl list-jobs JOB UNIT TYPE STATE 65 timers.target start waiting 70 apt-daily-upgrade.timer start waiting 68 apt-daily.timer start waiting 72 e2scrub_all.timer start waiting 67 man-db.timer start waiting 69 fwupd-refresh.timer start waiting 71 fstrim.timer start waiting 25 time-sync.target start waiting 24 systemd-time-wait-sync.service start running
If you see this, check to see that your time is synchronized with `timedatectl status`. If so, restarting the sync service should allow the upgrade to continue:
systemctl restart systemd-time-wait-sync
Comment by spaetz:
This could be an instance of this debian bug. It suggests that 'systemd-time-wait-sync' should not be running at all when “chrony” is used for time synchronization (which it is on mobian). So people experiencing this hang could try to
systemctl disable systemd-time-wait-sync and see if this fixes things.
Manually install updates (a la gnome-software)
The updates GUI application is called gnome-software, and it offers to perform updates for the user. At times the application may get stuck, always showing that there are OS Updates to be installed, offer to download them, and restart and install them. When stuck, these actions will appear to be unsuccessful as after a reboot, the interface still reports there are updates to be installed (the same ones as before). Since gnome-software uses PackageKit as its backend, to work around this issue, the updates can be installed manually via command line using PackageKit directly.
- Verify the updates to be installed (these should also show in the UI when selecting OS Updates)
$ pkcon get-updates Getting updates [=========================] Loading cache [=========================] Finished [=========================] Normal eg25-manager-0.1.1-1.arm64 (mobian-unstable-main) Manager daemon for the Quectel EG25 mobile broadband modem Normal gir1.2-gdkpixbuf-2.0-2.42.2+dfsg-1.arm64 (debian-testing-main) GDK Pixbuf library - GObject-Introspection Normal gnome-contacts-3.38.1-1mobian2.arm64 (mobian-unstable-main) Contacts manager for GNOME Installed libdeflate0-1.6-1.arm64 (debian-testing-main) fast, whole-buffer DEFLATE-based compression and decompression Normal libgdk-pixbuf-2.0-0-2.42.2+dfsg-1.arm64 (debian-testing-main) GDK Pixbuf library Normal libgdk-pixbuf2.0-common-2.42.2+dfsg-1.all (debian-testing-main) GDK Pixbuf library - data files Normal libtiff5-4.1.0+git201212-1.arm64 (debian-testing-main) Tag Image File Format (TIFF) library
- The updates can be manually installed with the following command (enter the mobian account password when prompted):
$ pkcon update Getting updates [=========================] Finished [=========================] Installing packages [=========================] Testing changes [=========================] Finished [ ] (0%) The following packages have to be installed: libdeflate0-1.6-1.arm64 fast, whole-buffer DEFLATE-based compression and decompression The following packages have to be updated: eg25-manager-0.1.1-1.arm64 Manager daemon for the Quectel EG25 mobile broadband modem gir1.2-gdkpixbuf-2.0-2.42.2+dfsg-1.arm64 GDK Pixbuf library - GObject-Introspection gnome-contacts-3.38.1-1mobian2.arm64 Contacts manager for GNOME libgdk-pixbuf-2.0-0-2.42.2+dfsg-1.arm64 GDK Pixbuf library libgdk-pixbuf2.0-common-2.42.2+dfsg-1.all GDK Pixbuf library - data files libtiff5-4.1.0+git201212-1.arm64 Tag Image File Format (TIFF) library Proceed with changes? [N/y] y Updating packages [=========================] Loading cache [=========================] Running [=========================] Installing packages [=========================] Finished [=========================]
- Once complete, reboot Mobian, and verify that no OS Updates show in the updates UI.
Gnome Software (gnome-software) unable to download updates
Sometimes gnome-software might report that it's unable to download updates, and cite an empty list of packages having unmet dependencies. The error isn't much help, and looks something like this:
This might be fixed via command line tools. Some tools will have to be installed first though.
sudo apt-get install packagekit-tools sudo pkcon repair sudo pkcon update
It's unknown what causes this to occur.
Unable to create GL Context
Sometimes, certain applications can take advantage of the OpenGL ES 2.0 present with the “Lima” driver for the Mali GPU on the pinephone, but their supported version of OpenGL (not ES) is not possible with the driver. In these cases, GTK (ie. GDK) will fail and not attempt to use the OpenGL ES often with the message “[u]nable to create GL Context.”
GDK can be forced to use the OpenGL ES API using the
environment variable before launching the program. Sometimes this works and the application runs normally.
Cellular connection stops working if enabled/disabled in settings
The Settings GUI seems to have issues with modem configuration on some carriers (Cricket, Fido, possibly others). Reconfiguring the modem using mmcli and nmcli can restore connectivity. If you experience no cellular connectivity after re-enabling the modem with the settings slider, you can remove the existing connections and re-add them from the command line. You will need the apn settings for your carrier.
mmcli are used to control aspects of cellular connections. It is worth exploring their options, but a short summary follows.
nmcli c lists all network connections the device has. Green lines are working connections, yellow are connecting or waiting, and red are disconnected. In my case, the gsm connection remained yellow when I was having connection issues.
mmcli -m 0 displays information on the capabilities of modem 0. Note that the number 0 tends to change each time the modem is woken up from sleep mode. If you are unsure what number is currently being used, the command
mmcli -L will list any modems found, with the number showing up at the end of
/org/freedesktop/ModemManager1/Modem/. In most cases can specify
-m any instead unless you have multiple modems attached (e.g. an additional usb modem).
To fix the connectivity issue, first remove the existing connections. List the network connections with
nmcli c, noting the names of any connections for device cdc-wdm0 (number may vary). Remove any such connections with
sudo nmcli c del NAME, replacing NAME with the name of the connection. Similarly, use
mmcli -m 0 to display the modem information, and look near the end for an entry for Bearer, such as
Bearer | dbus path: /org/freedesktop/ModemManager1/Bearer/0
Remove the bearer with
sudo mmcli -m 0 --delete-bearer=/org/freedesktop/ModemManager1/Bearer/0, using the path from the previous command.
Now create the new connection using your carrier's settings:
sudo mmcli -m 0 --create-bearer='apn=APN.NAME,user=USERNAME,password=PASSWORD,allowed-auth=chap,allow-roaming=no'
In my case (on Cricket) I did not need a username or password, and used
sudo mmcli -m 0 --create-bearer='apn=ndo,allowed-auth=chap,allow-roaming=no'.
Also create the connection in Network Manager:
sudo nmcli c add type gsm ifname cdc-wdm0 con-name OPERATOR-NAME apn APN.NAME user USERNAME password PASSWORD
(In my case,
sudo nmcli c add type gsm ifname cdc-wdm0 con-name cricket apn ndo)
If your connection is still not working, you may need to enable it, which can be done by selecting it with
Other users reported (Telefonica, Germany) that above fix does not work for them. Neither does restarting
ModemManager.service. There are only three options right now:
- rebooting the phone
- resetting your modem with sudo
mmcli -m any --reset. This requires re-entering your simcard's PIN and might take several minutes until connection is re-established.
- using the pinephone-modem-scripts provided by mobian. They are already located in
/sbin/on your mobian installation. Issuing following sequence may take several minutes until completion, however it works reliably as reported by some users:
sudo bash -c “pinephone-modem-stop.sh && pinephone-modem-start.sh && pinephone-modem-setup.sh”.
Unable to record from the microphone
Using a program like arecord it is unable to record from the microphone. There is no sound recorded at all.
Try setting your audio settings using the alsa mixer tool in Audio Recording.
There's a repeated clicking noise coming through on phone calls
Sometimes when on telephone calls there's a clicking noise audible to others when you mute or are very quiet and goes away when you are talking. This is super annoying when on meetings. It seems to be some sort of internal feedback in the audio system.
One workaround is to use alsamixer and turn down the level of “Mic1 Boost” and “Mic2 Boost” to zero.
$ sudo apt install alsa-utils $ alsamixer
- Press F6 and pick the PinePhone device
- When on the phone call make these changes
- Use the arrow keys to find “Mic1 Boost”
- Use the down arrow to set the level to 0
- Repeat for the “Mic2 Boost” level
Camera won't take pictures with Megapixels app
Symptoms: After pressing camera button in Megapixels, screen appears to freeze. An image may be saved eventually which contains only vertical colored bars. Behavior was observed on a pinephone64 Mobian Community Edition device (convergence package).
Workaround: Before taking a picture, switch to the front-facing camera then switch back to the rear-facing camera. Now you should be able to take pictures normally. Workaround appears to last until the device is rebooted.
Unable to receive SMS messages
If you are unable to receive messages, there are chances you have a mms message stuck in your modem. If you use jmms from https://git.sr.ht/~amindfv/jmms you can run
Let's say jmms tells you have 5 messages in receiving state, you will be able to delete them running the following commands:
sudo mmcli -m 0 --messaging-delete-sms=0 sudo mmcli -m 0 --messaging-delete-sms=1 sudo mmcli -m 0 --messaging-delete-sms=2 sudo mmcli -m 0 --messaging-delete-sms=3 sudo mmcli -m 0 --messaging-delete-sms=4 sudo mmcli -m 0 --messaging-delete-sms=5