maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Portrait mode support in control panel. (https://talk.maemo.org/showthread.php?t=63316)

MohammadAG 2010-10-03 19:21

[Announce] Portrait mode support in control panel.
 
As I've done with modest, I'm looking into adding portrait mode flags into most open source apps on Maemo 5.

This is based on the PR1.2 hildon-control-panel source.
Some applets don't work in portrait mode, such as the display one and the themes one (it kicks the window into landscape mode). most of the ones I use do.

http://i55.tinypic.com/34tbm8m.jpg

You need to have rootsh and wget installed.

Code:

root
wget http://mohammadag.xceleo.org/public/maemo/debfiles/portrait/hildon-control-panel/hildon-control-panel_2.2.27-2+0m5_armel.deb
dpkg -i hildon-control-panel_2.2.27-2+0m5_armel.deb

To pin the package:
Code:

echo "Package: hildon-control-panel
Pin: release a=unstable
Pin-Priority: 1001" >> /etc/apt/preferences

I really should make all these portrait patches into one thread...

moepda 2010-10-03 19:33

Re: [Announce] Portrait mode support in control panel.
 
Works well ! much appreciated :)

kolos 2010-10-03 21:36

Re: [Announce] Portrait mode support in control panel.
 
1 Attachment(s)
Great job MohammadAG, thanks!

Is it possible to fix the appearance of "Notification light" settings in portrait mode?

MohammadAG 2010-10-03 21:39

Re: [Announce] Portrait mode support in control panel.
 
Sadly, that's closed source, so nope :(

neboja 2010-10-03 21:45

Re: [Announce] Portrait mode support in control panel.
 
@MohammadAG
as i understood:
Quote:

As I've done with modest, I'm looking into adding portrait mode flags into most open source apps on Maemo 5
can i ask you to do one simple thing: when you finish with moding all apps that you want, put all of your codes in one post (or wiki) so they could be easy to find (this way, i think there would be a several threads about portrait mode)

great work, anyhow!

p.s. would be a blast if you could do that with media player.... (i now it's closed... but... ) ;)

CepiPerez 2010-10-04 00:18

Re: [Announce] Portrait mode support in control panel.
 
Is the notification light a binary file?
We can make a replacement for it...

Mentalist Traceur 2010-10-04 02:21

Re: [Announce] Portrait mode support in control panel.
 
CepiPerez - I was thinking about it, but as qwerty12 said back when he made his open source clone of the FMTX status menu applet, not all of the closed source blobs on the N900 are so easy to clone that you could easily replace it. That said, if you or someone else feel they can, more power to you, and that's certainly something I recommend aiming for.

MohammadAG: Any chance of seeing this in the official repos, instead of just as a download link? (Also, I can't seem to find wget in the repos? Do I have something set wrong? I have Axel [the command-line download-manager] installed. Could I just use that? If so, what additional complications would that bring? Would I have to specify a download path with axel and then a path to the file with dpkg -i?)

maxximuscool 2010-10-04 03:33

Re: [Announce] Portrait mode support in control panel.
 
Bluetooth, FM transmitter and everything else kicked back to landscape for me. May be I need a reboot.

MohammadAG 2010-10-04 03:35

Re: [Announce] Portrait mode support in control panel.
 
It doesn't seem to be very complex to replace, in fact, it may be easier than the FMTX applet.
Apparently it only sets gconf boolean:true/false in
/system/osso/dsm/leds
~ $ gconftool-2 -R /system/osso/dsm/leds
PatternCommunicationEmail = true
PatternBatteryCharging = true
PatternCommunicationCall = true
PatternDeviceOn = true
PatternCommunicationSMS = true
PatternCommonNotification = true
PatternBatteryFull = true
PatternCommunicationIM = true

F2thaK 2010-10-04 04:04

Re: [Announce] Portrait mode support in control panel.
 
I mean no disrespect MohammadAG, as you have done many great things for this community... but I find this kinda pointless. I hate having to turn my phone portrait > landscape > portrait... I think either full portrait support or none is best.

(I did install it though! :D)

I think we'll be waiting till the end of time for Nokia to make the N900 fully support portrait..

Mentalist Traceur 2010-10-04 04:08

Re: [Announce] Portrait mode support in control panel.
 
Thank you everyone who read this thread who bothered to give me at least a hint about the wget thing. Truly. [/sarcasm]

I found it some info on what I was asking:
http://talk.maemo.org/showthread.php...highlight=wget
You just use "apt-get install wget" as root, if you want it. It doesn't show up in app manager (the hildon default one) because it doesn't fit into the "user" category. (Though I'm vague on how this works, so I can't clarify.) Other application managers don't hide the non-user stuff though.

As for where to download the file if you're not using wget, I deduced from MohammadAG's http://talk.maemo.org/showthread.php?t=60599 thread that if you just use dpkg -i [path of file]/file.deb everything should work, so any directory is fine to place the .deb into.

MohammadAG 2010-10-04 04:08

Re: [Announce] Portrait mode support in control panel.
 
I'm experimenting with these flags, but hildon-desktop does funny things sometimes, a portrait flag applies to all windows/dialogs under the main one, however, sometimes it changes the orientation to landscape for no reason, when that happens the dashboard button is small until the device is rotated into landscape mode.

I'm still not sure what causes this, facebrick is also affected by it, but not microB.

axel is the same as wget, just replace the word wget with axel.

dannycamps 2010-10-04 04:13

Re: [Announce] Portrait mode support in control panel.
 
It's wonderful to see how far people are able to take the N900.

Taking it a bit further, do you think it would be possible for someone to come up with some kind of daemon that would check when an app is launched if it is on an approved user or predefined list of rotatable apps and if so, apply the CTRL+SHIFT+R combination silently?

That would pretty much give system-wide portrait.

Mentalist Traceur 2010-10-04 04:32

Re: [Announce] Portrait mode support in control panel.
 
so after "axel www.blah.com/stuff.deb", "dpkg -i stuff.deb" should work automatically? Because I can't find what the default download path the N900 axel port uses (nor does the -h/--help option for axel tell you how to set the download path).

Also, if you're slowly working through various things and enabling portrait mode, and chance you have looked into rotatedaemon? Would finding some way to make hildon as a whole play nice with that be more efficient than making the open programs use portrait mode properly be more efficient perhaps?

dannycamps: there's already an app that runs ctrl-shift-r on everything open at the time - namely, the "toggle rotation" option on the shortcutd program does this - so I'm sure what you're suggesting should be very feasible. Not sure how efficient it would be, but feasible, certainly.

dannycamps 2010-10-04 15:33

Re: [Announce] Portrait mode support in control panel.
 
Quote:

Originally Posted by Mentalist Traceur (Post 832729)
dannycamps: there's already an app that runs ctrl-shift-r on everything open at the time - namely, the "toggle rotation" option on the shortcutd program does this - so I'm sure what you're suggesting should be very feasible. Not sure how efficient it would be, but feasible, certainly.

What I am thinking is similar to the toggle rotation option on shortcutd but automatic - meaning whenever a new program is launched, trigger the rotation toggle.

Flow would be like this:

1. Program Launched
2. Get process name of newly launched program
3. check process name against list of processes to see if rotation allowed (meaning it plays nicely)
4. If rotation allowed, apply rotation toggle (no keypress necessary).

The list of programs that are allowed to rotate could be something that is maintained via a control panel applet.

MohammadAG 2010-10-04 17:36

Re: [Announce] Portrait mode support in control panel.
 
I like the idea tbh, but I've never looked into daemons :(
I'll see what I can do, no promises on this one.

cjp 2010-10-04 17:41

Re: [Announce] Portrait mode support in control panel.
 
If Nokia's handing governship of Maemo.org to the community, how about releasing them closed source bits as well into the open! :/

Srsly, what if we just asked Nokia to do this in the most formal way imaginable? Who should we ask? Who should do the asking?

MohammadAG 2010-10-04 17:53

Re: [Announce] Portrait mode support in control panel.
 
Have a look at http://wiki.maemo.org/Open_developme...hange_requests
I doubt they'll even consider it.

Mentalist Traceur 2010-10-06 02:50

Re: [Announce] Portrait mode support in control panel.
 
Yeah, I doubt they'll be open sourcing stuff unless someone actually enlightened gets off their *** over-there and makes everyone else realize that there's no point in keeping random blobs closed. I mean, really, is Hildon Application Manager or whatever else they have closed so important or contain actual trade secrets, or some competitive advantage they'd lose if they released the source? Given that we have Faster Application Manager, which does the same thing but with more options, but better (or faster, at least), I doubt it.

What I would LOVE to see is an open source phone modem stack, but that's just not gonna happen. And would be very dangerous - it's just like NMap or aircrack-ng or Metasploit. Sure, they're "security auditing" tools, and people do use them to that end, but just as many chose a darker hat color. Same with war-dialers... So an open source modem stack would be wonderful, but at the same time, it would probably lead to many many problems. (Such as the need to firewall every cell tower, probably... Actually, why aren't we pushing for that right now? Cell towers and phone-communications channels should be brought under the purview of net neutrality as far as I am concerned... Bah, tangent.)

Anyway, anyone start making an open source clone of the Notification Light thingy? Again, I would, but I know nothing coding wise. Though if someone could point me to A: the language they think I should use to code it, and B: A free (ideally open source) compiler that runs in Windows for me to compile in, I'll gladly bury myself in some manuals on the language and deliver my shitty first attempt as soon as I can.

Bingley Joe 2010-10-06 03:27

Re: [Announce] Portrait mode support in control panel.
 
A bit off-topic, I know, but I would love LOVE it if you could take a look at the FM Radio app (receiver, not transmitter)..

It's UI doesn't support portrait mode AT ALL, and yet every time I launch it, it appears to have portrait rotation set to 'ON'. It's quite annoying and it would be great to have portrait mode disabled completely for that app.

Mentalist Traceur 2010-10-06 03:41

Re: [Announce] Portrait mode support in control panel.
 
To be fair, I think the FM Radio receiver program is still usable in portrait, because you can see the frequency being received, still use the actual while part to scroll left/right, and the drop-down buttons at the top pop up correctly. In fact, you can even make the saved radio stations button pop up - since the entire bottom bar is the saved stations button (however, I don't have any stations saved, so I don't know how well that menu looks in portrait).

MohammadAG 2010-10-06 05:06

Re: [Announce] Portrait mode support in control panel.
 
Hildon Application Manager is open source :)
The media player otoh...
You can't use any C compiler on windows for maemo development, you'll need the sdk which runs on linux only (a virtual machine should do)

Mentalist Traceur 2010-10-06 05:45

Re: [Announce] Portrait mode support in control panel.
 
HAM is open source? Or are HAM and Hildon Application Manager different things? (I figured it was, and that HAM is an abbrev. for Hildon Application Manager. The folders with those respective names having relevant-to-each-other files in them suggests the same thing, but I suppose they could be linked pieces of software.) Anyway, I could have sworn I read it said on here that the App manager was closed. Anyway, thanks for setting me straight. Actually, is there a comprehensive list of closed blobs in Maemo 5? (I did know about the Media Player, though. Should've just used that as an example.)

Why does it have to run in Linux only? Is there no C compiler that can make N900-specific debs for Windows? Or is it the ARM architecture that's the issue? Combination of both? (Oh, wait, "you need the sdk" - is that this scratchbox I keep seeing mentioned? Can I safely assume that's the ONLY SDK that can compile for the N900?)

I have a virtual machine with Debian installed (Lenny, I think), but I haven't even started to get off the ground using that. Linux is amazingly less intuitive than I expected when your starting point is the N900. I partly blame the Virtual Machine, because I can't figure out how to resize the screen to fit into my monitor, which means that either I run the Virtual Machine in windowed mode and have to mouse out of it, scroll down using the little bar to get to the bottom of the screen and vice-versa, or if I full-screen it I just can't reach the bottom of the screen. Which isn't fully a problem either, except I have a mouse bug too where I regularly end up stuck and unable to reach the edges of the screen. I also did a very minimalistic install because I didn't want to burn a bunch of install CDs... So over all I just kinda got lazy a few weeks ago, and stopped fiddling for lack of time, and because the N900 I actually get.

But I'll look into it. I have a pre-set VM image of debian as well that I need to try, see if that is slightly friendlier to me. Worse case scenario I'll say screw it and let the user-friendliness of Ubuntu take me into it's sweet embrace.

Creamy Goodness 2010-10-06 07:25

Re: [Announce] Portrait mode support in control panel.
 
yeah sdk contains some closed source stuff, if it wasn't for that maybe it could be compiled on windows. not really sure. i decided it's worth the time to learn linux so i'm not gonna fight it. there's instructions on the wiki on how to set up the scratchbox with debian or ubuntu so take your pick, but i warn you it's much faster to find a ready to go image.

Mentalist Traceur 2010-10-10 20:30

Re: [Announce] Portrait mode support in control panel.
 
Alright, I got a pre-installed Debian Lenny VDI file running in Virtual box (after some pain editing the xml files of VirtualBox and then realizing I didn't know the passwords for the preinstalled image, so I had to figure out how to get a shell from the kernel boot screen to be able to run the passwd command). Now I feel read to try to install the Virtual Machine image that has the SDK preinstalled - not sure if I found the right ones, but I downloaded a few that I found through the links on the Development section of this site... We'll see what happens.

-Edit1-
Well, I figured out how to import the right machine, it looks like - the one from downloads.maemo.org, in the PC section. I currently have the scratchbox installing script running. This is exciting - no hacking needed to just get to the desktop so far.
-Edit2-
Now stuck at the fourth install script. The one that installs the nokia binaries. Keeps telling me I have no active target in scratchbox chroot and to create one before continuing by running sb-menu.... Tried running sb-menu, can't make heads or tails of what it wants. Will experiment a bit, then it's time for documentation reading.

rnb89 2011-01-08 04:31

Re: [Announce] Portrait mode support in control panel.
 
Update with the latest PR1.3 version?

jessi3k3 2011-01-08 06:00

Re: [Announce] Portrait mode support in control panel.
 
Quote:

Originally Posted by rnb89 (Post 914674)
Update with the latest PR1.3 version?

Press Ctrl + Shift + R, I don't even have this installed and it work for anything now. Press it again to disable

Mentalist Traceur 2011-01-08 06:15

Re: [Announce] Portrait mode support in control panel.
 
The whole point of this thread and the package it includes is that you don't NEED to press Ctrl + Shift + R. It enables auto rotation by default. So you launch the control panel, and if you turn your phone portrait with keyboard closed, it will rotate without you needing to press anything.

eefo 2011-01-14 16:27

Re: [Announce] Portrait mode support in control panel.
 
Quote:

Originally Posted by MohammadAG (Post 832478)
As I've done with modest, I'm looking into adding portrait mode flags into most open source apps on Maemo 5.

This is based on the PR1.2 hildon-control-panel source.
Some applets don't work in portrait mode, such as the display one and the themes one (it kicks the window into landscape mode). most of the ones I use do.

http://i55.tinypic.com/34tbm8m.jpg

You need to have rootsh and wget installed.

Code:

root
wget http://mohammadag.xceleo.org/public/maemo/debfiles/portrait/hildon-control-panel/hildon-control-panel_2.2.27-2+0m5_armel.deb
dpkg -i hildon-control-panel_2.2.27-2+0m5_armel.deb

To pin the package:
Code:

echo "Package: hildon-control-panel
Pin: release a=unstable
Pin-Priority: 1001" >> /etc/apt/preferences

I really should make all these portrait patches into one thread...




wget is a big problem at my side :(
how to install wget ?

laasonen 2011-01-14 16:34

Re: [Announce] Portrait mode support in control panel.
 
Quote:

Originally Posted by eefo (Post 920290)
wget is a big problem at my side :(
how to install wget ?

apt-get install wget

Notice that this should be used with PR1.2.

eefo 2011-01-15 11:57

Re: [Announce] Portrait mode support in control panel.
 
o no , i am using PR 1.3.


All times are GMT. The time now is 12:42.

vBulletin® Version 3.8.8