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)

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.


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

vBulletin® Version 3.8.8