![]() |
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. |
All times are GMT. The time now is 16:34. |
vBulletin® Version 3.8.8