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


  Reply
#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
  Reply
#3
(01-27-2020, 11:26 AM)jfloren Wrote: 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? 

Short answer appears to be no.

https://forums.ubports.com/topic/1729/se...lashing/17
  Reply
#4
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%
  Reply
#5
(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


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


  Reply
#7
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.
  Reply
#8
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.
  Reply
#9
(01-25-2020, 12:26 PM)Luke Wrote:
Code:
amixer sset 'Line Out' 100%

The extra s in "sset" might confuse someone.
  Reply
#10
(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..."
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)