Announcement

Collapse
No announcement yet.

Parallel Port in VMWare - ppdev/lp/chmod

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Parallel Port in VMWare - ppdev/lp/chmod

    Hi! I'm having another problem, maybe you can help me
    I'm running VMWare on Kubuntu hosting a Windows XP installation. I needed to run a program that uses the parallel port, and after a series of problems, I managed to get it working.

    I did it by:

    - loading ppdev module
    - unloading lp module
    - giving rw rights to my non-root user by doing
    'chmod a+rw /dev/parport0'

    The problem is that I seem to have to do this every time I want to use the port in VMWare... I don't need the port for anything else in Linux, so I'd like this configuration be permanent.

    I tried commenting the line 'lp' in /etc/modules and adding the line 'ppdev'. This would make ppdev load at startup but, dunno why, /dev/lp0 is also created until I do a 'rmmod lp'.
    Even after this, I have to do the 'chmod...' for the port to work.

    Is there anything I can do to make this configuration permanent?
    Thanks!

    #2
    Re: Parallel Port in VMWare - ppdev/lp/chmod

    http://www.vmware.com/support/ws55/doc/devices_ws.html

    Comment


      #3
      Re: Parallel Port in VMWare - ppdev/lp/chmod

      Thanks! I was able to give permanent parport0 read/write permission to my user. I also added the parport_pc module to the /etc/modules, and it successfully loads at boot time (although it worked without it...).
      However, although I've commented the line 'lp' in /etc/modules, the lp module is loaded anyway, and I have to do a rmmod lp for the parallel port in VMware to work... any idea of what could be wrong?? Thx!

      Comment


        #4
        Re: Parallel Port in VMWare - ppdev/lp/chmod

        Originally posted by neoAKiRAz
        the lp module is loaded anyway
        Code:
        sudo echo 'blacklist lp' >> /etc/modprobe.d/blacklist

        Comment


          #5
          Re: Parallel Port in VMWare - ppdev/lp/chmod

          This module is cursed...

          Here's my /etc/modprobe.d/blacklist

          Code:
          # This file lists those modules which we don't want to be loaded by
          # alias expansion, usually so some other driver will be loaded for the
          # device instead.
          
          # evbug is a debug tool that should be loaded explicitly
          blacklist evbug
          
          # these drivers are very simple, the HID drivers are usually preferred
          blacklist usbmouse
          blacklist usbkbd
          
          # replaced by e100
          blacklist eepro100
          
          # replaced by tulip
          blacklist de4x5
          
          # causes no end of confusion by creating unexpected network interfaces
          blacklist eth1394
          
          # snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
          # hardware on its own (Ubuntu bug #2011, #6810)
          blacklist snd_intel8x0m
          
          # causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
          blacklist i2c_i801
          
          # lp - para VMware
          blacklist lp
          ...and still:

          Code:
          neoakiraz@fcksys:~$ lsmod | grep lp
          lp     12964 0
          parport  39496 3 lp,ppdev,parport_pc
          What could be wrong??

          Comment


            #6
            Re: Parallel Port in VMWare - ppdev/lp/chmod

            Mumble, mumble ...

            Code:
            ROOT # cd /lib/modules/[currentKernel]/kernel/drivers/char
            ROOT # mv lp.ko lp.ko.exitus

            Comment


              #7
              Re: Parallel Port in VMWare - ppdev/lp/chmod

              Yep, that worked Cheating Linux so that it can't find the module...
              But strange that the blacklist method didn't work, right?
              Any idea why that could happen? Or just cursed module?

              Greetz!

              Comment


                #8
                Re: Parallel Port in VMWare - ppdev/lp/chmod

                Originally posted by neoAKiRAz
                But strange that the blacklist method didn't work, right?
                Any idea why that could happen? Or just cursed module?
                Apparently another process "awaiting identification" kept loading the module To find out about the "who & why", you may want to pore over the system's log files, e.g. /var/log/dmesg and /var/log/messages (?).

                Comment

                Working...
                X