maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel] (https://talk.maemo.org/showthread.php?t=85658)

pali 2012-07-23 09:51

Announce: USB Mode (easy switch to USB host mode)
 
1 Attachment(s)
Finally USB Mode 1.0-4 is in Maemo Extras!

EDIT: 07.04.2013 - Updated to version 1.0-4 which fixing support for kernel-power v52. This version is now in Extras-Devel

EDIT: 09.12.2012 - Updated to version 1.0-3 which support new BME replacement, showing current usb mode in status menu, fixing usb host mode detection and removed dependency on CSSU.

EDIT: 13.09.2012 - Updated version 1.0-2 which fix support for kernel-power v52 and BME replacement.

Now after long long time, I'm announcing first application for Nokia N900 (with control panel & status menu plugin) for easy switching between 3 USB modes:

* peripheral
* host (with boost)
* host (with charging)

This new application using updated kernel usb host mode drivers and kernel battery charging driver. Also use new ke-recv from Community SSU which automount usb flash devices. And It use mceledpattern (from extras) which register MCE pattern for voltage boost (default blue color). For usb host mode it autodetect correct speed of attached usb device.

Download:
Install package usbmode from Maemo Extras repository (via HAM or apt-get).

Source code:
Is on gitorious.

Info:

This deb package depends:

mceledpattern

and kernel which provides (for example kernel-power v51):

kernel-feature-usbhost-new
kernel-feature-battery
kernel-feature-charger

Optional dependency on:
Community SSU which provides automounting of usb disk devices

DEB package contains 4 parts:
1. usbmode.sh shell script - this script doing usb mode switching
2. control panel plugin - widget with 3 buttons for changing mode, only GUI interface on usbmode.sh
3. status menu plugin - only icon, after click open control panel plugin widget
4. standalone application - only open control panel plugin widget

toxaris 2012-07-23 12:52

Re: Announce: USB Mode (easy switch to USB host mode)
 
Watch out!.
Untill the broken drivers is fixed in KP51 (released today 23/7), dont install this.
Read more here.
http://talk.maemo.org/showpost.php?p...&postcount=505

Edit. Problem Solved, ignore this warning.

pali 2012-07-23 15:25

Re: Announce: USB Mode (easy switch to USB host mode)
 
@toxaris, it is fixed in kp 51r1

aditya_123412 2012-07-23 15:31

Re: Announce: USB Mode (easy switch to USB host mode)
 
What problems does the bug cause?
When does it occur?

bingomion 2012-07-23 18:42

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by pali (Post 1241530)
This deb package depends on:

Community SSU
mceledpattern

Excellently well thought out!!!
But why cssu??? Can it not be required?
I've never installed it... Never needed to... And doubt i ever will...Lets not please debate this.

sixwheeledbeast 2012-07-23 19:00

Re: Announce: USB Mode (easy switch to USB host mode)
 
This is probably why.
No CSSU? Your missing out!
Quote:

Originally Posted by pali (Post 1241530)
This new application using updated kernel usb host mode drivers and kernel battery charging driver. Also use new ke-recv from Community SSU which automount usb flash devices. And It use mceledpattern (from extras) which register MCE pattern for voltage boost (default blue color).


dzano 2012-07-23 19:35

Re: Announce: USB Mode (easy switch to USB host mode)
 
How to upgrade ke-recv to 3.19-14?? Thank you

ade 2012-07-23 20:05

Re: Announce: USB Mode (easy switch to USB host mode)
 
Great work Pali, I just had my first USB stick mounted using your new package.

Nicely integrated in the status menu, no more manual steps or starting scripts from the commandline.

freemangordon 2012-07-23 20:09

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by dzano (Post 1241830)
How to upgrade ke-recv to 3.19-14?? Thank you

By installing CSSU-testing. Or if you can wait, CSSU-stable should include it in 1-2 weeks, hopefully.

dzano 2012-07-23 21:38

Re: Announce: USB Mode (easy switch to USB host mode)
 
Thank you...I will stick with CSSU-stable

toxaris 2012-07-24 06:38

Re: Announce: USB Mode (easy switch to USB host mode)
 
Now I have installed with no problems.
But I wounder, whats the difference between the modes?

bocephus 2012-07-24 08:52

Re: Announce: USB Mode (easy switch to USB host mode)
 
Thank you pali! I assume I should remove/purge h-e-n hostmode enabler before installing this?

pali 2012-07-24 09:00

Re: Announce: USB Mode (easy switch to USB host mode)
 
HEN can be still installed. But do not start HEN if you do not switch to peripheral mode and do not start this USB mode if HEN is running.

toxaris 2012-07-24 09:17

Re: Announce: USB Mode (easy switch to USB host mode)
 
Hmm, strange.
When I try to start USB Hostmode with charging it does fall back on USB Hostmode with boost after some information about running i High Speed and then Low Speed.

Any loggs or other stuff that you want me to provide?

pali 2012-07-24 09:22

Re: Announce: USB Mode (easy switch to USB host mode)
 
yes this is correct, charging can start after host mode is running.

toxaris 2012-07-24 10:46

Re: Announce: USB Mode (easy switch to USB host mode)
 
Anyway, I think I will stick to USB peripheral mode.

But I found some thing else too.
If I switch to USB Hostmode with Charging (I press the buttom and I end up with USB Hostmode with Boost), start OMP and play a song and plug in the charger, strange lagg/stuttering apears.

Dousan 2012-07-24 11:42

Re: Announce: USB Mode (easy switch to USB host mode)
 
For those with cssu stable installed who don't want to install testing can do it like this:

First go to this site (link below) and then press on the cssu testing icon and let ham/app mngr open.

http://wiki.maemo.org/CSSU

Say yes to intalling the new repo and let that finish. then close ham/app mangr and open up xterm and write these codes:

sudo gainroot

apt-get install mceledpattern

apt-get install ke-recv

then download the usbmode .deb file and install with this:

sudo gainroot

dpkg -i nameof.deb

That should do it without installing testing. anyway it worked for me :)

