Lenovo Thinkpad 600x LPT doesn't work
16 Nov 2012 19:17 - 12 Dec 2012 01:02 #26670
by axel88
Lenovo Thinkpad 600x LPT doesn't work was created by axel88
Hello,
I'm trying to run EMC2 (Hardy Heron 8.04) on a Thinkpad 600x. In the wiki I read that it should work ( wiki.linuxcnc.org/cgi-bin/wiki.pl?Latency-Test ). But the parallelport doesn't react on the system. Some pins are high, some low and nothig changes if I set the pins in the hal-config ( unlinkp and setp ). Also I tried other port adresses (03bc, 0278, 0378). Now I've got no idea what to do. Any suggestions?
I'm trying to run EMC2 (Hardy Heron 8.04) on a Thinkpad 600x. In the wiki I read that it should work ( wiki.linuxcnc.org/cgi-bin/wiki.pl?Latency-Test ). But the parallelport doesn't react on the system. Some pins are high, some low and nothig changes if I set the pins in the hal-config ( unlinkp and setp ). Also I tried other port adresses (03bc, 0278, 0378). Now I've got no idea what to do. Any suggestions?
Last edit: 12 Dec 2012 01:02 by axel88.
Please Log in or Create an account to join the conversation.
16 Nov 2012 21:27 #26675
by andypugh
The first thing to do is possibly to just try accessing the parport by index, rather than address. (Try 0, then 1)
If that doesn't help, then try to find what the actual address is. I find the output of
cat /proc/ioports
to be a little clearer than the more commonly suggested
lspci
But both should give the same answer.
Also check that the p-port isn't disabled in the BIOS.
Replied by andypugh on topic Lenove Thinkpad 600x LPT doesn't work
Some pins are high, some low and nothig changes if I set the pins in the hal-config ( unlinkp and setp ). Also I tried other port adresses (03bc, 0278, 0378). Now I've got no idea what to do. Any suggestions?
The first thing to do is possibly to just try accessing the parport by index, rather than address. (Try 0, then 1)
If that doesn't help, then try to find what the actual address is. I find the output of
cat /proc/ioports
to be a little clearer than the more commonly suggested
lspci
But both should give the same answer.
Also check that the p-port isn't disabled in the BIOS.
Please Log in or Create an account to join the conversation.
16 Nov 2012 22:14 #26677
by axel88
Replied by axel88 on topic Lenove Thinkpad 600x LPT doesn't work
I'm not sure, but I can't find an entry for the parport:
In the bios is no option to disable or enable the parport. At least in the "Easy Setup". I suppose there must be an "Expert Setup" but I didn't find any hint how to enter it. So it should be unlikely that someone disabled the parport.
Warning: Spoiler!
portalfraese@portalfraese-laptop:~$ cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : 0000:00:07.1
0170-0177 : libata
01f0-01f7 : 0000:00:07.1
01f0-01f7 : libata
0376-0376 : 0000:00:07.1
0376-0376 : libata
03c0-03df : vga+
03f6-03f6 : 0000:00:07.1
03f6-03f6 : libata
03f8-03ff : serial
0cf8-0cff : PCI conf1
1000-10ff : PCI CardBus #02
1400-14ff : PCI CardBus #02
1800-18ff : PCI CardBus #06
1c00-1cff : PCI CardBus #06
4000-401f : 0000:00:07.2
4000-401f : uhci_hcd
4400-44ff : 0000:00:03.0
4500-4507 : 0000:00:03.0
d000-dfff : PCI Bus #01
ef00-ef3f : 0000:00:07.3
efa0-efaf : 0000:00:07.3
fcf0-fcff : 0000:00:07.1
fcf0-fcff : libata
portalfraese@portalfraese-laptop:~$ lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:02.0 CardBus bridge: Texas Instruments PCI1450 (rev 03)
00:02.1 CardBus bridge: Texas Instruments PCI1450 (rev 03)
00:03.0 Communication controller: Agere Systems WinModem 56k (rev 01)
00:06.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24/30 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
01:00.0 VGA compatible controller: Neomagic Corporation NM2360 [MagicMedia 256ZX]
In the bios is no option to disable or enable the parport. At least in the "Easy Setup". I suppose there must be an "Expert Setup" but I didn't find any hint how to enter it. So it should be unlikely that someone disabled the parport.
Please Log in or Create an account to join the conversation.
17 Nov 2012 07:29 #26691
by andypugh
Replied by andypugh on topic Lenove Thinkpad 600x LPT doesn't work
Try the lspci way, just to be sure?I'm not sure, but I can't find an entry for the parport:
Please Log in or Create an account to join the conversation.
18 Nov 2012 21:42 #26749
by axel88
Replied by axel88 on topic Lenove Thinkpad 600x LPT doesn't work
I tried both. Both are in the spoiler box.
Now I've installed WinXP to get full access to the "Bios Settings" through the ThinkPad Configuration Utility. The parport was activated. The adress is 03bc - 03bf and the mode is "bidirectional". For the mode I can choose between "bidirectional" , ECP, EPP, and unidirektional. Which one is the right modi?
Now I've installed WinXP to get full access to the "Bios Settings" through the ThinkPad Configuration Utility. The parport was activated. The adress is 03bc - 03bf and the mode is "bidirectional". For the mode I can choose between "bidirectional" , ECP, EPP, and unidirektional. Which one is the right modi?
Please Log in or Create an account to join the conversation.
18 Nov 2012 22:08 #26752
by andypugh
I don't think that there are any disadvantages with EPP, and it saves you doing the same thing all over again if you end up upgrading to a Pico PPMC or Mesa 7i43.
(it also gives the Gecko G540 charge-pump a better chance of working)
Replied by andypugh on topic Lenove Thinkpad 600x LPT doesn't work
For the mode I can choose between "bidirectional" , ECP, EPP, and unidirektional. Which one is the right modi?
I don't think that there are any disadvantages with EPP, and it saves you doing the same thing all over again if you end up upgrading to a Pico PPMC or Mesa 7i43.
(it also gives the Gecko G540 charge-pump a better chance of working)
Please Log in or Create an account to join the conversation.
18 Nov 2012 22:55 #26755
by axel88
Replied by axel88 on topic Lenove Thinkpad 600x LPT doesn't work
But changing the mod probably wouldn't help Linux to recognize the parport? How can I solve this problem?
Please Log in or Create an account to join the conversation.
18 Nov 2012 23:51 - 19 Nov 2012 19:46 #26758
by ArcEye
Replied by ArcEye on topic Lenove Thinkpad 600x LPT doesn't work
Hi
Just a thought.
You can enable some badly behaved PCI cards for Linuxcnc, by loading the standard parallel port drivers and then unloading them.
By default these drivers are blacklisted and do not get loaded.
Run lsmod from a terminal and check that lp, ppdev and parport are loaded
If not load lp, that should load parport as dependency then ppdev (modprobe lp && modprobe ppdev )
If they weren't loaded check output of cat /proc/ioports , because that could be the problem.
Then run modprobe parport_pc
Check output of cat /proc/ioports again and see if any change
You can remove the drivers with rmmod, but will need to do it in dependency sequence; lp, ppdev, parport_pc, parport
Then load lp, which will load parport, and then load ppdev.
parport_pc will stop the linuxcnc parport driver working properly
If that does not work, you may have to go for another computer. The 600x is old and is a laptop with all the inherent problems that brings.
I have found lots of people who have had problems using the ports on the 600x with linux but no obvious solutions.
regards
Just a thought.
You can enable some badly behaved PCI cards for Linuxcnc, by loading the standard parallel port drivers and then unloading them.
By default these drivers are blacklisted and do not get loaded.
Run lsmod from a terminal and check that lp, ppdev and parport are loaded
If not load lp, that should load parport as dependency then ppdev (modprobe lp && modprobe ppdev )
If they weren't loaded check output of cat /proc/ioports , because that could be the problem.
Then run modprobe parport_pc
Check output of cat /proc/ioports again and see if any change
You can remove the drivers with rmmod, but will need to do it in dependency sequence; lp, ppdev, parport_pc, parport
Then load lp, which will load parport, and then load ppdev.
parport_pc will stop the linuxcnc parport driver working properly
If that does not work, you may have to go for another computer. The 600x is old and is a laptop with all the inherent problems that brings.
I have found lots of people who have had problems using the ports on the 600x with linux but no obvious solutions.
regards
Last edit: 19 Nov 2012 19:46 by ArcEye.
Please Log in or Create an account to join the conversation.
19 Nov 2012 20:25 #26797
by axel88
Replied by axel88 on topic Lenove Thinkpad 600x LPT doesn't work
parport, lp and ppdev are loaded but parport_pc doesn't load although modprobe reports no errors. Even with the --verbose option I got no information what went wrong.
Please Log in or Create an account to join the conversation.
19 Nov 2012 20:45 #26798
by ArcEye
Replied by ArcEye on topic Lenove Thinkpad 600x LPT doesn't work
Hi
modprobe does not give any message when it is successful
It is sometimes easy to miss a loaded module from the lsmod output, because it scrolls off the screen.
If loaded the parport entry will show ppdev, lp and parport_pc as dependent.
One easy way to check if a module loads is to try to unload it with rmmod, that WILL produce an error if it is not found.
regards
modprobe does not give any message when it is successful
It is sometimes easy to miss a loaded module from the lsmod output, because it scrolls off the screen.
If loaded the parport entry will show ppdev, lp and parport_pc as dependent.
One easy way to check if a module loads is to try to unload it with rmmod, that WILL produce an error if it is not found.
regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.099 seconds