maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Thread for problems getting USB hostmode working. (https://talk.maemo.org/showthread.php?t=65570)

casper27 2010-11-13 16:42

Thread for problems getting USB hostmode working.
 
Post all problems with getting USB Hostmost working on different USB peripherals here.
It is Beta software but has been proved to work by numerous people on here so its mostly a case by case problem.
The developers are getting mighty P*ssed with winey posts and duplicate questions on the other thread.

werebug 2010-11-13 19:24

Re: Thread for problems getting USB hostmode working.
 
Is it possible to use this on Ubuntu

So I can use keyboard and mouse

esthreel 2010-11-13 19:30

Re: Thread for problems getting USB hostmode working.
 
i am having problem with external HDD, flash and mouse worked great. So the drive is 3.5 inch and has power supply, the size is 1TB and it is formatted as NTFS. I know i have to open terminal sudo gainroot and then modprobe ntfs. When I have to do this? after I opn hen? Thanks.

MohammadAG 2010-11-13 19:32

Re: Thread for problems getting USB hostmode working.
 
Before you mount, however you might need extra packages (that may/may not be available in maemo) for write support.

esthreel 2010-11-13 20:03

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by MohammadAG (Post 872584)
Before you mount, however you might need extra packages (that may/may not be available in maemo) for write support.

I got this error.
http://www.ipix.lt/images/11686382.png

MohammadAG 2010-11-13 20:12

Re: Thread for problems getting USB hostmode working.
 
I don't have any NTFS drives, so I can't test, but it should be possible to mount /dev/sda1 /mnt in terminal and open it in filebox

esthreel 2010-11-13 20:20

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by MohammadAG (Post 872614)
I don't have any NTFS drives, so I can't test, but it should be possible to mount /dev/sda1 /mnt in terminal and open it in filebox

So the default file manager will not see any drives that are NTFS?

MohammadAG 2010-11-13 20:30

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by esthreel (Post 872618)
So the default file manager will not see any drives that are NTFS?

Code:

[ 8916.612762] usb 1-1: new high speed USB device using musb_hdrc and address 4
[ 8916.791564] usb 1-1: default language 0x0409
[ 8916.842742] usb 1-1: uevent
[ 8916.842864] usb 1-1: usb_probe_device
[ 8916.842895] usb 1-1: configuration #1 chosen from 1 choice
[ 8916.845275] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 8916.845428] usb 1-1:1.0: uevent
[ 8916.845581] libusual 1-1:1.0: usb_probe_interface
[ 8916.845611] libusual 1-1:1.0: usb_probe_interface - got id
[ 8916.845672] usb-storage 1-1:1.0: usb_probe_interface
[ 8916.845703] usb-storage 1-1:1.0: usb_probe_interface - got id
[ 8916.851623] scsi2 : SCSI emulation for USB Mass Storage devices
[ 8916.857360] usb-storage: device found at 4
[ 8916.857391] usb-storage: waiting for device to settle before scanning
[ 8916.858276] /home/builder1/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '004'
[ 8916.858581] usb 1-1: New USB device found, idVendor=059f, idProduct=1013
[ 8916.858612] usb 1-1: New USB device strings: Mfr=10, Product=11, SerialNumber=12
[ 8916.858612] usb 1-1: Product: LaCie Hard Disk
[ 8916.858642] usb 1-1: Manufacturer: LaCie
[ 8916.858642] usb 1-1: SerialNumber: 2007102500100BB3
[ 8916.858673] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 8916.858703] hub 1-0:1.0: port 1 enable change, status 00000503
[ 8920.256958] twl4030_keypad twl4030_keypad: Spurious key event 4-2
[ 8920.500457] twl4030_keypad twl4030_keypad: Spurious key event 4-2
[ 8921.856048] usb-storage: device scan complete
[ 8921.857299] scsi 2:0:0:0: Direct-Access    ST350082 0AS                  PQ: 0 ANSI: 2 CCS
[ 8921.870544] sd 2:0:0:0: [sda] 1953546336 512-byte hardware sectors: (1.00 TB/931 GiB)
[ 8921.871276] sd 2:0:0:0: [sda] Write Protect is off
[ 8921.871307] sd 2:0:0:0: [sda] Mode Sense: 00 38 00 00
[ 8921.871307] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 8921.872131] sd 2:0:0:0: [sda] 1953546336 512-byte hardware sectors: (1.00 TB/931 GiB)
[ 8921.872863] sd 2:0:0:0: [sda] Write Protect is off
[ 8921.872863] sd 2:0:0:0: [sda] Mode Sense: 00 38 00 00
[ 8921.872894] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 8921.872924]  sda: sda1
[ 8921.917846] sd 2:0:0:0: [sda] Attached SCSI disk
/home/user #


