Skip to content

USB keyboard #2

Description

@pjebs

How can I make it persist with USB keyboard? But it doesn't persist restarts and creates.

I got it to work using:

1. Connected usb cable to computer
2. Went to Settings->General Settings->Storage->USB web interface ON
3. Typed in terminal:
ssh root@10.11.99.1
It asks for password: 9Qy8HdcVGm
4. Turned on SSH over SLAN:
rm-ssh-over-wlan on

5. Connect using wifi:
ssh root@192.168.0.58 (From Settings->Help->Copyrights and licenses->Gen info (bottom)

========================================================
6. Triggering command when keyboard is plugged in:
========================================================

A. Make a script so that enable-usb-keyboard.rules is added back in after reboot (when it is removed):

/home/root/usb-startup.sh:

#!/bin/bash
touch /etc/udev/rules.d/enable-usb-keyboard.rules
message="ACTION==\"add\", RUN+=\"/bin/bash -c 'echo host > /sys/class/usb_role/ci_hdrc.0-role-switch/role'\""
echo "$message" > /etc/udev/rules.d/enable-usb-keyboard.rules
udevadm control --reload-rules && udevadm trigger

B. Run: chmod a+x /home/root/usb-startup.sh
C. Run: /home/root/usb-startup.sh
D. Turn off wifi ssh: rm-ssh-over-wlan off
E. Do not power off device or you need to run this process again (sleep is okay).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions