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.55k stars 388 forks source link

No internal sound Steam Deck Running Chrome OS #1642

Open MrHomebrew opened 1 year ago

MrHomebrew commented 1 year ago

The internal sound seems to be not working on the steam deck running ChromeOS. HDMI/external audio does work fortunately.

Is there any chance there could be a fix for the internal audio on the Steam Deck itself?

RibhuNoodleBoodle commented 1 year ago

What about stuff like Hardware Acceleration and android support?

tejasraman commented 1 year ago

What kernel and recovery image are you using?

tejasraman commented 1 year ago

You need a newer kernel than 5.15.

MrHomebrew commented 1 year ago

Is there a newer kernel that can be used?

tejasraman commented 1 year ago

Not easily....

MrHomebrew commented 1 year ago

I would definitely be willing to test, if we could get it done it would really up the compatability for the device. Everything else seems to be working good, just the internal audio issue.

Unless there is another way around to add audio compatability for the steam deck, some kind of hackers maybe.

Seeing as it is a device that has the same hardware for all users the Steam Deck would be the perfect device to support.

guylamar2006 commented 1 year ago

What kernel/boot options and brunch recovery are needed to boot on the steam deck? Wanna install this on my Steam Deck.

tejasraman commented 1 year ago

Try the zork image….

guylamar2006 commented 1 year ago

What's the setup on the brunch setup screen? Boot options/kernel version/kernel options?

tejasraman commented 1 year ago

Idk but try 5.15 and vanilla to start

guylamar2006 commented 1 year ago

I finally got brunch to boot after having bootloops with brunch-unstable. Comfirmed zork, I was pretty sure it was zork since the Steam Deck's cpu is built on AMD's Zen 2 technology. (AMD Van Gogh/Custom APU 0405)

Brunch Setup Options: Recovery: Zork 107 from Here, Search for zork Kernel: 5.15 Brunch 107 Stable Options:enable_updates,pwa,sysfs_tablet_mode,force_tablet_mode Kernel Options:enable_hyperthreading=1

My settings after trial and error:

Settings > Language And Input > Show input options on shelf Accessibility > Keyboard > Show on-screen keyboard

Display > Display Size > 1280x800 for decent appearance. (All the way to the left).

Confirmed that everything else works but sound from the speakers, Bluetooth audio is only workaround for now until native audio support gets into the kernel.

tejasraman commented 1 year ago

I know, but I am trying to backport kernel 5.19 to brunch in hopes that it will still work properly... There are still a few issues I want to sort out, and 5.19 isn't an LTS so I'm sure Brunch will never officially include it, but I'm hoping that 6.1 (which is an LTS) can vent be ported

The Steam Deck seems to require UCM configs as well as 6.1 to work. These UCMs don't work on anything older than 6.1, so both will need to exist. There is also a set from steamOS that can be used on older kernels. I will test and send you a build later.

MrHomebrew commented 1 year ago

whenever you have a chance to send a test build to test be sure to let us know. i will also give it a test run.

I am using kernel 5.15 also, brunch stable 107.

Unstable brunch 108 build leads to a boot loop.

Resolving the internal audio issue be amazing but not easy obviously.

tejasraman commented 1 year ago

UPDATE: I'm building a build with the UCMs for ACP5X on my GH Actions page. I will send the test build as soon as it's done.

Keep in mind that this is strictly a test build. Once this is merged (if it works) than I will tell you to not use the test build anymore.

Also please keep in mind that if the sound still doesn't work try running alsaucm -c acp5x set _verb HiFi set _enadev Speakers or alsaucm -c acp5x set _verb HiFi-upstream set _enadev Speakers

MrHomebrew commented 1 year ago

Ready to test when you are good to go.

Just wondering are you testing this with brunch stable or brunch unstable?

guylamar2006 commented 1 year ago

