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)

gerbick 2008-05-24 06:58

Re: Automatic screen rotate for N810
 
geoff, thanks a ton... however one question. I want to disallow onslide too. how would I accomplish that?

Shucker 2008-05-27 13:52

Re: Automatic screen rotate for N810
 
Apparently, I'm the only guy who can't get this to install.

I clicked on the One-Click Install and the process went awry...
App Installer prompted to: Install Sliderotate 0.0.16

It proceeded to install Sliderotate and crapped out at about 10% saying: Unable to install sliderotate

Any ideas?

Borgel 2008-05-27 15:59

Re: Automatic screen rotate for N810
 
I had the same problem, but couldnt fix it. My solution ended up being totally wiping the tablet, installing sliderotate before I did anything else, and then restoring my backup.

geoffstewart 2008-05-27 16:26

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by gerbick (Post 185383)
geoff, thanks a ton... however one question. I want to disallow onslide too. how would I accomplish that?

I only have a n800, so I didn't even looking into onslide... in fact, it took a few seconds to figure out what you meant :)

I can't test this, but it would seem that the same logic can be used on the function called slide():
Code:

def slide(id,obj):
        f = open(slidestatus,'r')
        status = f.read()
        f.close()
        if status == "closed\n":
                new_orientation = "closed"
                rotate(new_orientation)
        elif status == "open\n":
                new_orientation = "open"
                rotate(new_orientation)

If this snippet, change new_orientation to be normal in the case where you don't want rotation.

Hope this helps.

Geoff

Shucker 2008-05-27 23:37

Re: Automatic screen rotate for N810
 
Did a software update to try installing it from a fresh install and still no luck. All sorts of permissions errors. Formatted the internal memory card, did a Nokia update and all was fine. Actually, beyond fine.... I spent half the afternoon looking for iPhone formatted sites and for the first time, thoroughly enjoyed reading on the n810.

jjstewart 2008-05-28 03:40

Re: Automatic screen rotate for N810
 
Don't think this has been mentioned or maybe I missed it. You can get the "right" rotation by replacing the four instances of "left" with "right" in the previously mentionned sliderotate.py file.

Code:

def rotate(new_orientation):
        orientation = client.get_string('/apps/rotate/orientation')
        if new_orientation == "power":
                if orientation == "right":
                        client.set_string('/apps/rotate/orientation',"normal")
                        rotate='DISPLAY=:0.0 /usr/bin/xrandr -o normal'
                        xmodmap_conf='/usr/lib/sliderotate/normal.xmodmap'
                elif orientation == "normal":
                        client.set_string('/apps/rotate/orientation',"right")
                        rotate='DISPLAY=:0.0 /usr/bin/xrandr -o right'
                        xmodmap_conf='/usr/lib/sliderotate/right.xmodmap'


tagazok 2008-06-01 00:58

Re: Automatic screen rotate for N810
 
OK Houston, I have a problem.

When I use the install script, everything is ok, it ask me if I want to install xserver-xomap (it ask me each time I make /root/install.....) and seems to install it (unpacking, etc...) ans then download a lot of things, then, "Checking kerner image kerner-rx-34_2.6.21.0-osso71-randr2".So, it ask me if I want to flash. I say yes.
Here is what I have :
Are you ready to flash? (yes/no) yes
Erasing 128 Kibyte @ 120000 -- 50 % complete.
Skipping bad block at 0x00140000
Erasing 128 Kibyte @ 1c0000 -- 77 % complete.
Skipping bad block at 0x001e0000
Erasing 128 Kibyte @ 220000 -- 94 % complete.
Writing data to block 0
Writing data to block 20000
Writing data to block 40000
Writing data to block 60000
Writing data to block 80000
Writing data to block a0000
Writing data to block c0000
Writing data to block e0000
Writing data to block 100000
Writing data to block 120000
Writing data to block 140000
Bad block at 140000, 1 block(s) from 140000 will be skipped
Writing data to block 160000
Writing data to block 180000
Kernel flashed, reboot to make it active.
Cleaning up... done.
REBOOT IS REQUIRED!
after rebooting....

So, what is wrong with my tablet? :(
thx

gemniii42 2008-06-01 01:36

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by tagazok (Post 187599)
OK Houston, I have a problem.
<snip>
So, what is wrong with my tablet? :(
thx

It could just be the operator.
I had the same result. Then when I reviewed the thread and found the command "xrandr -o left" it worked. Look back in this thread.

tagazok 2008-06-01 03:25

Re: Automatic screen rotate for N810
 
I tried a few hours ago and it said something like Xlib error randr does not exist for display 0 or something like that but it seems to work now :)

It's awsome (for internet ant canola), thank you :)

windzilla 2008-06-05 17:57

Re: Automatic screen rotate for N810
 
after installing this on a freshly flashed n810 everything seems to run nicely for a bit, but at some point, while surfing the web or doing something non web-related, My n810 freezes and reboots.

The only other program I installed was becomeroot. the crashes happen regardless of weather i have even used the portrait view. I have tried a reflash and reinstall a few times with the same outcome.

I feel that this is a problem somehow involving the kernel because if I use the install but only allow for xomap (on a completely re-flashed device) and deny flashing* the kernel I don't experience the problem. (i do get some UI issues with home/power button obviously)

also My own reboot method after install is not the vi command but rather just turn on/off without being plugged in. any way this could cause the problem?

anyway I'm pretty new to all this and it is a learning process so any help would be appreciated.

I really love how it works in portrait mode, but this freeze/reboot has got to go.

Thanks

*i think i say flash to much


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

vBulletin® Version 3.8.8