Cras and Pulseaudio #4842
Replies: 9 comments 9 replies
-
The Cras Device is a hardware driver for chomebooks your maybe Mono .xinitrc is in your home dir This should start the xorg server for graphics keyboard and pointer try some audio You should have audio controls in the menu |
Beta Was this translation helpful? Give feedback.
-
Im using icewm audio via pulse audio you can turn off cras via a slider |
Beta Was this translation helpful? Give feedback.
-
Playing back audio on my Chr.b. is no problem. But I do not want to use the on-board audio card I want to use the one in the picture below. You connect such a device via an USB cable. That used to be possible, now it ain't. |
Beta Was this translation helpful? Give feedback.
-
if the device is known the connect should be shown in the system The chroot OS may have changed, it could be you enable the USB port and the device shows up I believe this is device has I/O via usb your audio device https://www.behringer.com/product.html?modelCode=P0BK1 interest read I absolutely loved this thing, it was my daily driver for all audio in windows. Few months back we lost power briefly and it has not worked since. The mic inputs still work but it is no longer a USB device, tested on multiple PCs and its like it's not even plugged in. Tested with both USB power and wall power. by Daniil October 16, 2022 This is a good card, I recorded several tracks on it, but there is one problem. Everytime when I stream or record video in OBS or NVIDIA Shadowplay (I've also tested several programms for recording). I can hear how sound disappears on miliseconds (with crackling sometimes). But for me it's ok and it happens only on my recordings... And this is really annoying. Reinstalled drivers, tried different USB ports, nothing helps. Wanna change this card on something else because of this |
Beta Was this translation helpful? Give feedback.
-
The Linuxmusicians forum post you referred to is from me in 2017. Anyway I've powerwashed my Chr.b. and reverted to the factory ChromeOS version link. I appeared to have backuped my Ubunty Trusty chroot. Re-installed the back up and lo and behold it works again. See screenshot of Alsamixer, nowadays those three audio devices do NOT turn up. Crouton used to be better! Wil never update Crouton or buy me a Chromebook. So yes: in the old days we could access and use external USB hardware w/ Crouton, and now we can't. Bye. |
Beta Was this translation helpful? Give feedback.
-
[yet another update] Stop the press. When I run 'alsamixer' as root then it works! As a matter of fact I have to "do everything audio" as root (?!). Weird, because I'm member of the "audio" group. Can even run jack. Can use a Chromebook as a music production again. Phew! |
Beta Was this translation helpful? Give feedback.
-
crouton has two methods for audio. One is via ChromeOS's audio server (cras), which it uses as an alsa device. This plays nicely with ChromeOS audio and works for general use, but crouton's cras client can fall out of sync and need to be recompiled (via a crouton update) when there's a ChromeOS update. Not relevant for your case. The second way is to directly use the hardware interfaces, which is what you're doing. Two things need to happen -- cras has to be stopped, and your chroot user needs to have the right permissions. Generally you should be stopping cras from outside of the chroot; I wouldn't expect the initctl or service or whatever commands to work from inside, so it's surprising if that worked before. It's always possible the interface to stopping cras has changed with a ChromeOS update, but it seems unlikely. For permissions issues (which you seem to be having since running as root helps), crouton maintains a hwaudio group that matches the group id of the audio device outside the chroot. You should be able to add your user to hwaudio and restart the chroot to get the permissions in order. The hwaudio mapping gets updated every time you start the chroot, so crouton updates shouldn't affect anything. It's possible a ChromeOS update has changed the group ownership of the audio devices, so crouton syncing the groups is no longer sufficient, so if your user is already in hwaudio but direct access doesn't work, that's probably the next thing to dig into. |
Beta Was this translation helpful? Give feedback.
-
David yes my setup for now is cras pulseaudio alsa-utils which includes now the alsamixergui kmix and some others alsa mixer can change the sound device for use with pulseaudio which uses cras so jacks2 will help with USB sound devices have not tried BT or wifi yet .xinitrc |
Beta Was this translation helpful? Give feedback.
-
I recently had to re-install Linux on my Chromebook. I now have Debian 11 Bullsesye.
I cant remember how Cras (ChromeOS Audio Server) works in Crouton Linux. However, I cant start Pulseaudio apps like 'pavucontrol'. In my old Crouton choot I remember that I killed Cras this way:
sudo initctl stop cras
Doesn't work anymore. And 'alsamixer' does not show my external USB audio device. Chrome browser in Linux does play audio but I used to use my Chromebook for music production. Trying to stop 'cras' with a 'systemctl' command throws me the error:
Running in chroot, ignoring command 'stop'
I cant use Jack Audio anymore (it sees NO sound device) which means that my Chromebook is not nothing more than a paperweight now. Help!
Do I still need to kill cras to "do things audio"? And if so: how do I kill cras in Debian 11?
Beta Was this translation helpful? Give feedback.
All reactions