Regards Dousan...

e: a notification about a new cssu update will appear ignore that.

e2: disable the cssu testing repo after you're done installing usbmode...

bingomion 2012-07-24 13:45

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by Dousan (Post 1242162)
sudo gainroot

apt-get install mceledpattern

apt-get install ke-recv

then download the usbmode .deb file and install with this:

sudo gainroot

dpkg -i nameof.deb

Hey.. can ke-recv be installed without CSSU??
I know how great CSSU is but its not me me..
Any ideas how to run this app without CSSU?

If not.. i would suggest just bundling it with CSSU?

Dousan 2012-07-24 15:14

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by bingomion (Post 1242225)
Hey.. can ke-recv be installed without CSSU??
I know how great CSSU is but its not me me..
Any ideas how to run this app without CSSU?

If not.. i would suggest just bundling it with CSSU?

I don't think so as @pali states, it's depending on cssu in the first post.

Regards Dousan...

reinob 2012-07-24 17:41

Re: Announce: USB Mode (easy switch to USB host mode)
 
CSSU is just a repository like any other one. Just grab the damn .deb for ke-recv and install it over the stock one.

seanmcken 2012-07-25 03:52

Re: Announce: USB Mode (easy switch to USB host mode)
 
i think this app doesn't eat battery much. like hen. my battery life with usb host is good now

shabmanu 2012-07-25 05:11

Re: Announce: USB Mode (easy switch to USB host mode)
 
mine not working . i m using cssu thumb is that a problem?

michaaa62 2012-07-25 05:33

Re: Announce: USB Mode (easy switch to USB host mode)
 
Yes, you should have received an error message during the install. Usbmode does need kernel-power51r1.

Russe89 2012-07-25 05:34

Re: Announce: USB Mode (easy switch to USB host mode)
 
No, CSSU-Thumb + usbmode works nicely, file-manager opens automatically if i put any USB-Drive into my USB-Hub. Works well with 2TB Fat32 HDD, 32GB Flash-drive etc...

/Edit: Sure you need kp51r1 for usbmode to work ;)

NiQ 2012-07-25 13:43

Re: Announce: USB Mode (easy switch to USB host mode)
 
Amazing job pali!

Suggestion for next version - Better support for USB devices other than flash drives (e.g. keyboards, mice, CD-ROM drives, Ethernet adapters etc).

pali 2012-07-25 13:47

Re: Announce: USB Mode (easy switch to USB host mode)
 
@NiQ: This is USB Mode switcher. It has nothing with flash drivers. All drivers are in kernel.

For Mouse & Keyboard support you need applications (extmouse, extkbd)

I already using USB ethernet adapter and working fine.

seanmcken 2012-07-25 14:01

Re: Announce: USB Mode (easy switch to USB host mode)
 
do we need thumb for better performance ?? or only cssu testing is enough?? im afraid of thumb cuz last time i installed and phone was dead so plz give some good response and wats difference in battery usage of usb host mode with cssu testing and thumb???

Nobless 2012-07-25 14:22

Re: Announce: USB Mode (easy switch to USB host mode)
 
It is your choice use thumb or not. In first post clearly writed that CSSU-testing is more than enough to use USB Mode switcher!

Quote:

Originally Posted by seanmcken (Post 1242766)
wats difference in battery usage of usb host mode with cssu testing and thumb???

Here are many factors on which depend the battery usage. You need test yourself to know the answer :)

About the performance improvements by installing THUMB ? It is nothing related to USB Host switcher. BUT, thumb improves the overall system speed a bit, so yes it can help a bit to speed up things, responsiveness if you was asking for that. Read a thumb thread and again you can know the answer if u test yourself..

NiQ 2012-07-25 14:50

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by pali (Post 1242761)
@NiQ: This is USB Mode switcher. It has nothing with flash drivers. All drivers are in kernel.

For Mouse & Keyboard support you need applications (extmouse, extkbd)

I already using USB ethernet adapter and working fine.

But it does include some flash-drive-oriented functions such as automatically mount it and open the file manager. You can do similar things for other devices, e.g. if the device detected is a mouse, enable a pointer etc.

Nobless 2012-07-25 14:50

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by dzano (Post 1241830)
How to upgrade ke-recv to 3.19-14?? Thank you

Here are deb's just download and install
http://repository.maemo.org/communit...ree/k/ke-recv/

shabmanu 2012-07-25 14:50

Re: Announce: USB Mode (easy switch to USB host mode)
 
i m using cssu thumb and kp51 still it not working.what to do with dsc file?can anyone help me?

Nobless 2012-07-25 14:52

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by NiQ (Post 1242791)
You can do similar things for other devices, e.g. if the device detected is a mouse, enable a pointer etc.

Nice idea !

Quote:

Originally Posted by shabmanu (Post 1242793)
i m using cssu thumb and kp51 still it not working.what to do with dsc file?can anyone help me?

Whats wrong ? Google is your best friend, so search a bit https://www.google.lt/webhp?hl=lt&ta...w=1920&bih=941

pali 2012-07-25 14:56

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by NiQ (Post 1242791)
But it does include some flash-drive-oriented functions such as automatically mount it and open the file manager. You can do similar things for other devices, e.g. if the device detected is a mouse, enable a pointer etc.

This is done by ke-recv. I removed all mount & flash drive function from script because for mouning is in Maemo system ke-recv daemon.

Instead I fixed ke-recv for automouing all SD card partitions & also usb disk devices. This is fixed in CSSU-T.

shabmanu 2012-07-25 15:09

Re: Announce: USB Mode (easy switch to USB host mode)
 
@pali ,can u explain how to install this ,i downloaded only the deb file and i installed it ,its not working not detecting pendrive ,is it necesary to download dsc file? what to do with that

pali 2012-07-25 15:19

Re: Announce: USB Mode (easy switch to USB host mode)
 
@shabmanu: do you have kernel-power-flasher, CSSU, mceledpattern installed? if yes then reboot and install only DEB package.

Nobless 2012-07-25 17:21

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by pali (Post 1242815)
@shabmanu: do you have kernel-power-flasher, CSSU, mceledpattern installed? if yes then reboot and install only DEB package.

he writed he has
Quote:

Originally Posted by shabmanu (Post 1242793)
i m using cssu thumb and kp51 still it not working


shabmanu 2012-07-25 17:28

Re: Announce: USB Mode (easy switch to USB host mode)
 
@pali do i need to uninstall cssu kernal?i have both cssu and 51r1 kernal

Nobless 2012-07-25 18:02

Re: Announce: USB Mode (easy switch to USB host mode)
 
no... he said what to do

anandv76 2012-07-25 20:49

Re: Announce: USB Mode (easy switch to USB host mode)
 
i am missing the ke-recv 3.19-14 (or >) package as i am on CSSU-S. I am not keen on moving to CSSU-T, is there a way to update only the ke-recv package to make it compatible? many thanks...

Nobless 2012-07-25 21:21

Re: Announce: USB Mode (easy switch to USB host mode)
 
Quote:

Originally Posted by anandv76 (Post 1242943)
i am missing the ke-recv 3.19-14 (or >) package as i am on CSSU-S. I am not keen on moving to CSSU-T, is there a way to update only the ke-recv package to make it compatible? many thanks...

http://talk.maemo.org/showpost.php?p...2&postcount=30


All times are GMT. The time now is 09:45.

vBulletin® Version 3.8.8