FORUM Syndrome-OC - Jacky-PC


  Software et OS Alternatif


  OS alternatifs


  [Linux] Probleme avec LCDproc et LCD 4x20

 




Le salon de discussion : R4v3n et 24 utilisateurs inconnus

 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Linux] Probleme avec LCDproc et LCD 4x20

n°37621
ratur
It's time to kick ass
Posté le 06-09-2005 à 16:25:29  profilanswer
 

Salut,
 
J'essaie d'installer LCDproc sous ubuntu, mais sans succes jusqu'à maintenant.
 
Je l'ai installé via apt
Il fichier LCDd.conf est à prioris bien configuré.
 
Quand le tente de lancer le server LCDd, voici l'erreur que j'obtiens :
 

16:22 ratur@Ratur-M ~% sudo LCDd
Could not bind to port 13666
sock_create_server: Error creating socket
Error opening socket
Critical error: main.c:239, abort
zsh: exit 255   sudo LCDd


 
Je ne vois pas d'où peut venir ce probleme de port. Le port 13666 est le port par défaut, en accord avec la documentation ( http://lcdproc.sourceforge.net/doc [...] tml#AEN292 )
Voici un extrait de mon fichier LCDd.conf :
 

[server]
# Server section with all kinds of settings for the LCDd server
 
#Driver=none
#Driver=curses
Driver=HD44780
#Driver=lcdm001
#Driver=MtxOrb
#Driver=CFontz
#Driver=CwLnx
#Driver=Wirz-sli
#Driver=SGX120
#
# Tells the server to load the given drivers. Multiple lines can be given.
# NOTE: You may activate several input (input only) drivers but only ONE output
#       driver, which should be the first.
 
Bind=127.0.0.1
# Tells the driver to bind to the given interface
 
Port=13666
# Listen on this specified port; defaults to 13666.
 
#ReportLevel=5
# Sets the reporting level; defaults to 2 (warnings and errors only).
 
ReportToSyslog=no
# Should we report to syslog instead of stderr ? Default: no
 
WaitTime=5
# Sets the default time in seconds to displays a screen.
 
User=ratur
# User to run as.  LCDd will drop its root priviledges,
# if any, and run as this user instead.
 
ServerScreen=no
# Enables the built-in server screen [Default: no]
# yes      : always,
# no    : when there are no other screens active.
 
Foreground=yes
# The server will stay in the foreground if set to true.
# Otherwise the server will fork to background and report
# to syslog
 
# TIP: The following options can also be modified from the
#      server menu (which requires a driver that supports input)
 
Heartbeat=open
# The server has serveral heartbeat modes
#   on    Stays on all the time
#   off   Stays off all the time
#   slash Rotating slash all the time
#   open  Can be controlled by all clients
 
InitialHeartbeat=on
# This sets the initial heartbeat state if the heartbeat mode is "open"
# Affects the server screen only ;)
#   on    Heartbeat activated
#   off   Heartbeat disabled
#   slash Heartbeat replaced with a rotating slash
 
Backlight=open
# The server has serveral backlight modes
#   on    Stays on all the time
#   off   Stays off all the time
#   open  Can be controlled by all clients
 
InitialBacklight=on
# This sets the initial backlight state if the backlight mode is "open"
# Affects the server screen only ;)
 
BacklightBrightness=255
# This sets the backlight brightness in state "on"
# NOTE: Not all drivers/devices support setting the brightness this
#       way. Some don't support switching the backlight on/off at all,
#       some can switch the backlight on or off only. If the latter is
#       the case BacklightBrightness must be > 0.
 
 
BacklightOffBrightness=0
# This sets the backlight brightness in state "off"
# NOTE: Not all drivers/devices support setting the brightness this
#       way. Some don't support switching the backlight on/off at all,
#       some can switch the backlight on or off only. If the latter is
#       the case BacklightBrightness must be = 0.
 
[HD44780]
# Hitachi HD44780 driver
# See docs/hd44780_howto.txt
 
Port=0x378
# Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC
 
ConnectionType=4bit
# Select what type of connection. See documentation for types.
 
Keypad=no
# If you have a keypad connected. Keypad layout is currently not
# configureable from the config file.
 
Backlight=no
# If you have a switchable backlight.
 
Size=20x4
# Specifies the size of the LCD.
# In case of multiple combined displays, this should be the total size.
 
#vspan=1,2
# For multiple displays: at what 'logical' lines do the individual displays
# start.
 
#extended=yes
# If you want to use more than 3 HD44780 controllers on the LPT, you need to
# specify this. See documentation.
 
#DelayMult=2
# If your display is slow and cannot keep up with the flow of data from
# LCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4
# to increase the delays. Default: 1.
 
DelayBus=true
# You can reduce the inserted delays by setting this to false.
# On fast PCs it is possible your LCD does not respond correctly.
# Default: true.
 
#Device=/dev/ttyS0
# For PIC-an-LCD connection type only: the serial device to which the LCD
# is connected. Default: /dev/lcd


 
(désolé pour la longueur :D )
 
Est-ce que quelqu'un a une idée ? :)


---------------
"Never underestimate the power of huge numbers of stupid things." - Serious Sam
"Si tu donnes un poisson à un homme, il mangera un jour. Si tu donnes un homme à un poisson, il mangera toute sa vie" Le Chat
mood
Google
Posté le 06-09-2005 à 16:25:29  profilanswer
 

n°37657
Dr Lous
I see old password
Posté le 10-09-2005 à 19:03:56  profilanswer
 

fait netstat -pan | grep 13666
puis donne le resultat :)


---------------
Oseras-tu m'affronter ?
n°37686
ratur
It's time to kick ass
Posté le 13-09-2005 à 21:43:17  profilanswer
 

sudo netstat -pan | grep 13666
tcp        0      0 127.0.0.1:13666         0.0.0.0:*               LISTEN     7880/LCDd



---------------
"Never underestimate the power of huge numbers of stupid things." - Serious Sam
"Si tu donnes un poisson à un homme, il mangera un jour. Si tu donnes un homme à un poisson, il mangera toute sa vie" Le Chat
n°37689
Dr Lous
I see old password
Posté le 14-09-2005 à 00:05:56  profilanswer
 

ben voila il est deja lancé ^^
 
(si tu veut le terminer, killall LCDd    :))


---------------
Oseras-tu m'affronter ?
n°37943
MOUS
Poulycroc powaa !
Posté le 04-10-2005 à 23:42:45  profilanswer
 

( ce programe fonctionne pour les écrans datavision 240*128 sur un T6963C? )


---------------
FREE SEX !! || Un très bon forum de concert toussa.. ||  O/C TV VIP
En lisant ce message, vous venez de tuer un danseur de tektonic.. MERCI !!
n°37944
ratur
It's time to kick ass
Posté le 05-10-2005 à 13:18:09  profilanswer
 

Je ne sais pas
Mais maintenant j'utilise LCD4linux, qui lui a l'air de le supporter ;)
http://ssl.bulix.org/projects/lcd4linux/


---------------
"Never underestimate the power of huge numbers of stupid things." - Serious Sam
"Si tu donnes un poisson à un homme, il mangera un jour. Si tu donnes un homme à un poisson, il mangera toute sa vie" Le Chat
n°38062
Nbuthereal
Et la, c'est le drame..
Posté le 15-10-2005 à 19:28:16  profilanswer
 

Est ce que quelqu'un saurait traduire un fichier de  configuration de jalcd en un fichier de config pour LCDproc ?
 
Parce qu'étant tout new avec linux et donc avec la programmation etc... Je ne comprend rien au fichier de config de LCDproc :(
 
j'arrive a avoir ca :
 
[root@multrix nbuthereal]# sudo netstat -pan | grep 13666
YPBINDPROC_DOMAIN: Domain not bound
 
 
et en faisant LCDd ca m'ouvre une sorte d'emulation d'écran LCD mais ca m'affiche que :
## LCDproc Server #+
Clients: 0
Screens: 0
 
