From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Antonino A. Daplas" Subject: Re: printk on framebuffer console Date: Wed, 31 May 2006 19:11:36 +0800 Message-ID: <447D79E8.3090102@gmail.com> References: <447C03C6.3000805@singnet.com.sg> <447C37F5.8000008@gmail.com> <447CE73C.2060807@singnet.com.sg> <447CE95C.2080603@gmail.com> <447CF5BF.5080507@singnet.com.sg> <447D189C.1010100@gmail.com> <447D5134.1090502@singnet.com.sg> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1FlOc8-0006bX-1D for linux-fbdev-devel@lists.sourceforge.net; Wed, 31 May 2006 04:11:48 -0700 Received: from wx-out-0102.google.com ([66.249.82.195]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1FlOc7-0005lk-NE for linux-fbdev-devel@lists.sourceforge.net; Wed, 31 May 2006 04:11:47 -0700 Received: by wx-out-0102.google.com with SMTP id t14so2938wxc for ; Wed, 31 May 2006 04:11:47 -0700 (PDT) In-Reply-To: <447D5134.1090502@singnet.com.sg> Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: Terence Soh Cc: Linux Fbdev development list Terence Soh wrote: >> Remove the console=ttyS0 from your boot parameter (or change it to tty0) >> and the system messages should go to the framebuffer console. > You're right, that worked. > > Is there any way I can disable the printf/printk once my QT-Embedded > application starts? The simplest solution is to write a utility that opens /dev/tty0 for example, then do an ioctl, ioctl(fd, KDSETMODE, KD_GRAPHICS); where fd is the file descriptor of /dev/tty0 for instance. To get back your console, do this: ioctl(fd, KDSETMODE, KD_TEXT); Tony ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642