lkml.org 
[lkml]   [1999]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.2.1-7: Unable to print if printer in ON during boot
On Sat, 8 May 1999, Serguei Miridonov wrote:

> The situation: If the printer (HP DeskJet 520) in ON during kernel
> loading, the printing is impossible without some special means. If the
> printer is OFF on Linux loading and is turned ON after that, everything
> is OK.

I had another report exactly like this, but it wasn't possible to test out
patches. :-(

> outb (0xd9, PPORT+STATUS);
> usleep (1);
> outb (0xd8, PPORT+STATUS);
> usleep (100);

clear EPP timeout

> outb (0x08, PPORT+CONTROL);
> usleep (1);
> outb (0x0c, PPORT+CONTROL);

reset

> while ((inb(PPORT+STATUS) & 0x80) == 0)
> usleep(1000);

wait for idle

> outb (0xd9, PPORT+STATUS);
> usleep (1);
> outb (0xd8, PPORT+STATUS);
> usleep (1);

clear EPP timeout

Is it possible to leave any of those stages out? Do you need to wait for
the printer to go idle, for instance? Do you need the first 'clear EPP
timeout'?

Tim.
*/


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.062 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site