How to check if device is USB/PC mode?
Hi,
I was wondering if anyone can help me as to how I can check if the device is in usb or pc suite mode. I checked libosso but couldn't get any clue and also checked the mce-dev but couldn't see usb/pc modes anywhere. Also I tried going through dbus api but couldn't figure out where to look. So, I would be very grateful for any hints/help coz I'm completely noob when it comes to these api. Thanks |
Re: How to check if device is USB/PC mode?
gconftool-2 is your friend ;-)
Output USB disconnected: Code:
Nokia-N900-51-1:~# gconftool-2 -R / | grep usbOutput USB connected with mass-storage-mode: Code:
Nokia-N900-51-1:~# gconftool-2 -R / | grep usb |
Re: How to check if device is USB/PC mode?
Quote:
|
Re: How to check if device is USB/PC mode?
Check out http://maemo.org/development/, you can find a link to the GConf Reference Manual right on the front page. There's also a link to the Code samples right there. maemo-examples contains two example GConf programs (one for just setting/reading a GConf key, and one for listening to changes).
|
Re: How to check if device is USB/PC mode?
Thanks for the tips guys. However, I came across lshal and here's my effort so far without any luck so plz help me if I'm not on the right track. I would be very grateful. Thanks.
Code:
#include <hal/libhal.h> |
| All times are GMT. The time now is 08:46. |
vBulletin® Version 3.8.8