From owner-freebsd-ppc@freebsd.org Mon Nov 23 20:03:58 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 AA21B46B2AE for ; Mon, 23 Nov 2020 20:03:58 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cfylf4G0Hz4k8t; Mon, 23 Nov 2020 20:03:58 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from comporellon.tachypleus.net (unknown [IPv6:2601:405:4a00:acd:c9f6:b392:a13b:4409]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: nwhitehorn/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 67F2D2386A; Mon, 23 Nov 2020 20:03:58 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Subject: Re: Touchpad not working on PowerBook G4 12" To: freebsd-ppc@freebsd.org, owilley@gmail.com References: <72EE0C64-301B-4B59-BB84-1B55B1D6B0E3@gmail.com> From: Nathan Whitehorn Message-ID: <094535f6-fe2a-52c2-081f-36d1985ac49e@freebsd.org> Date: Mon, 23 Nov 2020 15:03:57 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <72EE0C64-301B-4B59-BB84-1B55B1D6B0E3@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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 20:03:58 -0000 Try adding moused_enable="YES" and moused_port="/dev/ams0" to /etc/rc.conf? -Nathan On 11/23/20 2:46 PM, Omar Willey wrote: > On Nov 21, 2020, at 4:00 AM, Brandon Bergren wrote: >> >> On Thu, Nov 19, 2020, at 1:30 AM, Omar Willey wrote: >>> Hi, >>> >>> 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 >> 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. >>> >>> 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. >> 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... > >>> dmesg says: >>> >>> ams0: at device 3 on adb0 >>> ams0: ADB Mouse = 0xd (Extended Mode) >>> ams0: 2-button 400-dpi Touchpad >> 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=“/dev/atp0” and reverting to default, I see the touchpad is at /dev/ams0 but not doing anything. I’ve 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="X.Org Foundation" > [ 49.943] compiled for 1.20.9, module version = 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” >> Driver "adb" >> Option "Protocol" "SysMouse" >> Option "Device" "/dev/sysmouse” >> EndSection > But still nothing. > > Where should I look for the next step? Something in sysctl.conf? > > —Omar > >> Brandon Bergren >> bdragon@FreeBSD.org >> > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >