pyavitz / debian-image-builder

Debian image builder for single board computers
Other
141 stars 33 forks source link

Nanopi R5S - keyboard configuration #39

Closed Averell7 closed 1 year ago

Averell7 commented 1 year ago

defconfig -> rockchip64-rk356x_defconfig

using rk3568-nanopi-r5s-debian-bullseye-5.19.11-arm64-2022-09-26.img.xz I am unable to set the keyboard configuration. The config menu works fine, but at load time, there is an error : FAILED : Failed to start Set console font and keymap. And the keybaord layout is not changed.

pyavitz commented 1 year ago

try running; sudo systemctl restart console-setup

Averell7 commented 1 year ago

That was it, thanks, and it survives a reboot. Maybe the config tool could call it.

pyavitz commented 1 year ago

Good. I've never personally had this issue before, but if it should happen again, I'll add it. Thanx.

Averell7 commented 1 year ago

The error continues on startup, and there is surely something to tune :

Sep 28 02:59:51 nanopir5s console-setup.sh[348]: /usr/bin/setupcon: 870: cannot open /tmp/tmpkbd.rBhw5A: No such file Sep 28 02:59:51 nanopir5s systemd[1]: console-setup.service: Main process exited, code=exited, status=1/FAILURE Sep 28 02:59:51 nanopir5s systemd[1]: console-setup.service: Failed with result 'exit-code'. Sep 28 02:59:51 nanopir5s systemd[1]: Failed to start Set console font and keymap.

Averell7 commented 1 year ago

I tried to run /usr/bin/setupcon on the command line : it does not return an error.

pyavitz commented 1 year ago

Read through this and see if it helps; https://github.com/MichaIng/DietPi/issues/2912

pyavitz commented 1 year ago

If all else fails, see if you get the desired results with Ubuntu Jammy; https://github.com/pyavitz/binary/releases/tag/images

Averell7 commented 1 year ago

OK, I'll test. Leave me some time since this is not critical.

Averell7 commented 1 year ago

I used another time the solution you proposed above : systemctl restart console-setup.service I don't know why this time it worked. It is now several days (and a lot of restarts) I have done it and no problem. Maybe some commands I used from the link you gave fixed something ?