Re: Xfbdev fails with no screens found

2011-04-14 Thread zt.t...@gmail.com
On Apr 13, 2011 10:29 PM, Dushara Jayasinghe 
dushara.jayasin...@hydrix.com wrote:

 Hi Thanks for the reply.

 Somehow I stuffed up the post with all the relevant info. I've pasted it
here again:

 --- 8

 DISPLAY wasn't the issue. To cut a long story short... I needed to update
some stuff on buildroot.

 However, it's still not working properly. I had to add the attached patch
to get it to work with the frame buffer device I'm using. Xfbdev runs fine
now but when I execute xlogo, nothing is displayed on the screen. The part
of the screen gets 'cleared' so I know that it writes something to /dev/fb0.


 The output of fbset -i:

 # fbset -i

 mode 240x128-158
 # D: 5.000 MHz, H: 20.325 kHz, V: 157.560 Hz
 geometry 240 128 240 128 1
 timings 20 3 1 0 0 2 1
 rgba 0/0,0/0,0/0,0/0
 endmode

 Frame buffer device information:
 Name : DISP0 BG
 Address : 0x906b8000
 Size : 4096
 Type : PACKED PIXELS
 Visual : MONO01
 XPanStep : 1
 YPanStep : 1
 YWrapStep : 0
 LineLength : 32
 Accelerator : No
 #

 --- 8


 I'm using Xfbdev because, this is for an embedded product and I want to
keep things as small as possible.

 The framebuffer driver I'm using is for a monochrome LCD panel running on
