Trying to install audio script for chromebook

You have a problem with Salix? Post here and we'll do what we can to help.
coaxguy99
Donor
Posts: 30
Joined: 6. Apr 2025, 15:41

Trying to install audio script for chromebook

Post by coaxguy99 »

Hello,

I'm hoping someone can assist me.

I'm trying to get audio working on a chromebook that I converted to boot standard linux distros using tools from MrChromeBox.tech.

I have been able to get it working on other distros using the script at the following:

https://github.com/WeirdTreeThing/chrom ... inux-audio

When I try to run the script from Salix, I receive a couple of errors as follows:

Traceback (most recent call last):
File "/home/alben/chromebook-linux-audio/./setup-audio", line 6, in <module>
from functions import *
File "/home/alben/chromebook-linux-audio/functions.py", line 143
match platform:

Upon research, I'm fairly certain the second error "match platform" is because match requires Python 3.10 or later and the updated python on Salix 15 is 2.7.18 or 3.9.22. I'm not sure which. Gslapt says both are installed but if I type "python" in the terminal, I receive the following message:

alben[chromebook-linux-audio]$ python
Python 2.7.18 (default, Feb 13 2021, 10:44:22)
[GCC 10.2.0] on linux2

Even if Python is at version 3.9.22, that isn't a recent enough version.

Any assistance in getting the script running so I can enable sound on this laptop is very much appreciated. I got past the issue with not being able to install to mmccblk devices, thanks to @djemos. I'm only getting sound working away from making Salix OS my daily driver on this Yoga C630 chromebook. I'm already rocking it on two of my other laptops.

Cheers,
Coaxguy99
coaxguy99
Donor
Posts: 30
Joined: 6. Apr 2025, 15:41

Re: Trying to install audio script for chromebook

Post by coaxguy99 »

I apologize for the duplicate post. Please remove one of them.
User avatar
gapan
Salix Wizard
Posts: 6348
Joined: 6. Jun 2009, 17:40

Re: Trying to install audio script for chromebook

Post by gapan »

If it needs python 3.10, there is not much to do unfortunately, other than upgrade python, which is not easy.

You could try installing this python 3.11 package from slint: http://slackware.uk/slint/x86_64/slint- ... 2slint.txz
It sits beside the python 3.9 package we have in the repos. It should work, although I haven't tried it.
Image
Image
DidierSpaier
Posts: 539
Joined: 20. Jun 2016, 20:15

Re: Trying to install audio script for chromebook

Post by DidierSpaier »

gapan wrote: 24. May 2025, 08:34 If it needs python 3.10, there is not much to do unfortunately, other than upgrade python, which is not easy.

You could try installing this python 3.11 package from slint: http://slackware.uk/slint/x86_64/slint- ... 2slint.txz
It sits beside the python 3.9 package we have in the repos. It should work, although I haven't tried it.
This should work, but you need to edit the shebang (first line) of setup-audio:

Code: Select all

#!/usr/bin/env python3
so it becomes:

Code: Select all

#!/usr/bin/env python3.11
This is because in Slint as in Salix /usr/bin/python3 is a symbolic link to /usr/bin/python3.9

As an aside personally I would not be at ease running a script requiring that you be root or use sudo or doas to do an installation, but that's your machine.
coaxguy99
Donor
Posts: 30
Joined: 6. Apr 2025, 15:41

Re: Trying to install audio script for chromebook

Post by coaxguy99 »

I'm new to Salix. What are the commands to install the slint file from that repo? I clicked the link and it downloaded the file. I though I just extract the contents, then go into the install folder and ./doinst.sh but when I do that, I get the following:

alben[install]$ ./doinst.sh
bash: ./doinst.sh: Permission denied
alben[install]$ su
root[install]# ./doinst.sh
bash: ./doinst.sh: Permission denied
root[install]# sudo ./doinst.sh
sudo: ./doinst.sh: command not found
root[install]# ./doinst.sh
bash: ./doinst.sh: Permission denied
root[install]#

I went to SU because when I tried to run from root I got the Permission denied so I though I would try as SU and got the same messages.

./doinst.sh is as follows:

