Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme: Autorun example #19

Open
second-constantine opened this issue Jan 8, 2022 · 2 comments
Open

readme: Autorun example #19

second-constantine opened this issue Jan 8, 2022 · 2 comments

Comments

@second-constantine
Copy link

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
@Gadgetoid
Copy link
Owner

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

Today I learned!

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

Gadgetoid added a commit that referenced this issue Feb 4, 2022
Gadgetoid added a commit that referenced this issue Feb 4, 2022
@rolandog
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants