-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: specify only custom config file When we specify both an upstream defconfig and a local custom full-config, buildroot gets very confused and seems to use neither of them, which I think we can all agree isn't right. This is why none of our modules seemed to be there. * fix: audio modules, alsa config for sound output Before the update, I think we had a pretty simple audio setup and after the update we were missing the driver modules for audio on our soc. Bringing the driver modules back is pretty easy, but we now also need a bunch of extra alsa configuration to make sure that the volume is at 100% because at 50% it's completely inaudible. We can use amixer (NOT alsamixer, that's a TUI interactive mixer) to set the volume high, and alsactl to store it, but we also need to make sure we have somewhere for alsactl's state file, and then bam we've got persistent volume across reboots. * fix: reenable video capture Another set of kernel modules that got lost were the ones for the drivers that let us capture video from the camera. This re-adds them.
- Loading branch information
Showing
5 changed files
with
119 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
board/opentrons/ot2/rootfs-overlay/etc/systemd/system/alsa-initial-setup.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Creates alsactl's state saving directory if necessary, and uses the lack of such | ||
# a directory as an indication that this is a first-run and we should tweak up the | ||
# volume. | ||
[Unit] | ||
Description=Create ALSA config file and set initial volume | ||
ConditionPathExists=!/var/lib/alsa/asound.state | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/mkdir -p /var/lib/alsa/ | ||
ExecStart=/usr/bin/amixer set PCM 100% | ||
ExecStart=/usr/bin/amixer set PCM unmute | ||
ExecStart=/usr/sbin/alsactl store | ||
Before=alsa-restore.service | ||
|
||
[Install] | ||
WantedBy=alsa-restore.service | ||
WantedBy=sound.target |
1 change: 1 addition & 0 deletions
1
...2/rootfs-overlay/etc/systemd/system/alsa-restore.service.wants/alsa-initial-setup.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../alsa-initial-setup.service |
1 change: 1 addition & 0 deletions
1
...trons/ot2/rootfs-overlay/etc/systemd/system/sound.target.wants/alsa-initial-setup.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../alsa-initial-setup.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters