maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Automatic screen rotate for N810 (https://talk.maemo.org/showthread.php?t=19447)

tme 2008-07-31 09:17

Re: Automatic screen rotate for N810
 
I find this very useful but I think it's draining my battery. Consistently since I've
installed this my tablet dies overnight. Watching in top, I can see sliderotate
continuously using approx 0.1%-0.9% CPU which can make a big impact on battery life.
Anyone else seeing this?

emjayes 2008-07-31 10:18

Re: Automatic screen rotate for N810
 
In version 0.0.22 there is the option to use sounds when opening the slide.
This is very poorly implemented and causes the high cpu usage.
I am now testing the next version, which hopefully solves this problem.
Note: it does not matter whether the sounds are turned off, since the
pygame.mixer is still initiated.

The version I am now testing, will unload the mixer if sounds are not enabled, which sound stop the battery drain.

I will make the new version available today so you can test it.

For the impatient: version 0.0.21 should not have this issue.

emjayes 2008-07-31 13:02

Re: Automatic screen rotate for N810
 
New version: 0.0.23diablo.

-If sounds are not used, the mixer is uninitialized, battery drain should stop.
-If sounds are used, well, until I figure a better way to handle it, the battery will drain faster. Your choice.

-fixed the typo in sliderotatesettings.
"Use portrait mode when slide is opened", now reads "Use landscape mode...." like it should.

emjayes 2008-07-31 18:33

Re: Automatic screen rotate for N810
 
Question: Does anyone remember the dbus-send magic to bring up the menu that you normally get when pressing the power button?

I would like to make the powerbutton behave like normal if the checkbox "Use powerbutton to rotate" is unchecked.

I used to know that, but seem to have forgotten it and Google was not helpful enough this time.

qwerty12 2008-07-31 18:43

Re: Automatic screen rotate for N810
 
Arg, using dbus-monitor --system only returns me the value for the Hal device which I am sure you do not want.

I have a little leaked file from Nokia that should help me in this mission, brb.

emjayes 2008-07-31 18:50

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by qwerty12 (Post 209070)
I have a little leaked file from Nokia that should help me in this mission, brb.

Perhaps I should have searched the intranet at work then :D

qwerty12 2008-07-31 19:10

Re: Automatic screen rotate for N810
 
Arrgh, my dbus "skills" really suckzors.

I have been able to find the following: com.nokia.system_ui.request.powerkeymenu_open

Don't know if that helps or if I am barking up the wrong tree. I'll keep trying but hopefully you will figure it out :)

emjayes 2008-07-31 19:57

Re: Automatic screen rotate for N810
 
Seems like this could be it. I must fiddle with it tomorrow to see if it works.

ekarjala 2008-08-01 01:07

Re: Automatic screen rotate for N810
 
I installed .23diablo, disabled sounds and things are looking good. Thanks for the effort on this. Sliderotate really helps me get more from my n810.

The Biles 2008-08-01 21:28

Re: Automatic screen rotate for N810
 
Whenever I rotate, the screen just kind of moves to the side. I can see new icons from the taskbar appear next to the old ones, but the screen itself doesn't actually flip. I'm trying to reinstall xrandr-kernel right now.

That fixed it. Awesome!


All times are GMT. The time now is 23:23.

vBulletin® Version 3.8.8