:(


Message édité par Nbuthereal le 15-10-2005 à 20:15:09
n°38072
Nbuthereal
Et la, c'est le drame..
Posté le 16-10-2005 à 19:52:09  profilanswer
 

J'ai essayer LCD4linux pour voir si ca solutionnerait mon pb mais la j' en ai un autre :
arrivé a l'étape make install ca me donne ca :
 
root@multrix lcd4linux-0.10.0]# make install
make[1]: Entering directory `/home/nbuthereal/lcd4linux-0.10.0'
/bin/sh ./mkinstalldirs /usr/local/bin
  /usr/bin/install -c  lcd4linux /usr/local/bin/lcd4linux
make[1]: Rien à faire pour « install-data-am ».
make[1]: Leaving directory `/home/nbuthereal/lcd4linux-0.10.0'
 
 
quelqu'un a une idée de ce que ca peut être ?
 :(


---------------
Sniper, mortel de prés comme de loin.
n°38073
Deadog
Dain Bramaged
Posté le 16-10-2005 à 20:16:16  profilanswer
 

package de ta distribution

n°38074
Nbuthereal
Et la, c'est le drame..
Posté le 16-10-2005 à 20:59:29  profilanswer
 

:jap:  mais
C'est à dire ? :??:  
 
C'est mort avec ma distrib ou il faut installer un paquage en plus ?
 


---------------
Sniper, mortel de prés comme de loin.
n°38075
Deadog
Dain Bramaged
Posté le 16-10-2005 à 21:12:11  profilanswer
 

install le package lcd4linux de ta distrib
inutile de compilé les sources toi même


Message édité par Deadog le 16-10-2005 à 21:14:12
n°38076
Nbuthereal
Et la, c'est le drame..
Posté le 16-10-2005 à 21:20:26  profilanswer
 

le pb c'est que je ne trouve pas le package pour Mandrake 10.1
Je ne trouve que pour Suse et RPMdrake qui est intégré à Mandrake ne me trouve pas non plus de package LCD4linux :(
 
EDIT :
J'ai installer un RPM qui avait l'air d'être assez generique, mais maintenant j'ai un autre pb :
 
[root@multrix nbuthereal]# lcd4linux -c key=2 -F -o output -q -v
Version 0.9.11 starting
HD44780: controlling 0 GPO's
wiring: using display with 1 controllers
wiring: using 8 bit mode
wiring: [DISPLAY:RS]<==>[PARPORT:AUTOFD]
wiring: [DISPLAY:RW]<==>[PARPORT:GND]
wiring: [DISPLAY:ENABLE]<==>[PARPORT:STROBE]
wiring: [DISPLAY:ENABLE2]<==>[PARPORT:SELECT]
wiring: [DISPLAY:GPO]<==>[PARPORT:INIT]
parport: open(/dev/parport0) failed: No such file or directory
HD44780: could not initialize parallel port!
 
 
J'ai bien un port parallèle pourtant lol
enfin bref, j'ai aucune idée de quoi faire la par contre car ca semble pas être un pb de lcd4linux mais directement de la config de Mandrake :(


Message édité par Nbuthereal le 16-10-2005 à 21:58:29

---------------
Sniper, mortel de prés comme de loin.
n°38077
Dr Lous
I see old password
Posté le 16-10-2005 à 23:37:27  profilanswer
 

tu es sur d'avoir compiler le kernel avec le support du port // ?


---------------
Oseras-tu m'affronter ?
n°38078
Nbuthereal
Et la, c'est le drame..
Posté le 16-10-2005 à 23:56:09  profilanswer
 

euh...
 
J'en sais rien, Mandrake ca s'installe tout seul :o(
J'ai pas eu a choisir si oui ou non je veux le support du port // :(
Ce qui est sur en tout cas c'est que je n'ai pas le fichier /dev/parport0
 
et si j'essaye la commande "modprobe lp" il ne se passe rien...

n°38079
Deadog
Dain Bramaged
Posté le 17-10-2005 à 01:24:34  profilanswer
 

/dev/lp0

n°38081
Nbuthereal
Et la, c'est le drame..
Posté le 17-10-2005 à 12:52:44  profilanswer
 

erf, en effet j'ai lp0
 
mais ca marche tjrs pas :(
 
[root@multrix nbuthereal]# lcd4linux -c key=2 -F -o output -q -v
Version 0.9.11 starting
HD44780: controlling 0 GPO's
wiring: using display with 1 controllers
wiring: using 8 bit mode
wiring: [DISPLAY:RS]<==>[PARPORT:AUTOFD]
wiring: [DISPLAY:RW]<==>[PARPORT:GND]
wiring: [DISPLAY:ENABLE]<==>[PARPORT:STROBE]
wiring: [DISPLAY:ENABLE2]<==>[PARPORT:SELECT]
wiring: [DISPLAY:GPO]<==>[PARPORT:INIT]
parport: ioctl(/dev/lp0, PPCLAIM) failed: 22 Invalid argument
HD44780: could not initialize parallel port!
 
 
Par contre je ne modifie que /etc/lcd4linux.conf
Faut il faire quelque chose dans le fichier /etc/lcd4linux.conf.rpmorig ?

mood
Google
Posté le 17-10-2005 à 12:52:44  profilanswer
 


Aller à :
Ajouter une réponse

  FORUM Syndrome-OC - Jacky-PC


  Software et OS Alternatif


  OS alternatifs


  [Linux] Probleme avec LCDproc et LCD 4x20

 

Hit Parade