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)

anidel 2008-05-21 08:22

Re: Automatic screen rotate for N810
 
I have cloned the system on the memory card. To flash the kernel pointed at in the first thread, should I take some particular care ?

emjayes 2008-05-21 09:10

Re: Automatic screen rotate for N810
 
The kernel is always in the flash memory, only the root fileysystem is in memory card.
So the installation is the same regardless of the location of root filesystem.

See: http://www.internettablettalk.com/fo...7&postcount=85

svs57 2008-05-21 11:45

Re: Automatic screen rotate for N810
 
Is it possible to setup that power button doesn't rotate screen.
Now it rotate and call menu.

PowerKeyShortAction=menu
PowerKeyLongAction=poweroff
PowerKeyDoubleAction=softpoweroff

Texrat 2008-05-21 12:18

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by josiahg777 (Post 183994)
What the hell?? *Scratches head at blatant random spam*

/me reports post to site admin instead. ;)

ldrn 2008-05-21 22:20

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by svs57 (Post 184056)
Is it possible to setup that power button doesn't rotate screen.
Now it rotate and call menu.

PowerKeyShortAction=menu
PowerKeyLongAction=poweroff
PowerKeyDoubleAction=softpoweroff

Quote:

Originally Posted by Snoshrk (Post 183948)
Ok, My goal is: only use the App Switch long press to rotate (N800)

I have changed all of the options above to "...=menu"

How do I make this change permanent?
Reboot doesn't seem to change anything...

I feel that I am missing something really obvious...:o


Thanks


I like to use the power button to rotate and not long press on home, myself, but I think the way to change things will be similar.

Open a terminal and become root, then type:
vi /usr/lib/sliderotate/sliderotate.py

Find the line that says "bus.add_signal_receiver(power,"
-- and so on, and comment it out with a "#" sign in front. (Press a to enter edit mode, then escape, shift+z shift+z to save.)

Snoshrk 2008-05-21 23:51

Re: Automatic screen rotate for N810
 
Thanks for the suggestions:)

However I have tried the edit sliderotate.py and rebooted :confused:needed or not :confused:

Did not work, Power button still rotates screen.:(

Thanks

geoffstewart 2008-05-22 02:06

Re: Automatic screen rotate for N810
 
for my changes to sliderotate.py to take effect, all I did was run as root: /etc/init.d/sliderotate restart

I changed the sliderotate.py slightly differently than previously posted. I made the function power() just set the rotation to normal. Near the bottom of the file is this function:

-------
def power(id,obj):
if not locked:
new_orientation = "normal"
rotate(new_orientation)
-------
the new_orientation used to be set to "power", but with it set to normal, now only the longpress on the Home button rotates the screen.

Hope this helps.

Geoff

Snoshrk 2008-05-22 02:30

Re: Automatic screen rotate for N810
 
Geoff,

That did the trick! :D

Thanks
Matt

emjayes 2008-05-23 18:18

Re: Automatic screen rotate for N810
 
Sorry for my absence, but I have been quite busy lately and have not been able to respond.

I will make the buttons and actions configurable as soon as I can spare some time.

emjayes 2008-05-23 18:19

Re: Automatic screen rotate for N810
 
pre-emptively for Yorker: http://www.internettablettalk.com/fo...176#post185176

the install-xrandr-kernel script takes care of the downloading. You should have a working setup if all went well.


All times are GMT. The time now is 16:34.

vBulletin® Version 3.8.8