an iMX.25 based system (I tweaked the driver supplied by Freescale to suite
our needs.

 Thanks.
 Dushara

 P.S. What is preferred on this ML top/bottom posts?


 On 14/04/2011 12:03 PM, zt.t...@gmail.com wrote:


 Hi.
 Could you explain in more detail what you are trying to do, include the
output of fbset on your hardware and what framebuffer driver you are using?

 Xfbdev is not a nested server, don't see how setting DISPLAY would help.

 If you can, please strace Xfbdev and include that as well. I assume an
IOCTL is failing though I don't see any detailed logs. Xfbdev is based on
the kdrive X server, it doesn't have the same configuration or logging as
Xorg servers do. Why do you need to use Xfbdev, does Xorg (fbdev driver) not
work?

 Thanks,
 Timothy Meade
 tmzt on #xorg and #xorg-users

 On Apr 13, 2011 7:50 PM, Dushara Jayasinghe 
dushara.jayasin...@hydrix.com wrote:
 
  Sorry reposting this coz I stuffed up the subject...
 
  On 13/04/2011 4:34 PM, Dushara Jayasinghe wrote:
 
   On 12/04/2011 11:06 AM, xorg-devel-requ...@lists.x.org wrote:
 
  Date: Mon, 11 Apr 2011 21:55:27 +0200
  From: Abdoulaye Walsimou GAYEa...@embtoolkit.org
  Subject: Re: Xfbdev fails with no screens found
  To: xorg-devel@lists.x.org
  Message-ID:4da35caf.1090...@embtoolkit.org
  Content-Type: text/plain; charset=iso-8859-1; Format=flowed
 
  On 04/11/2011 10:01 AM, Dushara Jayasinghe wrote:
 
  Hi all,
 
  I'm trying to use Xfbdev on an embedded linux device with a
monochrom LCD display. However, the command returns the following error:
 
  Fatal server error:
  no screens found
 
  Using xserver_xorg-server-1.7.5
  with kdrive/fbdev
 
  Hello,
  does the following command line, before starting Xfbdev, fixes the
issue:
  export DISPLAY=:0
 
 
 
  ___
  xorg-devel@lists.x.org: X.Org development
  Archives: http://lists.x.org/archives/xorg-devel
  Info: http://lists.x.org/mailman/listinfo/xorg-devel
 
 
  --
  Dushara Jayasinghe | Senior Software Engineer
  dushara.jayasin...@hydrix.com | +61 3 8573 5221
  Hydrix: Our Expertise – Your Competitive Advantage
  www.hydrix.com | fax +61 3 9572 2686 | phone +61 3 8573 5299
 
  ___
  xorg-devel@lists.x.org: X.Org development
  Archives: http://lists.x.org/archives/xorg-devel
  Info: http://lists.x.org/mailman/listinfo/xorg-devel


 --
 Dushara Jayasinghe | Senior Software Engineer
 dushara.jayasin...@hydrix.com | +61 3 8573 5221
 Hydrix: Our Expertise – Your Competitive Advantage
 www.hydrix.com | fax +61 3 9572 2686 | phone +61 3 8573 5299

I believe bottom, I couldn't figure out which of the quoted messages to
reply to.

I don't believe the visual is getting setup right, I'm pretty sure this
going to need changes to the server though Keith or someone else on the list
might know for sure. You might do better with overlay support, or something
that supports a single bit depth. I also wonder if the rgba mask has
anything to do with it. I haven't looked at this code recently, but I'm
pretty sure it's using MI/FB to create a visual from the FBIO fixed
structure. You can try -screen parameter if you can figure out the right
one, but it will probably still try to set the config back to the fbdev and
fail. If somebody knows how to create a monochrome visual/root pixmap you
could modify the server to do that, or properly support the visual flags in
your fbset output.

--
Timothy Meade
tmzt on #xorg-devel on freenode
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org

Re: Xfbdev fails with no screens found

2011-04-14 Thread Dushara Jayasinghe

On 14/04/2011 4:28 PM, zt.t...@gmail.com wrote:


On Apr 13, 2011 10:29 PM, Dushara Jayasinghe
dushara.jayasin...@hydrix.com mailto:dushara.jayasin...@hydrix.com
wrote:
 
  Hi Thanks for the reply.
 
  Somehow I stuffed up the post with all the relevant info. I've pasted
it here again:
 
  --- 8

  DISPLAY wasn't the issue. To cut a long story short... I needed to
update some stuff on buildroot.
 
  However, it's still not working properly. I had to add the attached
patch to get it to work with the frame buffer device I'm using. Xfbdev
runs fine now but when I execute xlogo, nothing is displayed on the
screen. The part of the screen gets 'cleared' so I know that it writes
something to /dev/fb0.
 
  The output of fbset -i:
 
  # fbset -i
 
  mode 240x128-158
  # D: 5.000 MHz, H: 20.325 kHz, V: 157.560 Hz
  geometry 240 128 240 128 1
  timings 20 3 1 0 0 2 1
  rgba 0/0,0/0,0/0,0/0
  endmode
 
  Frame buffer device information:
  Name : DISP0 BG
  Address : 0x906b8000
  Size : 4096
  Type : PACKED PIXELS
  Visual : MONO01
  XPanStep : 1
  YPanStep : 1
  YWrapStep : 0
  LineLength : 32
  Accelerator : No
  #
 
  --- 8

 
  I'm using Xfbdev because, this is for an embedded product and I want
to keep things as small as possible.
 
  The framebuffer driver I'm using is for a monochrome LCD panel
running on an iMX.25 based system (I tweaked the driver supplied by
Freescale to suite our needs.
 
  Thanks.
  Dushara
 
  P.S. What is preferred on this ML top/bottom posts?
 
 
  On 14/04/2011 12:03 PM, zt.t...@gmail.com mailto:zt.t...@gmail.com
wrote:
 
 
  Hi.
  Could you explain in more detail what you are trying to do, include
the output of fbset on your hardware and what framebuffer driver you are
using?
 
  Xfbdev is not a nested server, don't see how setting DISPLAY would help.
 
  If you can, please strace Xfbdev and include that as well. I assume
an IOCTL is failing though I don't see any detailed logs. Xfbdev is
based on the kdrive X server, it doesn't have the same configuration or
logging as Xorg servers do. Why do you need to use Xfbdev, does Xorg
(fbdev driver) not work?
 
  Thanks,
  Timothy Meade
  tmzt on #xorg and #xorg-users
 
  On Apr 13, 2011 7:50 PM, Dushara Jayasinghe
dushara.jayasin...@hydrix.com mailto:dushara.jayasin...@hydrix.com
wrote:
  
   Sorry reposting this coz I stuffed up the subject...
  
   On 13/04/2011 4:34 PM, Dushara Jayasinghe wrote:
  
On 12/04/2011 11:06 AM, xorg-devel-requ...@lists.x.org
mailto:xorg-devel-requ...@lists.x.org wrote:
  
   Date: Mon, 11 Apr 2011 21:55:27 +0200
   From: Abdoulaye Walsimou GAYEa...@embtoolkit.org
mailto:a...@embtoolkit.org
   Subject: Re: Xfbdev fails with no screens found
   To: xorg-devel@lists.x.org mailto:xorg-devel@lists.x.org
   Message-ID:4da35caf.1090...@embtoolkit.org
mailto:4da35caf.1090...@embtoolkit.org
   Content-Type: text/plain; charset=iso-8859-1; Format=flowed
  
   On 04/11/2011 10:01 AM, Dushara Jayasinghe wrote:
  
   Hi all,
  
   I'm trying to use Xfbdev on an embedded linux device with a
monochrom LCD display. However, the command returns the following error:
  
   Fatal server error:
   no screens found
  
   Using xserver_xorg-server-1.7.5
   with kdrive/fbdev
  
   Hello,
   does the following command line, before starting Xfbdev, fixes
the issue:
   export DISPLAY=:0
  
  
  
   ___
   xorg-devel@lists.x.org mailto:xorg-devel@lists.x.org: X.Org
development
   Archives: http://lists.x.org/archives/xorg-devel
   Info: http://lists.x.org/mailman/listinfo/xorg-devel
  
  
   --
   Dushara Jayasinghe | Senior Software Engineer
   dushara.jayasin...@hydrix.com
mailto:dushara.jayasin...@hydrix.com | +61 3 8573 5221
   Hydrix: Our Expertise – Your Competitive Advantage
   www.hydrix.com http://www.hydrix.com | fax +61 3 9572 2686 |
phone +61 3 8573 5299
  
   ___
   xorg-devel@lists.x.org mailto:xorg-devel@lists.x.org: X.Org
development
   Archives: http://lists.x.org/archives/xorg-devel
   Info: http://lists.x.org/mailman/listinfo/xorg-devel
 
 
  --
  Dushara Jayasinghe | Senior Software Engineer
  dushara.jayasin...@hydrix.com mailto:dushara.jayasin...@hydrix.com
| +61 3 8573 5221
  Hydrix: Our Expertise – Your Competitive Advantage
  www.hydrix.com http://www.hydrix.com | fax +61 3 9572 2686 | phone
+61 3 8573 5299

I believe bottom, I couldn't figure out which of the quoted messages to
reply to.

I don't believe the visual is getting setup right, I'm pretty sure this
going to need changes to the server though Keith or someone else on the
list might know for sure. You might do better with overlay support, or
something that supports a single bit depth. I also wonder if the rgba
mask has anything to do with it. I haven't looked at this code recently,
but I'm pretty sure it's using MI/FB

Re: Xfbdev fails with no screens found

2011-04-13 Thread Dushara Jayasinghe

 Sorry reposting this coz I stuffed up the subject...

On 13/04/2011 4:34 PM, Dushara Jayasinghe wrote:

 On 12/04/2011 11:06 AM, xorg-devel-requ...@lists.x.org wrote:

Date: Mon, 11 Apr 2011 21:55:27 +0200
From: Abdoulaye Walsimou GAYEa...@embtoolkit.org
Subject: Re: Xfbdev fails with no screens found
To: xorg-devel@lists.x.org
Message-ID:4da35caf.1090...@embtoolkit.org
Content-Type: text/plain; charset=iso-8859-1; Format=flowed

On 04/11/2011 10:01 AM, Dushara Jayasinghe wrote:

Hi all,

I'm trying to use Xfbdev on an embedded linux device with a 
monochrom LCD display. However, the command returns the following 
error:


Fatal server error:
no screens found

Using xserver_xorg-server-1.7.5
with kdrive/fbdev

Hello,
does the following command line, before starting Xfbdev, fixes the 
issue:

export DISPLAY=:0


___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


--
Dushara Jayasinghe | Senior Software Engineer
dushara.jayasin...@hydrix.com | +61 3 8573 5221
Hydrix: /Our Expertise – Your Competitive Advantage/
www.hydrix.com | fax +61 3 9572 2686 | phone +61 3 8573 5299
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Xfbdev fails with no screens found

2011-04-13 Thread zt.t...@gmail.com
Hi.
Could you explain in more detail what you are trying to do, include the
output of fbset on your hardware and what framebuffer driver you are using?

Xfbdev is not a nested server, don't see how setting DISPLAY would help.

If you can, please strace Xfbdev and include that as well. I assume an IOCTL
is failing though I don't see any detailed logs. Xfbdev is based on the
kdrive X server, it doesn't have the same configuration or logging as Xorg
servers do. Why do you need to use Xfbdev, does Xorg (fbdev driver) not
work?

Thanks,
Timothy Meade
tmzt on #xorg and #xorg-users

On Apr 13, 2011 7:50 PM, Dushara Jayasinghe dushara.jayasin...@hydrix.com
wrote:

 Sorry reposting this coz I stuffed up the subject...

 On 13/04/2011 4:34 PM, Dushara Jayasinghe wrote:

  On 12/04/2011 11:06 AM, xorg-devel-requ...@lists.x.org wrote:

 Date: Mon, 11 Apr 2011 21:55:27 +0200
 From: Abdoulaye Walsimou GAYEa...@embtoolkit.org
 Subject: Re: Xfbdev fails with no screens found
 To: xorg-devel@lists.x.org
 Message-ID:4da35caf.1090...@embtoolkit.org
 Content-Type: text/plain; charset=iso-8859-1; Format=flowed

 On 04/11/2011 10:01 AM, Dushara Jayasinghe wrote:

 Hi all,

 I'm trying to use Xfbdev on an embedded linux device with a monochrom
LCD display. However, the command returns the following error:

 Fatal server error:
 no screens found

 Using xserver_xorg-server-1.7.5
 with kdrive/fbdev

 Hello,
 does the following command line, before starting Xfbdev, fixes the
issue:
 export DISPLAY=:0



 ___
 xorg-devel@lists.x.org: X.Org development
 Archives: http://lists.x.org/archives/xorg-devel
 Info: http://lists.x.org/mailman/listinfo/xorg-devel


 --
 Dushara Jayasinghe | Senior Software Engineer
 dushara.jayasin...@hydrix.com | +61 3 8573 5221
 Hydrix: Our Expertise – Your Competitive Advantage
 www.hydrix.com | fax +61 3 9572 2686 | phone +61 3 8573 5299

 ___
 xorg-devel@lists.x.org: X.Org development
 Archives: http://lists.x.org/archives/xorg-devel
 Info: http://lists.x.org/mailman/listinfo/xorg-devel
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Xfbdev fails with no screens found

2011-04-13 Thread Dushara Jayasinghe

 Hi Thanks for the reply.

Somehow I stuffed up the post with all the relevant info. I've pasted it 
here again:


--- 8  

DISPLAY wasn't the issue. To cut a long story short... I needed to 
update some stuff on buildroot.


However, it's still not working properly. I had to add the attached 
patch to get it to work with the frame buffer device I'm using. Xfbdev 
runs fine now but when I execute xlogo, nothing is displayed on the 
screen. The part of the screen gets 'cleared' so I know that it writes 
/something/ to /dev/fb0.


The output of fbset -i:

# fbset -i

mode 240x128-158
# D: 5.000 MHz, H: 20.325 kHz, V: 157.560 Hz
geometry 240 128 240 128 1
timings 20 3 1 0 0 2 1
rgba 0/0,0/0,0/0,0/0
endmode

Frame buffer device information:
Name : DISP0 BG
Address : 0x906b8000
Size : 4096
Type : PACKED PIXELS
Visual : MONO01
XPanStep : 1
YPanStep : 1
YWrapStep : 0
LineLength : 32
Accelerator : No
#

--- 8  



I'm using Xfbdev because, this is for an embedded product and I want to 
keep things as small as possible.


The framebuffer driver I'm using is for a monochrome LCD panel running 
on an iMX.25 based system (I tweaked the driver supplied by Freescale to 
suite our needs.


Thanks.
Dushara

P.S. What is preferred on this ML top/bottom posts?

On 14/04/2011 12:03 PM, zt.t...@gmail.com wrote:



Hi.
Could you explain in more detail what you are trying to do, include 
the output of fbset on your hardware and what framebuffer driver you 
are using?


Xfbdev is not a nested server, don't see how setting DISPLAY would help.

If you can, please strace Xfbdev and include that as well. I assume an 
IOCTL is failing though I don't see any detailed logs. Xfbdev is based 
on the kdrive X server, it doesn't have the same configuration or 
logging as Xorg servers do. Why do you need to use Xfbdev, does Xorg 
(fbdev driver) not work?


Thanks,
Timothy Meade
tmzt on #xorg and #xorg-users

On Apr 13, 2011 7:50 PM, Dushara Jayasinghe 
dushara.jayasin...@hydrix.com mailto:dushara.jayasin...@hydrix.com 
wrote:


 Sorry reposting this coz I stuffed up the subject...

 On 13/04/2011 4:34 PM, Dushara Jayasinghe wrote:

  On 12/04/2011 11:06 AM, xorg-devel-requ...@lists.x.org 
mailto:xorg-devel-requ...@lists.x.org wrote:


 Date: Mon, 11 Apr 2011 21:55:27 +0200
 From: Abdoulaye Walsimou GAYEa...@embtoolkit.org 
mailto:a...@embtoolkit.org

 Subject: Re: Xfbdev fails with no screens found
 To: xorg-devel@lists.x.org mailto:xorg-devel@lists.x.org
 Message-ID:4da35caf.1090...@embtoolkit.org 
mailto:4da35caf.1090...@embtoolkit.org

 Content-Type: text/plain; charset=iso-8859-1; Format=flowed

 On 04/11/2011 10:01 AM, Dushara Jayasinghe wrote:

 Hi all,

 I'm trying to use Xfbdev on an embedded linux device with a 
monochrom LCD display. However, the command returns the following error:


 Fatal server error:
 no screens found

 Using xserver_xorg-server-1.7.5
 with kdrive/fbdev

 Hello,
 does the following command line, before starting Xfbdev, fixes the 
issue:

 export DISPLAY=:0



 ___
 xorg-devel@lists.x.org mailto:xorg-devel@lists.x.org: X.Org 
development

 Archives: http://lists.x.org/archives/xorg-devel
 Info: http://lists.x.org/mailman/listinfo/xorg-devel


 --
 Dushara Jayasinghe | Senior Software Engineer
 dushara.jayasin...@hydrix.com mailto:dushara.jayasin...@hydrix.com 
| +61 3 8573 5221

 Hydrix: Our Expertise – Your Competitive Advantage
 www.hydrix.com http://www.hydrix.com | fax +61 3 9572 2686 | phone 
+61 3 8573 5299


 ___
 xorg-devel@lists.x.org mailto:xorg-devel@lists.x.org: X.Org 
development

 Archives: http://lists.x.org/archives/xorg-devel
 Info: http://lists.x.org/mailman/listinfo/xorg-devel



--
Dushara Jayasinghe | Senior Software Engineer
dushara.jayasin...@hydrix.com | +61 3 8573 5221
Hydrix: /Our Expertise – Your Competitive Advantage/
www.hydrix.com | fax +61 3 9572 2686 | phone +61 3 8573 5299
diff -Naur xorg-server-1.7.5-old/hw/kdrive/fbdev/fbdev.c 
xorg-server-1.7.5-new/hw/kdrive/fbdev/fbdev.c
--- xorg-server-1.7.5-old/hw/kdrive/fbdev/fbdev.c   2010-02-16 
11:24:22.0 +1100
+++ xorg-server-1.7.5-new/hw/kdrive/fbdev/fbdev.c   2011-04-13 
16:10:59.517011484 +1000
@@ -238,6 +238,10 @@
screen-fb[0].greenMask = 0x00;
screen-fb[0].redMask   = 0x00;
break;
+case FB_VISUAL_MONO01:
+case FB_VISUAL_MONO10:
+   screen-fb[0].visuals = (1  StaticGray);
+   break;
 case FB_VISUAL_STATIC_PSEUDOCOLOR:
if (gray)
{
@@ -287,6 +291,8 @@
 screen-fb[0].depth = depth;
 screen-fb[0].bitsPerPixel = priv-var.bits_per_pixel;
 
+fprintf(stderr, %d:depth=%d, bpp=%d\n, __LINE__, screen-fb[0].depth, 
screen-fb[0].bitsPerPixel);
+
 scrpriv-randr = screen-randr;
 
 return fbdevMapFramebuffer (screen

Xfbdev fails with no screens found

2011-04-11 Thread Dushara Jayasinghe

 Hi all,

I'm trying to use Xfbdev on an embedded linux device with a monochrom 
LCD display. However, the command returns the following error:


Fatal server error:
no screens found

I have the device nodes for the framebuffer device (/dev/fb0). On closer 
inspection of the code, it seems this error is generated because 
screenInfo.numScreens has not been initialised. But I can't work out 
where this parameter gets set.


Any ideas?

Using xserver_xorg-server-1.7.5
with kdrive/fbdev

Thanks
Dushara

--
Dushara Jayasinghe | Senior Software Engineer
dushara.jayasin...@hydrix.com | +61 3 8573 5221
Hydrix: /Our Expertise -- Your Competitive Advantage/
www.hydrix.com | fax +61 3 9572 2686 | phone +61 3 8573 5299
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Xfbdev fails with no screens found

2011-04-11 Thread Abdoulaye Walsimou GAYE

On 04/11/2011 10:01 AM, Dushara Jayasinghe wrote:

Hi all,

I'm trying to use Xfbdev on an embedded linux device with a monochrom LCD 
display. However, the command returns the following error:

Fatal server error:
no screens found

I have the device nodes for the framebuffer device (/dev/fb0). On closer 
inspection of the code, it seems this error is generated because 
screenInfo.numScreens has not been initialised. But I can't work out where this 
parameter gets set.

Any ideas?

Using xserver_xorg-server-1.7.5
with kdrive/fbdev


Hello,
does the following command line, before starting Xfbdev, fixes the issue:
export DISPLAY=:0

Regards,
AWG
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel