console mode text cursor with graphics cursor?

View: New views
3 Messages — Rating Filter:   Alert me  

console mode text cursor with graphics cursor?

by Dan Grunberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I have compiled Qt3 and Kong/E to run without X-windows (conf below).

When I run the executable, I get a browser and cursor that look mostly OK – the problem is I also get a text-mode cursor that moves around in sync with

the graphics cursor and overwrites the browser with text-size blocks.  It looks like I have to disable text-mode or console-output somehow.  I boot linux with vga=0x307 on the kernel line with grub.

The browser actually seems to work (I can visit different sites) – the main problem is the overwriting the screen with a text mode cursor.

 

Does anyone have any ideas on how to fix this?

 

Thanks,

Dan Grunberg

 

 

Qt configuration (qt-embedded-free-3.3.8b.tar.gz):

export QTDIR=~/qt-3.3.8

export LD_LIBRARY_PATH=~/qt-3.3.8/lib

./configure -release -qt-gif -no-cups -no-stl -enable-rttimake –thread

 

Konq/E configuration (kdenox_snapshot_Qt3_2007.02.12.tar.bz2)

BOOK=--disable-bookmarks

./configure  \

            --host=i686-pc-linux-gnu \

            --build=i686-pc-linux-gnu \

            --target=i686-pc-linux-gnu \

            --enable-embedded \

            --enable-qt-embedded  \

            --enable-static \

            --enable-mt    \

            --enable-ftp \

            --with-qt-dir=$QTE_BASE/ \

            --with-qt-libraries=$QTE_BASE/lib \

            --with-qt-includes=$QTE_BASE/include \

            --with-gui=x11 \

            --enable-rtti-embedded \

            --enable-fullscreenmenu \

            --enable-scrollbars \

            --disable-selection \

            $BOOK \

            --with-javascript=static \

            --enable-debug=yes \

            --disable-printing \

            --enable-pcre \

            --without-arts \

            --enable-jshostext

 

Daniel Grunberg

Immedia Semiconductor, Inc.

Wilmington, MA 01810

(781) 820-0525

dangrunberg@...

Visit the MIT Museum:  http://web.mit.edu/museum

 

 


_______________________________________________
konq-e mailing list
konq-e@...
https://mail.kde.org/mailman/listinfo/konq-e

Re: console mode text cursor with graphics cursor?

by Bugzilla from u.luckas@road.de :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday, 28. July 2008, Dan Grunberg wrote:
> I have compiled Qt3 and Kong/E to run without X-windows (conf below).
>
> When I run the executable, I get a browser and cursor that look mostly OK -
> the problem is I also get a text-mode cursor that moves around in sync with
>
> the graphics cursor and overwrites the browser with text-size blocks.  It
> looks like I have to disable text-mode or console-output somehow.  I boot
> linux with vga=0x307 on the kernel line with grub.
>
The vga mode should not matter here.

> The browser actually seems to work (I can visit different sites) - the main
> problem is the overwriting the screen with a text mode cursor.
>
>
I don't know for sure about Qt3 but Qt2 fails to switch the console to
graphics mode. Maybe a call like this in Qt3's equivalent to
QLinuxFbScreen::initDevice() can cure your problems:
ioctl(tty, KDSETMODE, KD_GRAPHICS);

On shutdown (QLinuxFbScreen::shutdownDevice() for Qt2) you should switch the
mode back to a saved value or just to KD_TEXT.

regards,
Uli

--

------- ROAD ...the handyPC Company - - -  ) ) )

Uli Luckas
Software Development

ROAD GmbH
Bennigsenstr. 14 | 12159 Berlin | Germany
fon: +49 (30) 230069 - 64 | fax: +49 (30) 230069 - 69
url: www.road.de

Amtsgericht Charlottenburg: HRB 96688 B
Managing directors: Hans-Peter Constien, Hubertus von Streit
_______________________________________________
konq-e mailing list
konq-e@...
https://mail.kde.org/mailman/listinfo/konq-e

RE: console mode text cursor with graphics cursor?

by Dan Grunberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Uli:
Fantastic. That did it!
I added ioctl(0, 0x4b3a,0x1) to the initDevice function as you suggested
(not sure which device is being used, because /dev/fb0 is opened, and you
can't use that), and I no longer get the text mode problems (as an added
bonus, the text mode debugging messages don't show up on the screen).

Thanks!
Dan

> -----Original Message-----
> From: Uli Luckas [mailto:u.luckas@...]
> Sent: Monday, July 28, 2008 11:56 AM
> To: konq-e@...
> Cc: Dan Grunberg
> Subject: Re: console mode text cursor with graphics cursor?
>
> On Monday, 28. July 2008, Dan Grunberg wrote:
> > I have compiled Qt3 and Kong/E to run without X-windows (conf below).
> >
> > When I run the executable, I get a browser and cursor that look mostly
> OK -
> > the problem is I also get a text-mode cursor that moves around in sync
> with
> >
> > the graphics cursor and overwrites the browser with text-size blocks.
> It
> > looks like I have to disable text-mode or console-output somehow.  I
> boot
> > linux with vga=0x307 on the kernel line with grub.
> >
> The vga mode should not matter here.
>
> > The browser actually seems to work (I can visit different sites) - the
> main
> > problem is the overwriting the screen with a text mode cursor.
> >
> >
> I don't know for sure about Qt3 but Qt2 fails to switch the console to
> graphics mode. Maybe a call like this in Qt3's equivalent to
> QLinuxFbScreen::initDevice() can cure your problems:
> ioctl(tty, KDSETMODE, KD_GRAPHICS);
>
> On shutdown (QLinuxFbScreen::shutdownDevice() for Qt2) you should switch
> the
> mode back to a saved value or just to KD_TEXT.
>
> regards,
> Uli
>
> --
>
> ------- ROAD ...the handyPC Company - - -  ) ) )
>
> Uli Luckas
> Software Development
>
> ROAD GmbH
> Bennigsenstr. 14 | 12159 Berlin | Germany
> fon: +49 (30) 230069 - 64 | fax: +49 (30) 230069 - 69
> url: www.road.de
>
> Amtsgericht Charlottenburg: HRB 96688 B
> Managing directors: Hans-Peter Constien, Hubertus von Streit

_______________________________________________
konq-e mailing list
konq-e@...
https://mail.kde.org/mailman/listinfo/konq-e