Re: Running OpenBSD on an Acer Aspire One 110L netbook
By the way, are you sure 'pckbd_set_xtscancode' in sys/dev/pckbc/pckbd.c is correct? This function tries to check for scancode set 3 using cmd[0] = KBC_SETTABLE; cmd[1] = 0; if (pckbc_poll_cmd(kbctag, kbcslot, cmd, 2, 1, resp, 0)) { /* * query failed, step down to table 2 to be * safe. */ #ifdef DEBUG printf("pckbd: table 3 verification failed\n"); #endif continue; } else if (resp[0] == 3) { #ifdef DEBUG printf("pckbd: settling on table 3\n"); #endif break; } #ifdef DEBUG else printf("pckbd: table \"%x\" != 3, trying 2\n", resp[0]); However, http://www.win.tue.nl/~aeb/linux/kbd/scancodes-10.html says: "The usual PC keyboards are capable of producing three sets of scancodes. Writing 0xf0 followed by 1, 2 or 3 to port 0x60 will put the keyboard in scancode mode 1, 2 or 3. Writing 0xf0 followed by 0 queries the mode, resulting in a scancode byte 43, 41 or 3f from the keyboard." So "resp[0] == 3" always fails and the code falls back to using scancode set 2.
Re: Running OpenBSD on an Acer Aspire One 110L netbook
On Fri, 2012-07-06 at 10:00 +, Stuart Henderson wrote: > On 2012-07-04, mlambda wrote: > > Sometimes the touchpad doesn't work (the two buttons work, but the > > cursor doesn't move), unfortunately this doesn't seem to be reproducible > > and can only be fixed by rebooting. > > I suspect there is probably a timing issue with the hardware that we > hit occasionally, I see it from time to time (though in the past I've hit > it much more often). I often (but not always) find that suspending and > resuming clears the problem, this is easier to do if you set > machdep.lidsuspend=1 in sysctl.conf. If I increase the polling delay in sys/dev/ic/pckbc.c (-current kernel) significantly (see patch below), the touchpad always works. The keyboard however still stops working occasionally. It would be great if someone who is familiar with this driver could have a look at this. dmesg: touchpad works, keyboard works: [...] pckbc0 at isa0 port 0x60/5 pckbd: trying table 3 pckbd: table "3f" != 3, trying 2 pckbd: trying table 2 pckbd: settling on table 2 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 kbc: aux echo: 5a pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 lost kbd 0xfa pckbc_cmd: timeout lost kbd 0xfa pckbc_cmd: timeout pckbc_cmd: RESEND lost kbd 0xfe pckbc_cmd: timeout pms0: protocol type 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub0 port 5 configuration 1 interface 0 "SuYin Acer Crystal Eye webcam" rev 2.00/0.01 addr 2 video0 at uvideo0 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (bb11e7e4cec55775.a) swap on wd0b dump on wd0b pms0: Synaptics touchpad, firmware 7.2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 sometimes also: dmesg: touchpad works, keyboard works: [...] pckbc0 at isa0 port 0x60/5 pckbd: trying table 3 pckbd: table "3f" != 3, trying 2 pckbd: trying table 2 pckbd: settling on table 2 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 kbc: aux echo: 5a pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 lost kbd 0xfe pckbc_cmd: timeout pckbc_cmd: no data pms0: reset error 60 (response 0xaa, type 0x00) lost kbd 0xfe pckbc_cmd: timeout lost kbd 0xfe pckbc_cmd: timeout pms0: protocol type 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub0 port 5 configuration 1 interface 0 "SuYin Acer Crystal Eye webcam" rev 2.00/0.01 addr 2 video0 at uvideo0 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (bb11e7e4cec55775.a) swap on wd0b dump on wd0b pms0: Synaptics touchpad, firmware 7.2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 dmesg: touchpad works, keyboard doesn't work: [...] pckbc0 at isa0 port 0x60/5 pckbd: trying table 3 pckbd: table "3f" != 3, trying 2 pckbd: trying table 2 pckbd: settling on table 2 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 kbc: aux echo: 5a pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 lost kbd 0xfe pckbc_cmd: timeout pckbc_cmd: no data pms0: reset error 60 (response 0xaa, type 0x00) lost kbd 0xfe pckbc_cmd: timeout pckbc_cmd: RESEND lost kbd 0xfa lost kbd 0xaa pckbc_cmd: timeout pms0: reset error 5 (response 0xaa, type 0x00) pms0: protocol type 0 lost kbd 0xfa pckbc_cmd: timeout pms0: disable error pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub0 port 5 configuration 1 interface 0 "SuYin Acer Crystal Eye webcam" rev 2.00/0.01 addr 2 video0 at uvideo0 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (bb11e7e4cec55775.a) swap on wd0b dump on wd0b pms0: Synaptics touchpad, firmware 7.2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 patch: diff -ur src/sys/dev/ic/pckbc.c src_patched/sys/dev/ic/pckbc.c --- src/sys/dev/ic/pckbc.c 2012-02-02 22:40:20.0 +0100 +++ src_patched/sys/dev/ic/pckbc.c 2012-07-10 21:14:58.0 +0200 @@ -26,6 +26,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#define PCKBCDEBUG + #include #include #include @@ -105,7 +107,7 @@ #define KBC_DEVCMD_RESEND 0xfe #define KBC_DEVCMD_BAT 0xaa -#defineKBD_DELAY DELAY(8) +#de
Re: Running OpenBSD on an Acer Aspire One 110L netbook
On Fri, 2012-07-06 at 10:00 +, Stuart Henderson wrote: > On 2012-07-04, mlambda wrote: > > Sometimes the touchpad doesn't work (the two buttons work, but the > > cursor doesn't move), unfortunately this doesn't seem to be reproducible > > and can only be fixed by rebooting. > > I suspect there is probably a timing issue with the hardware that we > hit occasionally, I see it from time to time (though in the past I've hit > it much more often). I often (but not always) find that suspending and > resuming clears the problem, this is easier to do if you set > machdep.lidsuspend=1 in sysctl.conf. > I recompiled the -current GENERIC.MP kernel with DEBUG defined in sys/dev/pckb/pckbd.c and sys/dev/pckbd/pms.c and got the following messages (Sometimes even the touchpad _and_ the keyboard lock up!): Touchpad works, keyboard works: [...] pckbc0 at isa0 port 0x60/5 pckbd: trying table 3 pckbd: table "3f" != 3, trying 2 pckbd: trying table 2 pckbd: settling on table 2 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pms0: protocol type 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub0 port 5 configuration 1 interface 0 "SuYin Acer Crystal Eye webcam" rev 2.00/0.01 addr 2 video0 at uvideo0 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (bb11e7e4cec55775.a) swap on wd0b dump on wd0b pms0: Synaptics touchpad, firmware 7.2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 Touchpad not working, keyboard working: [...] pckbc0 at isa0 port 0x60/5 pckbd: trying table 3 pckbd: table "3f" != 3, trying 2 pckbd: trying table 2 pckbd: settling on table 2 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pms0: protocol type 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub0 port 5 configuration 1 interface 0 "SuYin Acer Crystal Eye webcam" rev 2.00/0.01 addr 2 video0 at uvideo0 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (bb11e7e4cec55775.a) swap on wd0b dump on wd0b pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 Touchpad not working, keyboard not working: [...] pckbc0 at isa0 port 0x60/5 pckbd: trying table 3 pckbd: table "3f" != 3, trying 2 pckbd: trying table 2 pckbd: settling on table 2 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pms0: reset error 60 (response 0xaa, type 0x00) pms0: alps: model query error pms0: protocol type 0 pms0: disable error pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub0 port 5 configuration 1 interface 0 "SuYin Acer Crystal Eye webcam" rev 2.00/0.01 addr 2 video0 at uvideo0 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (bb11e7e4cec55775.a) swap on wd0b dump on wd0b pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 pms0: protocol type 2 uhidev0 at uhub2 port 1 configuration 1 interface 0 " USB Keyboard" rev 1.10/3.10 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub2 port 1 configuration 1 interface 1 " USB Keyboard" rev 1.10/3.10 addr 2 uhidev1: iclass 3/0, 2 report ids uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0 uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0 Any ideas?
Re: Running OpenBSD on an Acer Aspire One 110L netbook
On Wed, 2012-07-04 at 13:33 -0400, Nick Holland wrote: > > Sometimes the touchpad doesn't work (the two buttons work, but the > > cursor doesn't move), unfortunately this doesn't seem to be reproducible > > and can only be fixed by rebooting. Disabling and re-enabling the > > touchpad via the function keys doesn't help either, although they work > > fine if the touchpad already works. I attached dmesg and Xorg log files > > for both cases. > > In my experience, you have to cold boot when switching OSs (mine is dual > boot OpenBSD/windows XP). It used to be OpenBSD wouldn't work after > Windows had done its thing with the trackpad, now (I believe with the > 5.1 support of the Synaptics touchpads), OpenBSD screws up Windows, too > (and for some reason, I think this is very cool). So...make sure you > are doing a complete power down between switching OSs. I've not noted > any problem simply rebooting OpenBSD. Unfortunately a cold reboot from OpenBSD doesn't work for me. The touchpad still fails randomly. With the 5.1 release it even fails after some time when moving the cursor around in fvwm. Is this is a problem in the pms or wsmouse driver? I have attached the Xorg.0.log file from a Linux installation with an older version of the Xorg synaptics module, which works just fine. > > Is there any PCI hotplug support in OpenBSD or another possibility to > > make them work without inserting an SD card at boot time? > > iirc, the issue was that power is not applied to the card readers by the > BIOS unless cards are installed, and no one has figured out the ACPI > voodoo to power the cards on from OpenBSD. > > Find a couple 128M or 256M cards no one cares about anymore, keep 'em in > your machine, and you can use the sd card slots any time you want. I > keep an 8G card in one of mine (the one that the card goes all the way > into) as a backup. At boot, I have the thing rsync a directory of > "important" files to the card (--link-dest rocks, btw), so I've got one > usable SD slot... Ok, thanks for your advice. Xorg.0.log: X.Org X Server 1.10.4 Release Date: 2011-08-19 [35.507] X Protocol Version 11, Revision 0 [35.507] Build Operating System: x86-16 2.6.32-131.2.1.el6.x86_64 [35.507] Current Operating System: Linux 2.6.40.6-0.fc15.i686 #1 SMP Tue Oct 4 00:51:19 UTC 2011 i686 [35.511] Kernel command line: ro root=UUID=59a83c5d-94e4-48e5-bff9-fdfd0dbdf185 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=de-latin1-nodeadkeys rhgb quiet [35.511] Build Date: 07 September 2011 04:13:44PM [35.511] Build ID: xorg-x11-server 1.10.4-1.fc15 [35.511] Current version of pixman: 0.20.2 [35.511]Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [35.511] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [35.513] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 4 20:33:44 2012 [35.528] (==) Using config directory: "/etc/X11/xorg.conf.d" [35.528] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [35.530] (==) No Layout section. Using the first Screen section. [35.530] (==) No screen section available. Using defaults. [35.530] (**) |-->Screen "Default Screen Section" (0) [35.530] (**) | |-->Monitor "" [35.530] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [35.531] (==) Automatically adding devices [35.531] (==) Automatically enabling devices [35.533] (==) FontPath set to: catalogue:/etc/X11/fontpath.d, built-ins [35.533] (==) ModulePath set to "/usr/lib/xorg/modules" [35.533] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [35.533] (II) Loader magic: 0x8229f20 [35.533] (II) Module ABI versions: [35.533]X.Org ANSI C Emulation: 0.4 [35.533]X.Org Video Driver: 10.0 [35.533]X.Org XInput driver : 12.2 [35.533]X.Org Server Extension : 5.0 [35.540] (--) PCI:*(0:0:2:0) 8086:27ae:1025:015b rev 3, Mem @ 0x5848/524288, 0x4000/268435456, 0x5850/262144, I/O @ 0x60c0/8, BIOS @ 0x/131072 [35.540] (--) PCI: (0:0:2:1) 8086:27a6:1025:015b rev 3, Mem @ 0x5840/524288, BIOS @ 0x/65536 [35.540] (II) LoadModule: "extmod" [35.541] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so [35.544] (II) Module extmod: vendor="X.Org Foundation" [35.544]compiled for 1.10.4, module version = 1.0.0 [35.544]Module class: X.Org Server Extension [35.544]ABI class: X.Org Server Extension, version 5.0 [35.544] (II) Loading extension SELinux [35.544] (II) Loading extension MIT-SCRE