From fb6e148df731ed51a8a9da6aa8898efea76a8806 Mon Sep 17 00:00:00 2001 From: James <84810255+tigertank591@users.noreply.github.com> Date: Sun, 24 Jul 2022 11:30:13 +0100 Subject: [PATCH 1/3] Adding modprobe at start-up The script would not work without modprobe which otherwise would not have started without creating a service to run at start up. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b4c114d..98d4e7f 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,22 @@ Enable start on boot if it's okay: ``` sudo systemctl enable pi400kb.service +``` +After that, run: + +```sudo systemctl edit --force --full modprobe.service``` + +This will create the service to run ```modprobe libcomposite``` on startup. +From there, copy and paste the contents of the ```modprobe.service``` into the file. + +Run ```sudo systemctl start modprobe.service``` and ```sudo systemctl status modprobe.service```. + +If everything is working fine, make it enable at start up with: + +```sudo systemctl enable modprobe.service``` + +And voila! Your Pi400 should now function as a keyboard. + ``` ## Building & Contributing From 489563007fdf1dbde8f936c79d4ac94eb85df341 Mon Sep 17 00:00:00 2001 From: James <84810255+tigertank591@users.noreply.github.com> Date: Sun, 24 Jul 2022 11:32:40 +0100 Subject: [PATCH 2/3] Create modprobe.service A serviec to run modprobe on boot --- modprobe.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modprobe.service diff --git a/modprobe.service b/modprobe.service new file mode 100644 index 0000000..e7a4c16 --- /dev/null +++ b/modprobe.service @@ -0,0 +1,12 @@ +[Unit] +Description=Modprobe on start up + +[Service] +ExecStart=/usr/sbin/modprobe libconfig +User=root +Group=root +Type=simple +Restart=on-failure + +[Install] +WantedBy=multi-user.target From 358bcec75df5be91d983573fa9ece57386f7331c Mon Sep 17 00:00:00 2001 From: James <84810255+tigertank591@users.noreply.github.com> Date: Sun, 6 Aug 2023 11:40:00 +0100 Subject: [PATCH 3/3] Update modprobe.service Changed libconfig to libcomposite --- modprobe.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modprobe.service b/modprobe.service index e7a4c16..d045e84 100644 --- a/modprobe.service +++ b/modprobe.service @@ -2,7 +2,7 @@ Description=Modprobe on start up [Service] -ExecStart=/usr/sbin/modprobe libconfig +ExecStart=/usr/sbin/modprobe libcomposite User=root Group=root Type=simple