Menu

problem with 5120 lcd

Help
volrathix
2006-12-06
2013-05-02
  • volrathix

    volrathix - 2006-12-06

    hi , i have a lcd of 5120 phone , this lcd i use in windows with lcdhype and works fine , but in linux not works , i use this modules:
    modprobe parport
    modprobe parport_pc
    modprobe ppdev

    and i execute with this command:
    ./testserdisp -n PCD8544 -p /dev/parport0

    and my lcd not works =S i execute with this command too
    modprobe lp
    ./testserdisp -n PCD8544 -p PAR:/dev/lp0 
    in this case the backlight of the lcd is on but testserdisp display this message
    WarLordx:/home/volrath/serdisplib-1.97.2/src# ./testserdisp -n PCD8544 -p PAR:/dev/lp0
    Error: Unable to open PAR:/dev/lp0, additional info: ioctl(PPCLAIM) failed for device /dev/lp0 (cause: Invalid argument)

    i use testserdisp in ubuntu and debian and not works please help me i want out of window$

    pd:sorry for my bad english

     
    • Wolfgang Astleitner

      hi
      you need parport-devices because lp-devices do not support ioctl-calls
      so  -p /dev/parport0   is the right way (you may have to check read/write-access rights before!)

      have a look if parport0 is at some other position in /dev/ - but usually /dev/parport0 is used.

      if /dev/parport0 doesn't exist you will have to create it:

      mknod /dev/parport0 c 99 0
      chmod 0660 /dev/parport0
      chown root.lp /dev/parport0

      the unload (rmmod ppdev) and reload (insmod ppdev) module 'ppdev' - this module is required!

      with the commands above the user executing testserdisp and other programs that use serdisplib needs to be member of the group 'lp'!

      /mrwastl

       
    • volrathix

      volrathix - 2006-12-07

      dont works i try this:

      rmmod parport_pc parport ppdev
      modprobe ppdev
      ./testserdisp -n PCD8544 -p /dev/parport0
      enter 'help' to get help

      > bg
      bg=on
      but the backlight not works and i try with test and not works =S the lcd in linux is dead but in windows with lcdhype works fine =S =s =S =S i have only one parport please helpme i want use linux 24 hr but i have this problem .

      thx Wolfgang for you resp.

      sorry for my bad english!!!!!!

      my lcd is from nokia 5120 celphone

       
    • volrathix

      volrathix - 2006-12-07

      i test with knoppix too =(

       
    • volrathix

      volrathix - 2006-12-08

      please somebody help me !!!!! =(

       
    • Wolfgang Astleitner

      * does lcdhype have the same wiring then the default one in serdisplib/pcd8544? if not so: look for the right wiring:
        http://serdisplib.sourceforge.net/ser/pcd8544.html#options
      * PCD8544's default wiring does not have support for bglight: look at link above
      * add   -d 2    when calling testserdisp and look for the debugging info written to /var/log/messages

      /mrwastl

       
    • volrathix

      volrathix - 2006-12-31

      is the same wiring and my /var/log/messages is normal when i call testserdisp  with -d option =S =(=(=(=(=(

       
    • Wolfgang Astleitner

      * did you do the windows and linux tests on the same pc?
      * please give the complete call of testserdisp  (src/testserdisp -n ..... )
      * please paste the serdisplib-specific /var/log/messages output

      without these things it is very hard to debug your problem

      /mrwastl

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.