Reply
Thread Tools
Posts: 49 | Thanked: 9 times | Joined on Oct 2010 @ Borneo
#81
Guys, sorry i don't have much knowledge about USB HOST MODE, but is it possible that we use N900 as a host-mode as well as charging it? I know that during this mode, BME is stopped. But who know we can still give a command to Battery management to draw power from the USB port to charge the battery. For sure we can create such cable that provide an external power port to power the N900 and attached device.
 
Posts: 49 | Thanked: 9 times | Joined on Oct 2010 @ Borneo
#82
Originally Posted by keljuk View Post
Is there a way to get a generic dual-stick-clone gamepad to work with n900 and the emulators... It seems to recognize it, but it has no function what so ever and none of the light light up
you have to remap the joypad event into the keyboard. I have compiled Xjoypad for ubuntu into Maemo. You can download it from 4shared.




http://www.4shared.com/file/sO2p4sJN...p_xjoypad.html

copy to your /usr/bin and put permission for that file.

Last edited by didik.wahyono; 2010-11-28 at 05:26.
 

The Following User Says Thank You to didik.wahyono For This Useful Post:
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#83
Originally Posted by didik.wahyono View Post
Guys, sorry i don't have much knowledge about USB HOST MODE, but is it possible that we use N900 as a host-mode as well as charging it? I know that during this mode, BME is stopped. But who know we can still give a command to Battery management to draw power from the USB port to charge the battery. For sure we can create such cable that provide an external power port to power the N900 and attached device.
http://talk.maemo.org/showthread.php...309#post866309

