Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2020 15:03:57 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        freebsd-ppc@freebsd.org, owilley@gmail.com
Subject:   Re: Touchpad not working on PowerBook G4 12"
Message-ID:  <094535f6-fe2a-52c2-081f-36d1985ac49e@freebsd.org>
In-Reply-To: <72EE0C64-301B-4B59-BB84-1B55B1D6B0E3@gmail.com>
References:  <mailman.79.1605960001.90586.freebsd-ppc@freebsd.org> <72EE0C64-301B-4B59-BB84-1B55B1D6B0E3@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bdragon@FreeBSD.org> 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: <ADB Mouse> 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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?094535f6-fe2a-52c2-081f-36d1985ac49e>