Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-16 Thread Martin Langhoff
On XO-1? Or XO-1.5?

Maybe I typo'ed the rpm name...


m

On Fri, Jul 16, 2010 at 12:07 PM, Reuben K. Caron reu...@laptop.org wrote:
 Martin,
 Esteban found that xorg-x11-drv-sisvga is not available
 but xorg-x11-drv-sisusb is available. Using xorg-x11-drv-sisusb worked fine.
 Reuben

 Begin forwarded message:

 Message: 2
 Date: Fri, 9 Jul 2010 17:18:47 -0400
 From: Martin Langhoff martin.langh...@gmail.com
 Subject: Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)
 To: OLPC Devel devel@lists.laptop.org
 Cc: Sridhar Dhanapalan srid...@laptop.org.au, san...@laptop.org,
 Keith Wilbern kwilb...@gmail.com, rsm...@laptop.org
 Message-ID:
 aanlktik-ofl5gc9roq2j97wqlysmjljg94rtjoyn8...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 On Thu, Jul 8, 2010 at 1:14 PM, Martin Langhoff
 martin.langh...@gmail.com wrote:

 For monitors/projectors that can handle something close to 1200x900 --

 1152x864, you can use Xinerama instead. Here is an xorg.conf that does

 exactly that:

 The Xinerama approach turned out to be a winner in terms of
 performance and !bugginess.

 Turns out that with a bit of elbow grease we can make it work on
 1024x768 which is what most projectors support.

 - yum install xorg-x11-drv-sisvga xorg-x11-server-Xephyr

 - Grab the files from http://dev.laptop.org/~martin/usbvga/xinerama/
   olpc-configure goes to /etc/init.d/ , make it executable
   olpc-session goes to /usr/bin/ , make it executable
   xorg-xo1.5-dcon-extmon.conf goes to /etc/X11/

 - Plug the USB2VGA device

 - Reboot  Enjoy

 Limitations and notes:

 ?- Needs to be switched on at X startup time. olpc-configure checks
 at boot time if sisusbvga is loaded and changes the xorg.conf symlink
 if needed. My patch also fixes a longstanding old bug where the
 xorg.conf was 'set' in the first boot.

 ?- The desktop is a little bit smaller. On the XO, the desktop
 appears in the top-left corner -- on the external monitor / projector
 it fills up the screen perfectly.

  - Icons can appear slightly pixellated. I think this technique may
 expose a bug in Sugar and in some activities (ie: TurtleArt) that keep
 a copy of rendered SVGs as bitmaps.

 ?- Performance is acceptable. (We are saturating the USB 2 bandwidth
 with the amount of pixels and the bitdepth).

 - The Sugar cursor is back!

 - Video works! No Xv however, so it's not particularly fast.

 Patch to olpc-utils is attached -- I haven't tested the spec changes.

 cheers,


 m
 --
 ?martin.langh...@gmail.com
 ?mar...@laptop.org -- School Server Architect
 ?- ask interesting questions
 ?- don't get distracted with shiny stuff? - working code first
 ?- http://wiki.laptop.org/go/User:Martinlanghoff




-- 
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-16 Thread Reuben K. Caron
XO 1.5

Thanks,

Reuben

On Jul 16, 2010, at 12:46 PM, Martin Langhoff wrote:

 On XO-1? Or XO-1.5?

 Maybe I typo'ed the rpm name...


 m

 On Fri, Jul 16, 2010 at 12:07 PM, Reuben K. Caron  
 reu...@laptop.org wrote:
 Martin,
 Esteban found that xorg-x11-drv-sisvga is not available
 but xorg-x11-drv-sisusb is available. Using xorg-x11-drv-sisusb  
 worked fine.
 Reuben

 Begin forwarded message:

 Message: 2
 Date: Fri, 9 Jul 2010 17:18:47 -0400
 From: Martin Langhoff martin.langh...@gmail.com
 Subject: Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)
 To: OLPC Devel devel@lists.laptop.org
 Cc: Sridhar Dhanapalan srid...@laptop.org.au, san...@laptop.org,
 Keith Wilbern kwilb...@gmail.com, rsm...@laptop.org
 Message-ID:
 aanlktik-ofl5gc9roq2j97wqlysmjljg94rtjoyn8...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 On Thu, Jul 8, 2010 at 1:14 PM, Martin Langhoff
 martin.langh...@gmail.com wrote:

 For monitors/projectors that can handle something close to 1200x900  
 --

 1152x864, you can use Xinerama instead. Here is an xorg.conf that  
 does

 exactly that:

 The Xinerama approach turned out to be a winner in terms of
 performance and !bugginess.

 Turns out that with a bit of elbow grease we can make it work on
 1024x768 which is what most projectors support.

 - yum install xorg-x11-drv-sisvga xorg-x11-server-Xephyr

 - Grab the files from http://dev.laptop.org/~martin/usbvga/xinerama/
   olpc-configure goes to /etc/init.d/ , make it executable
   olpc-session goes to /usr/bin/ , make it executable
   xorg-xo1.5-dcon-extmon.conf goes to /etc/X11/

 - Plug the USB2VGA device

 - Reboot  Enjoy

 Limitations and notes:

 ?- Needs to be switched on at X startup time. olpc-configure checks
 at boot time if sisusbvga is loaded and changes the xorg.conf symlink
 if needed. My patch also fixes a longstanding old bug where the
 xorg.conf was 'set' in the first boot.

 ?- The desktop is a little bit smaller. On the XO, the desktop
 appears in the top-left corner -- on the external monitor / projector
 it fills up the screen perfectly.

  - Icons can appear slightly pixellated. I think this technique may
 expose a bug in Sugar and in some activities (ie: TurtleArt) that  
 keep
 a copy of rendered SVGs as bitmaps.

 ?- Performance is acceptable. (We are saturating the USB 2 bandwidth
 with the amount of pixels and the bitdepth).

 - The Sugar cursor is back!

 - Video works! No Xv however, so it's not particularly fast.

 Patch to olpc-utils is attached -- I haven't tested the spec changes.

 cheers,


 m
 --
 ?martin.langh...@gmail.com
 ?mar...@laptop.org -- School Server Architect
 ?- ask interesting questions
 ?- don't get distracted with shiny stuff? - working code first
 ?- http://wiki.laptop.org/go/User:Martinlanghoff




 -- 
  mar...@laptop.org -- School Server Architect
  - ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  - http://wiki.laptop.org/go/User:Martinlanghoff

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-14 Thread Martin Langhoff
On Fri, Jul 9, 2010 at 5:18 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 The Xinerama approach turned out to be a winner in terms of
 performance and !bugginess.

This ticket tracks the status of this feature (currently working great
on xo-1.5)
http://dev.laptop.org/attachment/ticket/10210/

Trying this out on an XO-1 / F11 system leads to a segfault (sample
config file and logs of the fault in the ticket).

I suspect that the Geode driver may not be a good friend of Xinerama.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-14 Thread Jon Nettleton

 I suspect that the Geode driver may not be a good friend of Xinerama.


My gut instinct is that EXA and Xinerama are not playing well
together.  Xinerama has been deprecated and replaced with RandR, much
like XAA is supposed to be replaced with EXA.  XAA and Xinerama are
both from about the same era of Xorg legacy and a bit more compatible
with each other.

What acceleration mode are you using for the SisUSB adapter?  This
might also be a problem with using EXA and XAA for different drivers.
In your log SisUSB doesn't get to the point where it spits out the
options that are initialized.  I can take a quick look at the sisusb
driver to see what it is doing if it will help.

Jon
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-14 Thread Martin Langhoff
On Wed, Jul 14, 2010 at 4:51 PM, Jon Nettleton jon.nettle...@gmail.com wrote:

 I suspect that the Geode driver may not be a good friend of Xinerama.


 My gut instinct is that EXA and Xinerama are not playing well

The driver ignored my setting AccelMethod to XAA. It did get the hint
with NoAccel, but that hasn't solved the crash. It just takes less
time to crash.

 What acceleration mode are you using for the SisUSB adapter?

I don't think it does any kind of acceleration.

 I can take a quick look at the sisusb
 driver to see what it is doing if it will help.

It's an optional (but cool) feature. Not a blocker in my book.

We're hurting a lot more on the rotation side. Speaking of which, ISTR
you had a patch that kind of worked but was showing artifacts. Is that
anywhere I can find?

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-08 Thread Martin Langhoff
On Wed, Jul 7, 2010 at 5:06 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 Updated olpc-usbvgamirror with tweaks for better performance.

For monitors/projectors that can handle 800x600 or 1024x768, the VNC
approach is the best we can do.

For monitors/projectors that can handle something close to 1200x900 --
1152x864, you can use Xinerama instead. Here is an xorg.conf that does
exactly that:

http://dev.laptop.org/~martin/usbvga/xorg-xo1.5-dcon-hires-extmon.conf

It is *much* faster than VNC, and plays well with suspend (you'll
still want to disable aggressive powersaving).

Limitations and notes:

 - Needs to be switched on at X startup time. olpc-configure could
check at boot time if sisusbvga is loaded and change the xorg.conf
symlink.

 - It clips the margins of the desktop. But not very much, if the
projector honours the resolution, it's minimal. (Funny enough, if we
use 1280x960 but try to constrain it with Virtual, X ignores our Modes
line and falls back to 1152x864.)

 - It hides the cursor -- this is a long-standing Xinerama mirror mode quirk.

 - It isn't super fast, but the performance is acceptable. (We are
saturating the USB 2 bandwidth with the amount of pixels and the
bitdepth -- but cannot scale down either.)

 - Video (via Xv) doesn't work on USB2VGA devices

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-07 Thread Martin Langhoff
On Fri, Jul 2, 2010 at 4:53 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 2 - From http://dev.laptop.org/~martin/usbvga/ grab

    xorg-xo1.5-dcon.conf - goes into /etc/X11/
    olpc-usbvgamirror - goes into /usr/bin/ - mark it executable!
    95-usbvga.rules - goes into /etc/udev/rules.d

Updated olpc-usbvgamirror with tweaks for better performance.

It still drops off after a while -- with no errors to speak of in any
log, which is weird. All processes still running, all looks smooth but
there's no VGA output. Odd.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-07 Thread C. Scott Ananian
On Fri, Jul 2, 2010 at 4:53 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
  - It is slow and laggy. A VNC protocol expert may be able to help us
 optimise...

Might try some of the VNC encoding options, like those at:
 http://www.realvnc.com/products/free/4.1/winvncviewer.html#ColorEncoding
Assuming you're using a Unix domain or localhost socket, the raw
encoding might be best, with # colors matched to the source/dest.

  - If you look carefully, the mirror session has a small square cursor
 in the middle of the screen. We need a variant on
 http://wiki.x.org/wiki/AdvancedTopicsFAQ#Iwanttomakethemousecursorinvisible
 but I could not make it work. Given how the technique works, I think
 vncviewer is overriding the root window cursor.

This is a feature of vnc -- since the remote system cursor may lag
your local cursor, VNC represents your local cursor with a small box,
so that any mismatch between local and remote cursors is obvious and
visible.  The UseLocalCursor option to VNC should affect this.  (You
also might want to look into AutoReconnect.)

I'm using the names of the options in the official vnc viewer, but I
think the open source ones have the same options, maybe spelled
somewhat differently.
  --scott

-- 
 ( http://cscott.net/ )
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-07 Thread Martin Langhoff
On Wed, Jul 7, 2010 at 5:21 PM, C. Scott Ananian csc...@laptop.org wrote:
 Might try some of the VNC encoding options, like those at:

Yes but no. The documentation doesn't match actual outcomes. Raw
segfaults in ugly ways.

 This is a feature of vnc -- since the remote system cursor may lag

Been using VNC for a good number of years :-) -- found a way to
disable it but the cursor handling is *very* buggy.

I've updated the script today after a bit of testing and fiddling.
This probably needs a real VNC expert that can chase / file some
bugs...

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: USB2VGA adapters on XO-1.5 (and XO-1 with F11 images)

2010-07-02 Thread Martin Langhoff
On Thu, Jul 1, 2010 at 5:00 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 Consider this a draft for updating our wikipage, or even better a script...

Steps:

1 - yum install x11vnc tigervnc xorg-x11-drv-sisvga

2 - From http://dev.laptop.org/~martin/usbvga/ grab

xorg-xo1.5-dcon.conf - goes into /etc/X11/
olpc-usbvgamirror - goes into /usr/bin/ - mark it executable!
95-usbvga.rules - goes into /etc/udev/rules.d

With all these elements in place, just plug the usb2vga device, and
it'll mirror your XO screen. In case of trouble, output is logged in
/var/log/vncmirror*.log .

To tear the VNC sessions down, just unplug it.

Known issues

 - It is slow and laggy. A VNC protocol expert may be able to help us
optimise...

 - After a while, the client starts complaining of 'zero sized rect'

 - If you look carefully, the mirror session has a small square cursor
in the middle of the screen. We need a variant on
http://wiki.x.org/wiki/AdvancedTopicsFAQ#Iwanttomakethemousecursorinvisible
but I could not make it work. Given how the technique works, I think
vncviewer is overriding the root window cursor.

 - It consumes significant amount of CPU time...

 - You may want to disable aggressive suspend -- most of the time the
CPU burn keeps the laptop awake. If it doesn't, you lose the device.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel