Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 4.23 KB

SETTINGS.md

File metadata and controls

45 lines (35 loc) · 4.23 KB

Recommended settings

This document describes recommended settings you can apply to your Pinephone or Pinephone Pro to get the best experience out of the modem

Common

  1. If your carrier doesn't provide an alerting tone indication, calls are completely silent until the other party picks up the phone
  • You can enable a local emulation of the alerting tone on the modem, by using the following command (as root): echo -ne "AT+EN_CAT\r" > /dev/ttyUSB2
  1. If your carrier doesn't provide a valid date and time, the modem will keep looping trying to set the date in the userspace, making all internal generated SMS be sent with an invalid timestamp (2022-01-01).

User @karl implemented a script and a systemd unit that reads the correct date from the Pinephone and sends it via mmcli to the Modem, you can get instructions to set this up in his blog

Pinephone

  1. Frequent disconnects and reconnects (Modem vanishes and reappears a few seconds later during operation or after waking up from suspend)

Sometimes the kernel is too aggressive trying to suspend the USB port when it's actually in use. Disabling runtime suspend for the port usually helps a lot.

  • Edit /usr/lib/udev/rules.d/80-modem-eg25.rules
  • Look at the first line where it says ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/control}="auto"
  • And change it to ON ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/control}="on"
  1. Audio volume is too low
  • Edit the ALSA UCM config file /usr/share/alsa/ucm2/PinePhone/VoiceCall.conf and look for the following parameters:
    • AIF2 DAC Playback Volume
    • AIF2 ADC Capture Volume
  • Replace their values with 80% or 90% (some people noticed that 90% gets echo at the other side of the call, but doesn't happen to everyone, so feel free to experiment with the most suitable values for you)

PinePhone Pro

  1. Stop the modem from disappearing on suspend
  • Edit /usr/lib/udev/rules.d/80-modem-eg25.rules
  • Look at the last line: ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/persist}="0"
  • And change persist to 1: ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/persist}="1"
  • Edit /usr/share/eg25-manager/pine64,pinephone-pro.toml and make sure monitor_udev is set to false
  1. Messages appear twice. The same problem as with the original Pinephone, but different behaviour. Some times the modem's USB port is suspended during a transaction, ending up in ModemManager losing a QMI message during a transaction. This manifests on SMS not being deleted from the modem because that part of the transaction was lost, or a message bein received twice. If this happens to you, here is an easy fix:
  • Edit /usr/lib/udev/rules.d/80-modem-eg25.rules
  • Look at the first line where it says ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/control}="auto"
  • And change it to ON ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/control}="on"
  1. Microphone audio is too loud during phone calls ( distorted audio and lots of background noise from your side )
  • Edit the ALSA UCM config file /usr/share/alsa/ucm2/PinePhonePro/VoiceCall.conf and look for the following parameters:
    • IN1 Boost
  • Change the default value from 8 to 3 ( YMMV you may need to go a bit higher or lower, but 8 is way too much in my testing ).
  1. If 1 and 2 are not enough, and you are using a megi kernel ( archlinux for example ) or a kernel that adds the reset quirk to the modem:
  • Edit /usr/lib/udev/rules.d/80-modem-eg25.rules
  • Add a new line after ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/persist}="1" that reads ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{avoid_reset_quirk}="0"