maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Announce] USB hostmode beta release (https://talk.maemo.org/showthread.php?t=65232)

pigeond 2012-03-07 11:26

Re: [Announce] USB hostmode beta release
 
Hi all.

Just a heads up. I can use a MIDI controller (it's a M-Audio keystation mini 32) with my n900 under sunvox.

Pretty cool!

Thanks for bringing usb host mode to n900!

bocephus 2012-03-12 11:17

Re: [Announce] USB hostmode beta release
 
I'm on KP49 and CSSU Testing, and hostmode works great, except... I get an instant reboot every time I close h-e-n after having used and then removed any peripherals. At startup I get the "Stopping BME" banner, but the log is filled with hundreds of lines like these:
Code:

[61084.316223] power_supply bq27200-0: driver failed to report `time_to_empty_now' property
[61084.316253] power_supply bq27200-0: driver failed to report `time_to_empty_avg' property
[61294.302642] power_supply bq27200-0: driver failed to report `time_to_full_now' property

Battery module problem? Any pointers on how to resolve it?

pali 2012-03-12 13:35

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by bocephus (Post 1178301)
I'm on KP49 and CSSU Testing, and hostmode works great, except... I get an instant reboot every time I close h-e-n after having used and then removed any peripherals. At startup I get the "Stopping BME" banner, but the log is filled with hundreds of lines like these:
Code:

[61084.316223] power_supply bq27200-0: driver failed to report `time_to_empty_now' property
[61084.316253] power_supply bq27200-0: driver failed to report `time_to_empty_avg' property
[61294.302642] power_supply bq27200-0: driver failed to report `time_to_full_now' property

Battery module problem? Any pointers on how to resolve it?

You cannot start BME when battery module bq27x00_battery is loaded. In kernel-power is that module blacklisted. Make sure that you did not enabled it in /etc/modules!!!

Also that message in dmesg log is not error, but only normal warnings (battery chip cannot tell you time when battery will be full - when you not charging battery :D) which will be disabled in kernel-power v50.

bocephus 2012-03-12 14:14

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by pali (Post 1178337)
You cannot start BME when battery module bq27x00_battery is loaded. In kernel-power is that module blacklisted. Make sure that you did not enabled it in /etc/modules!!!

Also that message in dmesg log is not error, but only normal warnings (battery chip cannot tell you time when battery will be full - when you not charging battery :D) which will be disabled in kernel-power v50.

Ah, I get it now! Yes I did indeed re-enable it before because I needed the temperature readout. So that's what's conflicting with BME. I get the system reboot because upon exiting h-e-n, BME cannot restart.

Stupid noob mistake. I am not worthy, but I am honored to get help from the master himself! :D

Thanks for everything, pali!

joerg_rw 2012-03-12 20:08

Re: [Announce] USB hostmode beta release
 
please keep in mind that any temperature readout from bq27x00 chip is basically useless for anything. It's just the chip temperature of that chip, which doesn't tell you anything useful about any relevant state of system or battery, since in N900 that chip is NOT inside battery as it's supposed to be, but rather soldered literally somewhere on the mainboard.

/jOERG

stevomanu 2012-03-12 20:25

Re: [Announce] USB hostmode beta release
 
Hey all , just wondering but what sort of thing can be plugged in to the phone once app is installed got correct cables ready to go ...

Is it just memory sticks or all usb devices ??? never really looked into this before ....
many thanks

davdav 2012-03-12 22:15

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by pigeond (Post 1175831)
Hi all.

Just a heads up. I can use a MIDI controller (it's a M-Audio keystation mini 32) with my n900 under sunvox.

Pretty cool!

Thanks for bringing usb host mode to n900!

how .. ?
after i connect it to the female female usb i choose high speed then it says file system not available .. i ignore it and go to sunvox then what :
thanks in advance :)

pigeond 2012-03-14 10:53

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by davdav (Post 1178687)
how .. ?
after i connect it to the female female usb i choose high speed then it says file system not available .. i ignore it and go to sunvox then what :
thanks in advance :)

In sunvox, all you have to do is to select your midi controller device in Preferences -> MIDI.

However, before that, you need the alsa midi drivers. I had to compile them myself since they don't come with the n900 kernel packages. I'm using 2.6.28.10-power49 (power kernel).

I just uploaded them to:

http://202.65.223.218/~pigeon/power49-midi-modules.tgz

I also have a shell script that sudo insmod the modules in the right order.

Hope it helps.

davdav 2012-03-14 19:21

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by pigeond (Post 1179265)
In sunvox, all you have to do is to select your midi controller device in Preferences -> MIDI.

However, before that, you need the alsa midi drivers. I had to compile them myself since they don't come with the n900 kernel packages. I'm using 2.6.28.10-power49 (power kernel).

how to install them ..
i know how to install a .deb file but i dont know how to install .tgz

Quote:

Originally Posted by pigeond (Post 1179265)
I just uploaded them to:

http://202.65.223.218/~pigeon/power49-midi-modules.tgz
I also have a shell script that sudo insmod the modules in the right order.

thanks again but would u mention how to make it work ? :)

fpp 2012-03-14 20:14

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by pigeond (Post 1179265)
However, before that, you need the alsa midi drivers. I had to compile them myself since they don't come with the n900 kernel packages. I'm using 2.6.28.10-power49 (power kernel).

Hey, since you're knowledgeable about ALSA & stuff... :-)

Would you happen to know what driver(s) would be needed to make the N900 output digital sound through its USB port in host mode, just like a desktop Linux does when connected to an external DAC ?...

TIA,
fp


All times are GMT. The time now is 16:31.

vBulletin® Version 3.8.8