If you mount under /media, it should.
Code:

mkdir -p /media/ntfs
mount /dev/sda1 /media/ntfs


esthreel 2010-11-13 21:00

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by MohammadAG (Post 872630)
If you mount under /media, it should.
Code:

mkdir -p /media/ntfs
mount /dev/sda1 /media/ntfs


It worked all like a charm, thanks.

http://www.ipix.lt/images/42508838.png

But the problem is that when I open it from list with default manager i see text (no files), it sees the disk as empty. If i go to filebox I see them all. The bigger problem is that when i try to open a file I get for jpg / pdf - file format not supported, for music / video - file not found. Any ideas?

P.S. http://talk.maemo.org/archive/index.php/t-17811.html Any one looked on this?

Larswad 2010-11-13 22:28

Re: Thread for problems getting USB hostmode working.
 
@esthreel: This is basic mounting knowledge for linux. You have to give rights to the user (since you run the filemanager as 'user').
you first need the id of your user and users group:

to find out, enter:

Code:

id user
and you will get the user's id. (You will probably get 29999 for both 'user' id and the 'users' group).

now, as root:

Code:

mount -t ntfs /dev/sda1 /media/ntfs -o uid=29999,gid=29999,utf8,dmask=027,fmask=137
Replace the 29999 with the id you got, if it was different of course.
Now, you should be able to access your files from the file manager.
Good luck.

esthreel 2010-11-13 22:40

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Larswad (Post 872695)
@esthreel: This is basic mounting knowledge for linux. You have to give rights to the user (since you run the filemanager as 'user').
you first need the id of your user and users group:

to find out, enter:

Code:

id user
and you will get the user's id. (You will probably get 29999 for both 'user' id and the 'users' group).

now, as root:

Code:

mount -t ntfs /dev/sda1 /media/ntfs -o uid=29999,gid=29999,utf8,dmask=027,fmask=137
Replace the 29999 with the id you got, if it was different of course.
Now, you should be able to access your files from the file manager.
Good luck.

Thanks, I will try this later. I am new to Linux :) (My goal if this works would be making this into QBW button.)

Update
It does work! Nice one Larswad.

Update 2
I have a working queen beecon mount button. Thanks again for the script.

P.S This is a killer feature, no, really battery dies faster than it takes to charge :D

lifenexus 2010-11-14 02:16

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by esthreel (Post 872701)
Thanks, I will try this later. I am new to Linux :) (My goal if this works would be making this into QBW button.)

Update
It does work! Nice one Larswad.

Update 2
I have a working queen beecon mount button. Thanks again for the script.

P.S This is a killer feature, no, really battery dies faster than it takes to charge :D

i mount my ntfs hard drive all the time. mount to any folder then view its contents from filebox by going to that loaction

IzzehO 2010-11-14 02:43

Re: Thread for problems getting USB hostmode working.
 
Anyone had any luck with a Microsoft Wireless desktop working? I've still been unable to get it to work beyond being recognized. Its a shame too as my 2 other keyboards and mice including another wireless set work (but this is for my main desktop, whereas the MS one is just sitting around).

Also do these new Keyboard scripts that have popped up bring anything new to the party in that regard? or is it just the same stuff from the BT-HID repackaged?

