pi400kb icon indicating copy to clipboard operation
pi400kb copied to clipboard

readme: Autorun example

Open second-constantine opened this issue 3 years ago • 2 comments

Create a simple systemd unit (for autorun)

# Copy pi400kb
sudo cp pi400kb /usr/sbin/pi400kb

# Create unit
sudo systemctl edit --force --full how_keyboard.service

And add

[Unit]
Description=simple unit for user pi400 how keyboard

[Service]
ExecStart=/usr/sbin/pi400kb
User=root   
Group=root   
Type=simple
Restart=on-failure

[Install]
WantedBy=multi-user.target

Try and enable service

# start
sudo systemctl start how_keyboard.service
# check status
sudo systemctl status how_keyboard.service
# enable autorun if it's ok
sudo systemctl enable how_keyboard.service

second-constantine avatar Jan 08 '22 12:01 second-constantine

sudo systemctl edit --force --full how_keyboard.service

Today I learned!

We could probably include the systemd unit file in the repository.

Gadgetoid avatar Jan 10 '22 16:01 Gadgetoid

We should also probably mention that libcomposite should be added to /etc/modules (might resolve #39):

echo 'libcomposite' | sudo tee -a /etc/modules

rolandog avatar Jun 12 '23 10:06 rolandog