>From: [email protected] [mailto:meego-dev-
>[email protected]] On Behalf Of Jia-Chi Lai
>Sent: Wednesday, February 16, 2011 11:47 AM
>To: [email protected]
>Subject: [MeeGo-dev] how to log message from screen orientation to
>sensorfw?
>
>hi~
>
>I open a setting application and change the orientation of device.The screen
>will change the orientation.
>
>I would like to log  message from application screen orientation to sensorfw to
>see what happen when I install a qt-mobility rpm.
>the rpm which I build with qt-mobility-1.2.0~beta0+git922-2.11.src.rpm and
>after I install it, then the screen can not change the orientation when I 
>change
>device orientation.
>
>anyone know how to log the message from application screen orientation to
>sensorfw??
>Or any idea about this question??

If I understood correctly, you wish to get log entries whenever sensord detect 
a change in orientation, right?

You can adjust sensord logging level by sending it SIGUSR1. The modes are test, 
debug, warning, critical. Each received signal notches the level up by one. By 
default the level is 'warning', so send it two signals to get 'test' level 
messages. Look for line saying "new orientation value". Expect a lot of noise 
to the log.

You can also start sensord manually and give it the logging level and target 
file as parameters. By default syslog is used. See sensord --help

Depends on what you really are after, you can also try looking at 
Screen.TopEdge context property. (context-listen Screen.TopEdge).

// Timo

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to