Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HOW2 test a frame-buffer?

931 views
Skip to first unread message

no.to...@gmail.com

unread,
Jan 4, 2012, 9:10:51 AM1/4/12
to
An application that I need to have on a HP-mini netbook,
needs a frame buffer.

When I did: cd /dev; ./MAKEDEV -n -v fb
it showed :
udev active, devices will be created in /dev/.static/dev/
create fb0 c 29 0 root:video 0660
create fb1 c 29 1 root:video 0660
create fb2 c 29 2 root:video 0660
create fb3 c 29 3 root:video 0660
create fb4 c 29 4 root:video 0660
create fb5 c 29 5 root:video 0660
create fb6 c 29 6 root:video 0660
create fb7 c 29 7 root:video 0660

Because the app. still failed, I did:
ln -s /dev/.static/dev/fb0 /dev/fb0
which made a difference:
the VT-display, just blanks.

But I was able to 'key' to other VTs and
Ctrl/C, Ctrl/D ..to free up the VT, which I
had to re-login, after each test cycle.

My slak13 PC shows some info for `fbset`;
but the netbook has got DebianEtch without any
utilities to test the frame-buffer, that I can find.

How would I test the fb* facility independantly
of my application?

== TIA.

no.to...@gmail.com

unread,
Jan 6, 2012, 3:15:35 AM1/6/12
to
In article <je1ml9$3gs$1...@dont-email.me>, no.to...@gmail.com wrote:

OK, here's the elementary info, which I wanted:--
because the framebuffer is a 'live' file/device you can use file access
to read/write it [probably] and see what it shows.

-> cat <a file> > /dev/fb0
will write to the display, I tested in VT mode.
Perhaps <video buffer overflow: error> could be an error,
but for my test a 300KB file just <wrote pixels to the top 20% of
the screen. My more advance question is below.
On my PC:slak13 which has the normal /dev/fb0
the above described test is good.

On the HP:Win7:netbook with CF:Debian:Etch
-> cat <file> > /dev/.static/dev/fb0
== <-bash: no such device: /dev/.static/dev/>

And yet
-> ls -l /dev/.static/dev/fb*
shows all 8 of them.

-> mknod /dev/fb0 c 29 0
-> ls -l /dev/fb0 == good
-> cat <file> > /dev/fb0
== <-bash: no such device: /dev/.static/dev/>

So I'm wondering why, although `ls -l` sees </dev/*/fb0>,
apparently `bash` does not ?

== TIA.



Alan Curry

unread,
Jan 6, 2012, 3:57:45 AM1/6/12
to
In article <je6aj6$gm$1...@dont-email.me>, <no.to...@gmail.com> wrote:
>
>-> mknod /dev/fb0 c 29 0
>-> ls -l /dev/fb0 == good
>-> cat <file> > /dev/fb0
>== <-bash: no such device: /dev/.static/dev/>
>
>So I'm wondering why, although `ls -l` sees </dev/*/fb0>,
>apparently `bash` does not ?
>

Pay close attention to the error message. "No such device" (ENODEV) isn't the
same as "No such file or directory" (ENOENT).

ENODEV usually means the corresponding kernel driver is not present. The
variant "No such device or address" (ENXIO) will sometimes appear when a
driver is loaded but the device itself wasn't detected.

You need to load the fb kernel module for your hardware.

--
Alan Curry

no.to...@gmail.com

unread,
Jan 6, 2012, 11:26:55 AM1/6/12
to
In article <je6d29$ck$1...@speranza.aioe.org>, pac...@kosh.dhis.org (Alan Curry) wrote:

> In article <je6aj6$gm$1...@dont-email.me>, <no.to...@gmail.com> wrote:
> >
> >-> mknod /dev/fb0 c 29 0
> >-> ls -l /dev/fb0 == good
> >-> cat <file> > /dev/fb0
> >== <-bash: no such device: /dev/.static/dev/>
> >
> >So I'm wondering why, although `ls -l` sees </dev/*/fb0>,
> >apparently `bash` does not ?
> >
>
> Pay close attention to the error message. "No such device" (ENODEV) isn't the
> same as "No such file or directory" (ENOENT).
>
> ENODEV usually means the corresponding kernel driver is not present. The
> variant "No such device or address" (ENXIO) will sometimes appear when a
> driver is loaded but the device itself wasn't detected.
>
I don't think a fb is 'detectable' except by the human eye.
On PC:slak13 `cat <file> > /dev/fb0` "shows" and fb apparently uses the
same video-memory as the non-fb-display.

> You need to load the fb kernel module for your hardware.
>
I need to know how to test if the kernel has fb, and
I need to know how to test if the fb-module can be loaded,
if not already in the kernel.
> --
> Alan Curry

The PC with Debian [not running now] but tested for fb
shows /boot/System.map* has 16 x "framebuffer"
/boot/config* has 2 x "FRAMEBUFFER".
and the dud-netbook has the same count.
The dud-netbook has `lsmod | grep frame` == nill.

I'm guessing that boot/System.map & config
tell that the kernel HAS fb facilities.

The most confusing for me is the sub-dir:
/dev/.static/dev/ which has the 8 fb*

==TIA.


David W. Hodgins

unread,
Jan 6, 2012, 11:18:46 PM1/6/12
to
On Fri, 06 Jan 2012 03:15:35 -0500, <no.to...@gmail.com> wrote:

> On the HP:Win7:netbook with CF:Debian:Etch
> -> cat <file> > /dev/.static/dev/fb0
> == <-bash: no such device: /dev/.static/dev/>
>
> And yet
> -> ls -l /dev/.static/dev/fb*
> shows all 8 of them.

Note that the error is not "No such file or directory", which
you would get if the filename was not present.

The underlying device is not there, meaning the frame buffer
module has not been loaded, so the tty is in text only mode.

Try adding vga=795 as a kernel boot parameter.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)

no.to...@gmail.com

unread,
Jan 8, 2012, 12:35:59 AM1/8/12
to
In article <op.v7o4xky...@hodgins.homeip.net>, "David W. Hodgins" <dwho...@nomail.afraid.org> wrote:

> On Fri, 06 Jan 2012 03:15:35 -0500, <no.to...@gmail.com> wrote:
>
> > On the HP:Win7:netbook with CF:Debian:Etch
> > -> cat <file> > /dev/.static/dev/fb0
> > == <-bash: no such device: /dev/.static/dev/>
> >
> > And yet
> > -> ls -l /dev/.static/dev/fb*
> > shows all 8 of them.
>
> Note that the error is not "No such file or directory", which
> you would get if the filename was not present.
>
> The underlying device is not there, meaning the frame buffer
> module has not been loaded, so the tty is in text only mode.
>
> Try adding vga=795 as a kernel boot parameter.
>
> Regards, Dave Hodgins
> ================
I'm copying this manually from CF:Debian:Etch to post
via PC:slak13
-> lsmod | wc -l == 41
-> grep: "vi", "vga", "fb" == none
and PC:slak13 has got 43, and none show in `lsmod`, yet
slak runs 'fb'. So I guess the fb-driver is IN the slak-kernel,
not as a module.
I've extended the DebEtch:boot/grub/menu.lst to:-
kernel /b... root=/dev/sdb2 vga=795 ro

But I still get ":NO such device" when I `cat FIle`
to *fb0, although *fb0 is seen by `ls -l`
--
When I 'live edited` another DebEtch's grub entry with a SEPARATE
line: vga=795
it showed "Unrecognised command"
which is good.
So now I'll put the 'vga=795` before the 'root='

That's BETTER: "You passed an undefined node number..."
"Enter mode number or 'scan':
<see menu of valid modes: VESA VGA>
80x25...80x60
-> repeated: 'scan' == shows unstable screen & increases menu from 7 to 9 items,
last/8 being 00x02
-> select '8' = blank screen.
---> select '7'/40x25 =BIG text
keeps BIGtext in linux, but still: -> ./fbTst = "No such device"

Reboot:-
-> select <80x60> == DOES INITIALLY show small text while booting.
--> select <80x34> == after <set clock again> restores to bigger text
-> repeated: 'scan' which always shows unstable screen
-> select '8' = blank screen.

Ok, a different DebEtch1 has got /dev/fb* [but no mc]
and DebEtch2 [which I've been concentrating on
had got the STRANGE /dev/.static/dev/fb*

-> try goog: Debian+grub+framebuffer
-> goog: grub+framebuffer+"No+such+device"

Thanks !


no.to...@gmail.com

unread,
Jan 8, 2012, 10:42:30 AM1/8/12
to
In article <op.v7o4xky...@hodgins.homeip.net>, "David W. Hodgins" <dwho...@nomail.afraid.org> wrote:

> On Fri, 06 Jan 2012 03:15:35 -0500, <no.to...@gmail.com> wrote:
>
> > On the HP:Win7:netbook with CF:Debian:Etch
> > -> cat <file> > /dev/.static/dev/fb0
> > == <-bash: no such device: /dev/.static/dev/>
> >
> > And yet
> > -> ls -l /dev/.static/dev/fb*
> > shows all 8 of them.
>
> Note that the error is not "No such file or directory", which
> you would get if the filename was not present.
>
> The underlying device is not there, meaning the frame buffer
> module has not been loaded, so the tty is in text only mode.
>
> Try adding vga=795 as a kernel boot parameter.
>
> Regards, Dave Hodgins
> ================
OK, I followed your lead, to some google articles.
vga=865 does it for me.
It's amazing to see this HP-mini break free from the
the Micro$loth monopoly.

Thanks.

0 new messages