Commit Graph

263 Commits

Author SHA1 Message Date
j1nx d7455d98a1 Switch mycroft settings over to ovos settings (and remove holmes) 2022-02-03 11:12:56 +01:00
Peter Steenbergen b074f08076
Feature/rpi3 (#98)
* Add rpi3-64 defconfig file

* Work on getting RPI3 into shape

* Merge latest rpi3 changes into rpi4 config
2022-01-19 15:50:19 +01:00
Peter Steenbergen 0cb7d6a158 More MPRIS support work 2021-10-31 19:30:37 +01:00
Peter Steenbergen e008a836e4 Start with adding mpris support 2021-10-06 20:10:40 +02:00
Peter Steenbergen 22b4b6287e Switch common play to new OCP plugin system 2021-10-02 10:42:31 +02:00
Peter Steenbergen d8750257d5 Bump packages and skills (again) 2021-09-23 20:48:13 +02:00
Peter Steenbergen 987755a337 Add precise-lite support + all dependencies for it.
(No TFlite_runtime package included as of yet)
2021-09-23 14:55:05 +02:00
j1nx f35d0f4977 Confirm listening to true 2021-09-08 10:28:28 +02:00
j1nx e5d0462b95 Enable instant listening and disable confirmation sound 2021-09-08 09:25:18 +02:00
j1nx d9e3cc7e10 Small config changes 2021-09-05 13:33:39 +02:00
j1nx 273afc7f04 Following the same route as Mycroft and XMOS
Splitting the mics into two mono channels???
2021-09-04 19:25:24 +02:00
j1nx 557b858460 Re-Add accidental deleted asound.conf 2021-09-04 18:06:27 +02:00
j1nx 812e92cbde Get the sj201 in line / Sound system architecture changes 2021-09-04 15:42:24 +02:00
j1nx 4b5dfd163d Fix precise plugin name in config 2021-08-28 21:25:30 +02:00
j1nx 1bd1319733 Disable specific sj-201 PulseAudio configuration (for now) 2021-08-28 10:28:27 +02:00
j1nx 88cdea8b0d Addition of USB GeneralPlus pulse and udev support (wip) 2021-08-26 21:04:22 +02:00
j1nx 55ae8450b9 Add ovos_guiplayer to configuration file 2021-08-14 20:55:44 +02:00
j1nx 9811e7f3de Remove pulse ducking from settings file 2021-08-14 14:50:20 +02:00
j1nx b630005d23 Make our ovos_vlc the default for audio 2021-08-13 18:32:49 +02:00
j1nx 1ddbf76ef4 Tweaks to mycroft.conf
- priority skill name change for volume
- Do not upload skill manifest (for now)
- Do not upload skill setting (for now)
(till skill settings upload is fixed)
2021-08-12 16:50:42 +02:00
j1nx eec812f9a4 Sync clock at boot through Mycroft (as well) 2021-08-10 17:08:11 +02:00
Peter Steenbergen 5d1332e58a
Merge pull request #52 from OpenVoiceOS/fix/ipc-path-perms
move ipc_path to /dev/shm
2021-07-27 20:49:19 +02:00
j1nx b97e76c6a9 Add new holmes.conf but leaving everything ycroft named for now
Soon we will rename everything towards OVOS however have that planned
step by step.
2021-07-26 12:09:32 +02:00
j1nx 90d5947b2f Remove audio section 2021-07-05 12:05:17 +02:00
ChanceNCounter 429eebf74e move ipc_path to /dev/shm
`mycroft-skills.service` fails to start when it gets `permission denied`
while trying to create `/ramdisk/mycroft/ipc`. I have confirmed that the
mycroft user has perms to write to `/dev/shm`.
2021-06-23 16:04:06 -07:00
j1nx 8de35a2923 Wait for internet and vlc as default player 2021-06-23 20:01:28 +02:00
j1nx 1c30c9e9c6 Update mycroft.conf 2021-06-23 12:47:04 +02:00
j1nx d5e0f09af1 Revert "Move system mycroft.cong to the proper XDG location"
This reverts commit 60afb012b0.
2021-06-17 18:45:21 +02:00
j1nx 60afb012b0 Move system mycroft.cong to the proper XDG location 2021-06-16 20:38:11 +02:00
j1nx 6e07d729da Rename priority skills to repo.author 2021-06-16 16:04:12 +02:00
j1nx 19ca470b1d Disable msm 2021-06-16 13:56:48 +02:00
j1nx 03ed04e280 Bump HolmesV again 2021-06-12 15:22:15 +02:00
j1nx 7a4d475d6f Add both skill-weather and ovos-skills-info to priority skills 2021-06-10 16:06:12 +02:00
j1nx f1cda8e142 [WIP] More work on the SJ201 support.
Output all ok now
Input still a lot of static noise (trying to figure it out)
2021-05-14 19:46:14 +02:00
j1nx c2f4db8199 [WIP] More sound architecture changes 2021-05-12 11:26:35 +02:00
j1nx f38dd4d36c Blacklist mycroft-version-checker.mycroftai 2021-05-06 16:05:27 +02:00
j1nx 57522fc849 Bump python-mycroft-lib
- remove enclosure assumption patch
- add default config to update ntp at boot
2021-04-26 17:24:55 +02:00
j1nx 8a29b24fec Remove data_patch variable in system mycroft.conf 2021-04-12 09:14:09 +02:00
j1nx 13d93ee1c7 Remove vconsole configuration from rootfs-overlay 2021-04-06 11:46:12 +02:00
j1nx 6e89056e1e Add forgotten firstboot flag file 2021-04-05 17:02:52 +02:00
j1nx a8d3e23a4e Switch over to fully XDG compliant skills directories 2021-04-05 16:03:41 +02:00
j1nx 6669ae2a6c Reverting one security limits.conf
Was a typo, but it is not recommended anyhow, so removed again
2021-04-02 11:26:32 +02:00
j1nx 3d77b065cc Lowering systemd waqtchdog timer to 10 seconds
The device keeps rebooting? Read online that the hardware watchdog
of the pi needs to be petted every 15 seconds, so giving it a try.
2021-04-02 11:24:01 +02:00
j1nx 1e7f15c015 Tuning the sound architecture to be more Real Time aware. 2021-03-30 13:12:17 +02:00
j1nx 6449a1e75f Hardening the system by rebooting the device after a kernel panic for more then 20 seconds. 2021-03-30 13:08:30 +02:00
j1nx d7d2f65e9b Enable and configure the hardware watchdog.
(reboots the device after it hangs for 20 seconds or more)
2021-03-30 13:06:29 +02:00
j1nx 95984efb37 Add var zram system and preperation for r/w FS overlay system 2021-03-11 09:29:17 +01:00
j1nx 5712beb181 Fix ramdisk permission errors making it below to the mycroft user 2021-03-04 20:50:26 +01:00
j1nx ad5b3114db Add ZRAM ramdisk support 2021-03-02 17:01:39 +01:00
j1nx 364d8be816 Make sure we have some overlap with when it swaps and the left memory space.
30 means, start using swap when <=30% of free memory is left
we reserve 20% of space for ZRAM compressed SWAP meaning 10% safety

This 10% margin feels safer then the hard 80/20 ratio we had.
2021-03-02 13:36:55 +01:00
j1nx 70fa66f615 Add and configure 20% of memory as zram swap with a low agressive swappiness 2021-03-01 21:58:30 +01:00
j1nx 81387b0ea5 Remove enclosure and mycroftgui skills from priority skills 2021-02-23 15:18:10 +01:00
j1nx 9320bd286b More bumps and sound related changes 2021-02-09 20:05:18 +01:00
j1nx 39ef6633f1 Bump packages and more work on sound architecture 2021-02-08 11:19:49 +01:00
j1nx 7943fe42f3 Revert "Switch alsactl over to daemon mode (although doubt it will be any better)"
This reverts commit f9cd5e45b9.
2021-02-08 08:16:13 +01:00
j1nx f9cd5e45b9 Switch alsactl over to daemon mode (although doubt it will be any better) 2021-02-05 17:39:04 +01:00
j1nx 17a59feec9 Changes to sound architecture, prepare system no longer needed 2021-02-05 16:10:50 +01:00
j1nx f6df47f452 Keep /var/log on disk for the moment as we are still debugging
As soon as we might reach a stable release, we can revert this again
2021-02-04 13:26:45 +01:00
j1nx 1d42e2b31f [WIP] Switch to a Hybrid MBR/GPT partition scheme.
- rootfs based on PARTUUID
2021-02-02 20:52:02 +01:00
j1nx 607f7f7418 [WIP] Use systemd-growfs instead of own scripts to expand the rootfs 2021-01-28 13:59:14 +01:00
j1nx 6616f3fbc2 [WIP] refactor the mycroft installed skills to buildroot packages. 2021-01-27 22:45:35 +01:00
j1nx fefcea98cb Fix mycroft.conf for precise plugin 2021-01-13 20:53:43 +01:00
j1nx d07ca1ede7 Switch precise-engine over to plugin based version 2021-01-10 17:20:54 +01:00
j1nx 060cad1764 Reorder priority skills 2021-01-10 16:39:22 +01:00
j1nx f5f551b2d8 Remove default precise mic.monitor 2021-01-10 16:31:48 +01:00
j1nx bb7e6c3d3b Fix resting screen issue. 2021-01-09 14:58:33 +01:00
j1nx a606114deb Make date-time skill a priority skill 2021-01-07 22:26:11 +01:00
j1nx 68d555fb16 WIP: Implementing all goodies and required changes / dependencies. 2021-01-07 21:21:21 +01:00
j1nx 3eb157a4fa Change to own pairing skill and make sure MSM doesn't hang on very first boot.
Mycroft doesn't continue if the repo skill doesn't get fetched which
obviously can't be fetch without network. So include a local copy
of the skills-repo so at least it doesn't stall the boot.
2021-01-04 20:57:46 +01:00
j1nx 71675566b6 Allow the normal user to control the backlight of screens 2021-01-03 15:24:55 +01:00
j1nx 2d2ebcaae7 Update default mycroft.conf to reflect the ovos changes. 2020-12-31 11:17:00 +01:00
j1nx 782e48887c Bump wifi-connect 2020-12-22 22:16:24 +01:00
j1nx cea47b56c2 Start with rebranding to OpenVoiceOS (OVOS). 2020-10-06 21:23:38 +02:00
j1nx 2a1675594e MycroftOS: Test with resampling everything to 48000 2020-09-18 14:51:30 +02:00
j1nx ee4be20395 MycroftOS: Split systemd tmpfiles configuration into mycroft and pulse conf files 2020-09-17 15:33:53 +02:00
j1nx 94fbaafcbd MycroftOS: Change priority skills names 2020-09-17 15:06:05 +02:00
j1nx 6c8cdfd4eb MycroftOS: Change default listener to MycroftOS 2020-09-14 16:25:13 +02:00
j1nx 2838dc9625 MycroftOS: Small changes in default sink/source naming 2020-09-14 16:24:12 +02:00
j1nx 52081a49b1 MucroftOS: Make pulse device the default listener device. 2020-09-04 14:04:55 +02:00
j1nx a88dc814a6 MycroftOS: Combine all sinks into one and make it the default.
This will make the sound being outputted to all sinks, so it should
not matter what you connect. Sound is directed to all available sinks
HDMI and Headphones (and/or usbcards/HATs) both output the same sound.
2020-08-31 19:27:59 +02:00
j1nx 19e8d56ee7 MycroftOS: Remove NetworkManager dispatcher files 2020-07-28 14:48:23 +02:00
j1nx d8ba4dfed8 MycroftOS: Initial try of vconsole.conf 2020-07-28 14:11:45 +02:00
j1nx d5741471ca MycroftOS: Change /var/run to /run for pulse tmpfiles 2020-07-27 13:56:23 +02:00
j1nx 7df45ec2f7 MycroftOS: Remove os-release from rootfs overlay.
This needs to be written in a post image script.
2020-07-27 13:49:40 +02:00
j1nx 094e1d3478 MycroftOS: Remove old inittab settings. 2020-07-27 12:29:24 +02:00
j1nx 898f265f9c MycroftOS: Turn On/Off wifi if LAN connection is up. 2020-07-21 10:45:54 +02:00
j1nx 6b92a68a3e MycroftOS: More timesync changes. 2020-07-21 08:18:22 +02:00
j1nx 5da8f467d3 MycroftOS: Addition of default NetworkManager files. 2020-07-20 11:42:02 +02:00
Peter Steenbergen 7656ac027a MycroftOS: More changes for the splash screen. 2020-04-21 09:36:05 +02:00
Peter Steenbergen 441c69fd06 MycroftOS: Remove cork module loading and unloading 2020-04-20 13:47:43 +02:00
Peter Steenbergen 4d2786c8e8 MycroftOS: Create tmpfiles.d pulse cookie directory at boot 2020-04-20 12:25:06 +02:00
Peter Steenbergen faa2787ecd MycroftOS: Fix dbus pulse configuration 2020-04-20 12:01:11 +02:00
j1nx ddb6c3c82b MycroftOS: Limit Journald in files and filesize 2020-04-16 13:10:54 +02:00
j1nx 98f30ff704 MycroftOS: Disable coredump 2020-04-16 13:05:59 +02:00
j1nx 93b0571fba MycroftOS: Decrease wait for network online timeout 2020-04-16 12:37:58 +02:00
j1nx 7aca1dd279 MycroftOS: Bring btspeaker service inline with latest systemd changes 2020-04-16 12:04:05 +02:00
j1nx 00e090edc5 MycroftOS: Migrate splash updates into systemd drop-in files
This for better management and in preperation for easy BAR update
2020-04-16 10:59:59 +02:00
Peter Steenbergen bbf4dd3fbf MycroftOS: Implementation of os-release file 2020-04-15 16:11:35 +02:00
j1nx 3bc68902ae Merge branch 'feature/rpi4_64' into develop 2020-04-15 09:07:21 +02:00
Peter Steenbergen cb5a4b31a7 MycroftOS: Add of eth0.network 2020-04-14 21:08:11 +02:00
Peter Steenbergen bb0a9ea186 MycroftOS: Change dhcp.network file to reflect buildroot change.
5ba81d0109 (diff-531b504c55961e72523bdd2f4ff62f39)
2020-04-14 19:57:45 +02:00
j1nx eb1e78b817 MycroftOS: Split rootfs overlay into board specifics folders 2020-04-12 15:35:10 +02:00
Peter Steenbergen d85a55f71a MycroftOS: Add dbus config for systemwide pulseaudio. 2020-04-06 13:34:16 +02:00
Peter Steenbergen d32532947f MycroftOS: Make alsa a bit more forgiving for usb cards. 2020-04-06 11:31:06 +02:00
Peter Steenbergen 9ee6bea5cd MycroftOS: Addition of Music Player Daemon (mpd).
- Folders are in /opt/mpd/
- Configuration in /etc/mpd.conf
- commented section to output to Snapcast if wanted
- NOT enabled by default, can be started/enabled by;
  sudo systemctl start/enable mpd.service
2020-01-13 14:31:02 +01:00
Peter Steenbergen 6d2105a8d0 MycroftOS: Pulse audio fixes and tweaks (mostly for BT distortions) 2020-01-11 19:38:16 +01:00
Peter Steenbergen c53f0b297e MycroftOS: Remove service name from advertised names.
They are not biting each other anyway and making it is obvious anayway
2020-01-10 19:20:15 +01:00
Peter Steenbergen 9d84ce2239 MycroftOS: Add mycroftos-enclosure-skill to priority skills 2020-01-08 09:15:18 +01:00
Peter Steenbergen f13b367b22 MycroftOS: Remove spaces from airplay name. 2020-01-07 14:39:59 +01:00
Peter Steenbergen f95dec9fa5 MycroftOS: Fixes / Changes in file/folder permissions at first boot. 2020-01-07 14:35:20 +01:00
Peter Steenbergen d5b81abe22 Revert "MycroftOS: Decrease pulseaudio latency by disabling tsched."
This reverts commit e1c343a762.
2020-01-06 19:54:27 +01:00
Peter Steenbergen 2789b9af69 MycroftOS: Fix folder permissions on first boot for default already installed skills 2020-01-06 19:22:24 +01:00
Peter Steenbergen 29ae2c3557 MycroftOS: Let's make snd_bcm2835 play nice with USB cards
- Make the USB card default before bcm2835 if present.
2020-01-06 16:36:49 +01:00
Peter Steenbergen b2998369c2 MycroftOS: Initial start of implementing Airplay support. 2020-01-06 15:15:52 +01:00
Peter Steenbergen 3e6ec89558 MycroftOS: Mimic a captive portal to auto start a browser on wifi connect. 2019-12-31 16:59:43 +01:00
Peter Steenbergen 34a89c5541 MycroftOS: Implementation of MycroftOS-WiFiSetup system.
- Start an Acces Point if no wlan is configured.
- Start a small flask webserver to configure the wifi.
2019-12-29 14:03:51 +01:00
Peter Steenbergen 4061037d0b MycroftOS: Some of tweaks and fises. 2019-12-21 23:43:56 +01:00
Peter Steenbergen e1c343a762 MycroftOS: Decrease pulseaudio latency by disabling tsched.
- This decreases teh latency from 828899 usec to 91376 usec
  a factor of ~10 which feels a lot snappier with for instance
  the listener sound. (testing needs to prove possible other
  related glitches.)
2019-12-20 21:09:29 +01:00
Peter Steenbergen ef7f547531 MycroftOS: Fix wifi. 2019-12-20 21:05:12 +01:00
Peter Steenbergen 9cfca493ac MycroftOS: Disable Echo Cancellation (for now). 2019-12-17 12:12:27 +01:00
Peter Steenbergen b6d1742913 MycroftOS: Use paplay instead of aplay for WAV playback. 2019-11-26 08:27:51 +01:00
Peter Steenbergen 21e1081440 MycroftOS: Enabling avahi zero conf of pulseaudio 2019-11-15 14:37:59 +01:00
Peter Steenbergen 093e2d9c52 MycroftOS: Enabling anonymous pulse access + network sound 2019-11-15 12:20:47 +01:00
Peter Steenbergen 712ceed32a MycroftOS: Enabling Acoustic Echo Cancellation 2019-11-15 09:25:53 +01:00
Peter Steenbergen 7a54a0d8cf MycroftOS: Force all ALSA sound request to be forwarded to pulseaudio 2019-11-13 08:33:51 +01:00
Peter Steenbergen 97d9cf26cf MycroftOS: Addition of default pulseaudio settings for MycroftOS 2019-11-11 09:39:36 +01:00
Peter Steenbergen 7d574f5432 MycroftOS: Changes to default system mycroft.conf
- Make Mimic2 the default TTS
- Make TTS duckable
(Make MycroftOS more inline with Mark-1 and Mark-2)
2019-11-11 09:10:44 +01:00
Peter Steenbergen 5ccd33e78f MycroftOS: Different OS layout changes
- Prepare system script to run at boot to prepare the system.
  Now used to restore sound configuration files to default before
  udev takes over and configures the system for what it sees.
  Later can be used to prepare the system for read-only OS similar
  as I have done during my Kodi developemtn years.
- Sound config changes to default settings.
- Remove forgotten wifi-setup system.
2019-11-11 08:53:55 +01:00
Peter Steenbergen 4b12d08faa MycroftOS: Addition of MycroftOS specific pulse audio .pa files 2019-11-05 13:41:03 +01:00
Peter Steenbergen 7ab92f2898 MycroftOS: Fix spi/i2s/gpio access for non root users
Similar system as raspbian via udev rules to change teh group.
Adding the mycroft user to those groups.
2019-11-03 13:42:06 +01:00
Peter Steenbergen 34ff40ca17 Merge branch 'feature/wifi-setup' of https://github.com/j1nx/MycroftOS into feature/wifi-setup 2019-09-27 09:52:37 +02:00
Peter Steenbergen 471002d23c MycroftOS: Revert back to default audio (pulse) config for mycroft 2019-09-21 12:39:33 +02:00
j1nx bf24e48ffc Merge remote-tracking branch 'origin/develop' into feature/wifi-setup 2019-09-16 13:57:24 +02:00
j1nx b8b18cebf4 MycroftOS: First steps in using npm and nvm 2019-09-16 13:43:48 +02:00
Peter Steenbergen 5dceef03f7 MycroftOS: Fix stupid quoting error in mycroft.conf 2019-09-12 18:16:12 +02:00
Peter Steenbergen 7eb848f661 MycroftOS: Define enclosure platform and version. 2019-09-11 14:32:29 +02:00
Peter Steenbergen 3bbdddfa01 MycroftOS: Multiple fixes, tweakes, changes and/or reverts.
Basically a bunch of staged stuff of before the upgrade of
buildroot and mycroft. If I remember it all correctly;

- Change the folder permissions setup from device_table to
  systemd.
- Remove the mycroft user setup from the mycroft.service
  package into a systemwide buildroot user_table.txt
- Fix respeaker stuff for systemd system
- Fix sudo system for the mycroft user
- Allow mycroft to SSH into the system. Disallow root login.
- Probably some other fixes and tweaks I forgot about....
2019-09-09 15:25:51 +02:00
Peter Steenbergen 469f4473bf MycroftOS: Remove /var/log from tmpfs
- This to keep the log files at reboot
2019-06-11 15:41:50 +02:00
Peter Steenbergen 1763c6be2c MycroftOS: Fix sudoers construction for mycroft user 2019-02-08 12:14:52 +01:00
Peter Steenbergen 8506d56142 MycroftOS: Small changes for the mycroft user
- No passwd / just a system user just like pulse
- Therefor also no SSH login needed.
2019-02-07 11:13:33 +01:00
Peter Steenbergen d6379f9f99 MycroftOS: Multiple fixes and tweaks.
- install locale binary from glibc into target
- allow mycroft to SSH into the box
- add of sudo command / binary
- folder permission issues
2019-02-06 13:03:03 +01:00
Peter Steenbergen 4fc960f306 MycroftOS: Remove old ALSA init script. 2019-02-05 08:51:03 +01:00
Peter Steenbergen 032566548a MycroftOS: Mycroft A.I. service package
- Systemd support for Mycroft A.I.
- Remove old init.d system files
- Update start/stop-mycroft.sh files
2019-02-04 12:55:48 +01:00
Peter Steenbergen f0711f0972 MycroftOS: Remove module loading init script.
- Loading the modules is now properly dynamically handled by udev+systemd
2019-02-02 12:06:18 +01:00
Peter Steenbergen 4f4945ef88 MycroftOS: Remove SDresize init script as it doesn't work with systemd
- Didn't work at boottime anyway
- Need to be recreated utilizing systemd
2019-02-02 11:58:26 +01:00
Peter Steenbergen 4ada46d528 MycroftOS: Remove Splash init script as it doesn't work with systemd
- Need to be recreated utilizing systemd
2019-02-02 11:56:11 +01:00
Peter Steenbergen c336a9d9eb MycroftOS: Enabling the SPI driver for the ReSpeaker HAT Skill 2019-01-31 13:43:50 +01:00
Peter Steenbergen 1e6df9e8c9 MycroftOS: Small changes to default /etc/mycroft/mycroft.conf
- Log level back to DEBUG, will be INFO at release
- Don't mute the microphone when playing
2019-01-31 09:13:15 +01:00
Peter Steenbergen 71cdd452cc MycroftOS: Add default /etc/pip.conf with;
piwheels added as extra url (however python3.7 is not yet supported)
only binaries for all (this should fix #11 )
2019-01-28 11:39:34 +01:00
j1nx cc4a893520 Merge branch 'develop' into feature/wifi-setup 2018-11-15 08:56:20 +01:00