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)

ericcmi 2008-04-28 03:56

Re: Automatic screen rotate for N810
 
Thanks alot! Installed like magic on my n800/os2008 and works great.

I'd like to know if its possibe to make it rotate Right instead of Left for two reasons.

1. The n800's d-pad would then be on the bottom closer to the users thumb when being held vertically.
2. The slot for the stylus would then be on top of the device rather than the bottom (which may lead to my dropping/losing it)

Also, how difficult would it be to have the n800's d-pad change orientation when rotated? The combinatiin of d-pad on the bottom and a d-pad that is properly oriented would kick *** for n800 users specifically(not sure if it runs on n770)

Thanks again
Eric

Benson 2008-04-28 04:36

Re: Automatic screen rotate for N810
 
That's how I do portrait; xmodmap is used to remap the dpad. It does get reset if you connect a BT keyboard while in portrait, though.

ericcmi 2008-04-28 05:52

Re: Automatic screen rotate for N810
 
Is this done automatically when rotated ?

emjayes 2008-04-28 09:53

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by ericcmi (Post 175449)
Is this done automatically when rotated ?

It is now:

new version 0.0.14 includes mappings for D-pad.

If you have xmodmap installed, the D-pad is rotated as well.

I did not yet put xmodmap as a dependency, since there seem to be many sources it can be downloaded from.

Mine is from:

(/etc/apt/sources.list.d/hildon-application-manager.list)
deb http://mg.pov.lt/770 chinook user other

To those who wish the screen to be rotated right instead of left:
Originally I had the screen rotate to the right, but since I tired my thumb reaching for the back and home-keys, I turned it to the left.
I will make it a configurable option eventually.

cashless 2008-04-28 14:43

Re: Automatic screen rotate for N810
 
How is taskbar dragging enabled? doesn't work for me, but I don't have xmodmap installed.

grog 2008-04-28 14:50

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by emjayes (Post 175488)
If you have xmodmap installed, the D-pad is rotated as well.

Where's the best place for this for OS2008? Maemo.org only has it under OS2007 which my tablet complains is incompatible. tx

emjayes 2008-04-28 14:52

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by grog (Post 175558)
Where's the best place for this for OS2008? Maemo.org only has it under OS2007 which my tablet complains is incompatible. tx

as stated above:

Mine is from:

(/etc/apt/sources.list.d/hildon-application-manager.list)
deb http://mg.pov.lt/770 chinook user other

emjayes 2008-04-28 14:55

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by cashless (Post 175553)
How is taskbar dragging enabled? doesn't work for me, but I don't have xmodmap installed.

taskbar dragging is always enabled. xmodmap is not needed for that, in fact it has nothing to do with it.

just press your finger firmly in the taskbar and drag it to another side of screen, release finger and presto, the taskbar is in new location.

not that it is usable anyway, since the menus in taskbar have too much hardcoded width/height values, and most menus will appear off screen.

Benson 2008-04-28 16:39

Re: Automatic screen rotate for N810
 
Works best if you flip to portrait, then drag; you have to drag on empty panel (not on a button) and there's a huge chunk of empty panel at the bottom once you're in portrait. Likewise, to put it back on the side, flip to landscape; then there's loads of room on the top to grab...

It is usable, if, like me, you ditched the contacts and web menus in favor of personal menu and command navigator, and moved the apps menu to the top; then the apps menu starts from the left edge of the screen, and you can see the first column (categories) and the icons + a few letters for the second column. (The third-party ones, naturally, work well in any position...)

The task selection is the only trouble spot, and only sometimes. It really works out alright, though there's plenty of visible bugs.

grog 2008-04-28 16:58

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by emjayes (Post 175559)
as stated above:

Mine is from:

(/etc/apt/sources.list.d/hildon-application-manager.list)
deb http://mg.pov.lt/770 chinook user other

oops, me bad :o. thanks

geoffstewart 2008-04-28 17:33

Re: Automatic screen rotate for N810
 
I managed to drag my taskbar off the bottom of the screen... any idea how to retrieve it? I tried clicking and holding at the bottom without any luck... is there a config file I can manually update?

qwerty12 2008-04-28 17:33

Re: Automatic screen rotate for N810
 
killall hildon-desktop.

It will disable all the applets but they will come back after reboot.

munky261 2008-04-28 21:21

Re: Automatic screen rotate for N810
 
i have a minor issue , if you remember me asking about how to make the application menu optional since ive done that i noticed that when i tap and hold on an item the animated icon isnt circling or even appearing at all. also , in app manager when it is refreshing , the little icon in the banner isnt circling or even appearing either. any ideas on how i can fix this?

dylann800 2008-04-29 02:28

Re: Automatic screen rotate for N810
 
I finally got everything installed, thanks! However pushing the power button on n800 does nothing. double click will bring up the menu. Also D pad doesn't seem to be correctly mapped when rotated.

Retried apt-get update and its failing some items

Thanks
Dylan

http://www.dodgeneon.net/images/update.jpg

Snoshrk 2008-04-29 03:20

Re: Automatic screen rotate for N810
 
Ok, I've read this thread several times... N00B question:

How do I install this on an N800 booting from immc2?

This is one of the features I miss from my T3:o

Thanks

fanoush 2008-04-29 11:07

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by Snoshrk (Post 175832)
How do I install this on an N800 booting from immc2?

same procedure, this is not related to booting from mmc

emjayes 2008-04-29 11:22

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by fanoush (Post 175876)
same procedure, this is not related to booting from mmc

As long as you have booted from mmc when installing sliderotate.

Oh and fanoush, as you may have noted, I use your server to download the tools for flashing, I hope thats OK with you.

I can host the files myself too if needed.
Nice work on the flashing tools btw.

fanoush 2008-04-29 11:29

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by emjayes (Post 175877)
Oh and fanoush, as you may have noted, I use your server to download the tools for flashing, I hope thats OK with you.

No problem. Actually I prefer direct link to latest version on my site. Hosting outdated local copies is not best idea.

Cruelkix 2008-04-29 17:35

Re: Automatic screen rotate for N810
 
I get the following errors when i run /root/install-xrandr-kernel

Code:

Hit http://repostory.maemo.org chinook/free Packages
Hit http://repostory.maemo.org chinook/non-free PackagesE: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
/root/install-xrandr-kernel: line 6: wget: not found
tar: can't open 'kernel_flasher.tgz': No such file or directory
rm: cannot remove 'kernel_flasher.tgz': No such file or directory
/root/install-xrandr-kernel: cd: line 9: can't cd to kernel_flasher
/root/install-xrandr-kernel: line 10: wget: not found
/root/install-xrandr-kernel: line 11: ./kernel_flash: not found
REBOOT IS REQUIRED!
after rebooting, push Power shortly to

I'm guessing that this is the reason its not working. any suggestions?

emjayes 2008-04-29 18:12

Re: Automatic screen rotate for N810
 
The install-xrandr-kernel is VERY crude and has no error checking.

Stop the application manager and rerun the script.

The errors mean that you can't user apt-get because Applicatin manager has locked /var/lib/dpkg/lock to prevent multiple instances of apt installing stuff.

I will create a better script when I have the time for it.

Cruelkix 2008-04-29 20:17

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by emjayes (Post 176016)
The install-xrandr-kernel is VERY crude and has no error checking.

Stop the application manager and rerun the script.

The errors mean that you can't user apt-get because Applicatin manager has locked /var/lib/dpkg/lock to prevent multiple instances of apt installing stuff.

I will create a better script when I have the time for it.

Thanks for the quick response. I read all the posts in this thread so when I installed I made sure to stop the app manager. Ill see what I can do. Will it cause problems f I just run the install-xrandr-kernel again?

Is there somthing you need to do to "Stop the application manager" other than closing it?

I'll try it again adn make sure that it is all closed up as much as possible.

Cruelkix 2008-04-29 20:54

Re: Automatic screen rotate for N810
 
I went in and ps -ef and found that app manager was still running so i killed it. Install went smoothly afterwards.

Thanks! App run great!

Cuelkix

ericcmi 2008-04-30 03:12

Re: Automatic screen rotate for N810
 
I added the xmodmap repo expecting 0.0.14 as described
earlier in this thread. I seem to have the wrong version though. I did not forget to apt-get update either.


xmodmap is installed and can be run from the terminal. But does not correct the d-pad orientation when rotated.
below is the version info.

.
Code:

~ $ apt-cache showpkg xmodmap
Package: xmodmap
Versions:
1:1.0.2-0ubuntu1mg1(/var/lib/apt/lists/mg.pov.lt_770_dists_chinook_user_binary-armel_Packages)(/var/lib/dpkg/status)

Reverse Depends:
Dependencies:
1:1.0.2-0ubuntu1mg1 - libc6 (2 2.5.0-1) libx11-6 (0 (null)) xbase-clients (3 6.8.2-38)
Provides:
1:1.0.2-0ubuntu1mg1 -
Reverse Provides:
~ $

What'd i do wrong ??

emjayes 2008-04-30 07:06

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by ericcmi (Post 176213)
I added the xmodmap repo expecting 0.0.14 as described
What'd i do wrong ??

You mixed version numbers from sliderotate (0.0.14) and xmodmap (1.0.2)

Code:

Nokia-N810-:~# apt-cache showpkg sliderotate
Package: sliderotate
Versions:
0.0.14(/var/lib/apt/lists/mikie.dy.fi_maemo_dists_chinook_user_binary-armel_Packages)(/var/lib/dpkg/status)

Reverse Depends:
Dependencies:
0.0.14 - python2.5-runtime (0 (null)) xrandr (2 1:1.2.2-0) xserver-xomap (5 1:1.3.99.0~git20070321-0osso20074202) libxrandr2 (2 2:1.2.1-1)
Provides:
0.0.14 -
Reverse Provides:

Do you have a N810 or N800?

If you have N810 the pad is rotated only when you rotate the screen to portrait mode when the keyboard is open.

In N800 the pad should rotate with the screen always.

ericcmi 2008-04-30 21:19

Re: Automatic screen rotate for N810
 
I have a n800.
I just checked and it seems I have sliderotate 0.0.13 and can't find 0.0.14 anywhere.
Do you have a link to a deb?
Thanks alot.

emjayes 2008-04-30 23:05

Re: Automatic screen rotate for N810
 
as root in xterm:

apt-get update

or iń Application manager:

tools ->refresh application list

then you should get 0.0.14

Thesandlord 2008-05-01 04:08

Re: Automatic screen rotate for N810
 
hey guys, im having a problem with this. I already have a kernal that supports rotation, and am using the roaition statubar icon on my n810. when I tried the one-click install, it seemed to install sliderotate only halfway. App manager said Sliderotate not installed or something. I tried to uninstall via app manager, and it said Sliderotate not uninstalled. I also tried Xterm, and it gave me this...
Code:

/home/user # apt-get remove sliderotate
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  sliderotate
0 upgraded, 0 newly installed, 1 to remove and 58 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 1049kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 24839 files and directories currently installed.)
Removing sliderotate ...
Stopping SlideRotate daemon: Traceback (most recent call last):
  File "/usr/lib/sliderotate/daemon.py", line 24, in <module>
    import sliderotate
  File "/usr/lib/sliderotate/sliderotate.py", line 4, in <module>
    from gnome import gconf
ImportError: No module named gnome
invoke-rc.d: initscript sliderotate, action "stop" failed.
dpkg: error processing sliderotate (--remove):
 subprocess pre-removal script returned error exit status 1
Starting SlideRotate daemon: Traceback (most recent call last):
  File "/usr/lib/sliderotate/daemon.py", line 24, in <module>
    import sliderotate
  File "/usr/lib/sliderotate/sliderotate.py", line 4, in <module>
    from gnome import gconf
ImportError: No module named gnome
invoke-rc.d: initscript sliderotate, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 sliderotate
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #

about the same thing happens wheni try apt-get install sliderotate.
Also,now the onscreen keyboard pops up even if i have the keyboard open.

Edit: I modded the python file and removed the import gnome part. This at least
allowed me to uninstall. What is that part for, and am i missing a dependancy or something? This seems way too good to give up on...

emjayes 2008-05-01 07:29

Re: Automatic screen rotate for N810
 
Quote:

ImportError: No module named gnome
you are missing a needed package: python2.5-gnome
I will have to tweak the dependencies.
Thanks for the info.

matthewcb4 2008-05-01 19:56

Re: Automatic screen rotate for N810
 
I have read all of the posts in this thread and am having an issue with this rotation.

I installed the one click install about 2 days ago and at first glance it worked beautifully. Then im not sure why it just stops working? I have tried using xterm to rotate it and also the rotate plugin but nothing seems to work other that just restarting my tablet. Once restarted it works just fine again for a little while and then i will try to rotate it for canola or the web and it just wont work again untill i reboot it?

If someone has had this issue please guide me to a solution or something because I am so happy that this is available. This was the thing that truelly bridged the gap between the ipod/iphone for me!

Thanks in advance

emjayes 2008-05-01 20:32

Re: Automatic screen rotate for N810
 
To be able to determine what is wrong:

run xrandr -o left in xterm after it stops working with the power/home key.

and tell us what is the error message then.

Underscore 2008-05-01 21:00

Re: Automatic screen rotate for N810
 
Is there any way I can change rotate to a double press event of the power key? I don't like having it rotate every time I just need to enter offline mode or lock the device. I guess I could set "long press" to open the menu, I don't really use long press to turn the device off anyway.

matthewcb4 2008-05-01 22:01

Re: Automatic screen rotate for N810
 
Ok Im sure it will happen again sometime today and when it does I will post it.

Thanks again

matthewcb4 2008-05-02 01:55

Re: Automatic screen rotate for N810
 
/home/user # xrandr -oleft
usage: xrandr [options]
where options are:
-display <display> or -d <display>
-help
-o <normal,inverted,left,right,0,1,2,3>
or --orientation <normal,inverted,left,right,0,1,2,3>
-q or --query
-s <size>/<width>x<height> or --size <size>/<width>x<height>
-r <rate> or --rate <rate> or --refresh <rate>
-v or --version
-x (reflect in x)
-y (reflect in y)
--screen <screen>
--verbose
--dryrun
--prop or --properties
--fb <width>x<height>
--fbmm <width>x<height>
--dpi <dpi>/<output>
--output <output>
--auto
--mode <mode>
--preferred
--pos <x>x<y>
--rate <rate> or --refresh <rate>
--reflect normal,x,y,xy
--rotate normal,inverted,left,right
--left-of <output>
--right-of <output>
--above <output>
--below <output>
--same-as <output>
--set <property> <value>
--off
--crtc <crtc>
--newmode <name> <clock MHz>
<hdisp> <hsync-start> <hsync-end> <htotal>
<vdisp> <vsync-start> <vsync-end> <vtotal>
[+HSync] [-HSync] [+VSync] [-VSync]
--rmmode <name>
--addmode <output> <name>
--delmode <output> <name>
/home/user #

it just did it again where it wont rotate anymore without restarting.

that is what its saying when I go: sudo gainroot and xterm.

please help, and thanks.

Benson 2008-05-02 02:02

Re: Automatic screen rotate for N810
 
Generally, if someone tells you to type something, and you get a usage message like that, it means you or they made a typo. In this case, it should be:
Code:

xrandr -o left
Note the space after -o...

matthewcb4 2008-05-02 05:04

Re: Automatic screen rotate for N810
 
/home/user # xrandr -o left
/home/user #

that is all that happens when i use a space?
am i doing something wrong?

thanks for replying, it means a lot!

emjayes 2008-05-02 10:30

Re: Automatic screen rotate for N810
 
So the command just exits without actually rotating, right?

what does it say if you just run xrandr?

anything like this?
Code:

Nokia-N810-:~# xrandr
Screen 0: minimum 800 x 480, current 800 x 480, maximum 800 x 480
default connected 800x480+0+0 (normal left inverted right) 0mm x 0mm
  800x480        0.0*
Nokia-N810-:~#


TA-t3 2008-05-02 11:19

Re: Automatic screen rotate for N810
 
Been following the thread.. if Nokia doesn't incorporate (and integrate/improve) on this work then shame on Nokia! The lack of built-in screen rotation was one of the very first common complaints when the NITs appeared. I'm so looking forward to being able to read some of my PDF documents in portrait mode.

matthewcb4 2008-05-02 13:57

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by emjayes (Post 177093)
So the command just exits without actually rotating, right?

what does it say if you just run xrandr?

anything like this?
Code:

Nokia-N810-:~# xrandr
Screen 0: minimum 800 x 480, current 800 x 480, maximum 800 x 480
default connected 800x480+0+0 (normal left inverted right) 0mm x 0mm
  800x480        0.0*
Nokia-N810-:~#



I have restarted it again and so that i could use the rotation this morning but im sure that it will happen again sometime today and I will see what it does.

I triend checking that with it running the way it is right now and it says exactly that. I will get back to you once it happens again.

Thesandlord 2008-05-03 02:56

Re: Automatic screen rotate for N810
 
@emjays: hey thanks, I seemed to have an old version of python2.5-gnome

After I rebooted the tablet, something really weird happened. All the button overlays and highlighting of menu items were broken. The UI was completely trashed, for example the scroll bars were gone, buttons showed only very faint text, check boxes were gone, etc... Because I already patched the kernel before, I just used the one click install and it worked. I also edited the power key options as described earlier in this thread. Everything worked until the reboot. Finally I had to reflash the N810 (Luckily I was planing to anyway), and reinstall everything. This time, I used the script to update the kernel, and everything seems to be fine, including the power menu not showing up without any modifications. The truth is I don't know if its this program that did this, or what... Is it a potential bug? (note: the text on the "select connection" dialog is huge, and Im sure its only after I installed this, everything else is fine though...)

ghassane 2008-05-03 22:31

Re: Automatic screen rotate for N810
 
Quote:

Originally Posted by ericcmi (Post 176510)
I have a n800.
I just checked and it seems I have sliderotate 0.0.13 and can't find 0.0.14 anywhere.
Do you have a link to a deb?
Thanks alot.

http://mikie.dy.fi/maemo/dists/chino.../binary-armel/


All times are GMT. The time now is 15:35.

vBulletin® Version 3.8.8