Also the much requested hostmode while charging (N900 works as USB host but does not supply VBUS 5V - this will be done by a modified hub or a Y-cable: http://wiki.openmoko.org/wiki/Specia...aka_Y-Cable.29) is not yet supported.

Wait for a version of jrbme integrating management of VBUS (incl. "charging hostmode") as well as hostmode enabling and notifications to user, to come in a few weeks.
[edit] http://talk.maemo.org/showthread.php...203#post921203
/j
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2011-02-07 at 18:32.
 

The Following User Says Thank You to joerg_rw For This Useful Post:
ed00's Avatar
Posts: 277 | Thanked: 215 times | Joined on Dec 2009
#84
Has anybody tried to connect webcam?
I have tiny 3 MP
webcam. And seems that h-e-n recognize it. And obviously its not showing up in File manager. Wondering if possible to retrieve and get access to it.


Code:
sb 1-1:1.0: uevent
[122824.725524] uvcvideo 1-1:1.0: usb_probe_interface
[122824.725524] uvcvideo 1-1:1.0: usb_probe_interface - got id
[122824.725585] uvcvideo: Found UVC 1.00 device USB 2.0 PC Cam (174f:5271)
[122824.727874] input: USB 2.0 PC Cam as /class/input/input21
[122824.784606] usb 1-1: adding 1-1:1.1 (config #1, interface 1)
[122824.784790] usb 1-1:1.1: uevent
[122824.784881] /home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '057'
[122824.785278] usb 1-1: New USB device found, idVendor=174f, idProduct=5271
[122824.785308] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[122824.785308] usb 1-1: Product: USB 2.0 PC Cam
[122824.785339] usb 1-1: Manufacturer: Image Processor
[122824.785369] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[122824.785400] hub 1-0:1.0: port 1 enable change, status 00000503
[122860.465850] Forced hostmode error: no device attached
[122860.465942] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[122860.465972] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[122860.466003] usb 1-1: USB disconnect, address 57
[122860.466003] usb 1-1: unregistering device
[122860.466033] usb 1-1: usb_disable_device nuking all URBs
[122860.466064] musb_hdrc musb_hdrc: shutdown urb cf3e4780 ep3in-intr
[122860.466064] usb 1-1: unregistering interface 1-1:1.0
[122860.526611] usb 1-1:1.0: uevent
[122860.526672] usb 1-1: unregistering interface 1-1:1.1
[122860.526763] usb 1-1:1.1: uevent
[122860.527191] usb 1-1: uevent
[122860.682464] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[122860.807434] usb 1-1: new high speed USB device using musb_hdrc and address 58
[122860.964843] usb 1-1: skipped 1 descriptor after configuration
[122860.964874] usb 1-1: skipped 5 descriptors after interface
[122860.964904] usb 1-1: skipped 1 descriptor after endpoint
[122860.964904] usb 1-1: skipped 13 descriptors after interface
[122860.965087] usb 1-1: default language 0x0409
[122860.965942] usb 1-1: uevent
[122860.966094] usb 1-1: usb_probe_device
[122860.966094] usb 1-1: configuration #1 chosen from 1 choice
[122860.968353] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[122860.968566] usb 1-1:1.0: uevent
[122860.968719] uvcvideo 1-1:1.0: usb_probe_interface
[122860.968750] uvcvideo 1-1:1.0: usb_probe_interface - got id
[122860.968841] uvcvideo: Found UVC 1.00 device USB 2.0 PC Cam (174f:5271)
[122860.972259] input: USB 2.0 PC Cam as /class/input/input22
[122861.026580] usb 1-1: adding 1-1:1.1 (config #1, interface 1)
[122861.026702] usb 1-1:1.1: uevent
[122861.026763] /home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '058'
[122861.027008] usb 1-1: New USB device found, idVendor=174f, idProduct=5271
[122861.027008] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[122861.027038] usb 1-1: Product: USB 2.0 PC Cam
 
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#85
Originally Posted by ed00 View Post
Has anybody tried to connect webcam?
I have tiny 3 MP
webcam. And seems that h-e-n recognize it. And obviously its not showing up in File manager. Wondering if possible to retrieve and get access to it.
Your dmesg clearly shows it's recognized and enumerated as high speed device. To me it looks like it's drawing too much power or sth, and so resets and starts over again enumerating. Anyway there's even a video driver loaded for it.
Obviously it won't show up in file manager, what would you expect to see? A mpeg video file?

If it works and driver works.... I guess you then could access it similarly to internal cams which are /dev/video0 and /dev/video1

cheers
jOERG
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N
 

The Following User Says Thank You to joerg_rw For This Useful Post:
giannoug's Avatar
Posts: 334 | Thanked: 171 times | Joined on Dec 2009
#86
Originally Posted by ed00 View Post
Has anybody tried to connect webcam?
I have tiny 3 MP
webcam. And seems that h-e-n recognize it. And obviously its not showing up in File manager. Wondering if possible to retrieve and get access to it.
You can use it with mplayer. Try something like this.
Code:
mplayer  tv:// -tv driver=v4l2:device=/dev/video0
Change /dev/video0. To find all the cameras attached (and working), use:
Code:
ls /dev/video*
/dev/video0 is the back camera
/dev/video1 is the front camera
and /dev/video2 should be your USB camera.
 

The Following 2 Users Say Thank You to giannoug For This Useful Post:
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#87
Originally Posted by giannoug View Post
You can use it with mplayer. Try something like this.
Code:
mplayer  tv:// -tv driver=v4l2:device=/dev/video0
Change /dev/video0. To find all the cameras attached (and working), use:
Code:
ls /dev/video*
/dev/video0 is the back camera
/dev/video1 is the front camera
and /dev/video2 should be your USB camera.
I have a Logitech Webcam Pro 9000 Webcam, works on my Ubuntu, the N900 is detected but the commands you indicate only shows green screen.
 
ed00's Avatar
Posts: 277 | Thanked: 215 times | Joined on Dec 2009
#88
Thanks for respond


heres what im getting

Code:
ls /dev/video*
/dev/video0  /dev/video1  /dev/video2
but when i run
Code:
mplayer  tv:// -tv driver=v4l2:device=/dev/video2
its giving me
Code:
Playing tv://.
TV file format detected.
No such driver: V412
 
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#89
just a suggestion in which direction to think, about mounting etc:
[excerpt from my PC syslog]
Dec 2 09:01:10 halley kernel: [6102345.471038] usb 1-1: new high speed USB device using ehci_hcd and address 59
Dec 2 09:01:10 halley kernel: [6102345.587521] usb 1-1: New USB device found, idVendor=1307, idProduct=0165
Dec 2 09:01:10 halley kernel: [6102345.587552] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 2 09:01:10 halley kernel: [6102345.587572] usb 1-1: Product: USB Mass Storage Device
Dec 2 09:01:10 halley kernel: [6102345.587588] usb 1-1: Manufacturer: USB007
Dec 2 09:01:10 halley kernel: [6102345.587602] usb 1-1: SerialNumber: 00000000000619
Dec 2 09:01:10 halley kernel: [6102345.587887] usb 1-1: configuration #1 chosen from 1 choice
Dec 2 09:01:10 halley kernel: [6102345.590306] scsi23 : SCSI emulation for USB Mass Storage devices
Dec 2 09:01:10 halley kernel: [6102345.590623] usb-storage: device found at 59
Dec 2 09:01:10 halley kernel: [6102345.590631] usb-storage: waiting for device to settle before scanning
Dec 2 09:01:11 halley kernel: [6102346.591239] scsi 23:0:0:0: Direct-Access USB007 mini-USB2BU 0.00 PQ: 0 ANSI: 2
Dec 2 09:01:11 halley kernel: [6102346.591722] sd 23:0:0:0: Attached scsi generic sg2 type 0
Dec 2 09:01:11 halley kernel: [6102346.595452] sd 23:0:0:0: [sdb] 1974272 512-byte logical blocks: (1.01 GB/964 MiB)
Dec 2 09:01:11 halley kernel: [6102346.596211] sd 23:0:0:0: [sdb] Write Protect is off
Dec 2 09:01:11 halley kernel: [6102346.596230] sd 23:0:0:0: [sdb] Mode Sense: 00 00 00 00
Dec 2 09:01:11 halley kernel: [6102346.596238] sd 23:0:0:0: [sdb] Assuming drive cache: write through
Dec 2 09:01:11 halley kernel: [6102346.598117] usb-storage: device scan complete
Dec 2 09:01:11 halley kernel: [6102346.599687] sd 23:0:0:0: [sdb] Assuming drive cache: write through
Dec 2 09:01:11 halley kernel: [6102346.599725] sdb: sdb1
Dec 2 09:01:11 halley kernel: [6102346.954787] sd 23:0:0:0: [sdb] Assuming drive cache: write through
Dec 2 09:01:11 halley kernel: [6102346.954808] sd 23:0:0:0: [sdb] Attached SCSI removable disk
Dec 2 09:01:12 halley hald: mounted /dev/sdb1 on behalf of uid 1000
Dec 2 09:01:29 halley kernel: [6102364.537195] usb 1-1: USB disconnect, address 59
Dec 2 09:01:29 halley hald[1356]: forcibly attempting to lazy unmount /dev/sdb1 as enclosing drive was disconnected
Dec 2 09:01:29 halley hald: unmounted /dev/sdb1 from '/media/disk-1' on behalf of uid 0
particularly look at the hald-lines

from my ps:
1490 ? S 29:49 hald-addon-storage: polling /dev/sr0 (every 2 sec)
/j
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2010-12-02 at 15:22.
 

The Following User Says Thank You to joerg_rw For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Dec 2010
#90
Originally Posted by ed00 View Post
Thanks for respond


heres what im getting

Code:
ls /dev/video*
/dev/video0  /dev/video1  /dev/video2
but when i run
Code:
mplayer  tv:// -tv driver=v4l2:device=/dev/video2
its giving me
Code:
Playing tv://.
TV file format detected.
No such driver: V412

I've noticed that you didn't type the code correctly... "v4l2" stands for "Video 4 Linux 2" input, so make sure you enter letter "l", not digit "1"
 
Reply

Tags
awesome!, bada rox, h-e-n hostmode, more noise


 
Forum Jump


All times are GMT. The time now is 20:50.