edequartel
Posts: 4
Joined: Sat Feb 07, 2015 5:47 pm

No keyboard input at boot for users Braille

Fri Jun 02, 2017 5:14 am

I wrote a program which have to start when the pi boots. To do this I've put it in /etc/rc.local. Unfortunately I can not get any input from the keyboard (on usb) when i press a key. Other devices (a brailledisplay on usb) are working fine.
The pi starts with autologin. Normally when i start the pi i can start the program without any problem after the autologin. The software is written in cpp and uses ncurses.
Software is used to teach young children Braille with a refreshable brailledisplay.

tvjon
Posts: 571
Joined: Mon Jan 07, 2013 9:11 am

Re: No keyboard input at boot for users Braille

Fri Jun 02, 2017 7:36 am

"The pi starts with autologin."

Which, X-desktop or cli?

If X desktop, in this file:

/home/pi/.config/lxsession/LXDE-pi

prefix the name of your app with

@

Here's a snippet of mine:

@lxterminal
@SciTE

Both of those appear on the desktop whenever my RPi boots.

edequartel
Posts: 4
Joined: Sat Feb 07, 2015 5:47 pm

Re: No keyboard input at boot for users Braille

Fri Jun 02, 2017 1:42 pm

It is the commandline, if you mean that with cli. My commandline looks like this
CONTROLVT=1 ./Braillepi
Where BraillePi is the software to be run.

Thanks in advance.

User avatar
RaTTuS
Posts: 9630
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: No keyboard input at boot for users Braille

Fri Jun 02, 2017 2:23 pm

if it auto logins into a commanline session then have

Code: Select all

if [ $(tty) == /dev/tty1 ]; then
   CONTROLVT=1 ./Braillepi
fi
in the file .bashrc
remove the rc.local stuff as it will not get input from your terminal or know which directory to run it in [unless you tell it]
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

edequartel
Posts: 4
Joined: Sat Feb 07, 2015 5:47 pm

Re: No keyboard input at boot for users Braille

Sat Jun 03, 2017 4:56 pm

It's working. Thank you very much.
Thanks to your input/answer young children and adults who are depending on Braille are now able to learn Braille in their own environment.

Here a video of the prototype of a BraillePi.
https://youtu.be/6bFhv0oUiBc

Many thanks,
Eric de Quartel
Bartiméus Education
The Netherlands
edequartel@bartimeus.nl

Return to “Assistive technology and accessibility”

Who is online

Users browsing this forum: No registered users and 3 guests