Reply
Thread Tools
Posts: 186 | Thanked: 56 times | Joined on Mar 2008
#81
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...

Last edited by Picklesworth; 2008-05-05 at 19:07.
 

The Following User Says Thank You to Picklesworth For This Useful Post:
emjayes's Avatar
Posts: 121 | Thanked: 163 times | Joined on Feb 2008 @ Oulu, Finland
#82
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.
 

The Following 2 Users Say Thank You to emjayes For This Useful Post:
emjayes's Avatar
Posts: 121 | Thanked: 163 times | Joined on Feb 2008 @ Oulu, Finland
#83
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.
 
emjayes's Avatar
Posts: 121 | Thanked: 163 times | Joined on Feb 2008 @ Oulu, Finland
#84
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.
 

The Following 2 Users Say Thank You to emjayes For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#85
Originally Posted by emjayes View Post
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.
Actually the kernel is in its own separate partition, not in initfs but the result is same, it is not stored in rootfs where all system packages and personal stuff lies. Sorry for nitpicking :-)

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.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-05-12 at 12:12.
 

The Following User Says Thank You to fanoush For This Useful Post:
anidel's Avatar
Posts: 1,743 | Thanked: 1,231 times | Joined on Jul 2006 @ Twickenham, UK
#86
I shall adapt Xournal to portrait mode then!
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#87
Originally Posted by anidel View Post
I shall adapt Xournal to portrait mode then!
How so? Last I simultaneously had xournal and rotation was the old version of xournal (before shape-recognizer), but it worked quite nicely then... didn't see any adaptation needed.
 
anidel's Avatar
Posts: 1,743 | Thanked: 1,231 times | Joined on Jul 2006 @ Twickenham, UK
#88
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.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#89
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.
 
emjayes's Avatar
Posts: 121 | Thanked: 163 times | Joined on Feb 2008 @ Oulu, Finland
#90
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.
 
Reply


 
Forum Jump


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