From owner-freebsd-ppc@freebsd.org Mon Nov 23 23:07:27 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 1CC1446E6BB for ; Mon, 23 Nov 2020 23:07:27 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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 4Cg2qK6Kysz4rwY for ; Mon, 23 Nov 2020 23:07:25 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-qt1-x833.google.com with SMTP id f27so5211994qtv.6 for ; Mon, 23 Nov 2020 15:07:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=wzlO1Qy0pFUUnZdFKomx9KykZhh4FIKNi+qJjKHpsAk=; b=Gn0Q+bMszl6M15eKTeAgi1p5Wia+QfxWPrb+l5ndWKSVqIIb+llsaPBszrjZwMoPSF HksjNHWyYj3/xcTFQO9VNn+BRN99e/XEkXcqQQrdjcAowbjDh7amDf2KeRN/Bj3AXvP7 dM6cNlNuDvmSTBrcLTPc9qL6N11wrnENScoNCM5gAs8OX1V2AIR+nAhUiVcLhhMsF2xp 5KzJoLNteOFkcCKqhVOnity0OalYsmdowk1/GceIavQSHLczl+WOaM3zhixjOQZfD5um cv31zgAiYh2SLh0ahTPnoxP+SMIKCJeGIEObdXieyaafRFYacsHRbSJSw//V2wVdSeGZ eNbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=wzlO1Qy0pFUUnZdFKomx9KykZhh4FIKNi+qJjKHpsAk=; b=E2EJub4te8Dv3zsEumjF4ZFkhdKLhdj69Vrni/jk9PKowpeqzHM4B2fJ4hPj7hRoCP y+JQfQd1pA3F4XZni2yiiTowd8goXMqEix67cUsOeAr5eV+x+jTlgozALMUoIvS6XqvJ ZXWKPyKA91b0NSSQZNRZOHR3XyvKghw/7AB/Y5wbysIgw1gxgd9AUtGyhnLtCi9zV6Om h0J8+GYg3hCG0X4PGkqQe1nr0NSIt0469dgWekyyYZoGfmsnbYt5OCWlvthjlBPf/91q Oy3899DHrVVVTihj0QhAdcinnwcgDncY5N6brBnyGSc81HDpnERUJiCmpqBLH0yi2tQQ SGOA== X-Gm-Message-State: AOAM532aUL24Ama693NJV73PQfeB1jaVwyR4oHZOJiDpg+F+hjjUQiiy kUCAxaqbFEIQSX2vV6MCmX7OFAq+DYc= X-Google-Smtp-Source: ABdhPJw15ShN+2iP0ZHLEzDQJWLg+K08VGpYkavz0MeEr4l1pKUX5gfttER2SLnbj5CXQ1QuGAC3Uw== X-Received: by 2002:ac8:6b06:: with SMTP id w6mr1648446qts.6.1606172844673; Mon, 23 Nov 2020 15:07:24 -0800 (PST) Received: from coral.acadix.biz (2603-6000-a401-3a00-0223-24ff-fe37-c4d7.res6.spectrum.com. [2603:6000:a401:3a00:223:24ff:fe37:c4d7]) by smtp.gmail.com with ESMTPSA id a6sm10317464qkg.136.2020.11.23.15.07.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2020 15:07:24 -0800 (PST) Subject: Re: Touchpad not working on PowerBook G4 12" To: freebsd-ppc@freebsd.org References: <72EE0C64-301B-4B59-BB84-1B55B1D6B0E3@gmail.com> <094535f6-fe2a-52c2-081f-36d1985ac49e@freebsd.org> From: Jason Bacon Message-ID: Date: Mon, 23 Nov 2020 17:07:22 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <094535f6-fe2a-52c2-081f-36d1985ac49e@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Rspamd-Queue-Id: 4Cg2qK6Kysz4rwY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Gn0Q+bMs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of bacon4000@gmail.com designates 2607:f8b0:4864:20::833 as permitted sender) smtp.mailfrom=bacon4000@gmail.com X-Spamd-Result: default: False [-3.73 / 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)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.73)[-0.728]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::833: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::833:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::833: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 23:07:27 -0000 Not sure if this situation even shares any code with x86, but if you're=20 getting mouse function in a VT but not X11: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251149 Another possibility is software cursor, which I usually use to dodge=20 regressions that occasionally come with xorg updates. FreeBSD coral.acadix=C2=A0 bacon ~ 1003: more=20 /etc/X11/xorg.conf.d/20-swcursor.conf Section "Device" =C2=A0=C2=A0=C2=A0 Identifier "Device0" =C2=A0=C2=A0=C2=A0 Option "SWCursor" "on" EndSection I'd be interested in some feedback on sysutils/desktop-installer on the=20 g4.=C2=A0 I've tested it on an iMac G5 and a PowerMac G5. Regards, =C2=A0=C2=A0=C2=A0 JB On 11/23/20 2:03 PM, Nathan Whitehorn wrote: > Try adding moused_enable=3D"YES" and moused_port=3D"/dev/ams0" to=20 > /etc/rc.conf? > -Nathan > > On 11/23/20 2:46 PM, Omar Willey wrote: >> On Nov 21, 2020, at 4:00 AM, Brandon Bergren =20 >> 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=20 >>>> 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=20 >> prefer. PowerPC 7455 processor with the NVIDIA GeForce4 420 Go video=20 >> 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=20 >> get X11 visible. >> >>>> I've managed to get X working with a window manager and file=20 >>>> 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=20 >>>> /boot/loader.conf, >>>> then tried the older atp(4) separately, but the device isn't=20 >>>> 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=20 >>> listed I think it's likely that yours is one of the older ones that=20 >>> predate this type of touchpad >> Ah, yes. It is certainly an ADB touchpad. Leading to the next=20 >> question... >> >>>> dmesg says: >>>> >>>> ams0: at device 3 on adb0 >>>> ams0: ADB Mouse =3D 0xd (Extended Mode) >>>> ams0: 2-button 400-dpi Touchpad >>> This is an ADB attachment, not a USB attachment. This implies that=20 >>> 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=20 >> reverting to default, I see the touchpad is at /dev/ams0 but not=20 >> doing anything. I=E2=80=99ve rebuilt the kernel to ensure the old adb = driver=20 >> is present. Xorg.0.log tells me: >> >> [=C2=A0=C2=A0=C2=A0 48.939] (II) config/udev: Adding input device Syst= em mouse=20 >> (/dev/input/event0) >> [=C2=A0=C2=A0=C2=A0 48.940] (**) System mouse: Applying InputClass "li= binput pointer=20 >> catchall" >> [=C2=A0=C2=A0=C2=A0 48.940] (II) LoadModule: "libinput" >> [=C2=A0=C2=A0=C2=A0 48.943] (II) Loading=20 >> /usr/local/lib/xorg/modules/input/libinput_drv.so >> [=C2=A0=C2=A0=C2=A0 49.943] (II) Module libinput: vendor=3D"X.Org Foun= dation" >> [=C2=A0=C2=A0=C2=A0 49.943]=C2=A0=C2=A0=C2=A0=C2=A0 compiled for 1.20.= 9, module version =3D 0.30.0 >> [=C2=A0=C2=A0=C2=A0 49.943]=C2=A0=C2=A0=C2=A0=C2=A0 Module class: X.Or= g XInput Driver >> [=C2=A0=C2=A0=C2=A0 49.943]=C2=A0=C2=A0=C2=A0=C2=A0 ABI class: X.Org X= Input driver, version 24.1 >> [=C2=A0=C2=A0=C2=A0 49.944] (II) Using input driver 'libinput' for 'Sy= stem mouse' >> [=C2=A0=C2=A0=C2=A0 49.944] (**) System mouse: always reports core eve= nts >> [=C2=A0=C2=A0=C2=A0 49.944] (**) Option "Device" "/dev/input/event0" >> [=C2=A0=C2=A0=C2=A0 49.946] (**) Option "_source" "server/udev" >> [=C2=A0=C2=A0=C2=A0 50.105] (II) event0=C2=A0 - System mouse: is tagge= d by udev as: Mouse >> [=C2=A0=C2=A0=C2=A0 50.109] (II) event0=C2=A0 - System mouse: device i= s a pointer >> [=C2=A0=C2=A0=C2=A0 50.113] (II) event0=C2=A0 - System mouse: device r= emoved >> [=C2=A0=C2=A0=C2=A0 50.117] (**) Option "config_info" "udev:/dev/input= /event0" >> [=C2=A0=C2=A0=C2=A0 50.118] (II) XINPUT: Adding extended input device = "System mouse"=20 >> (type: MOUSE, id 6) >> [=C2=A0=C2=A0=C2=A0 50.122] (**) Option "AccelerationScheme" "none" >> [=C2=A0=C2=A0=C2=A0 50.122] (**) System mouse: (accel) selected scheme= none/0 >> [=C2=A0=C2=A0=C2=A0 50.122] (**) System mouse: (accel) acceleration fa= ctor: 2.000 >> [=C2=A0=C2=A0=C2=A0 50.122] (**) System mouse: (accel) acceleration th= reshold: 4 >> [=C2=A0=C2=A0=C2=A0 50.136] (II) event0=C2=A0 - System mouse: is tagge= d by udev as: Mouse >> [=C2=A0=C2=A0=C2=A0 50.139] (II) event0=C2=A0 - System mouse: device i= s a pointer >> >> But still no mouse activity. >> >> Then I added a simple mouse.conf to /usr/local/etc/X11/xorg.conf.d=20 >> 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" >>> =C2=A0=C2=A0=C2=A0 Identifier=C2=A0=C2=A0=C2=A0 "Mouse0=E2=80=9D >>> =C2=A0=C2=A0=C2=A0 Driver=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 "adb" >>> =C2=A0=C2=A0=C2=A0 Option=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 "Protocol" "SysMouse" >>> =C2=A0=C2=A0=C2=A0 Option=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 "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 >> >>> =C2=A0 Brandon Bergren >>> =C2=A0 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"= >> > > _______________________________________________ > 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" --=20 Earth is a beta site.