I am writing an application for a computer that will not have a keyboard
and will gain all user input via a touchscreen. I would like to bypass the
login window when photon starts and just have a default user be logged in
at that time. Is this possible or am I trying the impossible? Thanks in
advance.
Ross Brantner
Previously, Ross Brantner wrote in qdn.public.qnx4:
I am writing an application for a computer that will not have a keyboard
and will gain all user input via a touchscreen. I would like to bypass the
login window when photon starts and just have a default user be logged in
at that time. Is this possible or am I trying the impossible? Thanks in
advance.
Ross Brantner
Here’s how we do it:
-
Set BIOS so the PC doesn’t require a keyboard
-
Don’t invoke Photon with “-lphlogin”
Here’s part of the script we call from /etc/config/sysinit:
export PHOTON_PATH=/usr/photon
export PATH=/bin:/usr/bin:/usr/photon/bin:.
/usr/photon/bin/phlib_s11
/usr/photon/bin/Aplib_s11
/usr/photon/bin/phlib_render_11
Photon &
Input kbd -R fd -d/dev/kbd dyna -b2400 fd -d/dev/ser1 &
sleep 1
phfontphf &
vesabios.ms -i0x12 &
sleep 1
Pg.vga4 -g640x480x4 -A0xA0000,0x10000 -WB80 &
This uses standard 4-bit VGA and a Dynapro touchscreen controller.
Previously, Ross Brantner wrote in qdn.public.qnx4:
I am writing an application for a computer that will not have a keyboard
and will gain all user input via a touchscreen. I would like to bypass the
login window when photon starts and just have a default user be logged in
at that time. Is this possible or am I trying the impossible? Thanks in
advance.
Would it help you to login the default user from sysinit and start ph from
the default user’s .profile?
Ross Brantner
I have used export LOGNAME=xxx to allow me to bypass the phlogin but I
would really like to log a specific user in. Any ideas on this one? I
looked at the manual for phlogin but could not figure out how to log on a
particular user. Any help would be greatly appreciated. Thanks.
Ross Brantner
Previously, Ross Brantner wrote in qdn.public.qnx4.devtools, qdn.public.qnx4.photon, qdn.public.qnx4:
I have used export LOGNAME=xxx to allow me to bypass the phlogin but I
would really like to log a specific user in. Any ideas on this one? I
looked at the manual for phlogin but could not figure out how to log on a
particular user. Any help would be greatly appreciated. Thanks.
Answered in qdn.public.qnx4.devtools due to crossposting
(
| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _ \ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld