Closed brianharcourt closed 6 years ago
Looking at issue #1030 I saw that alsa-utils
were recommended which I uploaded and updated the chroot.
Alsamixer launched successfully but no sound was being produced.
I left the chroot and played with chrome os trying to get sound back in the native environment. When I returned to the chroot I received No space left on device
message again.
After rebooting - I'm back to receiving only the No space left on device
message.
Powerwashed. Situation resolved.
For future reference...
It appears that when a cras client is initializing, it sets up an inotify watch on /run/cras/.cras_socket (for some reason). When you run out of total user inotify watches (the default sysctl for this on chromeos seems to be 8192), the error code you get is exactly the same as "No space left on device" (that is, ENOSPC). If the cras client cannot create an inotify watch, it fails to do anything at all, including anything related to audio.
You can fix this by raising the inotify user watch limit with the following command:
sudo sysctl fs.inotify.max_user_watches=1048576
I just did it and it saved me a powerwash!
Note: you can test whether a cras client will fail with the cras_test_client
command (and strace
from there to drill down further)
Thanks a lot for this! I used to run into this problem a lot.
REASON: I'm doing all my nodejs development on my chromebook. Most popular buildtools watch for file-changes in the source-folder (recursively, to rebuild the application). This creates a lot of open inodes.
This solved it..THX again!
Please describe your issue:
When the chroot starts sound stops working in both native chrome os and in the chroot.
If known, describe the steps to reproduce the issue:
Unclear exactly how this started. Further once the issue has been found, both sound and video can be unstable, fixed by rebooting. I've tinkered around most of the day with it; updated the chroot, re-installed the xorg and xiwi targets to no avail. Research has found the following when attempting to start alsamixer:
The unknown 'geoclue' user seems common and unrelated.
Researching
no space left on device
I find:Noting the 93% usage of the /dev/root at /lib/modules/3.14.0 making me wonder if there are files that need to be created to create a CRAS client.
Further - I see that the in the crosh shell:
So - what is eating up the 1.6G of /dev/root ? Where do I find those contents and how do I trim them?