Jump to content

dude67

OTW
  • Posts

    1155
  • Joined

  • Last visited

Posts posted by dude67

  1. I'm now traveling and will be back home Friday so I cannot do the testing and cofiguring before that. I'll check the path this coming weekend.

     

    Do you mean that I'd add the path here in the udev rules?

    # cat /lib/udev/rules.d/huawei_e367.rules

    SUBSYSTEM=="usb",SYSFS{idProduct}=="1446",SYSFS{idVendor}=="12d1",RUN+="/usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1446"

     

    BTW, I always run updatedb before running locate.

  2. It seems that everything is working but not automatically. :wall:

    Now that you've enabled logging is a log created when you manually invoke usb_modeswitch?

    Also are the security levels the same on the two systems?

     

    I cannot find any logs for usb_modeswitch. Even after I manually started it.

     

    I guess I need to teach my wife how to run commands on konsole and issue them as root.

     

    Can this command be executed with a desktop shortcut and with user rights (or the root password as a prompt)?

  3. K: Here's the file. I've added my modem version to the conf file:

     

    $ cat /etc/usb_modeswitch.conf
    # Configuration for the usb_modeswitch package, a mode switching tool for
    # USB devices providing multiple states or modes
    #
    # This file is evaluated by the wrapper script "usb_modeswitch_dispatcher"
    # in /usr/sbin
    # To enable an option, set it to "1", "yes" or "true" (case doesn't matter)
    # Everything else counts as "disable"
    
    
    # Disable automatic mode switching globally (e.g. to access the original
    # install storage)
    
       	DisableSwitching=0
    
    
    # Enable logging (results in a extensive report file in /var/log, named
    # "usb_modeswitch_<interface-name>" (and probably others)
    
    EnableLogging=1
    
    DefaultVendor= 0x12d1
    DefaultProduct=0x1446
    
    TargetVendor=  0x12d1
    TargetProductList="1001,1406,1446,140b,140c,1412,141b,1433,14ac,1506"
    
    CheckSuccess=20
    
    MessageContent="55534243123456780000000000000011062000000100000000000000000000"
    
    

     

    Ian: there is no file "/lib/udev/modem-modeswitch". I just changed that to what was working for me in Mageia1. Do you think it would make a difference?

     

     

    In Mageia the usb_modeswitch data files are at /usr/share/usb_modeswitch/ directory (all different types having their own files like /usr/share/usb_modeswitch/12d1:1446

     

    $ cat /usr/share/usb_modeswitch/12d1:1446
    ########################################################
    # Huawei, newer modems
    
    DefaultVendor= 0x12d1
    DefaultProduct=0x1446
    
    TargetVendor=  0x12d1
    TargetProductList="1001,1406,140b,140c,1412,141b,1433,14ac,1446,1506"
    
    CheckSuccess=20
    
    MessageContent="55534243123456780000000000000011062000000100000000000000000000"
    

  4. I don't know if what I did was done correctly. It didn't help, so could someone see there's something wrong with this. I want this dongle to automatically be recognized as a modem instead of harddrive or cd rom.

     

    I wrote a new rule to udev. Should this rule automatically run the command whenever this dongle is plugged in?

    # cat /lib/udev/rules.d/huawei_e367.rules
    SUBSYSTEM=="usb",SYSFS{idProduct}=="1446",SYSFS{idVendor}=="12d1",RUN+="usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1446"
    

  5. OK. Finally I managed to make the system recognize the dongle!

     

    I did a whole bunch of things, but in the end I did this:

    # usb_modeswitch -c /usr/share/usb_modeswitch/12d1:1446

     

    The only problem I still have with this is that I seem to need to do that all over again if I detach the dongle at any time. How can I make that choice to stick? Or is it something that I need to run (always as a root) whenever I (or my wife) plug it in?

  6. My ISP sent me a Huawei E367 3G usb-dongle. I've never used one before, so this is all new to me. In my laptop (ACER w/ Mageia1 - see my sig) it was just Plug&Play. It works very well, no problem. It was correctly detected as a 3G modem.

     

    Now in my wife's notebook it's a different story. The dongle will not be correctly detected as a 3G modem, but instead a CD-Rom drive. I've tried with Network Center and with Network & Internet Configuration tool. All it says is that no devices detected.

     

    In my laptop, where it's detected correctly, it is detected as USB ID 12d1:1506.

    $ sudo lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
    Bus 001 Device 003: ID 5986:0105 Acer, Inc
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 008: ID 12d1:1506 Huawei Technologies Co., Ltd.
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 002: ID 046d:c526 Logitech, Inc. Nano Receiver
    $

    But in the notebook it is detected as USB ID 12d1:1446 (w/ additional note: E1552 (HSPA modem))

    $ sudo lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 007: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
    Bus 001 Device 004: ID 174f:5933 Syntek
    Bus 001 Device 008: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552 (HSPA modem)
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 002: ID 0a5c:2151 Broadcom Corp.
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    $

     

    How can I get this detected correctly in the notebook?

     

     

    [moved from Hardware by spinynorman]

  7. OK, thanks John. I really wanted the one with wireless printing and in the past HP has had a good track record of supporting Linux systems. But perhaps the problem lies within Mandriva - I have read that this particular printer/scanner works perfectly in Ubuntu...

     

    Is there anyone, who has managed to make an HP Photosmart to scan through WiFi in Mandriva?

  8. OK, I got the scanner to work when connected with USB. I needed a few more files for the hplip 3.10.6 version. I installed all these and it started to work:

    • hplip-hpijs-3.10.6-3bubmdv2010.1.i586.rpm
    • hplip-3.10.6-3bubmdv2010.1.i586.rpm
    • hplip-gui-3.10.6-3bubmdv2010.1.i586.rpm
    • libsane-hpaio1-3.10.6-3bubmdv2010.1.i586.rpm
    • hplip-model-data-3.10.6-3bubmdv2010.1.i586.rpm
    • hplip-hpijs-ppds-3.10.6-3bubmdv2010.1.i586.rpm

    These I found from here:

    http://www.mdvrb-factory.de/

     

    Now I need to get it working wirelessly. As soon as I disconnected the USB it stopped working. How can I make it work over wlan?

  9. Now I'm confused :huh:

    You and me both. :huh:

     

    I thought the problem was that you couldn't install hplip 3.10.9 from the package downloaded from the sourceforge site. Once libusb-compat0.1-devel is present the build moves past the libusb error stage. From what I saw during the install of hplip 3.10.9 an attempt is made to communicate with the printer.

    I tried installing hplip 3.10.9 from the package downloaded from SF site. But I always hit the wall with the libusb. Is this a rigths issue? Or a missing symbolic link or something like that?

     

    But that's not the problem anymore! A friend in a Finnish board pointed me to here:

    http://www.mdvrb-fac...de/HByName.html

    There I found packages to 3.10.6 version of hplip. I got it to work and I got the right drivers for my printer! So that's good. :thumbs:

     

    BUT, I couldn't get the scanner to work with xsane (or any other software for that matter)... I tried running hp-setup, but it will just not find my HP. I have tried it both wirelessly and with the USB. No luck. What to do...?

  10. OK. First I checked that I had libusb-compat0.1-devel package installed. So that's no help.

     

    Then I tried using the scanner with the USB connected, but no. I got notification that the software for the printer is not installed: "No printer driver for HP Photosmart B110 series". Yes, I have B109a installed, but with that I can use the printer though - and that is good.

     

    I tried using xsane as root, but again got only the webcam image. So no help there. :unsure:

     

    When running dmesg I got a very long list of something I could not understand. This list goes further than Konsole will show (scrolling up all the way):

    end_request: I/O error, dev sr0, sector 0
    sr 2:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    sr 2:0:0:0: [sr0] Sense Key : Illegal Request [current] 
    ILI
    sr 2:0:0:0: [sr0] Add. Sense: Illegal mode for this track
    sr 2:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 00 20 00 00 02 00
    end_request: I/O error, dev sr0, sector 128
    sr 2:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    sr 2:0:0:0: [sr0] Sense Key : Illegal Request [current] 
    ILI
    sr 2:0:0:0: [sr0] Add. Sense: Illegal mode for this track
    sr 2:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 00 20 00 00 02 00
    end_request: I/O error, dev sr0, sector 128
    sr 2:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
    sr 2:0:0:0: [sr0] Sense Key : Illegal Request [current] 
    ILI
    

    Then scrolling down I see some shorewall lines and finally this HP Photosmart on usb 2-5:

    usb 2-5: new high speed USB device using ehci_hcd and address 3
    usb 2-5: New USB device found, idVendor=03f0, idProduct=8a11
    usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 2-5: Product: Photosmart B110 series
    usb 2-5: Manufacturer: HP
    usb 2-5: SerialNumber: xxxxxxxxxxxxxxxx
    scsi10 : usb-storage 2-5:1.3
    usb 2-5: usbfs: interface 3 claimed by usb-storage while 'usb' sets config #1
    scsi 10:0:0:0: Direct-Access 	HP   	Photosmart B110  1.00 PQ: 0 ANSI: 5
    sd 10:0:0:0: Attached scsi generic sg3 type 0
    sd 10:0:0:0: [sdc] Attached SCSI removable disk
    ppdev: user-space parallel port driver
    ppdev0: no associated port!
    

     

    I think I need the hplip 3.10.6 or 3.10.9

×
×
  • Create New...