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)
-   -   How to rotate screen on os2008 (https://talk.maemo.org/showthread.php?t=17842)

Pretoriano 2008-03-13 14:44

How to rotate screen on os2008
 
Here is a how to rotate screen on os2008, i've benn waiting this for a long time :D.

http://behindmaemolines.blogspot.com...2008-n8x0.html

Edit: Thanks to nemo for the following instructions:

From one noob to the others.

I've had my tablet for a week now and it's been my first real experience with linux. Someone asked for noob friendly instructions for screen rotation, and, after reading this entire thread I've managed to get it to work...so to show my thanks I figured I'd post step by step instructions for those with no linux experience.

All that being said, these instructions were all found here in this thread. Thanks to everyone who worked to make this possible!

1. Download and install Becomeroot.
- Here: http://www.gronmayer.com/it/dl.php?id=136
- click 'open', click 'ok' to Add catalogue Eko One
- click 'ok' to refresh application list, open the Application Manager
- click 'browse installable applications', click 'all', click on 'Becomeroot'
- click 'install', click 'ok', click 'ok' on the notice, click 'ok' when successfully installed.
- close the Application Manager
2. Installing everything (hit enter after typing each line in the terminal)
- Go to 'utilities', click on 'Xterminal'
- Type sudo gainroot
- Type cd MyDocs
- Type apt-get install wget
- Type wget http://fanoush.wz.cz/maemo/kernel-2....otation.tar.gz
- Type wget http://fanoush.wz.cz/maemo/kernel_flasher.tgz
- Type tar zxvf kernel_flasher.tgz
- Type tar zxvf kernel-2.2007.50-2-rotation.tar.gz
- Type mv zImage kernel_flasher/
- Type cd kernel_flasher/
- Type ./kernel_flash zImage
Close terminal
3. Red Pill Mode
- go to 'Settings', 'Application Manager',
- click on the upper lefthand corner, click on 'Tools'
- Choose 'Application Catalogue', choose 'New'
- Type matrix in 'website' and click cancel
- Choose the red pill
4. Update the xomap
- click here: http://sse2.net/rotate/pool/main/x/x...4202_armel.deb
- click 'open', click 'ok'
5. Install the rotate applet
- click here: http://sse2.net/rotate/rotate.install
- click 'open', click 'ok'
6. Exit Red Pill Mode
- follow the steps outlined in 'Red Pill' but choose the blue pill instead.
7. Say thanks to the wonderful folks who made it this easy for the rest of us.

There it is, sorry it's so long.

zeez 2008-03-13 15:13

Re: How to rotate screen on os2008
 
Cool, also would be nice if it was possible without flashing...

Pretoriano 2008-03-13 15:15

Re: How to rotate screen on os2008
 
it's only the kernel, you don't lose the configs, programs or any data. Bye!

unique311 2008-03-13 15:15

Re: How to rotate screen on os2008
 
I read that if you let the device go to sleep while using the rotate feature, the screen goes blue, and you are left having to reboot.
Is this fix?

Pretoriano 2008-03-13 15:18

Re: How to rotate screen on os2008
 
I just tried to sleep with screen rotated, and there's no problem. I think that it's fixed. bye!

unique311 2008-03-13 15:19

Re: How to rotate screen on os2008
 
Well, lets go swimming then....

Benson 2008-03-13 15:45

Re: How to rotate screen on os2008
 
You should be able to flash the kernel on the device with Fanoush's kernel-flasher.

With the existing software (and xmodmap, for the d-pad) upside-down should work for lefties. I'm gonna have to do this to experiment with the portrait modes...

zeez 2008-03-13 15:51

Re: How to rotate screen on os2008
 
AWESOME! Works great. Potraitmode is great for Canola, MaemoMapper and microb for a few websites!

qwerty12 2008-03-13 16:02

Re: How to rotate screen on os2008
 
Any chance fanoush will include this into his kernel?

netss 2008-03-13 16:07

Re: How to rotate screen on os2008
 
exelent... thanks

superbondbond 2008-03-13 16:39

Re: How to rotate screen on os2008
 
Can anybody tell us how the on-screen keyboard behaves in portrait mode? Does it work at all?

I can image myself rotating so the top of the screen is where the camera and light sensor are, and sliding the keyboard out to the left. It might be reasonable to type using my left thumb.

My experience with my old Zaurus was that a narrower on-screen keyboard (FITALY layout) worked really well.

zeez 2008-03-13 16:45

Re: How to rotate screen on os2008
 
On my n800 the Stylus keyboard is pretty much complete, but the buttons are VERY small. The Thumbkeyboard consist only of about half of the keyboard, so it's useless. Unless you constantly have to type: The Rotation is VERY fast (like the switch from windowed, to fullscreen mode) , so you could just switch to normal layout for typing.

iskarion 2008-03-13 17:37

Re: How to rotate screen on os2008
 
Quote:

Originally Posted by qwerty12 (Post 154464)
Any chance fanoush will include this into his kernel?

This would be really great. This rotation feature is really excellent, but on the other hand I dont' want to loose the featrues from fanoush's kernel like pptp support.

dan 2008-03-13 18:52

Re: How to rotate screen on os2008
 
I have an n800 with os2008 and fanoush's dual boot and Penguinbait's KDE for dual boot. Any one with that setup try this rotation kernal? I don't want to lose this setup. Any help, tips or advise would be greatly appreciated. Dan

drizek 2008-03-13 19:01

Re: How to rotate screen on os2008
 
I have never flashed the n800 kernel before. I am trying to follow the directions, but I am not sure if I am supposed to be flashing it from the n800 itself or from a computer.

Edit: Nevermind. Got it.

Follow these instructions on your pc http://maemo.org/community/wiki/howt...magewithlinux/

nhanquy 2008-03-13 19:03

Re: How to rotate screen on os2008
 
Use fanoush kernel_flasher is much much easier.

http://www.wahlau.org/updating_n800_..._different_way

But is there a better way to update the kernel on the MMC instead of on flash?

More info:

- kernel_flasher runs on N800 so you don't need a pc!
- just download *deb kernel-RX* file to a directory you choose
- kernel_flasher does not need any option on the command line (-k -f )

fanoush 2008-03-13 19:16

Re: How to rotate screen on os2008
 
Quote:

Originally Posted by iskarion (Post 154503)
This rotation feature is really excellent, but on the other hand I dont' want to loose the featrues from fanoush's kernel like pptp support.

Will add rotation patch to N8x0 pptp kernel on my site. Well, in fact adding similar code to 770 kernel shouldn't be too hard too, videochip is similar and also have this functionality. Not sure if xserver in hacker edition is easy to patch and rebuild win randr support though.

linux_author 2008-03-13 19:39

Re: How to rotate screen on os2008
 
- this is major, major news and a very good development - congrats to the developers for this...

- now why, why, why didn't Nokia implement this from the beginning?

- and is there any chance in h-e-double-hockey-sticks that this will make it into the next ITOS release?

qwerty12 2008-03-13 19:40

Re: How to rotate screen on os2008
 
Thanks fanoush :). I can forget trying to compile some half-arsed version by my me :\

drizek 2008-03-13 20:13

Re: How to rotate screen on os2008
 
Quote:

Originally Posted by linux_author (Post 154549)
- this is major, major news and a very good development - congrats to the developers for this...

- now why, why, why didn't Nokia implement this from the beginning?

- and is there any chance in h-e-double-hockey-sticks that this will make it into the next ITOS release?

Nokia will not support this because it means that they will have to ensure that all their apps work with it. I remember adding landscape mode to Windows Mobile 2003 resulted in a lot of app breakage.

Anyway, thanks a lot for this. I didn't realize how useful rotating the screen could be until I loaded up an ebook. Much better.

fanoush 2008-03-13 20:13

Re: How to rotate screen on os2008
 
Quote:

Originally Posted by linux_author (Post 154549)
- now why, why, why didn't Nokia implement this from the beginning?

Well, actually one Nokian did in 2005
http://lemody.blogspot.com/2005/11/xrandr-o-2.html
but the priorities were (and still are) set differently :-) On the other hand I doubt IT2005 or 6 would resize so nicely or even support xrandr extension in xserver so it was not easy at that time. Once I saw it (in 2005) I tried to add to kernel but kernel rotation support is only part of it, without support in xserver it is not much useful. And understanding and recompiling xserver in 2.x SDK for OS2006 was not easy, such old SDKs are missing lot of dependencies. So I put the idea to my long TODO list. 3.x SDKs (bora, OS2007) are much easier in this regard so maybe adding it to xserver in OS2007 woudn't be that hard after all. Still, OS2007 apps may not resize so nicely, they are slowly working or resolution independence for years so OS2008 is almost there but OS2007 is much older code.

GeraldKo 2008-03-13 20:19

Re: How to rotate screen on os2008
 
Quote:

Originally Posted by drizek (Post 154560)
I didn't realize how useful rotating the screen could be until I loaded up an ebook. Much better.

FBReader supports screen rotation even with the standard OS2008 (and probably other OSes, too). For eBook reading, at least with FBReader, no need for this kernel tweak. FBReader is *great* in portrait mode.

Benson 2008-03-13 20:25

Re: How to rotate screen on os2008
 
For any wondering what works and how well, here's some stuff:

Some issues:
Wish the side buttons in hildon-input-method stuff would be proportioned to screen width... The stylus-board is just off the edge of usability. A little wider keys, and I'd be using the world's tallest xterm. :D I'm gonna get xkbd set up to cover the stylus-board; it'll displace whatever window, while xkbd does the work.

PDF reader "fit width" doesn't. It fits to 800px, grrrr...
eVince is cool, though, unsurprisingly.

The main menu is, ummm, broken. Doesn't know how high the screen is, and the submenus are half off the screen, which requires the d-pad to scroll through any long submenus.

Skype is a basket-case.

The control panel is broke.

See any patterns yet?

None of the camera apps I've tried are working; probably direct framebuffer rendering is confused.

Good Stuff:
GMail iPhone version (with greasemonkey) is now awesome...

The task-switcher menu is great, gets 800px high with 10 windows in it.

As mentioned before, eVince is good; in conjunction with eVince's ability to rotate images, portrait modes yield a landscape mode with portrait pages, fit to the height of the screen, and scrolling horizontally. The same eVince mode, but without the RandR, is good for scrolling 8.5x11 pages horizontally.

Gnumeric works fine; one of few apps that look at home in portrait windowed mode, though of course better in fullscreen. Portrait will be good for many spreadsheets, as mine are typically more columnar than lamellar.

Xournal is good.

VNC works perfectly; portrait mode + 1024x768 = scrolling horizontally only.

Oh, and I'm posting this with Opera on the desktop via rdp, that works too. Kind cool, if you've never seen WinXP on 480x800.

The clock app works, mostly.

File Manager actually gets by OK.


Quick question: Anyone know where I can get xrandr binary? Yeah, yeah, I'll go search now. (I need it to make powerlaunch flip screen and xmodmap d-pad, as I don't really have room for the applet and want the d-pad to work.)
Found it! from x11-xserver-utils in sid armel; I'm posting it and a little script below.

konttori 2008-03-13 20:25

Re: How to rotate screen on os2008
 
I assume that reading web pages might be also very comfortable. Man. that looks so cool I have to immediately try it out!

Benson 2008-03-13 20:35

Re: How to rotate screen on os2008
 
Do so, it's nice, easy, and has no ill effects as long as you don't rotate it. (Ill effects accompanying rotation are limited to high blood pressure caused by seeing how some (mainly corporate-developed) apps display.)

konttori 2008-03-13 20:59

Re: How to rotate screen on os2008
 
I just tested. It's freaking awesome!
Hmm... looks very interesting indeed. by the way, browser is excellent on portrait mode!

fanoush 2008-03-13 21:22

Re: How to rotate screen on os2008
 
Quote:

Originally Posted by iskarion (Post 154503)
This would be really great. This rotation feature is really excellent, but on the other hand I dont' want to loose the featrues from fanoush's kernel like pptp support.

It is here, http://fanoush.wz.cz/maemo/kernel-2....otation.tar.gz with minimal testing. Just tried to install rest from http://sse2.net/rotate/ and rotation works. It also contains Japanese FM band patch by pycage. Otherwise it is same as the one linked from pptp IT2008 section.

EDIT: there is this bug someone mentioned, after display suspend and restore rotation is not restored properly and display is messed up, please wait for the fix

EDIT2:hopefully fixed now and re-uploaded

Benson 2008-03-13 21:42

Re: How to rotate screen on os2008
 
1 Attachment(s)
Here's a script to xmodmap the dpad and rotate the screen. Also included is the xrandr binary, which is a CLI for the RandR extension, and is used by the script. Install them both to executable places (I put xrandr in /usr/bin, and rotate.sh in /home/user/apps) and invoke as:
Code:

rotate.sh [ cw | ccw | normal | left | inverted | right ]
EDIT: Use the script below, if you want to be able to rotate one notch clockwise or counterclockwise from current position.
EDIT: Script rezipped; now this zip contains the most recent version of the script, able to rotate one notch clockwise or counterclockwise from current position.

qwerty12 2008-03-13 21:59

Re: How to rotate screen on os2008
 
@Benson

Nice script but is there a mode where the script can cycle each mode on each run? Use for adding to cmd-navigator for example.

Benson 2008-03-13 22:01

Re: How to rotate screen on os2008
 
Ummm, sure, you could do that. I was thinking for powerlaunch, so:
power key -> some other key -> whichever direction you want up (on d-pad).
But, hey, why not...
It'll be here in a few minutes.

qwerty12 2008-03-13 22:06

Re: How to rotate screen on os2008
 
I removed my powerlaunch. Back to good old mce...

Thanks :)

Benson 2008-03-13 22:28

Re: How to rotate screen on os2008
 
Here it is, new and improved:
Code:

#!/bin/sh
if [ "x$1" == x ] ; then
  direction=normal
else
  direction=$1
fi

case $direction in
  [Cc][Ww])
    direction=`xrandr --verbose|awk '/connected/ {print $5}'`
    case $direction in
      normal)
        direction=left;
        ;;
      left)
        direction=inverted;
        ;;
      inverted)
        direction=right;
        ;;
      right)
        direction=normal;
      ;;
    ;;
  [Cc][Cc][Ww])
    direction=`xrandr --verbose|awk '/connected/ {print $5}'`
    case $direction in
      normal)
        direction=right;
        ;;
      left)
        direction=normal;
        ;;
      inverted)
        direction=left;
        ;;
      right)
        direction=inverted;
      ;;
    ;;
esac

case $direction in
  [Nn]ormal)
    xmodmap -e "keycode 114 = Right" -e "keycode 111 = Up" -e "keycode 113 = Left" -e "keycode 116 = Down";
    ;;
  [Ll]eft)
    xmodmap -e "keycode 114 = Down" -e "keycode 111 = Right" -e "keycode 113 = Up" -e "keycode 116 = Left";
    ;;
  [Ii]nverted)
    xmodmap -e "keycode 114 = Left" -e "keycode 111 = Down" -e "keycode 113 = Right" -e "keycode 116 = Up";
    ;;
  [Rr]ight)
    xmodmap -e "keycode 114 = Up" -e "keycode 111 = Left" -e "keycode 113 = Down" -e "keycode 116 = Right";
    ;;
  *)
    echo "Usage: $0 [ cw | ccw | normal | inverted | left | right ]";
    exit 1;
    ;;
esac

xrandr -o $direction

EDIT: Curious why you ditched it? I think there's nothing greater. (With some modifications, of course. The default config doesn't do the fine software justice.)

EDIT: Now integrated into zip in my post above.

qwerty12 2008-03-13 22:42

Re: How to rotate screen on os2008
 
Thanks :)

My alarms would not run with it, the device wouldn't code lock upon boot, when I edited the config files to run switchonbt for example, it would never accept my change, if I used select connection from connection applet, it wouldn't realise the device was in normal mode. Also, I am not a developer so the glade files went over my head. I liked the calendar function but tbh, that was it.

@fanoush

I just saw, jott placed his patch on his site.

Benson 2008-03-13 22:51

Re: How to rotate screen on os2008
 
One or two of those bothered me, but not enough to get up and fix it yet. (codelock, and on/offline). I love it because it lets me play music using hardware keys in my pocket, it lets me swap windows (to ones that don't show up in the list), and control brightness, and now orientation as well. I haven't really got xkbd set up "right" yet, but I use it to throw that up, too. And I really had no use for the calendar function. Heh. To each his own, and all that, but if you've ever a mind to try it again, PM me, and I'll help you get a decent config set up.

That aside, I just discovered one wierdness with my script; xmodmapping the d-pad also affects the cursor keys on my BT keyboard. :( Not sure if there really is anything to be done on that or not; if anyone has a clue, I'd be happy to integrate that. I'll poke at it some more, but meantime, if the BT keyboard is more important than the dpad to anyone, just don't use the script (call xrandr -o < normal | left | inverted | right >) or modify it to not xmodmap things.

fanoush 2008-03-13 23:10

Re: How to rotate screen on os2008
 
Quote:

Originally Posted by qwerty12 (Post 154676)
@fanoush

I just saw, jott placed his patch on his site.

Yes, I have asked him earlier today, got his mail few minutes ago, did similar fix in my code and re-uploaded. Seems to suspend and restore fine now.

JonnyBruha 2008-03-14 04:59

Re: How to rotate screen on os2008
 
I'll try my best to not be a newb, despite my post count.

I thought I had installed this application correctly, but apparently, I didn't do something vital. I successfully installed all of the packages and I'm only fairly certain I updated the kernel correctly. I was able to get the rotation icon in the statusbar, but when I use it to rotate the screen, only the sensitivity of the screen rotates. The screen appears to still be in landscape orientation, but I have to tap the screen as if the rotation was done successfully.

I'm going to reload the backup I made before trying this again, but has anyone else any idea what I might have done wrong the first time?

mooler 2008-03-14 05:06

Re: How to rotate screen on os2008
 
Is there a step by step guide on how to do this?

I am confused about flashing the kernel. I know i can do this from the tablet itself. But, how do I do it? I've downloaded the files (http://sse2.net/rotate/) to my tablet along with the fanoush flasher for the n800 (to flash directly on the tablet) but I just dont get it.

I do not have linux installed natively. But I am using VMware with DSL (Dam Small Linux and Ubuntu Gutsy)

qwerty12 2008-03-14 06:46

Re: How to rotate screen on os2008
 
Quote:

Originally Posted by mooler (Post 154841)
Is there a step by step guide on how to do this?

I am confused about flashing the kernel. I know i can do this from the tablet itself. But, how do I do it? I've downloaded the files (http://sse2.net/rotate/) to my tablet along with the fanoush flasher for the n800 (to flash directly on the tablet) but I just dont get it.

I do not have linux installed natively. But I am using VMware with DSL (Dam Small Linux and Ubuntu Gutsy)

Ok flashing the kernel.

You need to become root. Install easyroot or becomeroot. That is up to you.

In your Terminal, type "sudo gainroot"

Then type "cd MyDocs/"

Now, type "apt-get install wget" (if this fails, use the web browser to download files TO your "device name folder")

wget http://fanoush.wz.cz/maemo/kernel-2.2007.50-2-rotation.tar.gz

wget http://fanoush.wz.cz/maemo/kernel_flasher.tgz

tar zxvf kernel_flasher.tgz
tar zxvf kernel-2.2007.50-2-rotation.tar.gz

mv zImage kernel_flasher/
cd kernel_flasher/
./kernel_flash zImage

As for the deb files, the page in the first post tells you how to do it. Although, I must admit, I didn't use it.

arjun-giri 2008-03-14 06:47

Re: How to rotate screen on os2008
 
both flasher-3.0 and kernel_flash saying - permission denied (in both root and user modes ) chmod +x or chmod a+x not working

and what to do with the code posted by Benson

please help

qwerty12 2008-03-14 06:51

Re: How to rotate screen on os2008
 
flasher-3.0 runs on computer. You DON'T extract kernel_flasher to memory card.


All times are GMT. The time now is 01:12.

vBulletin® Version 3.8.8