You are not logged in.

#1 2016-10-11 07:29:57

gianluca.teza
Member
Registered: 2016-04-06
Posts: 17

Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

Hi everyone,
I am on an ASUS F556U notebook with an Elan Touchpad. Everytime I boot the notebook and I start an X session the touchpad does not work at all. But after the first suspension-resume process it starts working flawlessly.
I've checked my BIOS settings for the internal input device, and it says 'ENABLED'. I've also tried using both xf86-input-synaptics and xf86-input-libinput but the problem persist in every case.
Does anyone have any idea of what could be the cause of this behaviour?
Thanks in advance.

Offline

#2 2016-10-11 13:36:07

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

When you boot the laptop, do you power it on or do you reboot from Windows? I remember a laptop when similar problem appeared when rebooted from Windows; there was apparently something that persisted across reboot.

Try to see if the touchpad is detected at all (look at the kernel message or Xorg log). Also try to boot in text mode and launch X by hand. It might be that the X server is launched too early, before the kernel/udev can enable the touchpad. If that is the case you will have to hack some systemd service file (typically display-manager.service to wait a little after before launching X).

I would of course have recommended to check the Bios options but you have already done so. I suppose you have checked a possible special key that might enable/disable the touchpad.

Last edited by olive (2016-10-11 13:37:29)

Offline

#3 2016-10-11 13:48:05

gianluca.teza
Member
Registered: 2016-04-06
Posts: 17

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

I don't have Windows installed on my laptop, only arch.
I don't use any display manager, I always launch X by TTY1 with startx.

What should I look into the kernel log (with dmesg I suppose) to see if the touchpad has been correctly detected?

Offline

#4 2016-10-11 13:56:04

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

Look at dmesg, /var/log/Xorg.0.log (or a similar file in your home directory); possibly udevadm (I am not a udev specialist, but you should be able to use it to see the udev database).

Offline

#5 2016-10-11 14:21:27

gianluca.teza
Member
Registered: 2016-04-06
Posts: 17

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

Ok, I took a look into the file ~/.local/share/xorg/Xorg.0.log. This is the part that concerns the touchpad:

[    29.659] (II) config/udev: Adding input device Elan Touchpad (/dev/input/event6)
[    29.659] (**) Elan Touchpad: Applying InputClass "evdev touchpad catchall"
[    29.659] (**) Elan Touchpad: Applying InputClass "libinput touchpad catchall"
[    29.659] (**) Elan Touchpad: Applying InputClass "touchpad"
[    29.661] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 22 paused 0
[    29.661] (II) Using input driver 'libinput' for 'Elan Touchpad'
[    29.661] (**) Elan Touchpad: always reports core events
[    29.661] (**) Option "Device" "/dev/input/event6"
[    29.661] (**) Option "_source" "server/udev"
[    29.662] (II) input device 'Elan Touchpad', /dev/input/event6 is tagged by udev as: Touchpad
[    29.662] (II) input device 'Elan Touchpad', /dev/input/event6 is a touchpad
[    29.662] (**) Option "Tapping" "on"
[    29.662] (**) Option "HorizontalScrolling" "off"
[    29.662] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-ELAN1000:00/input/input6/event6"
[    29.662] (II) XINPUT: Adding extended input device "Elan Touchpad" (type: TOUCHPAD, id 14)
[    29.662] (**) Option "AccelerationScheme" "none"
[    29.662] (**) Elan Touchpad: (accel) selected scheme none/0
[    29.662] (**) Elan Touchpad: (accel) acceleration factor: 2.000
[    29.662] (**) Elan Touchpad: (accel) acceleration threshold: 4
[    29.663] (II) input device 'Elan Touchpad', /dev/input/event6 is tagged by udev as: Touchpad
[    29.663] (II) input device 'Elan Touchpad', /dev/input/event6 is a touchpad
[    29.664] (II) config/udev: Adding input device Elan Touchpad (/dev/input/mouse0)
[    29.664] (**) Elan Touchpad: Applying InputClass "touchpad"
[    29.664] (II) Using input driver 'libinput' for 'Elan Touchpad'
[    29.664] (**) Elan Touchpad: always reports core events
[    29.664] (**) Option "Device" "/dev/input/mouse0"
[    29.664] (**) Option "_source" "server/udev"
[    29.665] (EE) xf86OpenSerial: Cannot open device /dev/input/mouse0
	Permission denied.
