Morphius running Aurora 40 (ublue)

Greetings all! Find it somewhat ironic that I’m running an atomic operating system on a Yoga C13 chromebook that previously ran Google’s atomic operating system, but here we are.
After install and enrolling the secure boot key from the Aurora project, I found myself wanting to run WeirdTreeThing’s scripts to get keybindings correct and audio control working.

Just to note here, I’m definitely new to using u-blue distros, but interested in what the experience will be like on a chrultrabook.

I made sure that python and git were the latest, then ran through the cros keyboard map script and got these errors- any idea on how to run something like this on an atomic/immutable distro like Aurora? Do I need to use rpm-ostree or toolbox or something?
I appreciate the help.

chromebook-linux-audio on  main via 🐍 v3.12.3 
❯ ./setup-audio 
[sudo] password for s31bz: 
WARNING: You may run into audio issues, even after running this script. Please report any issues on github.
Installing UCM configuration
Cloning into '/tmp/chromebook-ucm-conf'...
remote: Enumerating objects: 1297, done.
remote: Counting objects: 100% (321/321), done.
remote: Compressing objects: 100% (136/136), done.
remote: Total 1297 (delta 170), reused 306 (delta 163), pack-reused 976
Receiving objects: 100% (1297/1297), 222.23 KiB | 1.18 MiB/s, done.
Resolving deltas: 100% (657/657), done.
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-nau8825': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-ssp_amp': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/adl/* /usr/share/alsa/ucm2/conf.d
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-bxtda7219ma': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/apl/* /usr/share/alsa/ucm2/conf.d
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/avs_da7219': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/avs_dmic': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/avs_max98357a': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/avs_max98373': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/avs_max98927': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/avs_nau8825': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/avs_rt5663': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/avs_ssm4567-adi': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/hdaudioB0D2': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/avs/* /usr/share/alsa/ucm2/conf.d
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-rt5682s-rt1': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/cezanne/* /usr/share/alsa/ucm2/conf.d
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-cmlda7219ma': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-cml_max9839': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-cml_rt1011_': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/cml/* /usr/share/alsa/ucm2/conf.d
cp: cannot create regular file '/usr/share/alsa/ucm2/conf.d/sof-glkda7219ma/HiFi.conf': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/conf.d/sof-glkda7219ma/sof-glkda7219ma.conf': Read-only file system
cp: preserving times for '/usr/share/alsa/ucm2/conf.d/sof-glkda7219ma': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-glkrt5682ma': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/glk/* /usr/share/alsa/ucm2/conf.d
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-da7219max98': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/jsl/* /usr/share/alsa/ucm2/conf.d
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/sof-rt5682s-hs-': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/mendocino/* /usr/share/alsa/ucm2/conf.d
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/mt8183_da7219_r': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/mt8183_mt6358_t': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/mt8183/* /usr/share/alsa/ucm2/conf.d
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/acp3xalc5682101': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/conf.d/acp3xalc5682m98/HiFi.conf': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/conf.d/acp3xalc5682m98/acp3xalc5682m98.conf': Read-only file system
cp: preserving times for '/usr/share/alsa/ucm2/conf.d/acp3xalc5682m98': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/HD-Audio Generic': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/picasso/* /usr/share/alsa/ucm2/conf.d
cp: cannot create regular file '/usr/share/alsa/ucm2/conf.d/acpd7219m98357/HiFi.conf': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/conf.d/acpd7219m98357/acpd7219m98357.conf': Read-only file system
cp: preserving times for '/usr/share/alsa/ucm2/conf.d/acpd7219m98357': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/conf.d/HDA ATI HDMI': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/stoney/* /usr/share/alsa/ucm2/conf.d
cp: cannot create regular file '/usr/share/alsa/ucm2/common/pcm/split.conf': Read-only file system
cp: preserving times for '/usr/share/alsa/ucm2/common/pcm': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/common/* /usr/share/alsa/ucm2/common
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/cs42l42': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/codecs/hda/hdmi.conf': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/codecs/hda/hdmi234.conf': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/codecs/hda/hdmi2345.conf': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/codecs/hda/hdmi345.conf': Read-only file system
cp: cannot create regular file '/usr/share/alsa/ucm2/codecs/hda/hdmi567.conf': Read-only file system
cp: preserving times for '/usr/share/alsa/ucm2/codecs/hda': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/max98357a': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/max98373': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/max98390': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/nau8825': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/rt1011': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/rt1015': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/rt1015p': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/rt1019': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/rt1019p': Read-only file system
cp: cannot create directory '/usr/share/alsa/ucm2/codecs/rt5682s': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/codecs/* /usr/share/alsa/ucm2/codecs
cp: cannot create directory '/usr/share/alsa/ucm2/platforms/intel-sof': Read-only file system
failed to run command: cp -rp /tmp/chromebook-ucm-conf/platforms/* /usr/share/alsa/ucm2/platforms
Traceback (most recent call last):
  File "/var/home/s31bz/gitstuff/chromebook-linux-audio/./setup-audio", line 321, in <module>
    install_ucm()
  File "/var/home/s31bz/gitstuff/chromebook-linux-audio/./setup-audio", line 45, in install_ucm
    cpdir("/tmp/chromebook-ucm-conf/sof-rt5682", "/usr/share/alsa/ucm2/conf.d/sof-rt5682")
  File "/var/home/s31bz/gitstuff/chromebook-linux-audio/functions.py", line 65, in cpdir
    mkdir(dst_as_string)
  File "/var/home/s31bz/gitstuff/chromebook-linux-audio/functions.py", line 52, in mkdir
    mk_dir_as_path.mkdir(parents=create_parents)
  File "/usr/lib64/python3.12/pathlib.py", line 1311, in mkdir
    os.mkdir(self, mode)
OSError: [Errno 30] Read-only file system: '/usr/share/alsa/ucm2/conf.d/sof-rt5682'

You should talk to @Owen he was the first to do this with Submarine

1 Like

@Owen thoughts? I’m looking into the documentation here on how to possibly have the keyboard binding and audio script pre-run at build time, but I’m far out of my depth.

Hmm, not sure as audio worked for me out of the box (Bluebird Chromebook, stock firmware, UBlue Bluefin).

I’m no immutable expert, but it isn’t a package manager/rpm-ostree problem. The problem is that it’s a read only file system. I would look into how to get a typical [python] script to work properly on immutable distros, although it may not be possible to get this to work. For keyboard remap, I would just use a remap application.

Sorry I couldn’t be more help, try searching more broadly for potential fixes.

we shall see…as I learn how to figure this stuff out GitHub - al12gamer/aurora-cb: u-blue Aurora with a focus on working on my Thinkpad C13 Yoga Gen 1

Good luck!

Not sure if Aurora uses ostree to manage atomic os changes. But using os-tree command should enable you to modify /usr partition on Fedora Kinonite/Silverblue.

If aurora is like silverblue, you can create an overlay using systemd-sysext with the audio files. It’s not that hard. I can help someone update my fork if they want.

The audio now seems to be working with a new update, but it seems impossible to map keyboard keys

What is the issue with keyd?

Similar issue. I haven’t tried any of the systemd overlay stuff you mentioned yet, but the script failed when I ran it. I’ll try again this evening.

Haven’t had time to get this running, so I don’t know if I’ll continue trying to get this to work. I believe @glazedbelmont will have a version of Ultramarine coming out in the future that will immutably support Chromebooks as well, so I may wait for that.

Just for info’s sake, I don’t maintain Ultramarine or am part of their team in any shape or form

I’m the Jade you’re looking for.

Chromebook Edition is planned for the next month or so, we are also in contact with the UBlue team about Chromebooks in UBlue

Join one of our chats or follow us on socials to keep up to date

As for right now, UBlue uses RPM-OSTree and you can use rpm-ostree usroverlay to make /usr writable until the next reboot, my team does not support UBlue so please check their channels for support.

woops, sorry!

Thank you so much

also just install keyd from Terra and then you can configure keyboard to your heart’s content, you can pull one of Tree’s example configs and iirc keyd allows arbitrary config paths

good luck

Do you have an official forum for it or are you using Discord for forums?

See our socials and chats here