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
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
#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


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


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

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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Ubports OTA won't work on my braveheart none 8 316 1 hour ago
Last Post: falkensmaze
  Bootloop (image 12.05.2020) pawlinski 0 82 05-13-2020, 09:29 AM
Last Post: pawlinski
  Battery issues with latest image ashley123 5 216 05-10-2020, 09:25 AM
Last Post: Nooblife
  Not booting with latest ubports image mattpenn 10 643 04-24-2020, 02:39 PM
Last Post: bcnaz

Forum Jump:


Users browsing this thread: 1 Guest(s)