Critical and others problems with hostmode

Critical and others problems with hostmode

James Brown
Karma: 30
2012-03-29 07:17 UTC
Device - N900
OS - Maemo 5
V. 21.2011.38-1 (CSSU)
kernel-power 1:2.6.28-10power50
hostmode-gui 0.3

With that "hostmode-gui" (h-e-n) I can easily initialize USB-device but
it don't want to mount on my FS with that gui. So, I need to mount it
(and umount) mannualy.
Today I found a critical problem with using h-e-n. I did not use it from
the last summer and I don't remember what of version of "kernel-power" I
used that time (of course. not v.50 as now :) ) and whether I used CSSU
or not but I had no that problem at that time. (But at that time it
needs for me to start bme mannualy after closing h-e-n windows becouse
it didn't start automatically and at one time I even had problems with
(re)booting my device).
Now, since today, when I close the "h-e-n" gui, my device suddenly is
shutting down and I need to boot it for working with it.
How can I resolve the above-mentioned issues?
  •  Reply

Re: Critical and others problems with hostmode

Pali Rohár
Karma: 1382
2012-03-29 08:18 UTC
On Thursday 29 March 2012 07:17:49 James Brown wrote:
> Device - N900
> OS - Maemo 5
> V. 21.2011.38-1 (CSSU)
> kernel-power 1:2.6.28-10power50
> hostmode-gui 0.3
>
> With that "hostmode-gui" (h-e-n) I can easily initialize
> USB-device but it don't want to mount on my FS with that gui.
> So, I need to mount it (and umount) mannualy.
> Today I found a critical problem with using h-e-n. I did not
> use it from the last summer and I don't remember what of
> version of "kernel-power" I used that time (of course. not
> v.50 as now :) ) and whether I used CSSU or not but I had no
> that problem at that time. (But at that time it needs for me
> to start bme mannualy after closing h-e-n windows becouse it
> didn't start automatically and at one time I even had problems
> with (re)booting my device).
> Now, since today, when I close the "h-e-n" gui, my device
> suddenly is shutting down and I need to boot it for working
> with it. How can I resolve the above-mentioned issues?

Hi,

