From owner-freebsd-ppc@freebsd.org Mon Nov 23 19:46:42 2020 Return-Path: Delivered-To: freebsd-ppc@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 83CF246ADD7 for ; Mon, 23 Nov 2020 19:46:42 +0000 (UTC) (envelope-from owilley@gmail.com) Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CfyMj3Xz9z4jDc for ; Mon, 23 Nov 2020 19:46:40 +0000 (UTC) (envelope-from owilley@gmail.com) Received: by mail-pl1-x632.google.com with SMTP id v21so8108522plo.12 for ; Mon, 23 Nov 2020 11:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=OC7Al70z/3KrrAQoilYtVtol93ry0HyZCnrnzbShNa8=; b=n82aAfiibHlfUn1IQ3yWiqST4pNoYEbgZsSxPWhQazp/tvm4rpixnmdXgTi9k0DJf0 tWF048Ivyv3r+sG+0hHexnD5nXL4XvQNyhi5nvRPf5MdYUJNJIW9D87wUZ21sprKwlIW zQRN8wlUX7G8/dSaetP4HLFEgEolaU1V8lntxyiBpku/BFbXXXzSNRnJOoC6prlroguI ywZiafTAD+fptYa1NtR7/nMONOLZvoBXxz9szNdzBs0GsJ6VhjQ8ffKlHtZSeYkpI6wM px12qvjkn7CACdXg/8TMsLt16KFMl23vD30tFZpL1pDFy2Wdg9zGlKXigLiCEipJ/2vX ngYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=OC7Al70z/3KrrAQoilYtVtol93ry0HyZCnrnzbShNa8=; b=inX7VqgwGM6thPAs+l9+HqdaI0u9yfj1xRDMS0Gn6YN0NWMMjSCzjbPM1Ys0ip1Ysf EeoiMqpSs7iHkSlWuj/xYJlvutAY0pG0QExhZoTA1Qh87ezYEY0SQSb06sA7TJOicPr1 Z2uz1TTyk548cCuhZcr8DdDJtNsvuYHg9EO6v9vtcf6p/z5/agxRdnq22/DCrenL0+4X MDww0Yli9QcQ3kybKSN8zw+eXeeONezcn/hRbczTvY/mBiIj5H/dA7NZuUe6c0e3yQoP TPyi4VvPBhYQLsJK/+v9B2Rv5hK/f9Bg+bS4NnQRAl+TX0wN1itVFlbCjXwxR1SuBgMg 95tg== X-Gm-Message-State: AOAM530D54vxL2YG3IvWz7YO6gcYRmMGoBGTYAAzDGSiewizcu5NcTmw 5Pz5L2hb4ur0yODS2UsEjj7kTZPwzfA= X-Google-Smtp-Source: ABdhPJzf4+BXi1NDLe9olgg3Px13/p2K6hC/LMSanjplzAzkikpRSjbFBSw2GUpPCIYptv11Ztg6Pg== X-Received: by 2002:a17:902:7612:b029:d6:ee36:4e42 with SMTP id k18-20020a1709027612b02900d6ee364e42mr1053086pll.38.1606160798533; Mon, 23 Nov 2020 11:46:38 -0800 (PST) Received: from ?IPv6:2602:ae:15b3:be00:1c9f:3348:437a:851? ([2602:ae:15b3:be00:1c9f:3348:437a:851]) by smtp.gmail.com with ESMTPSA id c22sm12450399pfo.211.2020.11.23.11.46.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Nov 2020 11:46:37 -0800 (PST) From: Omar Willey Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: Touchpad not working on PowerBook G4 12" Date: Mon, 23 Nov 2020 11:46:36 -0800 References: To: freebsd-ppc@freebsd.org In-Reply-To: Message-Id: <72EE0C64-301B-4B59-BB84-1B55B1D6B0E3@gmail.com> X-Mailer: Apple Mail (2.3445.9.7) X-Rspamd-Queue-Id: 4CfyMj3Xz9z4jDc X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=n82aAfii; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of owilley@gmail.com designates 2607:f8b0:4864:20::632 as permitted sender) smtp.mailfrom=owilley@gmail.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.997]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::632:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::632:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::632:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ppc] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2020 19:46:42 -0000 On Nov 21, 2020, at 4:00 AM, Brandon Bergren = wrote: >=20 >=20 > On Thu, Nov 19, 2020, at 1:30 AM, Omar Willey wrote: >> Hi, >>=20 >> I'm coming back to FreeBSD after a long, long absence and I've made = it a >> project to revive this PowerBook g4 aluminum 12" 640MB/867gHz with = FreeBSD >> 12.2 >=20 > Do you have the specific model number handy? Yes, this is a PowerBook 6,1 Model A1010/1931, or M8760LL/A if you = prefer. PowerPC 7455 processor with the NVIDIA GeForce4 420 Go video = card. I already had to struggle with the rubbish Nvidia graphics, and = created a /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf just to get = X11 visible. >> I've managed to get X working with a window manager and file manager = for a >> minimal desktop but I cannot get the touchpad to work in X at all. >>=20 >> I first tried loading the wsp(4) driver as a module in = /boot/loader.conf, >> then tried the older atp(4) separately, but the device isn't binding = to >> /dev/atp0. >=20 > These are for trackpads connected over internal USB, which were only = on later PowerBook G4s and newer machines. Given the specs you listed I = think it's likely that yours is one of the older ones that predate this = type of touchpad Ah, yes. It is certainly an ADB touchpad. Leading to the next = question...=20 >> dmesg says: >>=20 >> ams0: at device 3 on adb0 >> ams0: ADB Mouse =3D 0xd (Extended Mode) >> ams0: 2-button 400-dpi Touchpad >=20 > This is an ADB attachment, not a USB attachment. This implies that = that your touchpad is at /dev/ams0. I thought so, too. After removing moused_port=3D=E2=80=9C/dev/atp0=E2=80=9D= and reverting to default, I see the touchpad is at /dev/ams0 but not = doing anything. I=E2=80=99ve rebuilt the kernel to ensure the old adb = driver is present. Xorg.0.log tells me: [ 48.939] (II) config/udev: Adding input device System mouse = (/dev/input/event0) [ 48.940] (**) System mouse: Applying InputClass "libinput pointer = catchall" [ 48.940] (II) LoadModule: "libinput" [ 48.943] (II) Loading = /usr/local/lib/xorg/modules/input/libinput_drv.so [ 49.943] (II) Module libinput: vendor=3D"X.Org Foundation" [ 49.943] compiled for 1.20.9, module version =3D 0.30.0 [ 49.943] Module class: X.Org XInput Driver [ 49.943] ABI class: X.Org XInput driver, version 24.1 [ 49.944] (II) Using input driver 'libinput' for 'System mouse' [ 49.944] (**) System mouse: always reports core events [ 49.944] (**) Option "Device" "/dev/input/event0" [ 49.946] (**) Option "_source" "server/udev" [ 50.105] (II) event0 - System mouse: is tagged by udev as: Mouse [ 50.109] (II) event0 - System mouse: device is a pointer [ 50.113] (II) event0 - System mouse: device removed [ 50.117] (**) Option "config_info" "udev:/dev/input/event0" [ 50.118] (II) XINPUT: Adding extended input device "System mouse" = (type: MOUSE, id 6) [ 50.122] (**) Option "AccelerationScheme" "none" [ 50.122] (**) System mouse: (accel) selected scheme none/0 [ 50.122] (**) System mouse: (accel) acceleration factor: 2.000 [ 50.122] (**) System mouse: (accel) acceleration threshold: 4 [ 50.136] (II) event0 - System mouse: is tagged by udev as: Mouse [ 50.139] (II) event0 - System mouse: device is a pointer But still no mouse activity. Then I added a simple mouse.conf to /usr/local/etc/X11/xorg.conf.d using = libinput as the driver, but that simply gave me a black screen. I tried = it again with the advice from Ch 11 of the FreeBSD FAQ. > Section "InputDevice" > Identifier "Mouse0=E2=80=9D > Driver "adb" > Option "Protocol" "SysMouse" > Option "Device" "/dev/sysmouse=E2=80=9D > EndSection But still nothing. Where should I look for the next step? Something in sysctl.conf? =E2=80=94Omar > Brandon Bergren > bdragon@FreeBSD.org >=20