Opened 10 years ago

Closed 8 years ago

Last modified 8 years ago

#11172 closed bug (fixed)

Elantech Touchpad and Keyboard did'nt works

Reported by: miqlas Owned by: nobody
Priority: normal Milestone: R1
Component: Drivers/Keyboard/PS2 Version: R1/Development
Keywords: elan, ps2, keyboard, toucpad Cc:
Blocked By: Blocking:
Platform: All

Description

Touchpad: ACPI\VEN_ETD&DEV_0508 Type: PS/2 compatible IRQ 12

Keyboard: ACPI\VEN_1025&DEV_0759 Type: PS/2 compatible IRQ 01 Port 0060-0060 Port 0064-0064

Haiku: haiku-nightly-hrev47754-x86_gcc2_hybrid-cd

Everything else working correctly on my laptop (Acer Aspire M5-438TG), but the Touchpad and Keyboard.

Attachments (1)

syslog.old.txt (512.0 KB ) - added by miqlas 10 years ago.
Syslog (the first part is with wmvare fusion, the last part is on real iron, USB boot)

Download all attachments as: .zip

Change History (18)

by miqlas, 10 years ago

Attachment: syslog.old.txt added

Syslog (the first part is with wmvare fusion, the last part is on real iron, USB boot)

comment:1 by miqlas, 10 years ago

Info from DSDT:

                Device (PS2K)
                {
                    Method (_HID, 0, NotSerialized)  // _HID: Hardware ID
                    {
                        If (LEqual (OSYS, 0x07DC))
                        {
                            Return ("10250759")
                        }
                        Else
                        {
                            Return (0x0303D041)
                        }
                    }

                    Name (_CID, EisaId ("PNP0303") /* IBM Enhanced Keyboard (101/102-key, PS/2 Mouse) */)  // _CID: Compatible ID
                    Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
                    {
                        IO (Decode16,
                            0x0060,             // Range Minimum
                            0x0060,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0064,             // Range Minimum
                            0x0064,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IRQ (Edge, ActiveHigh, Exclusive, )
                            {1}
                    })
                    Name (_PRS, ResourceTemplate ()  // _PRS: Possible Resource Settings
                    {
                        StartDependentFn (0x00, 0x00)
                        {
                            FixedIO (
                                0x0060,             // Address
                                0x01,               // Length
                                )
                            FixedIO (
                                0x0064,             // Address
                                0x01,               // Length
                                )
                            IRQNoFlags ()
                                {1}
                        }
                        EndDependentFn ()
                    })
                }

                Device (PS2M)
                {
                    Method (_HID, 0, NotSerialized)  // _HID: Hardware ID
                    {
                        If (LEqual (TPTY, One))
                        {
                            Return (0x08058416)
                        }
                        Else
                        {
                            If (LEqual (TPTY, 0x02))
                            {
                                Return (0x1020A906)
                            }
                            Else
                            {
                                Return (0x601B2E4F)
                            }
                        }
                    }

                    Method (_CID, 0, NotSerialized)  // _CID: Compatible ID
                    {
                        If (LEqual (TPTY, One))
                        {
                            Return (Package (0x01)
                            {
                                0x130FD041
                            })
                        }
                        Else
                        {
                            If (LEqual (TPTY, 0x02))
                            {
                                Return (Package (0x01)
                                {
                                    0x130FD041
                                })
                            }
                            Else
                            {
                                Return (Package (0x03)
                                {
                                    0x001B2E4F, 
                                    0x02002E4F, 
                                    0x130FD041
                                })
                            }
                        }
                    }

                    Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
                    {
                        IRQ (Edge, ActiveHigh, Exclusive, )
                            {12}
                    })
                    Name (_PRS, ResourceTemplate ()  // _PRS: Possible Resource Settings
                    {
                        StartDependentFn (0x00, 0x00)
                        {
                            IRQNoFlags ()
                                {12}
                        }
                        EndDependentFn ()
                    })
                }
            }

comment:2 by miqlas, 10 years ago

Syslog from other OS:

ELAN touchpad found, Hardware version 4 (Firmware version 0x461f08). Touchpad ranges are X_min 0 Y_min 0 X_max 2960 Y_max 1924, CenterX 1480, CenterY 962.

comment:3 by miqlas, 9 years ago

Keyboard and Touchpad works with the new nightly. You can close this ticket. Thanks!

comment:4 by waddlesplash, 9 years ago

Resolution: fixed
Status: newclosed

comment:5 by miqlas, 9 years ago

Actually it is randomly happening, so please, reopen this ticket.

It is not easy to reproduce, sometimes after boot my touchpad and keyboard works, sometimes not. A reboot fixes this, but it would be nice to see a proper fix for this.

This is a Ps2 attached keyboard and trackpad in a laptop. The device reported through DSDT. May it be a problem in the ACPI? I never had any problem like this in other OS.

comment:6 by miqlas, 9 years ago

Haiku is not able to reset the ps2:

(...)
6731	KERN: ps2_hid: init_hardware
6732	KERN: ps2_hid: init_driver
6733	KERN: ps2: active multiplexing v1.1 enabled
6734	KERN: ps2_hid: publish_devices
6735	KERN: ps2_hid: uninit_driver
6736	KERN: ps2: reset failed
6737	KERN: loaded driver /boot/system/add-ons/kernel/drivers/dev/input/ps2_hid
6738	KERN: ps2: devfs_publish_device input/mouse/ps2/0, status = 0xffffffff
(...)
6742	KERN: ALPS not supported: 10 00 64
(...)
6750	KERN: ps2: probe_mouse Standard PS/2 mouse found
6751	KERN: ps2: devfs_publish_device input/mouse/ps2/standard_1, status = 0x00000000
6752	KERN: ps2: reset failed
6753	KERN: ps2: devfs_publish_device input/mouse/ps2/2, status = 0xffffffff
6754	KERN: ps2: reset failed
6755	KERN: ps2: devfs_publish_device input/mouse/ps2/3, status = 0xffffffff
6756	KERN: ps2: devfs_publish_device input/keyboard/at/0, status = 0x00000000
(...)

comment:7 by diver, 9 years ago

Platform: x86All
Resolution: fixed
Status: closedreopened

comment:8 by pulkomandy, 9 years ago

hrev48425 chaged the ps/2 init to fix a similar problem. Does it helps?

comment:9 by miqlas, 9 years ago

I haven't seen this problem some revisions ago, so i think it is fixed. Thank you guys!

comment:10 by pulkomandy, 9 years ago

Resolution: fixed
Status: reopenedclosed

comment:11 by miqlas, 9 years ago

Hi Guys!

Please, reopen this ticket, as this bug happening again. I cannot give any extra details, but the syslog is the same as before.

I have Yubikey in my USB port, it report itself as an usb keyboard and i have an usb mouse also. Can it make any problem like this? I dubt, but who knows?

comment:12 by korli, 9 years ago

Resolution: fixed
Status: closedreopened

comment:13 by siarzhuk, 9 years ago

Owner: changed from siarzhuk to nobody
Status: reopenedassigned

For years I was default assignee for this PS2 stuff. Neither fixes nor improvements - I should be fired away. ;-)

comment:14 by miqlas, 8 years ago

Tested now, it works properly. You can close it, siarzhuk. Thank you, and no, we don't fire you :)

comment:15 by pulkomandy, 8 years ago

Resolution: fixed
Status: assignedclosed

Are you sure it's really fixed this time? :)

comment:16 by miqlas, 8 years ago

I think this is not ELAN related, i've just seen it on Thinkpad X200 too.

Last edited 8 years ago by miqlas (previous) (diff)

comment:17 by idumych, 8 years ago

I finally am able to at least book Haiku in safe mode now on my Chromebook C720P thanks to Coolstar's custom bios. There are some USB bugs that prevent Windows from loading too, apparently. Here is the guide I used to update my bios, it has information on the Elan trackpad drivers too.

Version 0, edited 8 years ago by idumych (next)
Note: See TracTickets for help on using tickets.