LCDproc development and user support list

Text archives Help

[lcdproc] Trouble using FreeBSD and HD44780 drivers

Chronological Thread 
  • From: gfk AT (Guillaume Filion)
  • Subject: [lcdproc] Trouble using FreeBSD and HD44780 drivers
  • Date: Fri, 1 Jun 2001 16:05:24 -0400

>I still had trouble with the word "IOPerm" in there, so I tried this:
>if ( fopen("/dev/io","r") =3D=3D NULL ) {
> fprintf (stderr, "HD44780_init: failed (%s)\n", strerror (errno));
> return -1;
>This compiled successfully, and I can execute LCDd. Note also that I had
>to make sure /dev/lcd was pointing to /dev/lpt0.

Wow, I must admit I'm pretty surprised this worked on the first try.
About IOPerm, you're right, it's not used anywhere else, so it's
pretty useless. As for the fopen, I guess its use is just to test if
you got the permissions to talk to the port, so I guess we should use:
fopen("/dev/io"/,"rw") instead of just "r", because we want to write
to and read from the port. In fact, I'm not even sure if we need to
read from the port, can anyone clarify?

Guillaume Filion
Logidac Tech., Beaumont, Qu=E9bec, Canada -
PGP Key: (this will redirect)
PGP Fingerprint: 14A6 720A F7BA 6C87 2331 33FD 467E 9198 3DED D5CA

To unsubscribe from this list send a blank message to
lcdproc-unsubscribe AT

Archive powered by MHonArc 2.6.18.

Top of page