[argyllcms] Re: ubuntu-10.10-desktop-amd64: dispcal -D5 -? hangs
- From: Martin Johnson <rindlis@xxxxxxxxx>
- To: argyllcms@xxxxxxxxxxxxx
- Date: Wed, 20 Apr 2011 17:03:14 -0700 (PDT)
Gerhard, great, thanks a lot !!!
The command
stty -a -F /dev/ttyS2
showed the -clocal flag as you predicted.
I turned it off using the command:
stty clocal -F /dev/ttyS2
I had to repeat this with /dev/ttyS0 and /dev/ttyS1, and now
dispcal -D5 -?
does not hang anymore.
Furthermore, dispcalGUI now starts up and I just used my Huey Pro to calibrate
my monitor under Ubuntu 10.10. Works great.
Thank you again and keep up the good work.
Martin
--- On Wed, 4/20/11, Gerhard Fuernkranz <nospam456@xxxxxx> wrote:
> From: Gerhard Fuernkranz <nospam456@xxxxxx>
> Subject: [argyllcms] Re: ubuntu-10.10-desktop-amd64: dispcal -D5 -? hangs
> To: argyllcms@xxxxxxxxxxxxx
> Date: Wednesday, April 20, 2011, 8:42 PM
> Am 20.04.2011 22:31, schrieb Gerhard
> Fuernkranz:
> > Am 20.04.2011 21:20, schrieb Martin Johnson:
> >> I was comparing the strace output of dispcal -D5
> -? from my amd-64 system (which hangs) versus my 32 bit
> system (which works) and I see this (just before it hangs):
> >>
> >> open("/dev/ttyS2", O_RDWR|O_NOCTTY)
> = ? ERESTARTSYS (To be restarted)
> >> --- SIGWINCH (Window changed) @ 0 (0) ---
> >> open("/dev/ttyS2", O_RDWR|O_NOCTTY>>
> hangs here
> >>
> >> Anybody knows what that means ?
> >>
> >> ERESTARTSYS (To be restarted)
> >> --- SIGWINCH (Window changed) @ 0 (0) ---
> >>
> >> Sys get's restarted and changes the window ??
> >>
> >>
> >> This does not appear on my 32 bit system:
> >>
> >> open("/dev/ttyS2", O_RDWR|O_NOCTTY)
> = 6
> >> close(6)
>
> = 0
> >>
> >> Thanks
> >
> > If open() blocks on a serial port, then a typical
> reason is that modem control is enabled for this tty (i.e.
> the CLOCAL flag not set, see "man termios"), but the
> attached device does not assert the DSR signal. I.e. open()
> waits until the device reports "I am ready".
>
> Invoke "stty -a -F /dev/ttyS2" in order to check the
> settings of the tty. Look for "clocal" (-> no modem
> control) versus "-clocal" (-> modem control) in the
> output.
>
> > Regards,
> > Gerhard
>
>
>
Other related posts: