| Prev |   2     3   4   5     6   | Next | Last
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

emjayes 2008-06-17 12:04

Re: Automatic screen rotate for N810
 
New version: 0.0.17

Sliderotate settings in Extras

You can select the following parameters:

Use/do not use power key to rotate (for powerlaunch users)
Use/do not use home key to rotate
Return to landscape mode when slide is opened / stay in portrait mode
Return to portrait mode when slide is closed / stay in landscape mode.

anidel 2008-06-17 12:33

Re: Automatic screen rotate for N810
 
Do we need to re-run the install-xandr-kernel executable/script again if we just update from a previous version ?

emjayes 2008-06-17 12:39

Re: Automatic screen rotate for N810
 
No, only first timers will have to to that.
Must edit the postinst script to reflect that someday :D

anidel 2008-06-17 12:40

Re: Automatic screen rotate for N810
 
The Application Manager calls different script whether the user is upgrading, fist time installing or removing a script.
You may want to check out how the tutorials.

I do have to follow them as well :)

lm2 2008-06-24 18:29

Re: Automatic screen rotate for N810
 
I've been waiting to install this for a long time! Working now with a fresh Diablo flash. I have python installed, but when I click on your initial install link, app manager says that the following Application packages are missing: xrandr, flash-and-reboot, initfs-flasher, kernel-diablo-flasher.

Is this because I have to add "chinook" as the distribution in certain repositories? If so, which ones? Thanks!

UPDATE: Added your repo and did apt-get update and apt-get -f install, and all seems well, except I still can't seem to snag xrandr....

RichS 2008-06-25 11:44

Re: Automatic screen rotate for N810
 
Adding 'diablo chinook' to the rotate repo should do it. The only problem I have had thus far is that flashing the kernel results in the boot sequence not getting past the nokia splash screen. I've tried it twice so I don't think it was my install and it worked fine pre-diablo. Any ideas?

emjayes 2008-06-25 14:09

Re: Automatic screen rotate for N810
 
the kernel is way too different in diablo as is the xserver-xomap too.
using chinook kernel will not help, you will not get past the flash screen.

I am currently in summer vacation, so development is pretty much in halt.

If you want rotation now, use chinook, if you want diablo, be patient. All good things etc.

I have asked an iNDT manager, that I know in person , to bundle the kernel and server as installable package. Let's see if they want to do it now that diablo is out.

lm2 2008-06-25 14:17

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by emjayes (Post 195599)
If you want rotation now, use chinook, if you want diablo, be patient. All good things etc.

Or you could install without slide-rotation until this is made functional for diablo. Instructions here.

qwerty12 2008-06-27 05:55

Re: Automatic screen rotate for N810
 
Here, I've rebuilt the xserver and kernel for diablo (this is the diablo kernel and the xserver from diablo, no chinook stuff present):

http://www.internettablettalk.com/fo...&postcount=194

If you want to have a go at installing this in diablo, make sure you don't flash the xserver and kernel (both chinook components) that come with sliderotate.

Sevanteri 2008-06-27 18:20

Re: Automatic screen rotate for N810
 
I'm newbie for tablets. Got my N810 today :)

I installed the sliderotate, and it installed perfectly.
But then I try to run "./install-xrandr-kernel" and it says "/bin/sh: ./install-xrandr-kernell: not found"

Do I need to download the package somewhere?

EDIT:

Ok. I found the problem. I haven't flashed the kernel :D

Is there a way to flash it with Windows. I don't have a Linux computer :(

RichS 2008-06-27 22:13

Re: Automatic screen rotate for N810
 
Firstly which version of the operating system are you running? If its one beginning with 4.something do not flash the kernel, itnwas designed for the previous version and will cause your tablet not to boot. If you are running the version beggining 3.something and dowloaded the one click install from the first post in this thread the do the following:
gain root then type
/root/install-xrandr-kernel
Then reboot
Hope that helps

RichS

Sevanteri 2008-06-28 06:16

Re: Automatic screen rotate for N810
 
I have chinook, and it's 4.0, right?
So this wont be working on my device?

RichS 2008-06-28 08:30

Re: Automatic screen rotate for N810
 
Chinook is fine, Diablo (the new OS) wont work with it yet. Go ahead and follow the inhstructions for the on tablet flashing given on the first page.

Sevanteri 2008-06-28 09:08

Re: Automatic screen rotate for N810
 
Thanks. Got it working. But how do I make it flip right instead of left?
I like it better that way.

qwerty12 2008-06-28 09:18

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by RichS (Post 196997)
Chinook is fine, Diablo (the new OS) wont work with it yet. Go ahead and follow the inhstructions for the on tablet flashing given on the first page.

Not true, I updated all this for diablo.

http://www.internettablettalk.com/fo...&postcount=194

Quote:

Originally Posted by Sevanteri (Post 197002)
Thanks. Got it working. But how do I make it flip right instead of left?
I like it better that way.

http://www.internettablettalk.com/fo...&postcount=230

Sevanteri 2008-06-28 11:32

Re: Automatic screen rotate for N810
 
Ok, another newbie question. Where do I find the sliderotate script?

Sevanteri 2008-06-28 19:29

Re: Automatic screen rotate for N810
 
Ok. Thanks for your help guys. I found the file and everything. Works fine except for the background looks ugly when in portrate, but I'm gonna fix that myself.
Atleast try to. :)

EDIT:
Okay... No idea how to change bg image from Python :D
Tried google too :)

gerbick 2008-06-30 03:28

Re: Automatic screen rotate for N810
 
thanks qwerty12. works great for me.

emjayes 2008-07-21 12:15

Re: Automatic screen rotate for N810
 
Diablo is now supported: http://mikie.dy.fi/maemo/sliderotate-diablo.install
or https://garage.maemo.org/frs/?group_...elease_id=1957

It uses the kernel and xserver-xomap from qwerty12 as described in

http://www.internettablettalk.com/wi...tion_in_Diablo

Backup before installing. I have made several successful installs, but as always YMMV.

emjayes 2008-07-22 11:11

Re: Automatic screen rotate for N810
 
New version 0.0.21.diablo now has a configurable portrait orientation for those who want it to rotate right (hardware buttons down) instead of left.

wipeout140 2008-07-22 21:40

Re: Automatic screen rotate for N810
 
Hi emjayes, Quick question if i have qwerty12 way installed and working do have do anything different to installing your way. Only reason i want know is because i wanted test out "In N810 the screen orientation is automatically set depending on the state of the slide keyboard."

Thanks

emjayes 2008-07-23 05:48

Re: Automatic screen rotate for N810
 
If you have the rotation support already installed, you can just skip running of install-xrandr-kernel script, since you already have the kernel and xserver that support rotation.

So yes, you can install sliderotate to get the automatic rotation with the kernel already flashed.

wipeout140 2008-07-23 12:03

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by emjayes (Post 206108)
If you have the rotation support already installed, you can just skip running of install-xrandr-kernel script, since you already have the kernel and xserver that support rotation.

So yes, you can install sliderotate to get the automatic rotation with the kernel already flashed.

Thanks for your quick reply

ekarjala 2008-07-24 13:42

Re: Automatic screen rotate for N810
 
This worked flawlessly for me on an n810 running Diablo, using just the top section of the posting (had to install becomeroot first) to add the correct catalog, load the package and run the install. Great functionality, thanks so much!

emjayes 2008-07-24 14:36

Re: Automatic screen rotate for N810
 
New version 0.0.22.diablo now has the ability to use sounds when slide state is changed.

From:
http://www.internettablettalk.com/fo...ad.php?t=22199

http://mikie.dy.fi/maemo/screenshot00.png

zehjotkah 2008-07-25 18:20

Re: Automatic screen rotate for N810
 
i've a question... is it correct, that there is a chebox for "Use PORTRAIT mode..."
shouldn't it be landscape mode instead?? the action is correct, only the term is wrong...
another question: after installing sliderotate there remain some .debs...
in x terminal:
root
ls
there you can see all the installation stuff.. can it be removed?? and if yes, how?
thanks.
i can't deinstall anymore via redpill mode gizmo-installer, skype-installer and rhapsody-installer.

emjayes 2008-07-25 19:48

Re: Automatic screen rotate for N810
 
You are correct: It should read "landscape". I will fix this in next version
Yes, you can delete the debs after succesful installation.
rm <filename> is the command.
I will make the installer remove them as well in the next version.

The Biles 2008-07-27 12:01

Re: Automatic screen rotate for N810
 
Ok, I followed all the instructions for the Diablo installation. I ran the commands in XTerm and rebooted, but it won't rotate. The power menu doesn't appear when I hit the power key, so I know that part worked. And ideas?

pwsn 2008-07-29 23:42

Re: Automatic screen rotate for N810
 
When i rotate to portrait and and open the keyboard it switches back to landscape fine. When i close, it doesn't go back to portrait. I've tried the box checked and unchecked. And it seems to have stopped working alltogether after a reboot.

Something i'm missing?

sellier 2008-07-30 01:05

Re: Automatic screen rotate for N810
 
Just wanted to say thanks to all the developers for making this such a great product and easy to install.

I'm running the current Diablo on my n810. All I had to do was run http://mikie.dy.fi/maemo/sliderotate-diablo.install let App Manager and install-xrandr-kernel do their things and everything works great!

Thanks again, you guys (gals?) are amazing!


| Prev |   2     3   4   5     6   | Next | Last
All times are GMT. The time now is 21:02.

vBulletin® Version 3.8.8