From owner-freebsd-current@freebsd.org Mon May 20 13:23:46 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 D48D715AD896 for ; Mon, 20 May 2019 13:23:45 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from sonic303-24.consmr.mail.gq1.yahoo.com (sonic303-24.consmr.mail.gq1.yahoo.com [98.137.64.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E5D5276B65 for ; Mon, 20 May 2019 13:23:43 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) X-YMail-OSG: OCllnDsVM1m6zNnSrtKqsZCOUe1i2mlWHX8O80ySmCRSH95hb_QLFOuU7A.0szv n0qV0CKs6hVAL49BIpNmiA.9hn3Zpt4SOxc3i1TZQFIgkpVNol.2AuJdMHhJ3B5TP1R_vbvTpL8i dJlMvikg_mYouyoC9uRMjVpQ5i5bucvg.PQV1XMAmabJ2QHmCc56ViMbY4Mu4zlKbCzHu6cXGF.6 yMUkf7HX.TG2RgsbIw_etkxXo1gOz4c2pAuMYS214zkM9cKb5Lz2wuqwvwWpJtBpKaB4e0qEwDgF Pl40RazLucY_mWx5L0X78WKbY0aA8S_8JJmyCMRw7_n1fEB95Ysm74uxsfm6EaL_VyPEYO1KabEH xqdAU2hqW2OoK7HOOqLWpTnzhwP57IoKVMg90.vPjF8z0veOyu8mNiEtLthgcKmx8tS6Yhe9r2Pc BdQbbvcvf5zcwTJEu4njwitfCT3jWvwvped7LbagnJTsSQNdCUcVvjkgc9olPEUBQ.09RrfqjFre LTzpnORGn1MN0VNb0WcZUcmSKmmgS6RzJJ8os_MRxW02EsuQ9IVjziEHWIc36MTYzfUwgzmzBunY iLlUJWpSBd5cdBMgwjPRKkKZmRdvBjBzFJ70gZcH6MVXZPW2tbNAOidXFfL7fN9Z_purEoD7ztLT AfpcOeuNSXHrc5GaflP_UB4jwR0f3cQx9iidnaeQXRj8ApWfIpqnpCadzzKhbsq9MTPfc9NBTjdo 1soEFEU5Gp_wLySZrQm0M31odZrno_7RUpYJG3iP8xPdy.m0ywnvVV7uz0yKUdujfsMmYGLO6vc. N0VTXZWeYJIeTKrsFRATU1KRGanYCUTTZHrbvJHwMWbBbuEYKfL17snKkQtqjL.inujfcaCvf8hq S2SQA3QZVMpdX9jO21v6T6DsrVvqrXCiIQyzEsAhgSebTuQvbCkyh7dnXEY531PUIrpKYRnbzYNh 6_r9uKwLxRosz3F5so.pVsOZaXk2C5kkyC_.lnwUVvCst5i6_Nrj1ZyEpxurOP3.xMo81KkW90Dy ntZ5UOQ5RH88Qf41TKJ01IEFH4uZbJsJhRDlvBoStYbqKrQTQORsEfaznOmC14kQ4K6gALz54WOy efEvl3Ua2LanjtqH2QFsC.6ZWsZqAaMBh1z4xwozmLuVPYkxUiXtLHnQJe4UBy8qa0tITGR1QSct dgKxgWMiJ Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Mon, 20 May 2019 13:23:36 +0000 Received: from 172.58.4.198 (EHLO [192.168.43.2]) ([172.58.4.198]) by smtp423.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID b4534c0d6aa8fe5287e7815536829955; Mon, 20 May 2019 13:23:34 +0000 (UTC) To: FreeBSD CURRENT , FreeBSD X11 From: Anthony Jenkins Subject: Using loader.conf(5) 'exec' directive to set video mode Message-ID: <56e5e4a3-529c-bd41-c52c-2815e5374ca4@yahoo.com> Date: Mon, 20 May 2019 09:23:29 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: E5D5276B65 X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.57 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.93)[0.932,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.92)[ip: (7.84), ipnet: 98.137.64.0/21(1.00), asn: 36647(0.80), country: US(-0.06)]; NEURAL_SPAM_MEDIUM(0.55)[0.547,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.19)[0.188,0]; RCVD_IN_DNSWL_NONE(0.00)[205.64.137.98.list.dnswl.org : 127.0.5.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: Mon, 20 May 2019 13:23:46 -0000 I'm running (a somewhat dated) FreeBSD 13.0-CURRENT (git commit 68c8581f7, Tue. Feb 12 13:01:55 2019) on a UEFI laptop with an Intel UHD display, booting a ZFS root filesystem (gptzfsboot(8)). I'm trying to get the console into a lower resolution than the native UHD when the kernel is booted.  I can manually do this by breaking into the loader prompt at boot and entering 'mode 1', then 'boot'. loader.conf(5) says I can run this command automatically with the 'exec' directive, but the video mode doesn't change. $ sudo cat /boot/loader.conf Password: autoboot_delay="3" #boot_single="YES" boot_verbose="YES" kern.timecounter.hardware="HPET" hw.psm.synaptics_support="1" kern.vty="vt" hw.vga.textmode="1" efi_max_resolution="1920x1080" exec="mode 1" I've also tried using directive 'efi_max_resolution' - same result. Does 'exec' work on my configuration (UEFI boot, ZFS root), or am I not using it right?  I've tried putting other loader commands in 'exec' with no effect. Same question for efi_max_resolution. A separate question (possibly for graphics@ or x11@) is when the i915(4) kernel module from the graphics/drm-current-kmod port is loaded by rc.conf(4)'s 'kld_list' variable.  When I do manually set the console resolution using 'mode 1', it is reset to maximum resolution when i915(4) is loaded. Thanks in advance, Anthony Jenkins