Temporal 2010-11-14 02:53

Re: Thread for problems getting USB hostmode working.
 
May I ask if is it normal that my device doesn't send ANY energy through USB? I tried to see the voltage between pins 1-4 and I got ZERO.

Looks like dead. I had to uninstall the power kernel because it broke the maemo-pc-connectivity through USB, but I don't know if it is incompatibility between power-kernel AND pc-connectivity OR USB-hostmode and PC-Connectivity trying to use it for other purposes...

Just for the heads up, when I did lsusb -v, sometimes I got NOTHING and sometimes it showed the maemo 45 hostmode etc, but without anything, even by plugging two different self powered usb hubs.

lifenexus 2010-11-14 04:31

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Temporal (Post 872802)
May I ask if is it normal that my device doesn't send ANY energy through USB? I tried to see the voltage between pins 1-4 and I got ZERO.

Looks like dead. I had to uninstall the power kernel because it broke the maemo-pc-connectivity through USB, but I don't know if it is incompatibility between power-kernel AND pc-connectivity OR USB-hostmode and PC-Connectivity trying to use it for other purposes...

Just for the heads up, when I did lsusb -v, sometimes I got NOTHING and sometimes it showed the maemo 45 hostmode etc, but without anything, even by plugging two different self powered usb hubs.

about the pc connectivity, did u try the connectivity after u closed hen or when it was open?

aligatro 2010-11-14 05:06

Re: Thread for problems getting USB hostmode working.
 
Was anyone able to make combined usb devices work (mouse+keyboard, multi slot cardreaders, etc) ? I get the "new usb device found" and correct manufacturer in the log, but can't move the pointer or type. Single devices work without any problems. (including usb mouse)

lifenexus 2010-11-14 05:19

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by aligatro (Post 872839)
Was anyone able to make combined usb devices work (mouse+keyboard, multi slot cardreaders, etc) ? I get the "new usb device found" and correct manufacturer in the log, but can't move the pointer or type. Single devices work without any problems. (including usb mouse)

mine works. i have a genius wireless keyboard and mouse and it works. ive also tried my hp keyboard and mouse and it works too

Farooq 2010-11-14 06:11

Re: Thread for problems getting USB hostmode working.
 
anyone please confirm what are the total requirements for usb houst mode working.
I have stock kernel and hen and m doing all the steps as one did in the youtube for the mouse but my mouse is not working.
if power kernel is required for this then please tell how to do that.

lifenexus 2010-11-14 06:16

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Farooq (Post 872870)
anyone please confirm what are the total requirements for usb houst mode working.
I have stock kernel and hen and m doing all the steps as one did in the youtube for the mouse but my mouse is not working.
if power kernel is required for this then please tell how to do that.

go to your app man and install "enhanced kernel for power users"
make sure its from devel repo. it should be version 45

shut down the phone completely and then restart. Remember it should be completely powered down before rebooting

then run host mode

Farooq 2010-11-14 14:51

Re: Thread for problems getting USB hostmode working.
 
@lifenexus

If i have a 3G usb internet dongle and its linux drivers and softwate as well. is there any possibilty that i can use that with the hen.

Regards
Farooq

lifenexus 2010-11-14 15:01

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Farooq (Post 873144)
@lifenexus

If i have a 3G usb internet dongle and its linux drivers and softwate as well. is there any possibilty that i can use that with the hen.

Regards
Farooq

in theory yes it possible but ull have to give it a go. i have a huwaei one myself but never tried it..

Farooq 2010-11-14 16:25

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by lifenexus (Post 873148)
in theory yes it possible but ull have to give it a go. i have a huwaei one myself but never tried it..

i have the same huwaei one will u ty that ?

lifenexus 2010-11-14 16:48

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Farooq (Post 873177)
i have the same huwaei one will u ty that ?

if u pm me the drivers, it will save me alot of time

Farooq 2010-11-14 17:10

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by lifenexus (Post 873190)
if u pm me the drivers, it will save me alot of time

http://ptcl.com.pk/contentb.php?NID=199#drivers

this is the site of the internet provider and the list of drivers is also there. M right now using this dongle on laptop with windows xp installed. the list also contains the drivers for linux

Please if u can port that for N900

lifenexus 2010-11-14 17:15

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Farooq (Post 873202)
http://ptcl.com.pk/contentb.php?NID=199#drivers

this is the site of the internet provider and the list of drivers is also there. M right now using this dongle on laptop with windows xp installed. the list also contains the drivers for linux

Please if u can port that for N900

ill have a look but im no expert on linux. if i cant, ill refer some devs here

samipower 2010-11-15 00:03

Re: Thread for problems getting USB hostmode working.
 
friends i detect that ps3 sixaxis gamepad driver not compatible with this app, or with power flasher 45,

with flasher 45 and hen my gamepad ps3 not run and without hen and flasher 45 , it run well-

i can see that mouse have energy and light but not move to much people.

and only any persons can move the mouse.

i think that the hen only run mouses of logitech or asus or ....... that only run any types , for example can run logitech mouse but not run genius mouse

MohammadAG 2010-11-15 00:08

Re: Thread for problems getting USB hostmode working.
 
We don't really restrict mouse manufacturers, what good would that be...
If it doesn't work, try a different speed, if it doesn't work at all then it's either not following mouse standards or drawing too much power.

joerg_rw 2010-11-15 01:26

Re: Thread for problems getting USB hostmode working.
 
POWER:
N900 in hostmode: 200mA
standard PC USB port: 500mA
UMTS 3G stick: comes with Y-cable as it needs 2 times 500mA - guess what's your chances it'll work on N900

jrbme will come with overload detection and notification

some goodies for you, if you still want to do 3G and similar power hogs:
http://www.amazon.com/CyberPower-Mob.../dp/B0002UQALQ
http://www.societyofrobots.com/robot...p?topic=5479.0
http://www.newegg.com/Product/Produc...82E16817804001

lifenexus 2010-11-15 01:42

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by joerg_rw (Post 873570)
POWER:
N900 in hostmode: 200mA
standard PC USB port: 500mA
UMTS 3G stick: comes with Y-cable as it needs 2 times 500mA - guess what's your chances it'll work on N900

jrbme will come with overload detection and notification

my 3g dongle runs on a single port so 500mA at the most right..

lifenexus 2010-11-15 01:45

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Farooq (Post 873202)
http://ptcl.com.pk/contentb.php?NID=199#drivers

this is the site of the internet provider and the list of drivers is also there. M right now using this dongle on laptop with windows xp installed. the list also contains the drivers for linux

Please if u can port that for N900

those drivers are for x86 and not exactly for armel (the cpu on n900) so it may not work. if the drivers are open source, some one can compile it for the arm cpu and it may work. so far there is nothing i can do

Armstrong Dicksmasher 2010-11-15 09:16

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by esthreel (Post 872701)
Thanks, I will try this later. I am new to Linux :) (My goal if this works would be making this into QBW button.)

Update 2
I have a working queen beecon mount button. Thanks again for the script.

P.S This is a killer feature, no, really battery dies faster than it takes to charge :D

Can you show me how you did the QBW shortcut?
I've tried osso-xterm-e "mount -t ntfs /dev/sda1 /media/ntfs -o uid=29999,gid=29999,utf8,dmask=027,fmask=137; sudo gainroot" & but it's not working.

lifenexus 2010-11-15 09:38

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Armstrong Dicksmasher (Post 873785)
Can you show me how you did the QBW shortcut?
I've tried osso-xterm-e "mount -t ntfs /dev/sda1 /media/ntfs -o uid=29999,gid=29999,utf8,dmask=027,fmask=137; sudo gainroot" & but it's not working.

download and install filebox. mount the ntfs drive as such

Code:

sudo gainroot
mount -t ntfs /dev/sda1 /media/flash

Go to file box. navigate to /media/flash and you will see the files.

