Keyboard input / init + questions

Jerome Martin jxm at risingtidesystems.com
Tue Sep 28 14:23:18 PDT 2010


Hi Ray,

On Tue, Sep 28, 2010 at 7:41 PM, Ray Strode <halfline at gmail.com> wrote:

> Hi,
>
> On Mon, Sep 27, 2010 at 6:20 PM, Jerome Martin
> <jxm at risingtidesystems.com> wrote:
> > Bingo, I never actually quit plymouth this explain why I did not get the
> > logs :-)
> > Please find the log file attached :-)
>
> So, I'm seeing some strangeness in the fidelity of the logs.  It seems
> like ply-logger may have a bug in it, which is unfortunate...
>
> Anyway, looking at the output, I see:
>
> [   38.755306] [main.c]
> on_display_message:displaying message Running scripts in rcS.d/ took 4
> seconds.
> [...]
> [   38.794012] [ply-terminal.c]
> on_tty_disconnected:tty disconnected (fd 10)
> [   38.794015] [ply-terminal.c]
> on_tty_disconnected:trying to reopen terminal '/dev/tty1'
> [...]
> [   38.794021] [./plugin.c]
> on_input_source_disconnected:input source disconnected, reopening
>
> So it looks like both parts of the code that are supposed to notice
> the tty going away, do it notice it going away, and then both parts
> reopen without any error messages.
>

<nod>, so you do get the hang up properly notified.

>
> Can you post the output of
>
> sudo stty -a --file=/dev/tty1
>

root at 000c29af1815:~# stty -a --file=/dev/tty1
speed 38400 baud; rows 30; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 =
<undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

And for reference, tty2 where my getty is:
speed 38400 baud; rows 30; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 =
<undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = <undef>; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl ixon
ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt echoctl echoke

And tty1 after exiting plymouth:
root at 000c29af1815:~# plymouth quit
root at 000c29af1815:~# stty -a --file=/dev/tty1
speed 38400 baud; rows 30; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 =
<undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke



>
> after the keyboard is stolen away but before qutting plymouth?  Also
> the output of
>
> ls -l /proc/$(/sbin/pidof plymouthd)/fd
>

root at 000c29af1815:~# ls -l /proc/250/fd
total 0
lrwx------ 1 root root 64 2010-09-28 21:19 0 -> /dev/console (deleted)
lrwx------ 1 root root 64 2010-09-28 21:19 1 -> /dev/console (deleted)
lrwx------ 1 root root 64 2010-09-28 21:19 10 -> /dev/tty1
lrwx------ 1 root root 64 2010-09-28 21:19 2 -> /dev/console (deleted)
lrwx------ 1 root root 64 2010-09-28 21:19 3 -> anon_inode:[eventpoll]
lr-x------ 1 root root 64 2010-09-28 21:19 4 -> pipe:[1922]
l-wx------ 1 root root 64 2010-09-28 21:19 5 -> pipe:[1922]
lrwx------ 1 root root 64 2010-09-28 21:19 6 -> /dev/ptmx
lrwx------ 1 root root 64 2010-09-28 21:19 7 -> /dev/tty1
lrwx------ 1 root root 64 2010-09-28 21:19 8 -> socket:[1927]
lrwx------ 1 root root 64 2010-09-28 21:19 9 -> /dev/fb0


>
> would be useful.  I may have to do a debian install and try to
> reproduce to make head way on this issue though.  If I do go that
> route, tips on how to recreate your reproduction environment would be
> useful.


Mmhh. This is really going to be difficult. See, I have a live distro with
some proprietary software in, a lot of customs packages, in a prototype
form, that is built with a complex sequence of Makefiles and scripts...
Mostly is ressembles a debian squeeze and a debian-live initramfs. Also, it
lacks many packages and typical binaries found on a normal distro, the user
will never see a shell on it, it is mostly remote-controlled by a cluster
admin CLI.

But I'd be glad to help as much as I can.

Regards,
-- 
Jérôme Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/plymouth/attachments/20100928/5e09adf5/attachment.html>


More information about the plymouth mailing list