From nobody Mon Jul 10 07:53:30 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qzx8M4GDdz4dTlt for ; Mon, 10 Jul 2023 07:53:39 +0000 (UTC) (envelope-from johannes-maria@t-online.de) Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailout00.t-online.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qzx8L6FWrz45GV for ; Mon, 10 Jul 2023 07:53:38 +0000 (UTC) (envelope-from johannes-maria@t-online.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of johannes-maria@t-online.de has no SPF policy when checking 194.25.134.82) smtp.mailfrom=johannes-maria@t-online.de; dmarc=none Received: from fwd86.dcpf.telekom.de (fwd86.aul.t-online.de [10.223.144.112]) by mailout05.t-online.de (Postfix) with SMTP id 821539119 for ; Mon, 10 Jul 2023 09:53:31 +0200 (CEST) Received: from t-online.de ([194.140.113.196]) by fwd86.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1qIli6-0NMKau0; Mon, 10 Jul 2023 09:53:30 +0200 Received: by t-online.de (nbSMTP-1.00) for uid 1001 (using TLSv1/SSLv3 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) johannes-maria@t-online.de; Mon, 10 Jul 2023 09:53:30 +0200 (CEST) Date: Mon, 10 Jul 2023 09:53:30 +0200 From: Johannes-Maria Kaltenbach To: freebsd-questions@freebsd.org Subject: problems getting the desired resolution in vt and in X Message-ID: <20230710075330.GA8385@jmk1.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.2 (2019-09-21) X-TOI-EXPURGATEID: 150726::1688975611-F6FE3EBC-FAE3C191/0/0 CLEAN NORMAL X-TOI-MSGID: e2a5ee32-4856-4718-8b85-4e91bd6b2b7b X-Spamd-Result: default: False [-1.99 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; NEURAL_HAM_SHORT(-0.86)[-0.858]; NEURAL_HAM_LONG(-0.84)[-0.842]; RCVD_IN_DNSWL_LOW(-0.10)[194.25.134.82:from]; RWL_MAILSPIKE_GOOD(-0.10)[194.25.134.82:from]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[t-online.de]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE]; DMARC_NA(0.00)[t-online.de]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; FREEMAIL_FROM(0.00)[t-online.de]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4Qzx8L6FWrz45GV X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N Hello, I've problems getting the same resolution (in vt and in X) on a new PC as in my old one. I'm used to a resolution of 1600x1200 (the LCD has just this number of pixels), but on the new PC I only get 1024x768. On the new PC I've installed 13.2 |# freebsd-version -kru |13.2-RELEASE-p1 |13.2-RELEASE-p1 |13.2-RELEASE-p1 1) vt kern.vt.fb.default_mode="1600x1200" in loader.conf doesn't change anything. Neither does vidcontrol (it only produces always the "Inappropriate ioctl for device" message). 2) Xorg I started without a separate graphics card using the hdmi output of the motherboard. vgapci1@pci0:0:2:0: class=0x030000 rev=0x04 hdr=0x00 vendor=0x8086 \ device=0xa780 subvendor=0x1458 subdevice=0xd000 vendor = 'Intel Corporation' device = 'Raptor Lake-S GT1 [UHD Graphics 770]' class = display subclass = VGA With default configuration X didn't start using 'modesetting': |(EE) open /dev/dri/card0: No such file or directory |(WW) Falling back to old probe method for modesetting |(EE) open /dev/dri/card0: No such file or directory |(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support |(EE) Screen 0 deleted because of no matching config section. |(II) UnloadModule: "modesetting" |(EE) Device(s) detected, but none match those in the config file. I tried installing graphics/drm-kmod and loading i915kms.ko but no success. I changed Driver "modesetting" to Driver "scfb" [. e. the configuration I use on my old PC with resolution 1600x1200] Then X started but only with the resolution of 1024x768 and I cannot change it to 1600x1200. I installed x11-drivers/xf86-video-intel and used Driver "intel" but then X didn't start: from Xorg.0.log: | (II) LoadModule: "intel" | (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so | (II) Module intel: vendor="X.Org Foundation" | compiled for 1.21.1.8, module version = 2.99.917 | Module class: X.Org Video Driver | ABI class: X.Org Video Driver, version 25.2 | (II) intel: Driver for Intel(R) Integrated Graphics Chipsets: | i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, | E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, | iew G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, | 4 Series, G45/G43, Q45/Q43, G41, B43 | (II) intel: Driver for Intel(R) HD Graphics | (II) intel: Driver for Intel(R) Iris(TM) Graphics | (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics | (--) Using syscons driver with X support (version 2.0) | (--) using VT number 9 | (EE) No devices detected. | (EE) no screens found(EE) I tried using xrandr to set a resolution, but xrandr -fb 1600x1200 only leads to the error message | xrandr: screen cannot be larger than 1024x768 (desired size 1600x1200) xrandr without option gives | Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768 I thought that perhaps the hardware is too new for the available drivers and added a nvidia gaphics card vgapci0@pci0:1:0:0: class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de \ device=0x1287 subvendor=0x1462 subdevice=0x8a9f vendor = 'NVIDIA Corporation' device = 'GK208B [GeForce GT 730]' class = display subclass = VGA and installed x11/nvidia-driver. Changed to 'Driver "nvidia"' in xorg.conf, but X didn't start. I tried it also with xorg.conf created by 'Xorg -configure' and also installed an tried x11/nvidia-xconfig. | (WW) NVIDIA(0): The NVIDIA GeForce GT 730 GPU installed in this system is | (WW) NVIDIA(0): supported through the NVIDIA 470.xx Legacy drivers. Please | (WW) NVIDIA(0): visit http://www.nvidia.com/object/unix.html for more | (WW) NVIDIA(0): information. The 525.116.03 NVIDIA driver will ignore | (WW) NVIDIA(0): this GPU. Continuing probe... | (EE) open /dev/dri/card0: No such file or directory | (WW) Falling back to old probe method for modesetting | (EE) open /dev/dri/card0: No such file or directory | (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support | (EE) Screen 0 deleted because of no matching config section. | (II) UnloadModule: "modesetting" | (EE) Device(s) detected, but none match those in the config file. | (EE) | error: | (EE) no screens found(EE) I can only successfully start X with Driver "scfb" with both the Intel and with the Nvidia but not with the desired resolution of 1600x1200, only with 1024x768. I ran out of ideas. Can anybody please help? (Correct resolution in X would suffice; in vt I could accept it but would also prefer a higher resolution.) Best regards, Johannes-Maria