sophocha 2010-11-15 14:01

Re: Thread for problems getting USB hostmode working.
 
I have a Microsoft notebook optical mouse that I`m trying to make it work.Any commands or drivers that I need to install first to make it work?I can see it`s light when I try to enumerate but that`s it, no cursor on the screen.

Larswad 2010-11-15 14:09

Re: Thread for problems getting USB hostmode working.
 
@sophocha: You need to install hid bluetooth scripts. You can do that from the application manager. Beware though that the kinetic scrolling becomes somewhat crippled afterwards, at least in microb.
There's a separate thread for that here, just search.

sophocha 2010-11-15 16:21

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Larswad (Post 874074)
@sophocha: You need to install hid bluetooth scripts. You can do that from the application manager. Beware though that the kinetic scrolling becomes somewhat crippled afterwards, at least in microb.
There's a separate thread for that here, just search.

Oh, I just noticed that in microb!Bummer!

What about connecting the keyboard.How do you write numbers?It seems that whenever I type numbers they don`t show up.How do I map these?

gabby131 2010-11-15 16:28

Re: Thread for problems getting USB hostmode working.
 
everything works awesome on the h-e-n in my case,

so if i have the audio issue on the v45 kernel-power, i cant play media files (with audio e.i mp3) from an external flash drive right?

lpdv74 2010-11-15 17:55

Re: Thread for problems getting USB hostmode working.
 
I have h-e-n working and installed power-kernel V45. My usb stick, 2GB, formatted fat, and my cardreader with 4GD SDHC memory card are working fine. But my other usb stick, 16GB, formatted fat32, is not recognised by h-e-n.

What can I do?

Temporal 2010-11-16 14:31

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by lifenexus (Post 872831)
about the pc connectivity, did u try the connectivity after u closed hen or when it was open?

It was closed. In fact, I tried after rebooting just to make sure - thanks!

Good news:
Now I was able to get a SD reader recognized and working AND recognize (but not work with) my modem. I didn't knew that I needed to install h-e-n. I thought that it was installed alongside power kernel, now that they are together, and that was then a command prompt, but I was wrong.

Bad news:
I noticed that after using h-e-n (and closing it), if I go to charge my device (and then shut the screen backlight), it will glow, whenever it needs to glow, but REALLY WEAK and then, from nowhere, goes normal again. And then, randomly, will glow weak again. I just saw that happening RIGHT NOW. I don't know why, maybe some thing is reverse charged and the it needs to wait until discharge, I just see that it does that.

I noticed too that, if I try to copy ONE BIG file(700mb) from the SD to an external SD, it will go really fast in the first 20mb, but will start to slow down up to the maximum of 200mb(in my experiences) when it will "break" - mostly will break before. I'm yet to test with other hub to see if it is a problem with my actual hub, but I'd like to let it registered. I hope someone tried to copy some file from the SD to an USB SD reader to confirm or deny that. I'm yet to test from the internal memory to the USB SD reader too.

And, finally, I guess this is related with the power kernel: It does not like to reboot. Almost always, when I ask it to REBOOT, it will reboot, but not actually boot, it will start to boot and then, turn off. Then I need to turn it on manually. Is anybody else experiencing this?

I'm yet to retry the maemo-pc-connectivity, to see if it is working.

Thanks.

Temporal 2010-11-16 14:42

Re: Thread for problems getting USB hostmode working.
 
OBS: Sorry for not editing my last post, but its important: My n900 is not starting now |:/

I'll try to remove the battery and try again.

EDIT: Worked. Before, it was like there was no battery on it. What could have happened? (No, no OC).

kolos 2010-11-16 20:22

Re: Thread for problems getting USB hostmode working.
 
2 Attachment(s)
I mentioned in "USB hostmode beta release" thread that I unsuccessfully tried to connect Canon camera and Nokia N95 (PC Suite mode). Today I tried again just to get dmesg logs.


All times are GMT. The time now is 02:14.

vBulletin® Version 3.8.8