On Thu, 2008-07-31 at 16:10 +0200, Thomas Hecker wrote:
> Hi all,
>
> Starting the Photo or Music application results in the error message
> "Application is disabled while in docking mode".
>
> What does this message mean and how can I get rid of it?
This message "should" mean that you have your device connected to your
PC via USB (i.e. your device is connected to the PC in much the same way
your camera or music player connects from USB-Client to USB-Host), and
that the OS has unmounted your media partition and dedicated that
partition to the PC.
If the device is not configured correctly then the application will be
fooled into thinking the device is docked when it's not really docked.
The way this is supposed to work is:
* The device specific package creates a default gconf entry
for /system/usbc/mount_point. This lets applications know where to find
media data. If a given platform doesn't support usb client, then it is
expected that the gconf entry will not exist and applications will
fallback to default locations for media.
* The platform configuration will be configured to create the
appropriate vfat partition and mount that partition in the same location
as what the platform configuration package set
in /system/usbc/mount_point
* The application attempts access data in the path set
in /system/usbc/mount_point, and if the data is inaccessible then the
application assumes the device has been unmounted as is in "docking
mode".
I think a lot of people haven't understood this, and are either not
really using a vfat partition, or are mounting it in some other location
then what their platform configuration setup
in /system/usbc/mount_point. So... if the system integrator just copied
over the crownbeach configuration package (which will
set /system/usbc/mount_point to "/mediasync"), but isn't really mounting
the media partition on /mediasync, then the app goes and attempts to
access data in /mediasync (which doesn't exists, so the operation
fails), and the app assumes the device is docked.
The best way of fixing this is fixing the platform configuration, but if
you are just wanting to fix a given installation then you can
just /system/usbc/mount_point to the real media path (like
perhaps /home/ume/media/).
--rusty
_______________________________________________
dev mailing list
[email protected]
https://www.moblin.org/mailman/listinfo/dev