( cd usr/doc/python3-3.11.9 ; rm -rf Tools )
( cd usr/doc/python3-3.11.9 ; ln -sf /usr/lib64/python3.11/site-packages Tools )
( cd usr/lib64 ; rm -rf libpython3.11.so )
( cd usr/lib64 ; ln -sf libpython3.11.so.1.0 libpython3.11.so )

Thanks!
DidierSpaier
Posts: 539
Joined: 20. Jun 2016, 20:15

Re: Trying to install audio script for chromebook

Post by DidierSpaier »

Just download the file tying:

Code: Select all

wget http://slackware.uk/slint/x86_64/slint-15.0/slint/python3.11-3.11.9-x86_64-2slint.txz
then install it typing:

Code: Select all

sudo installpkg python3.11-3.11.9-x86_64-2slint.txz
type your password when requested, that's all.

sudo should be typed in lower case letter.

For your information the file doinst.sh includes commands to be run automatically at end of installation by the program installpkg, not by the user.

More generally you do not need to extract a package to install it.
coaxguy99
Donor
Posts: 30
Joined: 6. Apr 2025, 15:41

Re: Trying to install audio script for chromebook

Post by coaxguy99 »

Thanks! All of that worked but when I tried to install the setup-audio script, I received the following errors:

Warning: Kernel is missing module 'SND_SOC_INTEL_AVS', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_DA7219', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_DMIC', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_HDAUDIO', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_MAX98927', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_MAX98357A', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_MAX98373', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_NAU8825', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_RT5514', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_RT5663', audio may not work.
Warning: Kernel is missing module 'SND_SOC_INTEL_AVS_MACH_SSM4567', audio may not work.

Any idea how I can add the missing modules to the Kernel or switch to a kernel that supports the modules?

Thanks,
Al
User avatar
gapan
Salix Wizard
Posts: 6348
Joined: 6. Jun 2009, 17:40

Re: Trying to install audio script for chromebook

Post by gapan »

You need a kernel that supports that. As far as I can see, the kernel from slackware current does. The kernel from slint 15.0 also does. So you can get the kernel packages from here: http://slackware.uk/slint/x86_64/slint-15.0/slint/
and then install them manually. You will need an initramfs with that kernel, so make sure you create one, or your system won't boot.
Image
Image
coaxguy99
Donor
Posts: 30
Joined: 6. Apr 2025, 15:41

Re: Trying to install audio script for chromebook

Post by coaxguy99 »

Okay. I'm very new to Salix. I understand I need to read more but I'll just ask if anyone can help me with the commands to install the kernel from slint and creating the initramfs. I am still getting used to the slackware / salix way of doing things. So far I'm really liking it but it's way different than what I'm used to.
DidierSpaier
Posts: 539
Joined: 20. Jun 2016, 20:15

Re: Trying to install audio script for chromebook

Post by DidierSpaier »

To install the kernel, do what follows. Do not type the lines beginning with #, of course

Code: Select all

wget https://slackware.uk/slint/x86_64/slint-15.0/slint/kernel-6.12.8-x86_64-1slint.txz
wget https://slackware.uk/slint/x86_64/slint-15.0/slint/kernel-6.12.8-x86_64-1slint.md5
# check the integrity of the downloaded package
md5sum -c kernel-6.12.8-x86_64-1slint.md5
# The answer should be: OK
# Now install the package
sudo installpkg -i  kernel-6.12.8-x86_64-1slint.txz
To create the initramfs you can use geninitrd, I guess, or use dracut, also available in the same repository:

Code: Select all

wget https://slackware.uk/slint/x86_64/slint-15.0/slint/dracut-107-x86_64-1slint.txz
wget https://slackware.uk/slint/x86_64/slint-15.0/slint/dracut-107-x86_64-1slint.md5
# check the integrity of the downloaded package
md5sum -c dracut-107-x86_64-1slint.md5
# The answer should be: OK
# Now install the package
sudo installpkg dracut-107-x86_64-1slint.txz
# create the initramfs:
sudo dracut --kver 6.12.8
Then you will need to update the boot menu so that it includes the new kernel. For that iI use grub, but I am not sure which tool to use in Salix, Hopefully gapan or a Salix user will tell you.
Post Reply