shutdown after closing h-e-n GUI can be caused by starting BME
when bq27x00_battery driver is loaded. BME and bq27x00_battery
cannot be loaded at same time. So make sure that bq27x00_battery
is blacklisted in /etc/modprobe.d/* and also is NOT in list
/etc/modules

automounting FS in usb hostmode (without pressing mount button or
mounting via terminal) will work if you update kernel-power to
v50 and ke-recv to last version. Last version of ke-recv will be
updated with next CSSU update. So wait for next CSSU and
automouting will work.

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk90GsEACgkQi/DJPQPkQ1JbtwCcCUZ0+95KXaZsikzBl0SiQIRb
JKsAoIoxsihjgupbGY2x2gNNH8hXo5nC
=g6G+
-----END PGP SIGNATURE-----

  •  Reply

Re: Critical and others problems with hostmode

James Brown
Karma: 30
2012-03-29 09:31 UTC
On 29.03.2012 08:18, Pali Rohár wrote:
> On Thursday 29 March 2012 07:17:49 James Brown wrote:
>> Device - N900
>> OS - Maemo 5
>> V. 21.2011.38-1 (CSSU)
>> kernel-power 1:2.6.28-10power50
>> hostmode-gui 0.3
>>
>> With that "hostmode-gui" (h-e-n) I can easily initialize
>> USB-device but it don't want to mount on my FS with that gui.
>> So, I need to mount it (and umount) mannualy.
>> Today I found a critical problem with using h-e-n. I did not
>> use it from the last summer and I don't remember what of
>> version of "kernel-power" I used that time (of course. not
>> v.50 as now :) ) and whether I used CSSU or not but I had no
>> that problem at that time. (But at that time it needs for me
>> to start bme mannualy after closing h-e-n windows becouse it
>> didn't start automatically and at one time I even had problems
>> with (re)booting my device).
>> Now, since today, when I close the "h-e-n" gui, my device
>> suddenly is shutting down and I need to boot it for working
>> with it. How can I resolve the above-mentioned issues?
>
> Hi,
>
> shutdown after closing h-e-n GUI can be caused by starting BME
> when bq27x00_battery driver is loaded. BME and bq27x00_battery
> cannot be loaded at same time. So make sure that bq27x00_battery
> is blacklisted in /etc/modprobe.d/* and also is NOT in list
> /etc/modules

Thanks. Yes, I have the bq27x00_battery driver is loaded:
lsmod | grep bq27x00_battery
bq27x00_battery 6480 0
power_supply 6916 1 bq27x00_battery

I enabled it for purposes getting temperature as it discribed in the
page "http://wiki.maemo.org/Overclocking"
So, if I want use h-e-n I need to disable it?

>
> automounting FS in usb hostmode (without pressing mount button or
> mounting via terminal) will work if you update kernel-power to
> v50 and ke-recv to last version. Last version of ke-recv will be
> updated with next CSSU update. So wait for next CSSU and
> automouting will work.
>
>
Thanks for your answer.
But I was not strictly correct, I cannot mount it not only automatically
but also using mount-button in h-e-x. I can mount only via terminal
command.
  •  Reply

Re: Critical and others problems with hostmode

James Brown
Karma: 30
2012-03-29 09:38 UTC
On 29.03.2012 08:18, Pali Rohár wrote:
> On Thursday 29 March 2012 07:17:49 James Brown wrote:
>> Device - N900
>> OS - Maemo 5
>> V. 21.2011.38-1 (CSSU)
>> kernel-power 1:2.6.28-10power50
>> hostmode-gui 0.3
>>
>> With that "hostmode-gui" (h-e-n) I can easily initialize
>> USB-device but it don't want to mount on my FS with that gui.
>> So, I need to mount it (and umount) mannualy.
>> Today I found a critical problem with using h-e-n. I did not
>> use it from the last summer and I don't remember what of
>> version of "kernel-power" I used that time (of course. not
>> v.50 as now :) ) and whether I used CSSU or not but I had no
>> that problem at that time. (But at that time it needs for me
>> to start bme mannualy after closing h-e-n windows becouse it
>> didn't start automatically and at one time I even had problems
>> with (re)booting my device).
>> Now, since today, when I close the "h-e-n" gui, my device
>> suddenly is shutting down and I need to boot it for working
>> with it. How can I resolve the above-mentioned issues?
>
> Hi,
>
> shutdown after closing h-e-n GUI can be caused by starting BME
> when bq27x00_battery driver is loaded. BME and bq27x00_battery
> cannot be loaded at same time. So make sure that bq27x00_battery
> is blacklisted in /etc/modprobe.d/* and also is NOT in list
> /etc/modules
>

Yeah, thanks, there was that problem. After rmmoding bq27x00_battery it
works without the problem of device's OS shutting down.
  •  Reply

Re: Critical and others problems with hostmode

Pali Rohár
Karma: 1382
2012-03-29 09:38 UTC
On Thursday 29 March 2012 09:31:34 James Brown wrote:
> On 29.03.2012 08:18, Pali Rohár wrote:
> > On Thursday 29 March 2012 07:17:49 James Brown wrote:
> >> Device - N900
> >> OS - Maemo 5
> >> V. 21.2011.38-1 (CSSU)
> >> kernel-power 1:2.6.28-10power50
> >> hostmode-gui 0.3
> >>
> >> With that "hostmode-gui" (h-e-n) I can easily initialize
> >> USB-device but it don't want to mount on my FS with that
> >> gui.
> >> So, I need to mount it (and umount) mannualy.
> >> Today I found a critical problem with using h-e-n. I did not
> >> use it from the last summer and I don't remember what of
> >> version of "kernel-power" I used that time (of course. not
> >> v.50 as now :) ) and whether I used CSSU or not but I had no
> >> that problem at that time. (But at that time it needs for me
> >> to start bme mannualy after closing h-e-n windows becouse it
> >> didn't start automatically and at one time I even had
> >> problems
> >> with (re)booting my device).
> >> Now, since today, when I close the "h-e-n" gui, my device
> >> suddenly is shutting down and I need to boot it for working
> >> with it. How can I resolve the above-mentioned issues?
> >
> > Hi,
> >
> > shutdown after closing h-e-n GUI can be caused by starting
> > BME
> > when bq27x00_battery driver is loaded. BME and
> > bq27x00_battery
> > cannot be loaded at same time. So make sure that
> > bq27x00_battery is blacklisted in /etc/modprobe.d/* and also
> > is NOT in list /etc/modules
>
> Thanks. Yes, I have the bq27x00_battery driver is loaded:
> lsmod | grep bq27x00_battery
> bq27x00_battery 6480 0
> power_supply 6916 1 bq27x00_battery
>
> I enabled it for purposes getting temperature as it discribed
> in the page "http://wiki.maemo.org/Overclocking"
> So, if I want use h-e-n I need to disable it?

You cannot run BME and bq27x00_battery together. So you can load
bq driver when BME is stopped and before starting BME driver must
be unloaded.

So normal usage is: stop BME, load bq driver.... then remove bq
driver and start BME.

h-e-n gui is stopping BME, so when h-e-n is open you can load bq
driver, but do not forget to unload it before closing h-e-n.

>
> > automounting FS in usb hostmode (without pressing mount
> > button or mounting via terminal) will work if you update
> > kernel-power to v50 and ke-recv to last version. Last
> > version of ke-recv will be updated with next CSSU update. So
> > wait for next CSSU and automouting will work.
>
> Thanks for your answer.
> But I was not strictly correct, I cannot mount it not only
> automatically but also using mount-button in h-e-x. I can
> mount only via terminal command.

If you can mount it via terminal, automounting with new version
of ke-recv will work. Wait for next CSSU. If it will not work
with next CSSU + kp50 write me then.

--
Pali Rohár
pali.rohar@gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk90La4ACgkQi/DJPQPkQ1L+HACfdVjh0JGIdkmfxDwMw82AAIG4
bWEAoJcOXzvyomRQMVxJOsf55vAAecPS
=jyDb
-----END PGP SIGNATURE-----

  •  Reply