From owner-freebsd-current@freebsd.org Fri May 3 08:08:14 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5E1D15887F2 for ; Fri, 3 May 2019 08:08:14 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1F3438CBFF; Fri, 3 May 2019 08:08:14 +0000 (UTC) (envelope-from thj@freebsd.org) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id EC56D22089; Fri, 3 May 2019 04:08:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 03 May 2019 04:08:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WAZVxe K5Q9mpAWPdicYkQkDwiTqKl/5gWsElQ8GLlvM=; b=HUEckUhLuIdULe+KptAdaW 3uxSNvKPctJFeu7ELTX2oEdks2KrUIg/YasSe2p+QS7i5OZslU+yTkA6EAJKh3rq Ke51o9k5Jmp8PteYUD9SqYbSr5PeA6Hs5Jg3bTb5BhaaHbCj/ZOQLVxgfWICKXaX cjTcF152clHArqOxa8Ldn2IWwEr5psUf8UEoTh1ERDmt9vzTzhIRf8OEmjx0C+TC HXdNaE+++ShnUjW5yFgvv0U42DN2nU1GOdLQgO8vPlDPjQnha8FMdCe6y4q5TXZb XNsyDG5/olnjbf/v1SykjQyqoFSszp0r7uaxEcnrUwVQon3Gqy/GYroB5XqbD/Eg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjedugddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujggfsehttdertddtredvnecuhfhrohhmpefvohhmucfl ohhnvghsuceothhhjhesfhhrvggvsghsugdrohhrgheqnecukfhppedufeejrdehtddrud ejrdduvdenucfrrghrrghmpehmrghilhhfrhhomhepthhhjhesfhhrvggvsghsugdrohhr ghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from tom-desk.erg.abdn.ac.uk (tom-desk.erg.abdn.ac.uk [137.50.17.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 2BD5D103CC; Fri, 3 May 2019 04:08:12 -0400 (EDT) Date: Fri, 3 May 2019 09:07:59 +0100 From: Tom Jones To: Johannes Lundberg Cc: FreeBSD Current Subject: Re: Rotating (efi) framebuffer Message-ID: <20190503080758.GA1053@tom-desk.erg.abdn.ac.uk> References: <57526b0a-fbfb-e933-1c52-6f96550e6273@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57526b0a-fbfb-e933-1c52-6f96550e6273@FreeBSD.org> User-Agent: Mutt/1.11.1 (2018-12-01) X-Rspamd-Queue-Id: 1F3438CBFF X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.982,0]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2019 08:08:15 -0000 On Thu, May 02, 2019 at 09:06:28AM -0700, Johannes Lundberg wrote: > Hi > > I have a Lenovo Ideapad where the screen is rotated 90 degrees and I > can't rotate it to landscape mode until I'm in X. How many of you are in > the same situation and would like a fix? Seeing how development is going > with small (tiny) computers it will probably be more and more common > with ultra portables having a "phone screen" which most likely is in > portrait mode by default. This also applies to embedded and home brew / > prototype devices. > > It would certainly be nice if we could have a boot time parameter that > could rotate the framebuffer (just as a data point, I'm pretty sure > Linux can do this). How many would be interested in this? Is there > anyone working on this atm? Not sure I will have the time to develop > this all of my own but thought I'd check the interest at least. Perhaps > a GSoC project? > This is an issue on the GPD Pocket and many other devices that use a tablet screen. A boot parameter for this would be fine, Linux does it with a parameter. A quick search shows it is probably: 'fbcon=rotate:1' I think you could probably detect that the dimensions are swapped, i.e. taller than you are wide, but there should still be a parameter to allow manual config. - [tj]