A quick tutorial on having the image work its best
#1
All of these things may, very well, be addressed by the time you receive your phone, but I am just posting this in the even X or Y doesn't work/ is broken:

[edit] For starters, every morning (EU Time) you may wish to:

Code:
sudo apt update && apt upgrade -y


1) Downgrade Mesa (currently newest Mesa brakes the UI) [edit] fixed

2) Enabling sound (speaker routing at this time is also wrong - may be fixed soon)
3) Manually start the the modem (fix / hack soon)
[edit]  4) Change the wallpaper

1) Downgrade Mesa:




2) Enable Sound:


Code:
sudo modprobe snd_soc_simple_amplifier
sudo modprobe snd_soc_simple_card_utils


then:


Code:
amixer -c 0 set 'AIF1 Slot 0 Digital DAC' unmute

[edit] 2 Feb 2020

Then:

Quote:
Code:
amixer -c 0 set 'Line Out' unmute

To set volume on max:

Code:
Code:
amixer sset 'Line Out' 100%


3) Start modem:


Code:
sudo /usr/share/ofono/scripts/enable-modem
sudo /usr/share/ofono/scripts/online-modem
4) Change the wallpaper
In settings, navigate to background, and choose a different wallpaper (like the one with dogs) - there is some odd glitch that makes the OS run slow due to the wallpaper sizes.
You can find me on IRC, Discord and Twitter


#2
This is probably a good place to ask, will `apt-get update && apt-get upgrade` typically be sufficient to keep the image up to date? In other words, if I run that every day, will I be in essentially the same position as if I downloaded & flashed the latest build to the SD card every morning? I ask because coming from the Android world, updating could be... "finicky" Smile
#3
To turn on the audio speaker on the back of the pinephone:

Code:
amixer -c 0 set 'Line Out' unmute

To set volume on max:

Code:
amixer sset 'Line Out' 100%
#4
(02-03-2020, 04:07 PM)PinePhoneCoder Wrote: To turn on the audio speaker on the back of the pinephone:

Code:
amixer -c 0 set 'Line Out' unmute

To set volume on max:

Code:
amixer sset 'Line Out' 100%

Superb! thank you
You can find me on IRC, Discord and Twitter


#5
@PinePhoneCoder how about headphones?
You can find me on IRC, Discord and Twitter


#6
When you've found a decent set of mixer settings for a particular function you can save them with:

Code:
alsactl -f /path/to/my/phone_mixer_settings.state store
Restoring a saved set of settings is similar:

Code:
alsactl -f /path/to/my/phone_mixer_settings.state restore
Some years ago freesmartphone.org had a dbus interface org.freesmartphone.Audio.Manager to look after audio state changes when phone calls arrived etc. What's the equivalent now?

Edit: It seems one option is alsaucm at the command line, or its API equivalent, for switching between use cases. I've not checked whether it's got push/pop capabilities for switching then reverting to whatever was there before.
#7
Hello,

To confirm, this seems to be different than here:

https://megous.com/dl/tmp/modem.txt

Can I ignore the link above for Ubuntu touch, or is the shutdown still essential in the aboce link?

EDIT: The script from megous does not seem to work in Ubuntu Touch.
#8
(01-25-2020, 12:26 PM)Luke Wrote:
Code:
amixer sset 'Line Out' 100%

The extra s in "sset" might confuse someone.
#9
(02-08-2020, 12:21 PM)kop316 Wrote: Hello,

To confirm, this seems to be different than here:

https://megous.com/dl/tmp/modem.txt

Can I ignore the link above for Ubuntu touch, or is the shutdown still essential in the aboce link?

EDIT: The script from megous does not seem to work in Ubuntu Touch.

I believe the script will only work on megous' kernel they are working on: https://xff.cz/kernels/

Note that right before the script he says "...enable the modem in my kernel..."
#10
(02-08-2020, 10:08 PM)liamsgotgenes Wrote:
(02-08-2020, 12:21 PM)kop316 Wrote: Hello,

To confirm, this seems to be different than here:

https://megous.com/dl/tmp/modem.txt

Can I ignore the link above for Ubuntu touch, or is the shutdown still essential in the aboce link?

EDIT: The script from megous does not seem to work in Ubuntu Touch.

I believe the script will only work on megous' kernel they are working on: https://xff.cz/kernels/

Note that right before the script he says "...enable the modem in my kernel..."

Makes sense. It was hard to tell if that was already in Ubuntu Touch. It sounded like it was in here and Postmarket OS.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sound won’t work LMalilil 2 3,853 07-28-2020, 09:52 AM
Last Post: Cree
  wifi does not work - authentication problem? pphone-newbie 7 8,730 07-26-2020, 01:30 PM
Last Post: Cree
  dropdown menu doesn't work daniel 3 4,589 07-22-2020, 01:17 PM
Last Post: natasha
  Tutorial for new UBPorts CE users / list of known issues? ThatGeoGuy 2 4,635 07-21-2020, 05:54 PM
Last Post: natasha
  Image #58 Touchscreen Unresponsive BryWilson 3 5,416 06-27-2020, 02:38 AM
Last Post: Zweitaktmotor
  Does Miracast work? mercrapper 1 3,031 06-25-2020, 08:18 AM
Last Post: heng
  Image build guide? Djhg2000 3 5,589 06-18-2020, 02:04 PM
Last Post: bingo600
  Only the top few rows of pixels work on stable OTA 3 NoraCodes 0 1,954 06-18-2020, 09:18 AM
Last Post: NoraCodes
  Battery issues with latest image ashley123 6 7,949 06-14-2020, 11:06 AM
Last Post: KeithMcN
  Ubports OTA won't work on my braveheart none 12 14,491 06-13-2020, 03:23 AM
Last Post: tsar_chasm

Forum Jump:


Users browsing this thread: 1 Guest(s)