[SOLVED] touchpad not working on boot 01 March 2021, 03:45:51 This was a problem ever since I first moved to s6 (from openrc), but it was inconsistent and it went away pretty much fully so I didn't bother after the first few days.Today, out of the blue, I'm starting to get it every boot. After a while I found out that if I have a mouse plugged into the system during boot, the touchpad would work, but if I don't have a mouse plugged in it would not. Plugging in mouse after boot will not make the touchpad come to life.I tried the xfce-s6 live iso. the touchpad works on that just fine. I copied over the dmesg and udevd logs and compared it to my normal system and nothing seems to be out of place, they look pretty much the same. In fact, there aren't any notable errors in my normal logs to speak off (just failed to rename wireless interface and such)Any ideas on where I should look? Last Edit: 04 May 2021, 21:46:43 by nous
Re: touchpad not working on boot Reply #1 – 01 March 2021, 16:06:38 Hmm, I hate to say it but this issue doesn't really make sense. I wish I had an idea, but it doesn't make any sense why a live iso or another init system would magically work. The only thing I could possibly think of is if udev somewhere fails (although no clue why this would happen).
Re: touchpad not working on boot Reply #2 – 01 March 2021, 18:45:35 Hi, I would propose, at least for testing purposes, to replace eudev with xudev, and send us your feedback.
Re: touchpad not working on boot Reply #3 – 01 March 2021, 20:49:58 put here output from Code: [Select]cat /var/log/Xorg.0.log andCode: [Select]dmesg
Re: touchpad not working on boot Reply #4 – 02 March 2021, 10:48:50 Quote from: linuxer – on 01 March 2021, 18:45:35Hi, I would propose, at least for testing purposes, to replace eudev with xudev, and send us your feedback.is that a drop-in replacement? or do I need to be mindful of some parts
Re: touchpad not working on boot Reply #5 – 02 March 2021, 11:22:41 Quote from: tleydxdy – on 02 March 2021, 10:48:50is that a drop-in replacement? or do I need to be mindful of some partsA direct replacement.
Re: touchpad not working on boot Reply #6 – 02 March 2021, 12:06:49 new findings, xudev doesn't boot to agetty (the unusable login prompt shows artixlinux as hostname, rater than the true one) and it didn't need to be a mouse, I can just plug in some other random usb stuff, seems like it just needed the delay.Xorg goodhttps://bin.snopyta.org/?ef758e4e736e7633#BVyj1sa38g6SbZoGVp9vbXJ9BGyknpMMe2uQUCs71ZN1Xorg badhttps://bin.snopyta.org/?c71f86d3a333d8d0#p3Wv2FTz8mGnccuUVpiUqXwFKqhpe2FnGGZuKMrgGqcdmesg goodhttps://bin.snopyta.org/?21d963622529f66a#7oW8Y4ArWnyJEvtTxqrALWet5M6SCHMU8CDa7gfBfxFSdmesg badhttps://bin.snopyta.org/?8e66b8acc8adbba7#8rVJ4jmF1aKkb234XkXGianPJ5VvkyvDsdxR1RsUW8Wy
Re: touchpad not working on boot Reply #7 – 02 March 2021, 15:47:59 I guess I could go over my setup and thing I tried (that I remember). Currently, I'm booting with uefi, using dracut to generate the initramfs, it is a all-in-one image with initramfs/kernel/microcode since I'm using secure boot. The kernel cmdline just have stuff that unlocks the drive and the ec thing for firmware flashing. Once booted, it puts me into the terminal login prompt and I log in, my bash profile sees that it's tty1 and launches sx which is like startx.I was using mkinitramfs and just booting the kernel directly with my uefi, and that didn't seem to matter. This was when I first intalled and debugging the issue. I tried to change the initramfs, obviously, tried to load the kernel module tried to disable other modules that I installed, mostly my laptop drivers (system76), tried to mess with s6 dependency graph.Somehow it was only recently that the problem is reproducible. I remember I could take the machine out and the touchpad will work and only once in a while it would fail. and reboot usually fixes it.What got updated? maybe that can give some clues. Recently, like sunday, but I do always plugs in to the usb hub, so it might be a bit earlier than that.
Re: touchpad not working on boot Reply #8 – 02 March 2021, 23:50:35 You could check your /var/log/pacman.log file for clues. The kernel updated relatively recently. No idea if that's related.
Re: touchpad not working on boot Reply #9 – 01 May 2021, 09:57:50 I found out that I can do a Code: [Select]sudo udevadm trigger after I login to make the touchpad work again. so...
Re: touchpad not working on boot Reply #10 – 01 May 2021, 16:08:41 udevadm trigger is run during bootup though. So somehow that doesn't register your touchpad. Well the arguments are different I suppose. If you ever get a chance, could you check and see ifCode: [Select]udevadm trigger --action=add --type=devicesorCode: [Select]udevadm trigger --action=add --type=subsystemsregister your touchpad after login?
Re: touchpad not working on boot Reply #11 – 04 May 2021, 14:25:59 Code: [Select]udevadm trigger --action=add --type=devicesdoes the job as well
Re: [SOLVED] touchpad not working on boot Reply #12 – 05 May 2021, 02:09:03 I suppose this is a race although a strange one. This probably means that udev --daemon returns before the daemon is actually even up thus causing the subsequent udevadm triggers to silently fail? I'm still not totally happy with how udevd is handled during start up so maybe this is a good opportunity to rethink/rewrite it.