LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-15-2007, 03:42 PM   #16
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48

Okay, unfortunately fbdev is a dead end - it's a way of running X, it cannot be used without X. I think one point needs clarifying. SVGAlib and directFB are two distinct things that should not be mixed. SVGAlib is a venerable old library that handles graphics, more or less by directly interfacing with the graphics through svga standards. DirectFB is a library that makes use of the /dev/fbX devices provided by the operating system. The advantages and disadvantages are listed below.

SVGAlib
-plays to the lowest common denominator of hardware support
-does not require kernel support

DirectFB
-Allows better accelleration
-Requires no special (root) privileges

If kernel support is not a problem, I'd recommend directfb backends. Links2 provides svgalib and directfb, as does mplayer. I am uncertain, but I think zgb supports only svgalib.
 
Old 10-15-2007, 03:55 PM   #17
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by PatrickNew View Post
Okay, unfortunately fbdev is a dead end - it's a way of running X, it cannot be used without X. I think one point needs clarifying. SVGAlib and directFB are two distinct things that should not be mixed. SVGAlib is a venerable old library that handles graphics, more or less by directly interfacing with the graphics through svga standards. DirectFB is a library that makes use of the /dev/fbX devices provided by the operating system. The advantages and disadvantages are listed below.

SVGAlib
-plays to the lowest common denominator of hardware support
-does not require kernel support

DirectFB
-Allows better accelleration
-Requires no special (root) privileges

If kernel support is not a problem, I'd recommend directfb backends. Links2 provides svgalib and directfb, as does mplayer. I am uncertain, but I think zgb supports only svgalib.
Thanks a lot !


I found this but for X / gtk : http://www.directfb.org/wiki/index.p...TK_on_DirectFB
sounds fast indeed directfb

(zgv works in ttyX)

I can compile easily the kernel ... to let fb there if it is the case...

digging digging ...
 
Old 10-15-2007, 03:59 PM   #18
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
that's wicked what he can do with the windows with directfb:

http://www.directfb.org/screenshots/...D_Windows2.png
 
Old 10-15-2007, 04:01 PM   #19
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Then, let's go for it, fbdev ! ;-) ;-)

I am now compiling the tar.gz :
http://www.directfb.org/downloads/Co...B-1.1.0.tar.gz

OK
 
Old 10-15-2007, 04:09 PM   #20
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by frenchn00b View Post
Then, let's go for it, fbdev ! ;-) ;-)

I am now compiling the tar.gz :
http://www.directfb.org/downloads/Co...B-1.1.0.tar.gz

OK
Ok, just compiled.
I made a package for who is interested (debian stable).
http://yellowprotoss.ye.funpic.org/deb/ => directfb

Now, getting it work .. ugrr
 
Old 10-15-2007, 04:09 PM   #21
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
From what you said you wanted, I still recommend just adding a cron job. I think it would be much easier to write a tiny script that kills the last instance of links2 from the pid you stashed in a file, theb launch links2 again, storing its pid in the file.
 
Old 10-15-2007, 04:18 PM   #22
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
I got the links vers 2.1, ./conf...bla ; make ; make install with directfb
but get this now:
Code:
links-2.1pre30$ ./links
./links: error while loading shared libraries: libdirectfb-1.1.so.0: cannot open shared object file: No such file or directory
what a fight
 
Old 10-15-2007, 04:19 PM   #23
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by PatrickNew View Post
From what you said you wanted, I still recommend just adding a cron job. I think it would be much easier to write a tiny script that kills the last instance of links2 from the pid you stashed in a file, theb launch links2 again, storing its pid in the file.
Oups', sorry, I do not understand .. (I am newbie)
 
Old 10-15-2007, 04:24 PM   #24
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by frenchn00b View Post
I got the links vers 2.1, ./conf...bla ; make ; make install with directfb
but get this now:
Code:
links-2.1pre30$ ./links
./links: error while loading shared libraries: libdirectfb-1.1.so.0: cannot open shared object file: No such file or directory
what a fight

pretty weird, ... looks like this :libdirectfb-1.1.so.0
is nowhere ... hmm

seeked there: http://packages.debian.org/etch/links2
 
Old 10-15-2007, 04:28 PM   #25
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
weird after apt-get install links,

it gives me that links:
Code:
$links --version
ELinks 0.11.1 (built on Nov 27 2006 10:22:51)

Features:
Standard, Fastmem, IPv6, gzip, bzip2, Periodic Saving, Timer, Cascading Style Sheets,
Protocol (File, FTP, HTTP, NNTP, URI rewrite, User protocols), SSL (GnuTLS),
MIME (Option system, Mailcap, Mimetypes files), LED indicators, Bookmarks,
Cookies, Form History, Global History, Scripting (Lua, Perl), Goto URL History,
Search History
OK, I got it now :

links2 -version
Links 2.1pre26



Now, permissions with directfb...
http://www.directfb.org/index.php/ma.../msg00119.html

Last edited by frenchn00b; 10-15-2007 at 04:35 PM.
 
Old 10-15-2007, 04:41 PM   #26
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by frenchn00b View Post
pretty weird, ... looks like this :libdirectfb-1.1.so.0
is nowhere ... hmm

seeked there: http://packages.debian.org/etch/links2
found the dude !

let's ln -s ...

Code:
/usr# find /usr/local/ -iname "*directfb-1.1*"
/usr/local/share/directfb-1.1.0
/usr/local/lib/libdirectfb-1.1.so.0.0.0
/usr/local/lib/libdirectfb-1.1.so.0
/usr/local/lib/directfb-1.1-0
 
Old 10-15-2007, 04:47 PM   #27
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
beware if you compile the links .tar.gz you've to put /usr/local stuff in appropriate debian place locations

/usr/local/bin/links is my just compiled links last stable versino

but still no directfb ...

pff
done for today
 
Old 10-15-2007, 04:48 PM   #28
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Try a script like this, run as root:

Code:
#!/bin/sh
kill `cat /tmp/weatherpid`
rm ~/.links2/socket
echo $! > /tmp/weatherpid
links2 -g www.weather.whatever
Have cron run this script every time you want to refresh the display, say every 1/2 hour or whatever. The second line takes care of a socket that's not being cleaned up since we kill links2, instead of letting it clean itself up.

To any gurus, how do you/can you instruct cron to run this on a specific tty.

It may be a less techincal solution, but you can always just run it as root and use control-r to refresh. Could save you some trouble.
 
Old 10-15-2007, 04:51 PM   #29
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
I just found that interesting ... http://www.directfb.org/wiki/index.php/XDirectFB:About
 
Old 10-15-2007, 04:53 PM   #30
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by PatrickNew View Post
Try a script like this, run as root:

Code:
#!/bin/sh
kill `cat /tmp/weatherpid`
rm ~/.links2/socket
echo $! > /tmp/weatherpid
links2 -g www.weather.whatever
Have cron run this script every time you want to refresh the display, say every 1/2 hour or whatever. The second line takes care of a socket that's not being cleaned up since we kill links2, instead of letting it clean itself up.

To any gurus, how do you/can you instruct cron to run this on a specific tty.

It may be a less techincal solution, but you can always just run it as root and use control-r to refresh. Could save you some trouble.
thank you... I'll try that too in meanwhile as alternative of no solution to run links2 -g ... thnkx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Info about graphics card AbrahamJose Solaris / OpenSolaris 2 06-25-2007 07:03 AM
/dev/ttyACM0 in Hardware Info, but not present in /dev list linuxdreamz Linux - Newbie 4 08-17-2006 02:29 PM
X: can't switch from tty7 to ttyx to tty7 again: blank screen DaneM Slackware 11 08-26-2005 08:36 AM
Need info about Linux graphics (e.g. OpenGL) kornerr Programming 11 08-12-2005 04:24 PM
weather info. clydeamus MEPIS 4 05-28-2005 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration