Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
No sound on Bay Trail (SWANKY, GNAWTY) #66
Comments
|
This is the solution according to John Leiws: https://johnlewis.ie/procedure-to-get-sound-working-in-fedora-22-on-asus-c300-chromebook/ . We are using a new enough kernel for this to work. If someone could follow the instructions in the link above, save the state with: sudo alsactl store, then send us /var/lib/alsa/sound.state, we could include it. |
|
This is a better fix: https://plus.google.com/+JamesFuBEEFCAKE/posts/Tf4Pc5Z8reH . It includes the alsa state file from ChromeOS and a fix to mute the speakers when the headphones are plugged in. |
ColtonDRG
added
bug
priority:medium
baytrail
priority:high
and removed
priority:medium
labels
Nov 12, 2015
Ravoz
commented
Nov 12, 2015
|
I switched out the alsa state file, however, sound playback was still not working on my swanky. I then also installed an intel firmware that worked for me in 14.04.3 Trusty, but again sound did not work. |
|
I suppose now we should start looking for potential missing kernel modules.... |
|
Same problem reported on GNAWTY, so I'll update the title of the issue. I think the GalliumOS kernel includes support for Bay Trail sound as a module: ( |
reynhout
changed the title from
No sound on Toshiba CB35 Chromebook 2 (SWANKY, Bay Trail)
to
No sound on Bay Trail (SWANKY, GNAWTY)
Nov 13, 2015
|
The alsa state file needs to be replaced, but it could be overwritten by the alsa-store service which runs before rebooting. @Ravoz can you verify that the alsa state file is the same as the downloaded one once you reboot? I think you need to either the disable the alsa-store service and then re-enable it after you reboot with the new state file, or copy the state file and then run the alsa-restore service. |
|
[Apparently] This works [OOB] on Ubuntu 15.10. Update: After some further research, there are quite a few mixed reports on this. |
Ravoz
commented
Nov 14, 2015
|
@hugegreenbug , I'm away on a business trip this weekend, but I'll see if I can take a look at it. But it may be Monday. @ColtonDRG , for me at least on Swanky, with 15.10, to get sound working still requires replacing the asound.state file. 15.10 did fix automatic headphone muting though. |
|
Hm, well, other users claimed that it worked OOB on other Bay Trail models. Whatever happens, we'll get it fixed, hopefully before 1.0. Hopefully we'll get our hands on a Bay Trail model before then as well. :D |
|
@Ravoz Ok, whenever you have time. I also realized that I have a sound fix for the other models that is probably messing things up here. Could you also try to move /etc/modprobe.d/snd-hda-intel.conf out of the way and reboot? Thanks. |
c0nsaw
commented
Nov 14, 2015
|
Hi folks, Toshiba CB2 user here also, I have successfully installed GalliumOS via usb. Everything looks pretty good, but no sound either, I have tried the various methods above also. Willing to help out if I can. Toshiba CB2 CB30-B-104 |
|
@c0nsaw Did you move the file: /etc/modprobe.d/snd-hda-intel.conf out of the way? Did you try the asound.state file and if you did, did you verify that it was the same file you copied over after you rebooted? |
Ravoz
commented
Nov 14, 2015
|
@hugegreenbug , I moved /ect/modprobe.dsnd-hda-intel.conf out of the way, however, after rebooting I get "failed login command"? I will have to wait until Monday to make a new live usb and try again. I'll also confirm that the asound.state isn't being overwritten. |
|
@Ravoz You can probably recover your existing install by using a vt to login and undo whatever you did to break it. |
c0nsaw
commented
Nov 14, 2015
|
@hugegreenbug Hi, I renamed /etc/modprobe.d/snd-hda-intel.conf to snd-hda-intel.conf.old , but left in same location. Yes I did try the asound.state file, but no I did not verify the file was the same after reboot. I will do again, and report back to you. Thanks :) |
|
@c0nsaw Is there anything in dmesg related to the sound? |
ColtonDRG
removed
the
baytrail
label
Nov 16, 2015
drghuser
commented
Nov 24, 2015
|
I just installed Beta 1 Haswell ISO on my Toshiba Chromebook 2 (baytrail, swanky) and I have no sound. Things done so far:
[ 4.593709] byt-max98090 byt-max98090: ASoC: CPU DAI baytrail-pcm-audio not registered I did see some posts about 15.10 resolving some audio issues for these models. Hope this info helps - everything seems to be good (some rough spots like Chrome/Chromium - don't see way to switch to Chrome/icon errors, and some other UI oddities but seems mostly stable) |
|
I am getting a GNAWTY from Google to work on during the month of December. I hope to get the issue (and any other issues) worked out during my time with it. |
|
@drghuser could you try this: |
drghuser
commented
Nov 24, 2015
|
I remember seeing this in my research - let me try it and I'll post results. FYI - Power management seems to be working very well (getting perhaps better battery life than ChromeOS). Chromium is definitely slower than stock ChromeOS with Chrome - not sure if there is room for improvement in future builds or not, but thought I'd mention it. |
drghuser
commented
Nov 24, 2015
|
Not getting the results described by the person in that post - quote from his post: "uninstall linux-firmware, and be sure there is nothing remaining in /lib/firmware/intel. Finally copy the contents of the chromium repo (click tgz to download) to /lib/firmware/intel. You should see an audio device on next boot." and for the repo is referring to "https://chromium.googlesource.com/chromiumos/third_party/linux-firmware/+/refs/heads/stabilize-5339.B/intel/" I tried uninstalling and just copying, and I also tried reinstalling and copying over; neither had positive results. Uninstalling and just copying resulted in no wireless, no sound, etc. I will try to follow up with that person and see if maybe there was more to it, though the article is about a year old. |
drghuser
commented
Nov 25, 2015
|
I just checked dmesg and that error is gone, so I'm going to try doing the state file. |
drghuser
commented
Nov 25, 2015
|
OK, so maybe there was no progress - I read more through dmesg and I found: [ 4.593101] byt-max98090 byt-max98090: ASoC: CPU DAI baytrail-pcm-audio not registered before the good entries: [ 4.693548] max98090 i2c-193C9890:00: MAX98090 REVID=0x43 Also, I just recopied (and did a alsactl restore) to try to get it to keep the asound.state file. In the end, no change; In fact, in some combinations of these changes the volume up key does nothing but mute and volume down work, and in other combinations of various fixes I believe volume up and down worked but I'm not sure about mute. Let me know if you have other ideas - I will continue re-reading the various posts from the past year or two with people installing linux on baytrail devices. |
drghuser
commented
Nov 25, 2015
|
Apparently there is a different between older and newer BayTrail devices with regards to audio support in Ubuntu - that probably explains why some people have no issues, and why some fixes work for some people but not others. This discussion mentions looking for / testing newer version of Alsa so I might do that next. |
drghuser
commented
Nov 25, 2015
|
In case it helps, here is my dmesg output: |
stozi
commented
Nov 30, 2015
|
I'm willing to test this on my Lenovo N21 if someone can help me identify the write protection screw/jumper |
drghuser
commented
Dec 1, 2015
|
I have played with a few different sets of Intel firmware aimed at Chromebooks and it seems like I can get it detected and get it to show up in ALSA but still no sound. I plan on posting more particulars soon. I even tried not having PulseAudio installed since I saw some postings about that sometimes messing things up. |
|
Reddit field report: James Fu's workaround succeeds for Acer CB3-111 (GNAWTY). https://www.reddit.com/r/linux/comments/3umh3t/im_looking_for_a_sub_200_laptop_that_will_run/cxi6aqg *possible caveat: success under Mint, not GalliumOS, I think. Hopefully the same solution works in both distros, but if not that might be a starting point for investigation. |
drghuser
commented
Dec 1, 2015
|
renhout, can you post what chipset the audio is for your machine, maybe a dmesg post? If it's the same as in the Toshiba Chromebook 2 I may try removing the files in /lib/firmware/intel and removing and reinstalling linux firmware package from the package manager and do the basic ALSA sound state fix again (I keep doing that after trying different Intel firmware). Right now I'm using firmware from: |
drghuser
commented
Dec 1, 2015
|
I just saw that you put that you got it working under Mint. I have seen plenty of success under other distros: Arch, Mint, etc. just not under GalliumOS. |
|
@drghuser: I can ask /u/agr8sh0t on Reddit to join this thread or paste their dmesg output, if it would still be useful. I'll check to confirm that they are running Mint. |
drghuser
commented
Dec 1, 2015
|
I just put back the original Intel files by deleting the files in /lib/firmware/intel and reinstalling the "linux firmware" package. If you do this, then there is no sound, but the hardware is detected and a driver loaded. The media keys (with the seach button) for volume up and down work but not mute. If you do the asound.state update there is still no sound and then mute works and volume up but not volume down. I've also tried things like reloading alsa from a terminal as well as reinstalling the alsa base package. The only thing I haven't tried (because I suspect it will end badly) is getting a newer version of ALSA. I think this may fix the issue, but since the kernel drivers won't be up to date I would expect it to fail. |
|
@stozi: I've been unable to find official or specific docs on the net, but from a replacement parts photo, I think the WP screw goes in the hole on the left hand side (see second link, not sure of board orientation in device), near the blue (USB?) connector numbered "141123". That screw hole has metal pads where the head of the screw would sit when torqued all the way down, which is the typical WP screw mechanism. It isn't labelled, but none of the other screw holes have anything like that, so that's the basis for my guess. http://www.globaldirectparts.com/OEM-Lenovo-N21-Chromebook-80MG-Motherboard-p/cbln21brd1.htm |
|
I'm going to double check the kernel config this evening and see if I missed anything. |
drghuser
commented
Dec 1, 2015
|
I did miss something for baytrail in the kernel. Could someone try this: https://drive.google.com/file/d/0B6zPD2kAJoTJM0J0Z09GNllGa1k/view?usp=sharing and see if it makes a difference? |
drghuser
commented
Dec 2, 2015
|
I just downloaded and chose to install it - got the following output: |
drghuser
commented
Dec 2, 2015
|
After reboot there was still no sound and volume up/down media keys worked but not mute. Dmesg output looked similar/same as past. I copied the James Fu asound.state file and rebooted. Now I had all working media keys but no sound. I decided to run the alsa tools test script again (haven't run it in awhile troubleshooting other firmware, etc. The output looks good (see below)- I think we are closer. I'm thinking of either doing an alsa force-reload next and a couple of the other common fixes I've seen posted (and that I have tried in the past with different firmware, etc.) Perhaps I need to try the other firmware again too. :-) |
|
@drghuser Thanks for trying it. I don't know why the microcode didn't apply or what the /dev/mmcblk errors are about. Have you tried the firmware here: http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/intel ? There is also updated microcode there. |
drghuser
commented
Dec 2, 2015
|
That appears to be the same as the one I referenced above, just a different source location. |
|
Ok. |
drghuser
commented
Dec 2, 2015
|
That firmware does work, in fact that is the only one I have found other than the one in the "linux firmware" package that has actually worked/loaded. |
drghuser
commented
Dec 2, 2015
|
just no sound. :-( |
|
Have you tried alsamixer yet to unmute things? I've read that some have had to do that. |
drghuser
commented
Dec 2, 2015
|
the restored asound.state file appears to be unmuted, and I thought I opened the mixer in terminal in at least one of my many desperate attempts. :-) I'm trying to make sure I try all the various permutations of the various fixes / firmwares combined with each other. |
drghuser
commented
Dec 2, 2015
|
yes alsamixer just shows the same data in terminal and in the GUI versions. Everything says there is sound, but there is just silence. |
drghuser
commented
Dec 2, 2015
|
When I tried the files at https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware/+/refs/heads/master/intel (which appear to be the same as @hugegreenbug posted http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/intel ) I just deleted the files in /lib/firmware/intel and copied the files from the location. FYI - The files that get installed in /lib/firmware/intel by the included 'linux-firmware' package appear to be the same versions (which makes sense since according to the log at git.kernel.org the last updates for Baytrail were 12/2014). The only differences were the following files which are NOT in the current 'linux firmware' package but are in both the above mentioned sites: ibt-hw-37.8.10-fw-22.50.19.14.f.bseq |
stozi
commented
Dec 4, 2015
|
Btw, so to do this using John Lewis's script on my Lenovo N21, I must use the BOOT_STUB mod, which means any time I accidentally hit refresh or power I have to open my machine and disconnect the battery? That's what I'm getting here: https://johnlewis.ie/custom-chromebook-firmware/rom-download/ |
|
@stozi If I understand it correctly, you only have to do that if you push Refresh and Power at the same time. Either way, it's off topic. |
|
@stozi confirming @ColtonDRG: When you tell the Chromebook to initiate the ChromeOS recovery procedure (by pressing Refresh+Power together), it will try do to so. The recovery code doesn't exist in the new ROM, so it will get stuck. Fortunately, no code will run and nothing bad will happen to your installed system. But the machine will remember your request and keep trying on reboots, until you make it forget by unplugging the battery for a few seconds. Inconvenient, obviously, but very unlikely to happen in the first place. |
stozi
commented
Dec 4, 2015
|
Great, moving ahead. Sorry, this isn't right on topic, but I need help if I'm to test my Lenovo N21. I don't see a write-protect screw here and I have no idea what a jumper point would look like: |
|
@stozi did you see this comment? #66 (comment) From your photo, I think that corresponds to a screw hidden under that white "lenovo" sticker. |
stozi
commented
Dec 4, 2015
|
you are, obviously, completely correct. So far so good, last tangental question, what do I pick on the Gallium download page? Broadwell? |
|
We've been suggesting Haswell generally, but it probably doesn't make much difference here. You can switch between hardware specific configs with |
stozi
commented
Dec 4, 2015
|
Ok, well Gallium is running nicely fully installed on my Lenovo N21. Quite an attractive design. No audio, of course, given the testing that you all have done, is there anything you'd like me to try on this? Alsamixer shows a 'HDA Intel PCH' and a 'byt-max98090' Btw, there's no reason to replace the write-protect screw, is there? |
|
No, there isn't. If you replace that screw it will just make your life harder next time you want to update the firmware. |
reynhout
referenced this issue
Dec 6, 2015
Closed
No audio (in/out) on Google Pixel 2015 (SAMUS) #100
hugegreenbug
assigned
ColtonDRG
Dec 7, 2015
|
@drghuser could you try to move /etc/modprobe.d/snd-hda-intel.conf to somewhere else and reboot? Sorry, I should have thought of this before. |
|
@stozi could you also try the above suggestion? |
drghuser
commented
Dec 7, 2015
|
I didn't do that because I thought the last person, @Ravoz , to try that had their machine stop booting. |
|
@drghuser Oh, I did suggest it earlier :). It can't cause the machine to stop booting. He may have moved something else by accident. That file doesn't exist in a normal Xubuntu installation. It helps with sound issues for haswell and broadwell. |
drghuser
commented
Dec 7, 2015
|
I'm trying it now - also, it's hda, not had. |
|
Ok. Thanks, I fixed it. |
drghuser
commented
Dec 7, 2015
|
no sound still. I even tried reinstalling linux firmware and alsa base; no dice; copied the trusty asound.state; nada. I can try that other intel firmware again, but so far moving that hda conf file doesn't seem to have made a difference (dmesg appears the same too). |
|
Ok. Thanks for trying. Hugh On Mon, Dec 7, 2015 at 1:07 PM, drghuser notifications@github.com wrote:
|
drsn0w
commented
Dec 8, 2015
|
I own an ASUS C300 (QUAWKS) and helped John Lewis in the initial Baytrail bringup of his ROM. I'd love to help with this issue, I'll install Gallium tonight. What would you like me to test? |
|
@drsn0w Honestly, I'm not sure anymore. I guess you can try to boot a 4.2 kernel. If it doesn't boot, you may need to set acpi=off as a kernel boot option. Thanks! |
|
@drsn0w You can also try some of the suggestions in this thread and here: https://plus.google.com/100074662224885886899/posts/dkpHJ1ufwP7 . I would recommend renaming /etc/modprobe.d/snd-hda-intel.conf to something that doesn't end in .conf |
drsn0w
commented
Dec 8, 2015
|
Alright, I'll give that a whirl when I get home. I use a 4.3 kernel on my existing Debian installation on the C300 and following the fixes on John's group worked for me, so I'll try 4.2, as well as 4.3. Is there a specific kernel configuration file for Gallium that I should use? |
|
@drsn0w Our kernel config could be the problem. The config we are using is here: https://github.com/GalliumOS/linux/blob/master/.config . |
drsn0w
commented
Dec 8, 2015
|
Ok, I'll take a look and compare it with my existing config |
drghuser
commented
Dec 8, 2015
|
I'm pursing a lead I saw from someone using Gentoo with minimal changes. Mine isn't muted, but I'm trying adding a asound.conf with: https://wiki.gentoo.org/wiki/Toshiba_Chromebook_2 UPDATE: This just made it more convenient for changing audio, didn't fix the missing audio issue. Hopefully the kernel config comparison turns up something. |
drsn0w
commented
Dec 9, 2015
|
Welp, I excitedly installed GalliumOS w/o grabbing the kernel config from the boot partition of my C300's Debian. Digging through my build machine now, hopefully it's around here somewhere. I'll also take a look at Fedora's default kernel configurations, as I know sound works on them with aforementioned steps |
drsn0w
commented
Dec 9, 2015
|
Looking at a diff between your kernel config and Fedora's kernel config doesn't tell me much. Granted, diff output gives me a headache, and the Fedora kernel config is 4.4 whereas yours is 4.1. From what I can tell, there aren't any options in Fedora that aren't enabled on Gallium's Linux. Here's the diff output if anyone wants to take a look:
UPDATE: About to run kernel build. Unfortunately I have to build it on a crappy 5th-gen mobile i3 tonight so it'll take all night. I'll report results tomorrow afternoon. |
drghuser
commented
Dec 9, 2015
|
Several things I have read led me to believe that the issue was at the kernel level, that the successful installations of various iterations of linux that had working sound were all newer kernel releases. |
|
GNAWTY reported fixed here: (parent of) https://www.reddit.com/r/GalliumOS/comments/3to9lj/toshiba_chromebook_2_no_sound/cxuqvcy |
|
https://www.youtube.com/watch?v=7WBueo144T8 Those were made using Linux 4.3 from Ubuntu's mainline kernel PPA. |
drghuser
commented
Dec 11, 2015
|
Interesting @reynhout - the steps in the script mentioned in that post seem to be the exact same things I have been doing manually, though I have been using James Fu's asound.state file. I will run this script tonight/tomorrow and post my results. The video from @ColtonDRG gives me hope! :-) |
|
I didn't use that script. I used good old fashioned research and elbow grease. Remember I have to make this happen by default in the galliumos-baytrail package. ;) |
drghuser
commented
Dec 11, 2015
|
Well my research and elbow grease haven't worked yet, and like I said that script appears to be exactly what I have found to be supposedly working for others (just automated) and not yet succesful for me. He just replaced the firmware and the asound.state and made sure the speakers are unmuted. |
drghuser
commented
Dec 11, 2015
|
@ColtonDRG Let me know if you have something you want me to burn to a flashdrive and try booting from in my Toshiba Chromebook 2 CB35 3330 (swanky/baytrail) |
|
I don't plan on building any isos just yet, but I will ask you to remove whatever device package you have and install galliumos-baytrail from the testing repo whenever I have it ready. |
drghuser
commented
Dec 11, 2015
|
Can I just liveboot from USB (when it's ready) just to make sure it's OK before making the changes to the installed copy? Also, when it is ready and looks good from live USB boot I would do the following to remove the package like you requested above: |
|
I don't know. I'll try it once I have the package ready. I'll inquire about getting nightlies built as well. Yes. Those are the correct commands for removing, but you'll have to install galliumos-base-dev first to get the testing repository. |
drghuser
commented
Dec 11, 2015
|
The haswell iso ran fine (other than no sound) from USB, that is what convinced me to dive in and install it to the internal drive. |
|
I think the broadwell is actually closer to being correct, but on this kip it doesn't seem to make any difference no matter what galliumos-device package is installed, or even if none are. |
|
Okay, I'm ready for someone to test now... Please download this file You should start hearing audio as soon as the package is installed, but if you don't, reboot. If you still don't hear audio after a reboot, check to make sure the default sink is set correctly in PulseAudio (it should be I eagerly await anyone's results. This worked for me on Kip. We need it tested on as many Bay Trails as possible. P.S. You may need to manually reinstall galliumos-laptop afterwards with |
drghuser
commented
Dec 11, 2015
|
I did the manual remove (per suggestion) and then installed the package and rebooted. Everything worked without needing to change default device (though I I think I did that earlier when testing other fixes). I also checked the package manager and galliumos-laptop was listed as installed and everything seems to be good so far. Sound!!! Thank you @ColtonDRG !! |
drghuser
commented
Dec 11, 2015
|
I have a second Toshiba Chromebook 2 on it's way to me. I like this one (the one I'm building for a gift) so much that I bought one for myself. Refurb new from Toshiba $160 on eBay (they have several if anyone wants one) |
|
It's done.... Audio works perfectly on kip. https://youtu.be/CsQrxTrALb4 To achieve the proper switching between headphones and speakers, we stole the entire ALSA system from kernel 4.2.7. The new kernel is here. This should be uploaded to the testing repos soon, but you can download it straight from here if you can't wait. https://cdn.coltondrg.com/linux-image-4.1.14-galliumos_6_amd64.deb And in case you missed it before, the galliumos-baytrail package is here. https://cdn.coltondrg.com/galliumos-baytrail-0.1.1.deb You can install both of these packages with After installing both of those and rebooting, you should have perfect audio. I won't close the issue until we have more testing results in, but it's hereby fixed! |
rolladude1166
commented
Dec 13, 2015
|
Just got done installing everything, and I can confirm it works on the Gnawty. Thank you all very much for all your efforts!! |
drsn0w
commented
Dec 13, 2015
|
Good work!! Thank you, glad you got it working :D |
ColtonDRG
closed this
Dec 21, 2015
|
If someone finds some device that's not working, let me know. I'll reopen. |
|
Wow, this is an old issue. Someone on the subreddit reported speakers not working, wonder if this could have anything to do with that. It was a Bay Trail, Asus 300C. https://www.reddit.com/r/GalliumOS/comments/4ac0c5/i_messed_up_my_audio_settings_badly_can_i/ |
|
It could be related, but I don't know. Unless that device has something different that's the key, it seems unlikely that it's directly related. Audio is pretty much good on Bay Trail now. (there are a couple bugs) |
gmykhailiuta
commented
Jun 24, 2016
|
I have no sound on GNAWTY with latest kernel =(
but with that kernel suspend does not work :-)
dmesg output: https://gist.github.com/gmykhailiuta/6cd967d42caa159621581fd0af5e8c7f |
|
@gmykhailiuta this is a new issue, I will open a new ticket. EDIT: #258 |
gmykhailiuta
commented
Jun 24, 2016
|
Cool! Thank you a lot, @reynhout ! |
|
I'm going to lock this, since it's long dead. Any future Bay Trail sound issues should be in new tickets, thanks. :) |
reynhout commentedNov 12, 2015
Reported by Bergauk via IRC.
Initial report on Toshiba CB35 Chromebook 2
Toshiba CB2 CB35-B3340
John Lewis ROM
Otherwise, install went well and initial testing is positive.