Bug 9306
Summary: | Reset on /dev/lp0 | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Giovanni <cedatec> |
Component: | dev | Assignee: | Nalin Dahyabhai <nalin> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | notting |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-02-29 13:49:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Giovanni
2000-02-10 15:27:44 UTC
If your parallel port is being reset, it could be because the driver module that is being loaded when you access the printer is being unloaded, and it appears to be resetting when you try to access the parallel port again. To disable the reset when the module is first loaded, add the line options lp reset=0 to /etc/conf.modules and run "depmod -a" to regenerate the dependencies for your kernel modules. The removal of the kernel module is caused by a cron job (set up in /etc/cron.d/kmod) which executes every 10 minutes. Another fix would be to just remove this file. Please let me know if this solves the problem. Thanlk You for your help. I have solved in part my problem. I have modified the file /etc/conf.modules: alias parport_lowlevel parport_pc options lp reset=0 Then I have executed the command: depmod -a Finally I have removed the file: /etc/cron.d/kmod I have rebooted my Red Hat 6.1. Now if I change the default setting of my printer (without saving) and I print also after 20 minutes my printer holds the momentary settings (and this is a good thing for me). But the problem remain only when I start to print for the first time. When I boot Linux and I print for the first time, the printer execute a reset and then start to print. After this print the other jobs are executed correctly without any reset. I heve Red Hat 6.1 without any patch installed. Thanl You very much. Giovanni. If you have reset=0 set in your /etc/modules.conf file, and are only loading the parallel port driver as a module, then I suspect your BIOS is resetting the port at boot-time, before the kernel even begins executing. Unfortunately, there's nothing I can do about that. I guess that solved the problems that were solvable in software. |