Code Monkey home page Code Monkey logo

Comments (59)

sebanc avatar sebanc commented on August 25, 2024

What's your computer model ?

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

surface 3 non pro model

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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" ?

from brunch.

treypop avatar treypop commented on August 25, 2024

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.

from brunch.

sebanc avatar sebanc commented on August 25, 2024

@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)

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

I'll test it out and let you know

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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.

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

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:"

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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 :)

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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?

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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?

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

(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.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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?

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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.

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

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.

from brunch.

sebanc avatar sebanc commented on August 25, 2024

@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.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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

chtrt5645.zip

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

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

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

@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.

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.

alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic

(set _enadev Mic wasn't even recognized by the live demo)

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

@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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

@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?

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

Would I have to run this at each start up?

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

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

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.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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.

from brunch.

sebanc avatar sebanc commented on August 25, 2024

@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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

@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)?

from brunch.

sebanc avatar sebanc commented on August 25, 2024

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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

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.

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

Mic and DMic are each exclusive (https://github.com/plbossart/UCM/blob/145869c590d8fd1db9dc7ebeb1d4143879f3ff2b/chtrt5645/HiFi.conf#L299-L311 and https://github.com/plbossart/UCM/blob/145869c590d8fd1db9dc7ebeb1d4143879f3ff2b/chtrt5645/HiFi.conf#L349-L361)

So, you only need to run ether one of the working command (alsaucm -c chtrt5645 set _verb HiFi set _enadev Mic or alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic)

And for the internal speaker to work with working mic at the same time, add set _enadev Speaker to the command (for example: alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic set _enadev Speaker)

@MaddTitan By the way, are you sure the mic is really working?
Please try recording with mic with the following commands:

cd ~/Downloads
arecord arecord.wav # record to file named arecord.wav

# play the recording
aplay arecord.wav

For my S3, I can hear only noise 😢

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

Mic and DMic are each exclusive (https://github.com/plbossart/UCM/blob/145869c590d8fd1db9dc7ebeb1d4143879f3ff2b/chtrt5645/HiFi.conf#L299-L311 and https://github.com/plbossart/UCM/blob/145869c590d8fd1db9dc7ebeb1d4143879f3ff2b/chtrt5645/HiFi.conf#L349-L361)

So, you only need to run ether one of the working command (alsaucm -c chtrt5645 set _verb HiFi set _enadev Mic or alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic)

And for the internal speaker to work with working mic at the same time, add set _enadev Speaker to the command (for example: alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic set _enadev Speaker)

@MaddTitan By the way, are you sure the mic is really working?
Please try recording with mic with the following commands:

cd ~/Downloads
arecord arecord.wav # record to file named arecord.wav

# play the recording
aplay arecord.wav

For my S3, I can hear only noise 😢

You are right, in my excitement i only accounted for the result i got for the Google assistant. When I record, I get noise as well.

from brunch.

kitakar5525 avatar kitakar5525 commented on August 25, 2024

I also want to confirm that, can Google assistant recognize what you say?

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

I also want to confirm that, can Google assistant recognize what you say?

Yes it can recognize my commands, interestingly it doesn't respond by audio only by text output

from brunch.

sebanc avatar sebanc commented on August 25, 2024

Hi,

I have a report of wifi being unstable on S3 in issue #42, I would like to know if you have the same issue or if it is stable for you ?

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

Hi,

I have a report of wifi being unstable on S3 in issue #42, I would like to know if you have the same issue or if it is stable for you ?

No issues here, never had issues with wifi or bluetooth

from brunch.

sebanc avatar sebanc commented on August 25, 2024

Hi,
I have a report of wifi being unstable on S3 in issue #42, I would like to know if you have the same issue or if it is stable for you ?

No issues here, never had issues with wifi or bluetooth

Thanks for the feedback !

from brunch.

sebanc avatar sebanc commented on August 25, 2024

I think this issue can be closed but don't hesitate to reopen it if something is not working.

from brunch.

MaddTitan avatar MaddTitan commented on August 25, 2024

hey, so I updated to the latest version. Great work, performance is nice and snappy.

A few observations, I'm still using the surface 3... No mic support, Bluetooth is constantly searching but doesn't find or connect to anything, and no battery indicator.

from brunch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.