Stable, unless the bootloop is fixed with the deck.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: MrHomebrew @.> Sent: Friday, January 13, 2023 10:56:43 AM To: sebanc/brunch @.> Cc: guylamar2006 @.>; Comment @.> Subject: Re: [sebanc/brunch] No internal sound Steam Deck Running Chrome OS (Issue #1642)

Ready to test when you are good to go.

Just wondering are you testing this with brunch stable or brunch unstable?

— Reply to this email directly, view it on GitHubhttps://github.com/sebanc/brunch/issues/1642#issuecomment-1382134075, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABCYCOHZXA6BUB3PZPVWQEDWSGCMXANCNFSM6AAAAAAQEPB6ZI. You are receiving this because you commented.Message ID: @.***>

guylamar2006 commented 1 year ago

If the bootloop is fixed I would love to test the unstable branch and report any issues since it gets updated quite a bit.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Guy Chronister @.> Sent: Friday, January 13, 2023 11:05:33 AM To: sebanc/brunch @.>; sebanc/brunch @.> Cc: Comment @.> Subject: Re: [sebanc/brunch] No internal sound Steam Deck Running Chrome OS (Issue #1642)

Stable, unless the bootloop is fixed with the deck.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: MrHomebrew @.> Sent: Friday, January 13, 2023 10:56:43 AM To: sebanc/brunch @.> Cc: guylamar2006 @.>; Comment @.> Subject: Re: [sebanc/brunch] No internal sound Steam Deck Running Chrome OS (Issue #1642)

Ready to test when you are good to go.

Just wondering are you testing this with brunch stable or brunch unstable?

— Reply to this email directly, view it on GitHubhttps://github.com/sebanc/brunch/issues/1642#issuecomment-1382134075, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABCYCOHZXA6BUB3PZPVWQEDWSGCMXANCNFSM6AAAAAAQEPB6ZI. You are receiving this because you commented.Message ID: @.***>

tejasraman commented 1 year ago

Can't build. Submitting it to the unstable repo instead.....

tejasraman commented 1 year ago

See the status of the brunch-unstable PR #9 where I submitted the ACP5x UCMs. This is to be used with 5.15

MrHomebrew commented 1 year ago

Last time I tried unstable brunch there was still a boot loop on the Steam Deck. Not sure if anything has changed recently, will have to test and see

MrHomebrew commented 1 year ago

@tejasraman I was able to build with the Steam Deck audio changes. No sound yet

I tried

chronos@localhost / $ alsaucm -c acp5x set _verb HiFi set _enadev Speakers ALSA lib /build/zork/tmp/portage/media-libs/alsa-lib-1.2.1.2-r2/work/alsa-lib-1.2.1.2/src/ucm/ucm_cond.c:207:(if_eval_control_exists) cannot determine control device ALSA lib /build/zork/tmp/portage/media-libs/alsa-lib-1.2.1.2-r2/work/alsa-lib-1.2.1.2/src/ucm/main.c:963:(snd_use_case_mgr_open) error: failed to import acp5x use case configuration -22 alsaucm: error failed to open sound card acp5x: Invalid argument

chronos@localhost / $ alsaucm -c acp5x set _verb HiFi-upstream set _enadev Speakers ALSA lib /build/zork/tmp/portage/media-libs/alsa-lib-1.2.1.2-r2/work/alsa-lib-1.2.1.2/src/ucm/ucm_cond.c:207:(if_eval_control_exists) cannot determine control device ALSA lib /build/zork/tmp/portage/media-libs/alsa-lib-1.2.1.2-r2/work/alsa-lib-1.2.1.2/src/ucm/main.c:963:(snd_use_case_mgr_open) error: failed to import acp5x use case configuration -22 alsaucm: error failed to open sound card acp5x: Invalid argument

tejasraman commented 1 year ago

Are the files inside the directory? Take a screenshot with ls and show me please

MrHomebrew commented 1 year ago

Yes they are but let me get a picture

MrHomebrew commented 1 year ago

Here is a picture

20230122_162855

MrHomebrew commented 1 year ago

Did not mean to close this as it is not fully resolved.

tejasraman commented 1 year ago

It's ok... We just need a kernel patch to support it as well as those UCMs

MrHomebrew commented 1 year ago

I'm able to build it now so if we can get that kernel patch I can proceed to the next step for sure.

Appreciate your time and help, you'll definitely get credit for this in the community.

tejasraman commented 1 year ago

How?

I've been trying but GitHub actions building is failing every time and I don't want to leave my PC on all night.

There's a file in the unstable branch (in the kernel patches 5.15 directory) where you can add build parameters.

I'll try to build brunch with only 5.15 to test and report back.

If you can build it that's great. Could you build it with all the kernels?

MrHomebrew commented 1 year ago

Yes I built with all the kernels.

Also made sure to built with your changes on the stable branch to prevent bootloop issue with brunch unstable

MrHomebrew commented 1 year ago

@tejasraman if you can make the changes for this kernel patch on your unstable brunch fork, I can put them in my stable fork. Build and see if it works with the kernel patch. Save you some time as my computer can finish compiling in less then 2 hours.

tejasraman commented 1 year ago

I am adding them to my stable fork.

Tejas

MrHomebrew commented 1 year ago

Sounds great, I will keep an eye out for the changes

tejasraman commented 1 year ago

I added them to https://github.com/tejasraman/brunch

MrHomebrew commented 1 year ago

Will start the build in a few minutes and test right afterwards

MrHomebrew commented 1 year ago

Think I may update the build instructions on my branch also at some point. Help you be able to compile locally in the future

tejasraman commented 1 year ago

Tysm @MrHomebrew 👍

MrHomebrew commented 1 year ago

@tejasraman still no internal sound and tried the commands from before.

Anything else you can think of?

tejasraman commented 1 year ago

Can you run ls again and show me the output of the commands in a photo?

MrHomebrew commented 1 year ago

@tejasraman Here you are

20230122_224132

tejasraman commented 1 year ago

Did you update or reinstall the brunch on the steam deck yet? What's the kernel version that's active (uname -r can figure that out)? Did you use my repo to build?

MrHomebrew commented 1 year ago

I made a new chromeos.img with the new brunch that had the changes you recently made on brunch stable. Which included the kernel patch.

uname -r 5.15.73-brunch-sebanc

tejasraman commented 1 year ago

@MrHomebrew could you tell me the output of this command (lspci -v | grep Audio)?

Also, I want to try another kernel config that is the one I was supposed to enable. Could you build again?

MrHomebrew commented 1 year ago

Will start the build and get you that info asap

tejasraman commented 1 year ago

Sorry if this is taking too long @MrHomebrew

MrHomebrew commented 1 year ago

Not at all happy to help any way I can.

Started the new brunch build

MrHomebrew commented 1 year ago

localhost / # lspci -v | grep Audio 04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1640 04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 50) localhost / #

MrHomebrew commented 1 year ago

Still no sound at the moment.

Finished latest brunch build.

May have to continue in the morning.

Will get it eventually.

Yougli commented 1 year ago

Hi,

I'm trying to boot my Steam Deck with ChromeOS via Brunch, but the boot manager doesn't find my USB or my microSD card...

I've followed the official instructions (here: https://github.com/sebanc/brunch/blob/main/install-with-linux.md) with and without the "Special instructions for Legacy devices only", both on my USB drive and my microSD card.

I'm using Zork r111 recovery image, and Brunch r111 stable.

Since you guys were struggling to get the internal audio to work, I figured you at least succeeded in booting to ChromeOS, is there something I'm missing?

Thanks in advance for your input!

Yougli commented 1 year ago

Nevermind, I finally did it using windows... Turns out you can't (easily at least) install from Linux within another Brunch/ChromeOS setup.