From owner-freebsd-questions@freebsd.org Sun May 31 19:41:10 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3724933EFAC for ; Sun, 31 May 2020 19:41:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZpZX4kN0z3Wpj for ; Sun, 31 May 2020 19:41:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.46.193]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPA (Nemesis) id 1MEFCF-1jnUil1GvV-00ADzS for ; Sun, 31 May 2020 21:41:06 +0200 Date: Sun, 31 May 2020 21:41:05 +0200 From: Polytropon To: FreeBSD Questions Subject: Keyboard and mouse not working after X update Message-Id: <20200531214105.2caed717.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:A84m2uBGJDDGPUM8OdrTMp28jSiKnIThsa21t5mAR76nfPQUZ2I p0UyslP8XvbfL1Sfne/VSZfDszuPSpbNeJee/DrxzIICG2aOd8rzPv85lkcRc0RT9kLmTHx E0Kvzyt5PQ60EWeeATVeZnUhPGoeCNDtW8PG5WYt8BypuK1TK+0t8+SAh53+qnSYIJfwV6e eGYRKA6Gsf4mINqE2bhQQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ztB587apPnM=:KzYWn5qdn7qNXAQToN0UEa rj/6Mmpx1vfzd6ObXec/xZAPjFUzERbLdZt4oh3F84bzGJ+o+o/RDQSguhbWHXxoJI2l9mNVl cTHkBDvLy9wcFyHfiHCCdSXr/Jf98S9XD04N5EDlG/khwkFLkNlWk2JObBiADQvLkUlgFg9Mv 4DAL9JYt5hklQn/zFofgWMYCQpDCTX0DHYA8EJc0WKDdF8bUVOjcI1Oin2B6CFxZJ6/Ot86Og YSaZ/qw2RrAvBCPLlMcwaqtzg7PA+kae7p83537+GKpHjaE7G7sFro7M+khyazlXfWzqHVaGD 7oIAz72nerYwVCCHG/RYJGrGHoKlHAHBwkaikvMstWDPSNhjYwZAoitPtRot7S6XL6iHJE5Up /JC9F/dAXc+ZFwPEB5fwaMQLEt9S6xEMbF3jG7yryfaJF8C4EwblbE078s+CC0VB9a2sxooGt k2uYpV2g5BjYcJFGQ/6bPn4B9lmgMBjtgjDV1wcfvouBdCMMVRScWn25IdvLpkFmLdFpK/Z57 8jiBdeU/jYbaTT5NUjz322OFnW67MrnOraOOwwgTh2jLbbEhjV94kTKgQE7Mh1R1PUB456Tnw 4hZz7aQoCGtGprCSd3OJPJPHrNNjM5vGOhyUL0OxxY3CgixZqk0lWp4ZhENjs2dXp7+dXNBMv F4HGhN7EAx+4+nWRjxOYA+mgiJ299ED7RDIv8S7gNEex6sIPCwUXo31PalPI/UPxGiSxyKf4+ P4GQTWYZ2fEX4jS79KLNrg38r2MvzPdxivOtxQOCGUc8hzjg2PT1jrd69nw+0FUZEsnBkngFB PII3BDsgpTU3HIj1+NQwutSQFU6VTy/c0B78eG82StlVb6nFbKkp1FsnT9OsalbjsXdPlNt X-Rspamd-Queue-Id: 49ZpZX4kN0z3Wpj X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.75) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [5.30 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[178.12.46.193:received]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.966]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.91)[0.907]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(1.02)[1.025]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[217.72.192.75:from]; R_SPF_NA(0.00)[no SPF record]; DMARC_NA(0.00)[edvax.de]; RWL_MAILSPIKE_POSSIBLE(0.00)[217.72.192.75:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2020 19:41:10 -0000 I have upgraded today a HP Pavilion DM-1 laptop (from 2011), and without any surprise, the OS upgrade went as expected, but on the application side, there are problems. The upgrade process has been performed as per the handbook, from 12.0-p? to 12.1-p5. I also reinstalled all software via pkg. Problem: In X, the mouse is no longer working. The keyboard seemed to be stuck; I added a "xterm &" to ~/.xinitrc to see something entirely new: When pressing any key, garbage appears inside the terminal, it changes font size and position on screen. I cannot use Ctrl+Alt+PF1 to get back to vt "text mode", so the only thing I can do is press the power button, and the system will shut down and power off properly. NB: "Keyboard" and "mouse" refer to the laptop's built-in keyboard and mouse. The graphics in this system is: vgapci0@pci0:0:1:0: class=0x030000 card=0x1611103c chip=0x98021002 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Wrestler [Radeon HD 6310]' class = display subclass = VGA I have installed: drm-legacy-kmod-g20200306 for the kernel module, loaded via /etc/rc.conf, as kld_list="/boot/modules/radeonkms.ko" and xf86-video-amdgpu-19.1.0_1 for X. I chose "legacy" because the laptop is almost 10 years old (but still in perfectly fine condition, it even has a new SSD inside). Also there is no xorg.conf file, just two component files in /usr/local/etc/X11/xorg.conf.d: keyboard-de.conf (to set the german keyboard, worked before), and screen.conf (sets the screen size to the actual hardware size, with the option to change this for an external CRT display if needed). This is exactly as before, when it worked. During boot, I get the following messages: info: [drm] Initialized drm 1.1.0 20060810 drmn0: ======================================================= drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg drmn0: ======================================================= drmn0: Deprecated code (to be removed in FreeBSD 13): drm2 drivers drmn0: ======================================================= drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg drmn0: ======================================================= drmn0: Deprecated code (to be removed in FreeBSD 13): drm2 drivers You don't say! That's exactly what I did! In /etc/rc.conf, I have kld_list="/boot/modules/radeonkms.ko" as suggested by the handbook. Further messages: drmn0: on vgapci0 info: [drm] Initialized radeon 2.29.0 20080528 for drmn0 on minor 0 Then, on the display, I can see the X desktop fine, with IceWM, wbar, even the xv-controlled background image appears, and the xterm, in which only garbage appears when I press keys on the keyboard. In /var/log/Xorg.0.log, I get the following message: [ 769.536] (EE) Failed to load module "ati" (module does not exist, 0) So I rebooted and installed xf86-video-ati-19.1.0_3,1 with the result that now the screen goes black. When I press the spacebar (or Enter, or the shift key!), I hear several beeps, and I expect the xterm (which I now cannot see) to fill with garbage as before. Now xf86-video-ati has been deleted. Why did X try to load it? Of course I also have installed ibudev-devd-0.4.1 And I have set kern.evdev.rcpt_mask=6 in /etc/sysctl.conf. The X log file is no big help. It looks as if it loaded VESA (???) even though all required components should now be installed. I'm obviously missing something important here. What could it be? Never touch a running system... ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...