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)

joerg_rw 2011-01-22 02:50

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by sblotskyy (Post 925801)
Thank You for the help. I am the beginner in LINUX, but now the flash drive is visible! Please tell me, whether it's possible to connect the printer via USB in order to print out from OpenOffice ?
If it is, le me know where to search for further information.

It's possible but you probably will need http://www.cups.org/ for it, or at very least something like lp / lpr

/j

peterleinchen 2011-01-22 10:41

Re: [Announce] USB hostmode beta release
 
@sblotskyy
does not directly belong to this thread, but look here,
if You have easyDebian installed ( as I assume ): http://talk.maemo.org/showpost.php?p...9&postcount=35
or here
http://talk.maemo.org/showthread.php?t=56932

pavi.kant 2011-01-22 10:53

Re: [Announce] USB hostmode beta release
 
hi,
i have multiboot installed with 1) omap kernel (pr 1.3) 2) nitdroid 3) kernel power v46. i installed h-e-n. n tried to mount a transend 4gb pen drive while in kernel power. i am getting ziltch!! nothing at all!! could someone help me to find whats the problem and how to get this to work?? would be really nice to use pendrives for my files as my internel mem is almost up! thnx

pali 2011-01-22 11:44

Re: [Announce] USB hostmode beta release
 
3 Attachment(s)
Hello,

I fixed kernel module bq27x00_battery (which report info about battery). Now it export to HAL info in correct units (µV, µA, ...) by spec. power_supply_class.txt. Attached patch bq27x00_battery.patch.gz

I was inspirated by http://wiki.maemo.org/N900_Hardware_...eter/bq-script. I backported bq27x00_battery module from kernel 2.6.37 and added support for new properties:
POWER_SUPPLY_PROP_STATUS
POWER_SUPPLY_PROP_CHARGE_NOW
POWER_SUPPLY_PROP_CHARGE_FULL
POWER_SUPPLY_PROP_ONLINE
POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW
POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG
POWER_SUPPLY_PROP_TIME_TO_FULL_NOW

For autoloading this module (when N900 are booting) is needed to apply attached patch board-rx51-peripherals.patch.txt. Note that this patch replace patch bq_matan.patch.

Now /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0 is good replecament for /org/freedesktop/Hal/devices/bme on HAL, so it can be used to report battery state when hostmode is active (and bme is stopped).

Next I added support for desktop widget battery ( http://maemo.org/packages/view/battery/ ) to read info from bq27x00 when is loaded (it read from HAL). Patch battery.patch.txt is attached too.

What about package/plugin status-area-applet-battery ( http://maemo.org/packages/view/statu...pplet-battery/ )? Is there any chance to replace (or fix) this applet to read bq27x00 info when bme is stopped? With source code of this applet will be simple to write patch, but it is closed...

Edit 1:
* Updated bq27x00_battery.patch.txt (backported changes from kernel 2.6.37)
* Added patch board-rx51-peripherals.patch.txt for autoloading bq27x00 when N900 are booting
Edit 2:
* Merged my patch with bq27x00 patches from kernel mailinglist

istota 2011-01-24 00:50

Re: [Announce] USB hostmode beta release
 
hello
very please help I want to connect a dvd rom as I have to do it
so to play dvd and if it is possible to have a record
Thank you for hen and greet

joerg_rw 2011-01-24 15:46

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by pali (Post 925980)
What about package/plugin status-area-applet-battery ( http://maemo.org/packages/view/statu...pplet-battery/ )? Is there any chance to replace (or fix) this applet to read bq27x00 info when bme is stopped? With source code of this applet will be simple to write patch, but it is closed...

jrbme should talk to hald-addon-bme. Please note that bme is known to break when started after bq27x00 kernel driver got modprobed

/j

pali 2011-01-25 11:31

Re: [Announce] USB hostmode beta release
 
What do you meen "bme is known to break". Will then bme report incorrect values to hal?

teamer 2011-01-25 12:08

Re: [Announce] USB hostmode beta release
 
After a successfull mount , i try to write anything to the flash drive , it says permision denied ...

mveplus 2011-01-25 17:04

Re: [Announce] USB hostmode beta release
 
Feature request - adding in h-e-n GUI settings option to start/stop external script during pressing speed-mode or VBUS or Enumerate.

Which will free h-e-n team to deal with some 'not related' to h-e-n itself request from users..... :)

For me personally I'll need that for reasons like that, loading script for calling
Quote:

insmod X module
on selecting speed mod, before VBUS or something like that...

Keep up the good work! Thanks!

joerg_rw 2011-01-26 02:43

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by mveplus (Post 928314)
Feature request - adding in h-e-n GUI settings option to start/stop external script during pressing speed-mode or VBUS or Enumerate.

Which will free h-e-n team to deal with some 'not related' to h-e-n itself request from users..... :)

For me personally I'll need that for reasons like that, loading script for calling on selecting speed mod, before VBUS or something like that...

Keep up the good work! Thanks!

That will get dealt with via udev rule. New H-E-N GUI will come with a completely changed user interface (if mohamadAG will listen to me). We won't implement user script invocation - there's all sorts of system methods for that, like udev rules, and also apps like queen-becon.

next GUI is based on a concept (suggested by me ;-D ) to just start/stop hostmode, and have a few select menus for e.g. speed=LS,FS,HS.auto

Augments like autospeed and external powered hostmode are on the ToDo as well

wait for next version to show up, mohammadAG is about to code it according to my specs this very moment.
/j


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

vBulletin® Version 3.8.8