From owner-freebsd-questions@FreeBSD.ORG Sun Feb 6 15:51:19 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 237BF1065673 for ; Sun, 6 Feb 2011 15:51:19 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id AB0CB8FC0C for ; Sun, 6 Feb 2011 15:51:18 +0000 (UTC) Received: by wyf19 with SMTP id 19so3935392wyf.13 for ; Sun, 06 Feb 2011 07:51:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=KVYWoyoYThHFEX5v+mGMDaZIbt/unElXL19zbe86ThY=; b=kkaSS6KHR8Oc3++taZj1g4IlG1OX4tiA5JHFxQFUMAD8KRyl5wnghuFFY6/FQAFLf5 wiRxAClV1gesvIEcgH7ohmb3gA9U/uMAcJcC9/MEVlKdVJpWfCRhTvJMVD0q3LI2P2Pb xzEAsHLyiTralK9k0gJESncN+7fEeQzRE2R1M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=mL3Aovh+vrnotkgbVFlsBokczcY2Q9ZQtcAAarmUK7JRKByw0fScENwglnxDRswUm9 SEqKOhJFiQtQjY8+5FoHFox3PXCvT/GTQpJ5og/654U8+1+zStOwNvdbX8jVVRu9ge00 qDcSI9kTCCapYG7yiFlZFDqDailZ21T/JRuZQ= Received: by 10.227.138.15 with SMTP id y15mr14557519wbt.186.1297007477577; Sun, 06 Feb 2011 07:51:17 -0800 (PST) Received: from Melon.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id y29sm2488593wbd.10.2011.02.06.07.51.16 (version=SSLv3 cipher=RC4-MD5); Sun, 06 Feb 2011 07:51:16 -0800 (PST) Message-ID: <4D4EC363.70202@gmail.com> Date: Sun, 06 Feb 2011 16:50:59 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110125 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Set tty resolution using hint.sc.0.flags with VESA 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: Sun, 06 Feb 2011 15:51:19 -0000 Hello, I don't like much to use allscreens_flags to set my tty resolution because it's done at the end of /etc/rc process. I know we can edit the hint.sc.0.flags in /boot/device.hints to set the resolution at the earliest stage. I want to use the 1366x768 mode : # vidcontrol -i mode [... snip ...] 496 (0x1f0) 0x0000001f G 1366x768x32 D 8x16 0xa0000 64k 64k 0xc0000000 4128k To use this mode I should write hint.sc.0.flags="0x1f00180" where 80 means VESA mode following the sc(4) manpage. It seems that my resolution is like 1024x768 when I bootup and not the one I want. However when I use vidcontrol MODE_496 after boot it works pretty well. Is there something wrong on my line ? Cheers, -- David Demelier