From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 23:22:58 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF406106566C for ; Fri, 11 Feb 2011 23:22:58 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6351E8FC0C for ; Fri, 11 Feb 2011 23:22:58 +0000 (UTC) Received: by ewy24 with SMTP id 24so1651942ewy.13 for ; Fri, 11 Feb 2011 15:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:message-id :user-agent:mime-version:content-type; bh=Q4wpLPrXFP0FVfAY0rvi4l1rUtnCQZq2TOPHnp95Y0c=; b=n0YRhNmWd+g3M7yyjoJjJgbjBKNKCO7ZxAFlGgChh+Fl/kP8du/VMMOxkL+rjZW2Cv iwEN4GNW8PJhg69WJUNGwD0SK2LlXzuZIi/kvnZOYYkzvGvkbLwMU39BadkpmxZFAoHA GmUpmjNu0pVWw4GahEn1pjnTFbQ0uV+HDMLNw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=ZEFOUygWzJOrPi1iPw6JJ2Cccmpf2UwvyZ6yYjk84ehRy+YWCxnU/t3NKNHyNHrzkA rfS9B21H0fJtUmYVPdzIrt5IKo70rkm+Whqusghbblhsh+hDP2kdsiTnmINrAo0moPmw 1e4ARkQ3E9FoZ2X08VWKwK97IZSSLKBhAHrdY= Received: by 10.213.32.66 with SMTP id b2mr1088675ebd.34.1297466577100; Fri, 11 Feb 2011 15:22:57 -0800 (PST) Received: from localhost (zeller.torservers.net [74.120.12.135]) by mx.google.com with ESMTPS id t5sm1173573eeh.20.2011.02.11.15.22.52 (version=SSLv3 cipher=OTHER); Fri, 11 Feb 2011 15:22:55 -0800 (PST) From: Anonymous To: David Demelier References: <4D50F6F8.6070100@gmail.com> <86k4h8arby.fsf@gmail.com> <4D54E869.5050508@gmail.com> Date: Sat, 12 Feb 2011 02:22:46 +0300 Message-ID: <86hbca9mwp.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org Subject: Re: VESA and SDL in tty terminal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2011 23:22:58 -0000 David Demelier writes: > On 10/02/2011 15:37, Anonymous wrote: >> David Demelier writes: >> >>> Hello, >>> >>> The SDL's pkg-message says we can use video driver in tty terminal. >>> >>> To do this you have to load the vesa kernel module or enable it in your >>> kernel, and set environment variable "SDL_VIDEODRIVER=vgl". >>> >>> I tried it with mplayer : >>> >>> $ SDL_VIDEODRIVER=vgl; export SDL_VIDEODRIVER >>> $ mplayer -vo sdl >> [...] >>> [VO_SDL] Set_fullmode: SDL_SetVideoMode failed: Unable to switch to >>> requested mode. >> >> IIRC, vgl(3) mode setting unlike vidcontrol(8) doesn't work as regular user. >> Try running mplayer under root [...] > Hi it works fine except after leaving mplayer or any SDL application > my tty seems broken. I can't switch to a tty anymore my screen stays > black and I must reboot/shutdown (no panic) I'd try changing ttyvN using chvt[1], e.g. $ sudo mplayer ...; sleep 2 && sudo chvt 1 And as mode-setting is somewhat buggy I'd suggest to start with the least problematic mode, i.e. mode# flags type size font window linear buffer 24 (0x018) 0x00000001 T 80x25 8x16 0xb8000 32k 32k 0x00000000 32k and scaling every video to the desired resolution using vf_scale [vo.sdl] #fs = false # implied #vm = false # implied # 1600x1200 (native) is broken, downscale vf-add = scale=1270:-2 vf-add = scale=-2:1020::::::1 [1] http://lists.debian.org/debian-bsd/2009/11/msg00006.html the one I use - http://pastebin.com/f7ycYyxe > Are you encountering the same issue? There is no way to use vgl as > regular user or we could open a PR for it?