[maemo-developers] Using Nokia 770 in vertical mode

2006-01-17 Thread Benno Senoner

Hi all,

I'd like to know how to use the Nokia 770 in vertical mode.

I found this:

http://syslog.movial.fi/archives/2005/11.html

From what I understand it uses the X11 XRANDR extension but you have to 
recompile the kernel/Xserver ?
If yes does anyone know what are the steps to compile the kernel/Xserver 
(what options) so that the 770 in vertical mode ?





Another thing I would like to do is having the Xserver on the 770 
listening on port 6000 (the default x11 port) and use an xhosts
file to permit a linux PC to display the output of a X11 app on the 
nokia. Is that possible or is the Xserver on the 770 not able to

support remote connections ?
A guy on #maemo told me that he was able to run the X11 app by using ssh 
X11 forwarding.
(I assume from the nokia he ssh-ed into a linux PC and then started the 
X11 app which displays the output on the nokia).


For speed reasons I'd like to use a plain X11 connection.

My goal would be to customize maemo so that the device starts, fires up 
the wireless connection, starts and starts the X11 server

(allowing remote connections) so that a custom app can be run.

PS: If someone that is familiar with the maemo enviroment and would like 
to do some paid work on the maemo enviroment to customize it

please contact me  offlist at [EMAIL PROTECTED]
(customizations can be be released as open source (as OSS licenses 
require) since it's not a big secret, its just tedious work :) )


cheers,
Benno








___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Using Nokia 770 in vertical mode

2006-01-18 Thread Tapani Pälli
ext Benno Senoner wrote:

> Hi all,
>
> I'd like to know how to use the Nokia 770 in vertical mode.
>
> I found this:
>
> http://syslog.movial.fi/archives/2005/11.html
>
> From what I understand it uses the X11 XRANDR extension but you have
> to recompile the kernel/Xserver ?
> If yes does anyone know what are the steps to compile the
> kernel/Xserver (what options) so that the 770 in vertical mode ?
>

It is possible to do rotations even hardware accelerated. However the
current UI does not scale to it well (as seen from screenshot) and
therefore it is not a supported feature. nchip is using software xrandr
but you still need to compile kernel since screen updates don't work
correctly otherwise ... however using software xrandr you will loose a
bit in performance (additional copy in memory) and quite much in memory
(~750kb).

BTW, if people on the list do experiments on this area or have any
thoughts about resize/rotation, please share them at :
http://maemo.org/maemowiki/MaemoScalability (ScalabilityBrainStorming).

>
>
>
> Another thing I would like to do is having the Xserver on the 770
> listening on port 6000 (the default x11 port) and use an xhosts
> file to permit a linux PC to display the output of a X11 app on the
> nokia. Is that possible or is the Xserver on the 770 not able to
> support remote connections ?


X in 770 is built with '--disable-tcp-transport', so the answer is no.

// Tapani

<>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Using Nokia 770 in vertical mode

2006-01-18 Thread Benno Senoner

Hi Tapani,

Tapani Pälli wrote:


It is possible to do rotations even hardware accelerated. However the
current UI does not scale to it well (as seen from screenshot) and
therefore it is not a supported feature. nchip is using software xrandr
but you still need to compile kernel since screen updates don't work
correctly otherwise ... however using software xrandr you will loose a
bit in performance (additional copy in memory) and quite much in memory
(~750kb).
 


interesting.
750kb does not seem a big problem especially if you don't plan to start 
other memory consuming apps.


The question is more about speed. What kind of slow down do you think 
one would experience ?
If it's in the order of 20% or so then it's acceptable but if it's more 
twice than slow then I think hardware acceleration would

be definitively needed.

Apart from recompiling the kernel, how do you tell the X server start 
with eg a 90degrees rotation ?
Is that a commandline / config file option or do you need to call some 
X11 function from an X client to rotate the screen ?



BTW, if people on the list do experiments on this area or have any
thoughts about resize/rotation, please share them at :
http://maemo.org/maemowiki/MaemoScalability (ScalabilityBrainStorming).
 

Nice, I will certainly share my findings on the mailing list / wiki if I 
manage to make it work.




Another thing I would like to do is having the Xserver on the 770
listening on port 6000 (the default x11 port) and use an xhosts
file to permit a linux PC to display the output of a X11 app on the
nokia. Is that possible or is the Xserver on the 770 not able to
support remote connections ?
  




X in 770 is built with '--disable-tcp-transport', so the answer is no.
 


Thanks.
The  question is if the X server can be rebuilt without
--disable-tcp-transport


if yes, what drawbacks /limitations it has, eg if disabling tcp-transport
was only used to save memory/cpu or because the Nokia hardware in 
general has some limitations which

makes it hard/impossible  to use X11 forwarding. (Which I hardly believe).

thanks again for all your infos,

cheers,
Benno



// Tapani

 








___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Using Nokia 770 in vertical mode

2006-01-18 Thread Tapani Pälli
ext Benno Senoner wrote:

> Hi Tapani,
>
> Tapani Pälli wrote:
>
>> It is possible to do rotations even hardware accelerated. However the
>> current UI does not scale to it well (as seen from screenshot) and
>> therefore it is not a supported feature. nchip is using software xrandr
>> but you still need to compile kernel since screen updates don't work
>> correctly otherwise ... however using software xrandr you will loose a
>> bit in performance (additional copy in memory) and quite much in memory
>> (~750kb).
>>  
>>
> interesting.
> 750kb does not seem a big problem especially if you don't plan to
> start other memory consuming apps.
>
> The question is more about speed. What kind of slow down do you think
> one would experience ?
> If it's in the order of 20% or so then it's acceptable but if it's
> more twice than slow then I think hardware acceleration would
> be definitively needed.
>

This is just a wild guess but it's much less than 20%, haven't really
measured this.

> Apart from recompiling the kernel, how do you tell the X server start
> with eg a 90degrees rotation ?
> Is that a commandline / config file option or do you need to call some
> X11 function from an X client to rotate the screen ?
>

You'll need libXrandr on the device and then just compile 'xrandr'
command line tool to use that library :
http://cvs.freedesktop.org/xapps/xrandr/

>> BTW, if people on the list do experiments on this area or have any
>> thoughts about resize/rotation, please share them at :
>> http://maemo.org/maemowiki/MaemoScalability (ScalabilityBrainStorming).
>>  
>>
> Nice, I will certainly share my findings on the mailing list / wiki if
> I manage to make it work.
>
>>>
>>> Another thing I would like to do is having the Xserver on the 770
>>> listening on port 6000 (the default x11 port) and use an xhosts
>>> file to permit a linux PC to display the output of a X11 app on the
>>> nokia. Is that possible or is the Xserver on the 770 not able to
>>> support remote connections ?
>>>   
>>
>>
>>
>>
>> X in 770 is built with '--disable-tcp-transport', so the answer is no.
>>  
>>
> Thanks.
> The  question is if the X server can be rebuilt without
> --disable-tcp-transport
>
>
> if yes, what drawbacks /limitations it has, eg if disabling tcp-transport
> was only used to save memory/cpu or because the Nokia hardware in
> general has some limitations which
> makes it hard/impossible  to use X11 forwarding. (Which I hardly
> believe).
>

The executable size is smaller and it's much more secure. You should
consider using X through ssh or using vnc.

> thanks again for all your infos,
>
> cheers,
> Benno
>

// Tapani

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Using Nokia 770 in vertical mode

2006-01-19 Thread Riku Voipio
On Wednesday 18 January 2006 10:13, Tapani Pälli wrote:
> It is possible to do rotations even hardware accelerated. However the
> current UI does not scale to it well (as seen from screenshot) and
> therefore it is not a supported feature. nchip is using software xrandr
> but you still need to compile kernel since screen updates don't work
> correctly otherwise ... however using software xrandr you will loose a
> bit in performance (additional copy in memory) and quite much in memory
> (~750kb).

Indeed, it would be preferrable to use HW acceleration, that was only a very 
quick hack. Since the user interface latency is usually not X-related, the 
perfomance loss of additional copy does not make the UI noticably less
unresponsive. 

But ofcourse, this xrandr implementation: 
http://lemody.blogspot.com/2005/11/xrandr-o-2.html Is much more cool :) 
Any chances for a unofficial X binary for hackers with this?-) 
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers