Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Problem z portem LPT
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
znal
Apprentice
Apprentice


Joined: 12 Jul 2007
Posts: 190

PostPosted: Fri Nov 14, 2008 10:52 pm    Post subject: [SOLVED]Problem z portem LPT Reply with quote

Potrzebuję wysyłać znaki bezpośrednio na port LPT (wymaga tego urządzenie), ale jest problem:
Code:
# echo "123">/dev/parport0
bash: echo: write error: Zły argument

dmesg w tym czasie wypluwa:
Code:
ppdev0: claim the port first

Sam port oczywiście działa dobrze, sprawdzałem (pod windowsem) podpinając skaner. W biosie próbowałem opcji ECP+EPP i ECP. Odpowiednie moduły są załadowane:
Code:
# dmesg |grep parport
parport_pc 00:0a: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
# dmesg |grep ppdev
ppdev: user-space parallel port driver

Jak to rozwiązać?


Last edited by znal on Sun Nov 16, 2008 1:04 am; edited 1 time in total
Back to top
View user's profile Send private message
qermit
Veteran
Veteran


Joined: 02 Feb 2005
Posts: 1032

PostPosted: Sat Nov 15, 2008 11:06 am    Post subject: Reply with quote

a sprawdzałeś może /dev/lp0 ?

Jakie to urządzenie?
_________________
"A co ty masz w swoim LinuXie?" - Dr Qermit
Back to top
View user's profile Send private message
znal
Apprentice
Apprentice


Joined: 12 Jul 2007
Posts: 190

PostPosted: Sat Nov 15, 2008 1:50 pm    Post subject: Reply with quote

Wpisanie czegoś do /dev/lp0 powoduje wysłanie tego na drukarkę (podpiętą do USB).
No może urządzenie to za dużo powiedziane :) mają to być na razie diody świecące podpięte po linię danych lpt.

EDIT:
Okazało się, że to nie jest żaden problem, tylko normalna sytuacja :)
Trzeba najpierw użyć ioperm, żeby odblokować port.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum