LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Which portable mp3 player do you use with Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/which-portable-mp3-player-do-you-use-with-linux-378589/)

GrueMaster 11-01-2005 06:33 PM

This is where the hotplug support is needed. First, try running ifp_gui as root. If that works, great. Otherwise I'll need more info. Specifically, the output of /usr/sbin/lsusb (or the output of "cat /proc/bus/usb/devices|fgrep 4102"). What we're looking for is that the device is coming up on the usb bus. 4102 is the vender ID. The next number we're interested in is the device id.

My system produces the following (I truncated irrelevant devices):

[tobind@razman ~]$ /usr/sbin/lsusb
Bus 004 Device 013: ID 4102:1007

[tobind@razman ~]$ cat /proc/bus/usb/devices|fgrep 4102
P: Vendor=4102 ProdID=1007 Rev= 0.01

IF yours isn't in the list of devices added to /etc/hotplug/usb.map, then you will unfortunately have to wait for it to be added. The good news is that I can add it and send you a special build to test. If it works, we can request it to be added to the main code stream.

First step, though is to see if ifp_gui works as root, and if not, what device id is ifp_gui looking for.

cmlal 11-02-2005 02:04 AM

Ok. Running ifp_gui as root worked, kind of.

Code:

linux:~ # ifp_gui
ifp Device NOT found
info: ignoring device with UMS firmware.
ifp Device NOT found
linux:~ #

Basically I got the message that I needed to plug in my device and when I did that I got the same error message as before.

Also, I get this:

Code:

linux:~ # /usr/sbin/lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 03f0:2b11 Hewlett-Packard
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

and typing in "cat /proc/bus/usb/devices|fgrep 4102" results in nothing. So I guess this means my device is not supported?

It would be truly wonderful if you'd take the time to add it and send me a test build. :)

GrueMaster 11-02-2005 09:40 AM

It doesn't appear to be visible, unless it is showing up as the 03f0:2b11 Hewlett-Packard device. Do you have any other device plugged in?

If that is the device, I can add it to the ifp_gui to test, but I want to make sure it's the only usb device physically plugged in. Here's a couple of tests to run. First unplug it, then type "lsusb" along with "dmesg|tail". Next, plug it in, and repeat those two commands. Send me the output of both.

From what I've been able to dig up on the net, it may be crippled in North America and Europe, in that it can only communicate with Windows Media Player 10. I've seen conflicting information, so I want to be sure.

If this is true, then this is another example of Microsoft exploiting their monopolistic might. How I really hate our corporate government for allowing this.

cmlal 11-02-2005 09:46 AM

Hewlett-Packard is my printer. :) I forgot to mention that. Do you still need me to run the tests?

GrueMaster 11-02-2005 10:00 AM

Yes. I would like to see if it is even showing up on the bus.

cmlal 11-02-2005 10:34 AM

Here we go (with printer connected, but not the iRiver):

Code:

linux:/home/cam # lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 03f0:2b11 Hewlett-Packard
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
linux:/home/cam # dmesg|tail
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=248 TOS=0x00 PREC=0x00 TTL=64 ID=47 DF PROTO=UDP SPT=138 DPT=138 LEN=228
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=234 TOS=0x00 PREC=0x00 TTL=64 ID=48 DF PROTO=UDP SPT=138 DPT=138 LEN=214
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=248 TOS=0x00 PREC=0x00 TTL=64 ID=49 DF PROTO=UDP SPT=138 DPT=138 LEN=228
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=234 TOS=0x00 PREC=0x00 TTL=64 ID=50 DF PROTO=UDP SPT=138 DPT=138 LEN=214
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=248 TOS=0x00 PREC=0x00 TTL=64 ID=51 DF PROTO=UDP SPT=138 DPT=138 LEN=228
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=234 TOS=0x00 PREC=0x00 TTL=64 ID=52 DF PROTO=UDP SPT=138 DPT=138 LEN=214
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=248 TOS=0x00 PREC=0x00 TTL=64 ID=53 DF PROTO=UDP SPT=138 DPT=138 LEN=228
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=234 TOS=0x00 PREC=0x00 TTL=64 ID=54 DF PROTO=UDP SPT=138 DPT=138 LEN=214
usb 1-7: new high speed USB device using ehci_hcd and address 3
usb 1-7: USB disconnect, address 3

And then with both plugged in:

Code:

linux:/home/cam # lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 03f0:2b11 Hewlett-Packard
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 4102:1119 iRiver, Ltd.
Bus 001 Device 001: ID 0000:0000
linux:/home/cam # dmesg|tail
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=234 TOS=0x00 PREC=0x00 TTL=64 ID=48 DF PROTO=UDP SPT=138 DPT=138 LEN=214
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=248 TOS=0x00 PREC=0x00 TTL=64 ID=49 DF PROTO=UDP SPT=138 DPT=138 LEN=228
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=234 TOS=0x00 PREC=0x00 TTL=64 ID=50 DF PROTO=UDP SPT=138 DPT=138 LEN=214
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=248 TOS=0x00 PREC=0x00 TTL=64 ID=51 DF PROTO=UDP SPT=138 DPT=138 LEN=228
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=234 TOS=0x00 PREC=0x00 TTL=64 ID=52 DF PROTO=UDP SPT=138 DPT=138 LEN=214
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=248 TOS=0x00 PREC=0x00 TTL=64 ID=53 DF PROTO=UDP SPT=138 DPT=138 LEN=228
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC= SRC=192.168.0.122 DST=192.168.0.255 LEN=234 TOS=0x00 PREC=0x00 TTL=64 ID=54 DF PROTO=UDP SPT=138 DPT=138 LEN=214
usb 1-7: new high speed USB device using ehci_hcd and address 3
usb 1-7: USB disconnect, address 3
usb 1-7: new high speed USB device using ehci_hcd and address 4

I must have missed plugging the iRiver in the last time I used the lsusb command, because now it's showing and it didn't before. Rookie stupidness. Embarassing. :)

GrueMaster 11-02-2005 11:05 AM

Ok, I added the ID to the ifp_gui program and built it (super easy). Not sure how to get it to you, though. Reply if you have a suggestion, otherwise, download the source code (http://prdownloads.sourceforge.net/i...ar.gz?download), open it in a temporary directory (tar -zxvf ifp_gui-0.10.4.tar.gz), and get ready for a single line edit.

To modify the code, do the following (don't type my # comments) :

cd ifp_gui-0.10.4/src/libifp
vi prim.c
:24 # this will jump down to the line we want to copy/modify
yy # copies current line into the buffer
p # pastes buffer
R # enter "replace/Overwrite mode"
# use the arrow keys to move the cursor and replace 1011 with 1119
:wq # save and exit
cd ../../ # return to the head of the source tree
./build.sh # rebuild. with any luck, it should finish without error, and you'll have a new version of ifp_gui in the ./bin directory.

Like I said earlier, I have a built version that I can send you if you don't want to do this. Since I don't have this particular player, I'm not sure it will work, but it's worth a shot.

cmlal 11-02-2005 11:12 AM

I've sent you an email with my email address. Would be super great if you'd send me the built version. :)

cmlal 11-02-2005 12:39 PM

I've tried the new build now but no luck, I'm afraid. I get the same error message ("Could not communicate with iRiver device").

I guess this means that it actually only will work with Windows Media Player 10?

GrueMaster 11-02-2005 12:42 PM

Did you run the command as root? By default, when the device is plugged in, root is the only user with access rights.

cmlal 11-02-2005 12:45 PM

Yes, I did run the command as root. :/

GrueMaster 11-02-2005 12:56 PM

At this stage, I think that we have explored all we can with this unit. I suggest either returning the unit and getting an older IFP-7xx, or if you would like to help getting it working, join the email at ifp-driver-common AT lists.sourceforge.net. You might be able to provide them with some useful information that they can use to build a working ifp_gui version.

Sorry I couldn't help further. Microsoft/DRM seems to be getting in the way.

Tobin

cmlal 11-02-2005 01:01 PM

I'll probably pass this one on to my sister and get myself another one that'll give me less trouble.

Thank you so much though for all your time & useful input! I learned a lot. :)

tux_studio 11-03-2005 11:15 AM

1) In SuSE 10, I have found that you do not need to run the nonroot.sh script.
2) Typically, I unplug my iRiver, turn it off, and wait about 3 seconds.
Then, I will plug in the USB cable, turn it on, and wait about 3 seconds.
Finally, start ifp_gui.

If you have a device that is supported you will see the battery status, storage used, and files appear in the application.

(Assuming you have the ifp_gui package installed)
To start ifp_gui just type ifp_gui. If this does not work, try /usr/local/bin/ifp_gui


Hope this helps
--tux

cmlal 11-03-2005 12:14 PM

Thanks for your input. It turns out though that my device is not supported. GrueMaster even made a new build of ifp_gui but it seems the T30 is made not to function with anything else than Windows Media Player 10. I had a look at ifp_gui though and it seems really nice. :) It's a pity I can't use it.


All times are GMT -5. The time now is 09:23 PM.