![]() |
Re: Automatic screen rotate for N810
I went and flashed my tablet with the fancy xrandr-happy kernel (alas, I only noticed your easy script /after/ fiddling about with Nokia's flasher tool). Cool stuff!
I have just one issue with your script, and that is I hate pressing the power button for anything unrelated to power. How can I disable its mapping to the power button, instead having the screen rotate only when I press the Home button? Edit: Aha! Found a package called mikie-rotate in the application manager, which is exactly like this but without the power button stuff. I'm happy now :) (Although I wish these packages did not consume precious space with kernel images that are only used once, from another device). EDIT: Duh, I must be mixing it up with something else. This is only 10 KB! Now, if only the LCARS theme could stretch vertically... |
Re: Automatic screen rotate for N810
The mapping is not a configurable option _yet_. Once I have studied enough python, I will make a control panel applet to configure the behavior to users specific needs.
Rotate left/right, use Home/Power to initiate, rotate/ignore when slide opened etc. Any help on creating a control panel applet with python anyone? I have created a hildon-desktop applet, but I don't seem to be able to make a control panel applet that doesn't crash the entire control panel when clicked. For now, you will have to live with the hardcoded options or edit the python code yourself. The mikie-rotate was my first attempt to roate the sceen automatically, and as such will not be updated/supported in the future. If it works for you, fine. The original reason for me to make the slide-rotate was that for some reason dbus-scripts, that the mikie-rotate depends on required restart after every boot to actually work. YMMV though, that's how it was for me. The slide-rotate does _not_ consume any space in form of kernel images, that would not be needed anyway to rotate your screen. The install-xrandr-kernel flashes the kernel in your initfs, where you couldn't store any personal data anyway and then deletes the kernel-image along with the tools used to flash it from your device. The only unnecessary file in your device after a successful flashing will be the install script itself, which only consumes 1133 bytes. Once the rotation works for you, you may delete this file freely. |
Re: Automatic screen rotate for N810
The mikie-rotate, does actually use much less space if you also count the dependencies, since it only requires the dbus-scripts (and the kernel and xserver-xomap naturally), whereas the slide-rotate requires python, which is _way_ bigger install.
But who of you _doesn't_ have Canola installed? You already have the python then anyway. |
Re: Automatic screen rotate for N810
New version: 0.0.15
extra functionality: When the screen is rotated to portrait mode, the Zoom buttons change to PageUp and PageDown, normal Zoom functionality is returned, when in landscape mode. This way you can read PDF:s, RSS-feeds, long webpages etc quite easily page by page. |
Re: Automatic screen rotate for N810
Quote:
There are five partitions in internal flash - bootloader, config, kernel, initfs, rootfs (/dev/mtd0,1,...,4). Only rootfs, the biggest (~250 out of 256MB) one is interesting to most users. Also BTW, only the rootfs can be moved to mmc card. |
Re: Automatic screen rotate for N810
I shall adapt Xournal to portrait mode then!
|
Re: Automatic screen rotate for N810
Quote:
|
Re: Automatic screen rotate for N810
Well, never tried Xournal with the rotated screen, but I would suppose the toolbar will have much less space.
So putting the toolbar on the side, should help. Problem is, this automatic rotate should emit DBUS signals to tell apps that the screen has rotated. |
Re: Automatic screen rotate for N810
I'd rather have the toolbar on the bottom... saves on horizontal scrolling while writing a line of text.
For detecting the size change, maybe you can detect the window size changed? Dbus is probably the better way of handling it, though. |
Re: Automatic screen rotate for N810
If needed, I guess I could make sliderotate emit dbus-signal when the screen is rotated.
Of course the xournal would have to have a handelr for the signal before it makes any sense. |
Re: Automatic screen rotate for N810
Of couse I would implement a dbus handler for that message, much like I handle the fullscreen key press event.
If you make it, I hereby promise I will handle it :) Moreover, I will add the rotate support anyway, for people that want to old the tablet like a note book. |
Re: Automatic screen rotate for N810
I got automatic rotation working (Score!), but the [- | +] rocker switch on my n810 dosent seem to remap to page up and page down. Coincidentally, I cant seem to update 'sliderotate' to .16 (Using the App Manager anyway). The tablet says downloading and then installing, then it just says "Unable to update sliderotate." I think this is probably why it wont remap the buttons, but I dont know how to fix it. I currently have .15 installed.
|
Re: Automatic screen rotate for N810
Darn, no luck for me. The OS rotates, but the screen doesnt.
|
Re: Automatic screen rotate for N810
Borgel, could you try isnalling it in xtern and post the error mesage.
Code:
sudo gainroot |
Re: Automatic screen rotate for N810
Hi there,
I have been trying to install via the sliderotate but have this problem. "The following packages have unmet dependencies: silderotate: Depends: xmodmap but it is not installable E:Broken Packages" Please help. Quote:
|
Re: Automatic screen rotate for N810
|
Re: Automatic screen rotate for N810
Quote:
|
Re: Automatic screen rotate for N810
thanks for the last tip - I also managed to usntall sliderotate.
great hack this rotation on the N810. I live reading on the new Google reader in landscape mode now. thanks for this. |
Re: Automatic screen rotate for N810
emjayes
Wow that was super easy! Thank You! Your One-Click-Install is fast and painless even for a relative n00b like myself. Thanks again M |
Re: Automatic screen rotate for N810
It works great for me. I use it with Google Reader, mainly.
|
Re: Automatic screen rotate for N810
I suspected my problem would be the same as geekboy's, so I added the same repo.
When I ran apt-get install sliderotate I dot a "The following packages have unmet dependancies:" and then a slew of packages and the advice to try apt-get -f install to fix it. I'm trying that now. |
Re: Automatic screen rotate for N810
Ok, when I did apt-get -f install, it processed for a little bit and then gave me this:
Quote:
|
Re: Automatic screen rotate for N810
there seems to be a problem with other packages.
run Code:
sudo gainroot |
Re: Automatic screen rotate for N810
Ok, I tried the dpkg line, this is the result:
Quote:
apt-get install almost immediately gives this: Quote:
It gave: Quote:
Quote:
|
Re: Automatic screen rotate for N810
I got all those errors when trying to install it as well, but in the end it was installed despite them.
At first I thought it was because I had installed rotation packages from elsewhere, but when my 810's touchscreen died I repeated things on my 800, and the same thing happened -- errors, but it was installed. * shrug * Either way, it works great. :) |
Re: Automatic screen rotate for N810
Automatic rotation works fine, its just the pageup pagedown remapping for the
[+ | -] rocker that dosent seem to work. |
Re: Automatic screen rotate for N810
Do you have xmodmap installed?
|
Re: Automatic screen rotate for N810
Quote:
I have changed all of the options above to "...=menu" How do I make this change permanent? Reboot doesn't seem to change anything... I feel that I am missing something really obvious...:o Thanks |
Re: Automatic screen rotate for N810
Ok, I ended up just reflashing it and starting over from scratch. The install worked the first time, page scrolling and all.
Thanks for all the help! |
Re: Automatic screen rotate for N810
Quote:
|
Re: Automatic screen rotate for N810
I have cloned the system on the memory card. To flash the kernel pointed at in the first thread, should I take some particular care ?
|
Re: Automatic screen rotate for N810
The kernel is always in the flash memory, only the root fileysystem is in memory card.
So the installation is the same regardless of the location of root filesystem. See: http://www.internettablettalk.com/fo...7&postcount=85 |
Re: Automatic screen rotate for N810
Is it possible to setup that power button doesn't rotate screen.
Now it rotate and call menu. PowerKeyShortAction=menu PowerKeyLongAction=poweroff PowerKeyDoubleAction=softpoweroff |
Re: Automatic screen rotate for N810
Quote:
|
Re: Automatic screen rotate for N810
Quote:
Quote:
I like to use the power button to rotate and not long press on home, myself, but I think the way to change things will be similar. Open a terminal and become root, then type: vi /usr/lib/sliderotate/sliderotate.py Find the line that says "bus.add_signal_receiver(power," -- and so on, and comment it out with a "#" sign in front. (Press a to enter edit mode, then escape, shift+z shift+z to save.) |
Re: Automatic screen rotate for N810
Thanks for the suggestions:)
However I have tried the edit sliderotate.py and rebooted :confused:needed or not :confused: Did not work, Power button still rotates screen.:( Thanks |
Re: Automatic screen rotate for N810
for my changes to sliderotate.py to take effect, all I did was run as root: /etc/init.d/sliderotate restart
I changed the sliderotate.py slightly differently than previously posted. I made the function power() just set the rotation to normal. Near the bottom of the file is this function: ------- def power(id,obj): if not locked: new_orientation = "normal" rotate(new_orientation) ------- the new_orientation used to be set to "power", but with it set to normal, now only the longpress on the Home button rotates the screen. Hope this helps. Geoff |
Re: Automatic screen rotate for N810
Geoff,
That did the trick! :D Thanks Matt |
Re: Automatic screen rotate for N810
Sorry for my absence, but I have been quite busy lately and have not been able to respond.
I will make the buttons and actions configurable as soon as I can spare some time. |
Re: Automatic screen rotate for N810
pre-emptively for Yorker: http://www.internettablettalk.com/fo...176#post185176
the install-xrandr-kernel script takes care of the downloading. You should have a working setup if all went well. |
All times are GMT. The time now is 15:36. |
vBulletin® Version 3.8.8