Seems I am very close to resolving this bug. I've done some deep testing today under following OSes (all are in the newest version):
1) CentOS 6.3
2) Fedora 17
3) openSUSE 12.2
4) Ubuntu 12.04
Under all 4, there is the same ownership of /dev/lp0 and /dev/parport0 (owner root/group lp, permissions 660), BUT I have found the difference between Red Hat based systems (where the parallel printer works well) and the others (Ubuntu and openSUSE - where id doesn't work well). The output of "dmesg|grep parport" for Red Hat based is:
[ 7.522714] parport_pc 00:06: reported by Plug and Play ACPI
[ 7.522769] parport0: PC-style at 0x278 (0x678), irq 5 [PCSPP,TRISTATE]
[ 45.177790] lp0: using parport0 (interrupt-driven).
however Ubuntu and openSUSE dmesg "dmesg|grep parport" says this:
[ 21.205326] parport_pc 00:06: reported by Plug and Play ACPI
[ 21.205380] parport0: PC-style at 0x278 (0x678), irq 5, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]
[ 21.326415] lp0: using parport0 (interrupt-driven).
So the diffrence between those two seems to be between enabling and disabling FIFO. I've also looked at kernel configure files for Fedora 17 and Ubuntu 12.04 and I am posting the important section here:
Ubuntu 12.04 kernel configuration file (section PARPORT):
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_SERIAL=m
CONFIG_PARPORT_PC_FIFO=y
# CONFIG_PARPORT_PC_SUPERIO is not set
CONFIG_PARPORT_PC_PCMCIA=m
# CONFIG_PARPORT_GSC is not set
CONFIG_PARPORT_AX88796=m
CONFIG_PARPORT_1284=y
CONFIG_PARPORT_NOT_PC=y
Fedora 17 kernel configuration file (section PARPORT):
# Parallel port support
#
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_SERIAL=m
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
CONFIG_PARPORT_PC_PCMCIA=m
CONFIG_PARPORT_1284=y
# CONFIG_PARPORT_AX88796 is not set
I am not so experienced to recompile the kernel with option CONFIG_PARPORT_PC_FIFO=n on my own so by this post I would like to please someone to do this for us. Or please post here a guide how to quickly recompile the kernel with changed parameter CONFIG_PARPORT_PC_FIFO. Many thanks to kernel team!
Seems I am very close to resolving this bug. I've done some deep testing today under following OSes (all are in the newest version):
1) CentOS 6.3
2) Fedora 17
3) openSUSE 12.2
4) Ubuntu 12.04
Under all 4, there is the same ownership of /dev/lp0 and /dev/parport0 (owner root/group lp, permissions 660), BUT I have found the difference between Red Hat based systems (where the parallel printer works well) and the others (Ubuntu and openSUSE - where id doesn't work well). The output of "dmesg|grep parport" for Red Hat based is:
[ 7.522714] parport_pc 00:06: reported by Plug and Play ACPI
[ 7.522769] parport0: PC-style at 0x278 (0x678), irq 5 [PCSPP,TRISTATE]
[ 45.177790] lp0: using parport0 (interrupt-driven).
however Ubuntu and openSUSE dmesg "dmesg|grep parport" says this:
[ 21.205326] parport_pc 00:06: reported by Plug and Play ACPI TRISTATE, COMPAT, ECP]
[ 21.205380] parport0: PC-style at 0x278 (0x678), irq 5, using FIFO [PCSPP,
[ 21.326415] lp0: using parport0 (interrupt-driven).
So the diffrence between those two seems to be between enabling and disabling FIFO. I've also looked at kernel configure files for Fedora 17 and Ubuntu 12.04 and I am posting the important section here:
Ubuntu 12.04 kernel configuration file (section PARPORT): PARPORT_ SERIAL= m PARPORT_ PC_FIFO= y PARPORT_ PC_SUPERIO is not set PARPORT_ PC_PCMCIA= m PARPORT_ AX88796= m PARPORT_ 1284=y PARPORT_ NOT_PC= y
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_
CONFIG_
# CONFIG_
CONFIG_
# CONFIG_PARPORT_GSC is not set
CONFIG_
CONFIG_
CONFIG_
Fedora 17 kernel configuration file (section PARPORT): PARPORT_ SERIAL= m PARPORT_ PC_FIFO is not set PARPORT_ PC_SUPERIO is not set PARPORT_ PC_PCMCIA= m PARPORT_ 1284=y PARPORT_ AX88796 is not set
# Parallel port support
#
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_
# CONFIG_
# CONFIG_
CONFIG_
CONFIG_
# CONFIG_
CONFIG_ ACPI_PCI_ SLOT=y HOTPLUG_ PCI_ACPI= y HOTPLUG_ PCI_ACPI_ IBM=m
CONFIG_
CONFIG_
I am not so experienced to recompile the kernel with option CONFIG_ PARPORT_ PC_FIFO= n on my own so by this post I would like to please someone to do this for us. Or please post here a guide how to quickly recompile the kernel with changed parameter CONFIG_ PARPORT_ PC_FIFO. Many thanks to kernel team!