[    29.665] (II) opening input device '/dev/input/mouse0' failed (Permission denied).
[    29.665] (II) failed to create input device '/dev/input/mouse0'.
[    29.665] (EE) libinput: Elan Touchpad: Failed to create a device for /dev/input/mouse0
[    29.665] (EE) PreInit returned 2 for "Elan Touchpad"
[    29.665] (II) UnloadModule: "libinput"

As you can see in the end there are some failures. Can you understand what's going on?

Offline

#6 2016-10-11 14:27:09

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

With or without starting X, do

cat /dev/input/event6

and do something with the touchpad. You should see garbage being displayed on the terminal if the touchpad is detected. You can also issue "xinput -list" under X to see if the touchpad is recognized.

Offline

#7 2016-10-11 14:56:41

gianluca.teza
Member
Registered: 2016-04-06
Posts: 17

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

I've tried to cat event6 after a reboot (both in tty1 and in a terminal emulator inside X) and nothing was displayed when I moved the touchpad. After the suspend-resume process (when the touchpad is actually working) cat event6 produces some garbage as you suggested.
I've also tried

xinput -list

and this was the output:

[gianluca@F556U ~]$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Elan Touchpad                             id=14   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Asus Wireless Radio Control               id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Video Bus                                 id=9    [slave  keyboard (3)]
    ↳ Sleep Button                              id=10   [slave  keyboard (3)]
    ↳ USB2.0 VGA UVC WebCam                     id=13   [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                          id=15   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=16   [slave  keyboard (3)]

Here it seems to be detected (id=14).

Offline

#8 2016-10-28 10:25:24

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

Got the same on Asus X556U - started just recently, same behaviour - touchpad works only after wakeup from suspend - same on different kernels ( lts, arch, zen, ck )

gnome 3.22, sddm, automatical login, touchpad in bios enabled, fn + f9 doesnt change the state - just OSD changes

interesting observation - live cd with centos6 also didnt recognized the touchpad on the boot - didnt tried so far suspend in it

Update:

I was trying to resolve fn + F5 & F6 functionality for adjusting the backlight of the screen - it worked with acpi_osi= kernel parameter, but touchpad wasnt even recognized by xinput -list - nor worked after wakeup from suspend


[gofree@traktor ~]$ xinput -list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Elan Touchpad                           	id=12	[slave  pointer  (2)]
⎜   ↳ Logitech M510                           	id=15	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Asus Wireless Radio Control             	id=7	[slave  keyboard (3)]
    ↳ Video Bus                               	id=8	[slave  keyboard (3)]
    ↳ Video Bus                               	id=9	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=10	[slave  keyboard (3)]
    ↳ USB2.0 VGA UVC WebCam                   	id=11	[slave  keyboard (3)]
    ↳ Asus WMI hotkeys                        	id=13	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=14	[slave  keyboard (3)

Last edited by gofree (2016-10-28 17:04:46)

Offline

#9 2017-01-13 23:00:24

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

seems to be working with

4.9.3-1-ck-skylake

Offline

#10 2017-01-14 09:32:18

gianluca.teza
Member
Registered: 2016-04-06
Posts: 17

Re: Touchpad doesn't work on boot, only after suspend (on ASUS notebook)

gofree wrote:

seems to be working with

4.9.3-1-ck-skylake

I confirm that this problem has been fixed in the kernel linux-ck-skylake-4.9.3-1 (it can be found already compiled in the unofficial repository Repo-ck).
Another thing that may be of interest to someone is that with this kernel I was finally able to make my integrated graphic card work (nvidia geforce 920m).
Thank you gofree!

Offline

Board footer

Powered by FluxBB