sebanc / brunch

Boot ChromeOS on x86_64 PC - Supports Intel CPU/GPU from 8th gen or AMD Ryzen
GNU General Public License v3.0
3.71k stars 393 forks source link

Playstore doesn't load #25

Closed MaddTitan closed 4 years ago

MaddTitan commented 4 years ago

after initial login, i get an error "Unable to load playstore" any ideas on what could be causing it

sebanc commented 4 years ago

What's your computer model ?

MaddTitan commented 4 years ago

surface 3 non pro model

sebanc commented 4 years ago

It's weird, i have had 3 different reports of Surface 3 owners who have android apps working, could you try on a faster usb or with a dual boot install ?

Also, deleting google sync can help sometime: https://support.google.com/chromebook/answer/2914794?hl=en

sebanc commented 4 years ago

Also forgot to ask but which recovery image are you using ?

MaddTitan commented 4 years ago

I'm using RAMMUS v79.

I switched to Ultima and the play store works there, but then i get no battery indicator, no auto rotate spotty Bluetooth. With regards to the USB, I'm use a 3.0usb.

If you can recommend a more suitable recovery image for the Surface 3 that would be pretty well appreciated, because I'm really liking your work

sebanc commented 4 years ago

Could you try the latest r80 testing (it has been reported to be stable) with rammus r80 ? And if it does not work, could you send me the output of "dmesg" ?

treypop commented 4 years ago

The playstore loads for me but the interface freezes a lot. I'm on an Inspiron 15-3521 with a Pentium 2127U running Rammus 80 and the latest r80 testing.

sebanc commented 4 years ago

@treypop Thanks for your feedback.

I would like to keep this issue focused on android not working on Surface 3 but if you open an other issue, i can try helping you with the freezing (not sure it will work though as all the chromebooks supporting android have a more powerful cpu)

MaddTitan commented 4 years ago

I'll test it out and let you know

MaddTitan commented 4 years ago

RAMMUS v80 and Brunch r80 installed and running stable so far.

Play Store works Apps work Wifi Works Bluetooth Works Performance is a little stuttery, but i guess it's to be expected

No Battery Indicator Auto-Rotate not working, my guess is sensors not enabled Auto brightness not working, assuming same as above, sensors not enabled

sebanc commented 4 years ago

Could you tell me which brunch package you downloaded ?

Until 20200326 version, you had to add "options=enable_sensors" to the kernel command line for sensors to work.

I will try to fix the battery indicator.

sebanc commented 4 years ago

Could you try running the below command in cros shell, reboot and see if it fixes the battery indicator ?

echo 25000 | sudo tee /usr/share/power_manager/board_specific/battery_stabilized_after_startup_ms
kitakar5525 commented 4 years ago

Hi, I heard that the battery indicator on Surface 3 does not work with old UEFI firmware before (https://github.com/linux-surface/linux-surface/issues/60#issuecomment-577946157).

What's your UEFI version?

sudo dmidecode -t 0 | grep "Version:"
sebanc commented 4 years ago

Hi, I heard that the battery indicator on Surface 3 does not work with old UEFI firmware before (linux-surface/linux-surface#60 (comment)).

What's your UEFI version?

sudo dmidecode -t 0 | grep "Version:"

Thanks for the help :)

MaddTitan commented 4 years ago

Could you tell me which brunch package you downloaded ?

Until 20200326 version, you had to add "options=enable_sensors" to the kernel command line for sensors to work.

I will try to fix the battery indicator.

Brunch package 20200326

MaddTitan commented 4 years ago

Hi, I heard that the battery indicator on Surface 3 does not work with old UEFI firmware before (https://github.com/linux-surface/linux-surface/issues/60#issuecomment-577946157).

What's your UEFI version?

sudo dmidecode -t 0 | grep "Version:"

Version: 1.51116.218

How would i update if needed?

sebanc commented 4 years ago

Could you tell me which brunch package you downloaded ? Until 20200326 version, you had to add "options=enable_sensors" to the kernel command line for sensors to work. I will try to fix the battery indicator.

Brunch package 20200326

Ok, then for sensors you can either add "options=enable_sensors" to the kernel command line (after cros_debug) by using "sudo edit-grub-config" or update to the 20200329 release.

MaddTitan commented 4 years ago

Could you tell me which brunch package you downloaded ? Until 20200326 version, you had to add "options=enable_sensors" to the kernel command line for sensors to work. I will try to fix the battery indicator.

Brunch package 20200326

Ok, then for sensors you can either add "options=enable_sensors" to the kernel command line (after cros_debug) by using "sudo edit-grub-config" or update to the 20200329 release.

I'll try the command first and see if that work, if not I'll do the update

sebanc commented 4 years ago

Hi, I heard that the battery indicator on Surface 3 does not work with old UEFI firmware before (linux-surface/linux-surface#60 (comment)). What's your UEFI version?

sudo dmidecode -t 0 | grep "Version:"

Version: 1.51116.218

How would i update if needed?

The best way is probably to install windows, perform the update and reinstall chromeos.

MaddTitan commented 4 years ago

I figured, so I'm doing that know. Will give an update when it's all done

MaddTitan commented 4 years ago

Surface 3 Firmware Updated ChromeOS v80 installed Brunch v80 installed

WiFi Works Bluetooth Works Play Store Works Performance Improved Auto-Rotate Works Auto-Brightness seems inconsistent Power Button Works for device sleep/wake Power Drain is reasonable

Camera not working

At this stage, this build on the Surface 3 can be considered pretty good as a daily driver

sebanc commented 4 years ago

Thanks for the feedback :)

Unfortunately, as far as i can see, there are no linux kernel drivers for S3 cameras, so I will not be able to implement this feature.

MaddTitan commented 4 years ago

I can live without the camera on a tablet as they were only a recent addition to this style of device, and in practice are cumbersome to use.

Is there a chance the mic can work?

sebanc commented 4 years ago

How did you test the mic ? If it is with "Ok google" you need to activate an option first in google assistant settings, it is disabled by default.

MaddTitan commented 4 years ago

One last observation, Bluetooth audio works, was able to pair my earbuds and listen to music, but headphone jack seems inactive

kitakar5525 commented 4 years ago

(Battery indicator started working now? The version 1.51116.218 seems new enough. So, another problem might have existed)

MaddTitan commented 4 years ago

(Battery indicator started working now? The version 1.51116.218 seems new enough. So, another problem might have existed)

There is a newer update that is required, the latest is 1.51116.238.0, but you would have to reinstall windows, then download updates to get it.

MaddTitan commented 4 years ago

How did you test the mic ? If it is with "Ok google" you need to activate an option first in google assistant settings, it is disabled by default.

i have all the settings enabled, unless i am missing something simple?

sebanc commented 4 years ago

Could you confirm the Ok google setting is "always on", I guess it is but it is just to confirm as this setting is off by default ? (the red arrows are not from me, it is the only image i found on google)

image

MaddTitan commented 4 years ago

Could you confirm the Ok google setting is "always on", I guess it is but it is just to confirm as this setting is off by default ? (the red arrows are not from me, it is the only image i found on google)

image

Confirmed as "always on" but nothing happens when I say the words. Tested with voice recording app, still nothing.

sebanc commented 4 years ago

Ok, thanks for confirming, i will try to see if there are specific alsa ucm files necessary for S3.

sebanc commented 4 years ago

@kitakar5525 Do you know if microphone is working for S3 under linux ?

kitakar5525 commented 4 years ago

At a glance, it seems that recording is not working on Arch Linux, too... It may take some time to figure out what's going wrong, but I'll try.

sebanc commented 4 years ago

@kitakar5525 Thanks a lot for the confirmation, i will have a look at it, it was just to know if I should look for a fix already implemented in linux distros or on the forums.

MaddTitan commented 4 years ago

Not sure if i mentioned this before but audio via the headphone jack seems to not work either

sebanc commented 4 years ago

Could you try replacing the files in /usr/share/alsa/ucm/chtrt5645 with those ones ?

chtrt5645.zip

kitakar5525 commented 4 years ago

By the way, to check whether the microphone is working, this live demo is useful: https://github.com/lairdkruger/Twistline

kitakar5525 commented 4 years ago

@sebanc

Could you try replacing the files in /usr/share/alsa/ucm/chtrt5645 with those ones ?

chtrt5645.zip

I also tried the file (the file seems to be from the last v1 version UCM of alsa-project/alsa-ucm-conf: https://github.com/alsa-project/alsa-ucm-conf/tree/6c56567a7cb31b183ea6b3df5a4cbdc1faeb5aac) on chromeos. tl;dr: the mic still isn't working.


leaving here what I did.

#### v1 UCM from alsa-project/alsa-ucm-conf First, the mic wasn't even recognized by the live demo. If I run the following command, the waveform appeared but it seems mic isn't working. ```bash alsaucm -c chtrt5645 set _verb HiFi set _enadev Mic ``` #### UCM from plbossart/UCM (https://github.com/plbossart/UCM) (brunch uses this?) First, the mic wasn't even recognized by the live demo, too. After running the following command, the waveform appeared and somewhat seems to be responding when I tap the place where the mic is located. But the waveform is too weak compared to Surface Book 1. ```bash alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic ``` (`set _enadev Mic` wasn't even recognized by the live demo)

kitakar5525 commented 4 years ago

@MaddTitan You may need to run this command on startup for audio via the headphone jack to work:

amixer -c chtrt5645 set "Headphone Channel" on
MaddTitan commented 4 years ago

@MaddTitan You may need to run this command on startup for audio via the headphone jack to work:

amixer -c chtrt5645 set "Headphone Channel" on

Thanks, it worked.

Would I have to run this at each start up?

kitakar5525 commented 4 years ago

Would I have to run this at each start up?

Unfortunately, yes. I'm not sure why needed.

kitakar5525 commented 4 years ago

Even on Windows, the mic sound level is too low and noisy on my S3🤔 (affected by OEMB issue? not sure) So, I can't really confirm that mic isn't working on Linux and chromeos.

@MaddTitan On chromeos, try each command:

and let me know your thoughts about mic is working or not.

Also, if Windows is still available, let me know your thoughts about mic recording quality.

MaddTitan commented 4 years ago

Would I have to run this at each start up?

Unfortunately, yes. I'm not sure why needed.

No problem, small price to pay for creature comforts.

sebanc commented 4 years ago

@kitakar5525 Thanks for all the help !

I recently added a feature that may be useful in this case, in the latest brunch version you can create user init scripts by saving them to "/var/brunch/bootscripts". The user init scripts will survive chromeos and brunch updates, they only have to finish with ".sh" and will be executed after modules loading finished.

So in this case, the below commands should do the trick:

sudo mkdir -p /var/brunch/bootscripts
echo 'amixer -c chtrt5645 set "Headphone Channel" on' | sudo tee /var/brunch/bootscripts/headphones.sh
sudo chmod 0755 /var/brunch/bootscripts/headphones.sh
MaddTitan commented 4 years ago

Even on Windows, the mic sound level is too low and noisy on my S3🤔 (affected by OEMB issue? not sure) So, I can't really confirm that mic isn't working on Linux and chromeos.

@MaddTitan On chromeos, try each command:

  • alsaucm -c chtrt5645 set _verb HiFi set _enadev Mic and
  • alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic

and let me know your thoughts about mic is working or not.

Also, if Windows is still available, let me know your thoughts about mic recording quality.

Ok... So mic works, tested with Google assistant and it responded to the command

For some reason voice recorder apps don't seem to work, but if i trigger the assistant with the command, it responds while the recording is happening

MaddTitan commented 4 years ago

In addition to the previous observe, enabling the mic kills the headphone jack. So I had to enable the headphones Jack again, bit the mic remained enabled.

MaddTitan commented 4 years ago

@kitakar5525 Thanks for all the help !

I recently added a feature that may be useful in this case, in the latest brunch version you can create user init scripts by saving them to "/var/brunch/bootscripts". The user init scripts will survive chromeos and brunch updates, they only have to finish with ".sh" and will be executed after modules loading finished.

So in this case, the below commands should do the trick:

sudo mkdir -p /var/brunch/bootscripts
echo 'amixer -c chtrt5645 set "Headphone Channel" on' | sudo tee /var/brunch/bootscripts/headphones.sh
sudo chmod 0755 /var/brunch/bootscripts/headphones.sh

Can I test this out? Would I need to run commands from the Crosh Shell (Ctrl + alt + t) or Developer shell (Ctrl + alt +f2)?

sebanc commented 4 years ago

the commands I provided are for cros shell but you can also do it from developer shell without the "sudo".

If you want to add the mic commands first, it would give the below commands:

sudo mkdir -p /var/brunch/bootscripts
echo 'alsaucm -c chtrt5645 set _verb HiFi set _enadev Mic' | sudo tee /var/brunch/bootscripts/asound.sh
echo 'alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic' | sudo tee -a /var/brunch/bootscripts/asound.sh
echo 'amixer -c chtrt5645 set "Headphone Channel" on' | sudo tee -a /var/brunch/bootscripts/asound.sh
sudo chmod 0755 /var/brunch/bootscripts/asound.sh
MaddTitan commented 4 years ago

the commands I provided are for cros shell but you can also do it from developer shell without the "sudo".

If you want to add the mic commands first, it would give the below commands:

sudo mkdir -p /var/brunch/bootscripts
echo 'alsaucm -c chtrt5645 set _verb HiFi set _enadev Mic' | sudo tee /var/brunch/bootscripts/asound.sh
echo 'alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic' | sudo tee -a /var/brunch/bootscripts/asound.sh
echo 'amixer -c chtrt5645 set "Headphone Channel" on' | sudo tee -a /var/brunch/bootscripts/asound.sh
sudo chmod 0755 /var/brunch/bootscripts/asound.sh

Will add the commands and restart the device and report the findings

MaddTitan commented 4 years ago

Success!! we have a functional mic and headphone jack. Will test it out some more, but so far they seem to stable enough. Will do some more testing of the mic for voice recording purposes, but the Google Assistant is able recognize it.