Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
touchpad not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dalto
n00b
n00b


Joined: 14 Jul 2021
Posts: 20

PostPosted: Mon Jul 19, 2021 11:11 pm    Post subject: touchpad not working Reply with quote

After installing Gentoo in vmware with a little help from the forum, I have spent the last two days installing on real hardware. I have been working through the issues one at a time but there are a couple left I haven't been able to solve.

The first is the touchpad. I am pretty sure I am missing the correct driver here but I am not sure what it is. The PCI ID is 093a:1336. Here is my kernel config.

EDIT: The audio issue is resolved, see below.
The second challenge is pulseaudio doesn't see my audio devices. In this case, I have no idea what it wrong. I seem to have the drivers available. I am not sure if this is a pule issue, a driver issue or something else.

inxi:
Code:

Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Tongfang Hongkong Limited
           driver: snd_hda_intel v: kernel bus ID: 03:00.1 chip ID: 1002:15de
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Tongfang Hongkong Limited driver: snd_hda_intel
           v: kernel bus ID: 03:00.6 chip ID: 1022:15e3
           Sound Server: ALSA v: k5.10.49-gentoo-r1


emerge --info
Code:

Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.3.0, glibc-2.33-r1, 5.10.49-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.10.49-gentoo-r1-x86_64-AMD_Ryzen_5_3500U_with_Radeon_Vega_Mobile_Gfx-with-glibc2.33
KiB Mem:     6072940 total,   4493460 free
KiB Swap:    8387904 total,   8387904 free
Timestamp of repository gentoo: Mon, 19 Jul 2021 21:30:01 +0000
Head commit of repository gentoo: e4998bbe399434415711ae5e57cd0b252395941f
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.9.5_p2::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr emboss encode exif flac fortran gdbm gif gpm gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi fbdev vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS


Last edited by dalto on Thu Jul 22, 2021 3:02 am; edited 1 time in total
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1794
Location: San Jose, CA

PostPosted: Wed Jul 21, 2021 4:22 pm    Post subject: Reply with quote

Try installing gentoo-kernel-binary to see if it enables the appropriate drivers for the trackpad and audio.

Also, getting audio to work is not as easy as it used to be. Generally pulse is required and it still has issues with hardware detection. For example, I run a dual display. If I don't connect the monitors just right, I get no audio out of my main monitor, it will only work on the secondary monitor. But if I swap ports, then it works fine. I'm not sure if that's a pulse or alsa issue, but I suspect it's pulse.

Are you plugging into the speaker / headphone output jack? Or are you trying to get HDMI audio to work? I think trying a generic kernel will help either way.

What does `aplay -l` show?
How about `aplay -L`?

You can also use aplay to try a wave file to one of the devices it recognizes to see if the device is working, but alsa / pulse are confused.

aplay is part of media-sound/alsa-utils.

I avoided pulse for years. Then one weekend I spent hours figuring out how to configure it. It uses alsa as its output, but you also have to tell also to forward its inputs to pulse.

Code:

cat ~/.asoundrc
pcm.!default pulse
ctl.!default pulse


That's how I do it. I'm not positive it's the right way though. There are so many ways to configure audio...

Let me know how it's going.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
dalto
n00b
n00b


Joined: 14 Jul 2021
Posts: 20

PostPosted: Wed Jul 21, 2021 11:08 pm    Post subject: Reply with quote

RayDude wrote:
Try installing gentoo-kernel-binary to see if it enables the appropriate drivers for the trackpad and audio.

Both work fine with the prebuilt gentoo kernel.

This gave me the idea to run lsmod with the prebuilt kernel and see if I was missing anything obvious. On the audio side, it was pretty obvious. I was missing snd_hda_codec_realtek. I built that module and the sound is now working. Thanks for the idea!

On the touchpad side, I was missing a lot of things but building them didn't resolve the issue so I am sort of at a loss still on this one. I must be missing something in the kernel somewhere.
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1794
Location: San Jose, CA

PostPosted: Thu Jul 22, 2021 3:22 am    Post subject: Reply with quote

dalto wrote:
RayDude wrote:
Try installing gentoo-kernel-binary to see if it enables the appropriate drivers for the trackpad and audio.

Both work fine with the prebuilt gentoo kernel.

This gave me the idea to run lsmod with the prebuilt kernel and see if I was missing anything obvious. On the audio side, it was pretty obvious. I was missing snd_hda_codec_realtek. I built that module and the sound is now working. Thanks for the idea!

On the touchpad side, I was missing a lot of things but building them didn't resolve the issue so I am sort of at a loss still on this one. I must be missing something in the kernel somewhere.


I had the same issue with my work Lenovo Legion.

I got it working while in vacation by using an Ubuntu config file. But I broke a bunch of other stuff in the process.

I just redid the whole import of the Ubuntu config and NOW the trackpad is not working!

Flakey!

I'll keep pounding on it.

As for how to get yours working, you have to find the device (it's likely in lsusb) and then google the device ID to see what others have done.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
dalto
n00b
n00b


Joined: 14 Jul 2021
Posts: 20

PostPosted: Thu Jul 22, 2021 12:30 pm    Post subject: Reply with quote

RayDude wrote:


As for how to get yours working, you have to find the device (it's likely in lsusb) and then google the device ID to see what others have done.


That is where I started, the ID is in the first post. Unfortunately, it doesn't seem to be a widely used device or my search skills are lacking.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8043
Location: Saint Amant, Acadiana

PostPosted: Thu Jul 22, 2021 12:48 pm    Post subject: Reply with quote

The ID in the first post. How did you get it. Touchpad is not a PCI device, it cannot have a PCI ID. In case of Lenovo it probably is a I2C HID device, there are kernel options for this.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
dalto
n00b
n00b


Joined: 14 Jul 2021
Posts: 20

PostPosted: Thu Jul 22, 2021 1:09 pm    Post subject: Reply with quote

Jaglover wrote:
Touchpad is not a PCI device, it cannot have a PCI ID.

Good point, it isn't a PCI ID, that is an error on my part. I pulled it from dmesg.

Jaglover wrote:
In case of Lenovo it probably is a I2C HID device, there are kernel options for this.


It isn't a Lenovo. It is a Motile M142.

Here is the dmesg output from the binary dist kernel where it works if there is any useful info in here:
Code:
[    2.325373] input: UNIW0001:00 093A:1336 Mouse as /devices/platform/AMDI0010:00/i2c-0/i2c-UNIW0001:00/0018:093A:1336.0001/input/input6
[    2.326522] input: UNIW0001:00 093A:1336 Touchpad as /devices/platform/AMDI0010:00/i2c-0/i2c-UNIW0001:00/0018:093A:1336.0001/input/input7
[    2.327640] hid-generic 0018:093A:1336.0001: input,hidraw0: I2C HID v1.00 Mouse [UNIW0001:00 093A:1336] on i2c-UNIW0001:00
[    2.482024] input: UNIW0001:00 093A:1336 Mouse as /devices/platform/AMDI0010:00/i2c-0/i2c-UNIW0001:00/0018:093A:1336.0001/input/input8
[    2.482113] input: UNIW0001:00 093A:1336 Touchpad as /devices/platform/AMDI0010:00/i2c-0/i2c-UNIW0001:00/0018:093A:1336.0001/input/input9
[    2.482172] hid-multitouch 0018:093A:1336.0001: input,hidraw0: I2C HID v1.00 Mouse [UNIW0001:00 093A:1336] on i2c-UNIW0001:00


At this point I have:
Code:

CONFIG_HID_MULTITOUCH=m
CONFIG_HID_GENERIC=y
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1794
Location: San Jose, CA

PostPosted: Thu Jul 22, 2021 4:19 pm    Post subject: Reply with quote

Mines similar and not working again. I wish I had a working dmesg to show you, but I needed my work VPN to work, so I gave up the touchpad driver again.

You could try setting this: CONFIG_I2C_HID_ACPI. I think that was in the cocktail for getting mine to work.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
dalto
n00b
n00b


Joined: 14 Jul 2021
Posts: 20

PostPosted: Thu Jul 22, 2021 5:10 pm    Post subject: Reply with quote

RayDude wrote:
Mines similar and not working again. I wish I had a working dmesg to show you, but I needed my work VPN to work, so I gave up the touchpad driver again.

You could try setting this: CONFIG_I2C_HID_ACPI. I think that was in the cocktail for getting mine to work.


I think that option is only available in newer kernels. I am running 5.10
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum