Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] cannot get laptop hardware functioning
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Thu May 24, 2018 7:55 am    Post subject: [Solved] cannot get laptop hardware functioning Reply with quote

Booted binary distro and all hardware worked however I could not get bluetooth and touchpad to work under gentoo. Heres lsmod and dmesg from binary dist

lsmod
http://dpaste.com/2CEK64W

dmesg
http://dpaste.com/2GYFKKC

current kernel config
http://dpaste.com/3A0T5TM

this is about my 8th time installing gentoo and unfortunately if i cannot get hw to work I will have to distro hop.


Last edited by The_Document on Sat Jun 02, 2018 2:26 am; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7195

PostPosted: Thu May 24, 2018 8:42 am    Post subject: Reply with quote

Try change your ultimatum with "build me my gentoo or i'll kill that cute puppy" thread, it could had work better.

Go use your binary distro ; if you are in total anger, we have a "gentoo is dying" thread (actually more than just one) that could be bump if you are in mood to post crap while leaving.
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Thu May 24, 2018 8:51 am    Post subject: Reply with quote

krinn wrote:
Try change your ultimatum with "build me my gentoo or i'll kill that cute puppy" thread, it could had work better.

Go use your binary distro ; if you are in total anger, we have a "gentoo is dying" thread (actually more than just one) that could be bump if you are in mood to post crap while leaving.


I'm not in any kind of anger, setting up a kernel which is set up to run only on the hardware which is present is not an easy task granted there are very few guidelines. I'm in the unfortunate situation where I cannot have working hardware with gentoo running on it. I made this post to see if there are things which are missed, or perhaps a wiki or some explanation to determine hardware codes to kernel drivers. For instance, this prompt and menu entry named pin controllers does not exist, if it did I would have likely already gotten hardware to work.

https://preview.ibb.co/e41Pvo/IMG_20180524_022334.jpg

Configuring the kernel is confusing enough for me to just distro hop and I did not bring anything up about gentoo dying or similar things.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7195

PostPosted: Thu May 24, 2018 9:42 am    Post subject: Reply with quote

The_Document wrote:
I made this post to see if there are things which are missed, or perhaps a wiki or some explanation to determine hardware codes to kernel drivers.

The problem is not what you ask, but how you did.

The_Document wrote:

For instance, this prompt and menu entry named pin controllers does not exist, if it did I would have likely already gotten hardware to work.

Kernel entries have rules: could be either because something is missing or something is selected.
On your picture, you can see it depends on PINCTRL=n and ACPI=y, so if ACPI=n or PINCTRL=y the item may stay hidden.
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Thu May 24, 2018 4:09 pm    Post subject: Reply with quote

krinn wrote:
...the item may stay hidden.


It's still hidden is the only way to enable it by appending config file?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44014
Location: 56N 3W

PostPosted: Thu May 24, 2018 4:53 pm    Post subject: Reply with quote

The_Document,

You can search for hidden entries in menuconfig as follows:-
On a menu that does not use 'z' as a shortcut, press 'z'. This toggles the hiding and unhiding of all unselectable options.
You will see a new symbol
Code:
- -
against unselectable options.

The search will work and you can jump to any hidden option.
Read its Depends on: in the help.
Fix the Depends on: boolean expression to evaluate to true.

You may need to do apply the search, fix the Depends on: boolean expression process recursively.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1770

PostPosted: Thu May 24, 2018 6:23 pm    Post subject: Reply with quote

Quote:
cannot get (...) functioning might distro hop
You wouldn't believe the size of fck I don't give.

If you actually want to get help with your problem at hand, ask a proper question. Posting logs is good, yes, but they lack >>action<< so nobody is really going to read them just for fun.
You are supposed to know what you expect. You are supposed to know what doesn't meet your expectation. You are the one supposed to drive this topic.
Write it all down.
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Thu May 24, 2018 11:32 pm    Post subject: Reply with quote

NeddySeagoon wrote:
...press 'z'. This toggles the hiding and unhiding of all unselectable options.
You will see a new symbol...

I used both
Code:
make menuconfig
and
Code:
make nconfig
and z did not toggle anything. Then tried with show all symbols enabled, still nothing.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2562

PostPosted: Fri May 25, 2018 12:35 am    Post subject: Reply with quote

szatox wrote:
Quote:
cannot get (...) functioning might distro hop
You wouldn't believe the size of fck I don't give.


+1.

I actively use several distros already, based on what my needs for the system are and how I'm feeling that day. I strongly recommend being at least passingly familiar with 2 distros which are not in the same family group.

However, your "might distro hop" in the subject is likely to get you some angst as it can be seen as a threat of sorts, although I can't see why anyone would care.

I bid you a good journey on your search for a new distro.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44014
Location: 56N 3W

PostPosted: Fri May 25, 2018 6:52 pm    Post subject: Reply with quote

The_Document,

Lets do a worked example. In menuconfig press / and enter PINCTRL_SUNRISEPOINT
I get
Code:
  │ Symbol: PINCTRL_SUNRISEPOINT [=n]                                                  │ 
  │ Type  : tristate                                                                   │ 
  │ Prompt: Intel Sunrisepoint pinctrl and GPIO driver                                 │ 
  │   Location:                                                                        │ 
  │     -> Device Drivers                                                              │ 
  │ (1)   -> Pin controllers (PINCTRL [=n])                                            │ 
  │   Defined at drivers/pinctrl/intel/Kconfig:101                                     │ 
  │   Depends on: PINCTRL [=n] && (X86 [=y] || COMPILE_TEST [=n]) && ACPI [=y]         │ 
  │   Selects: PINCTRL_INTEL [=n]

Pressing 1 to go to it takes me to
Code:
[ ] Pin controllers  ----

As Depends on: PINCTRL [=n] && (X86 [=y] || COMPILE_TEST [=n]) && ACPI [=y] is false, something like that is expected.
Pressing z now appears to do nothing but further down the menu
Code:
  │ │           - - FSI support  ----                                                            │ │ 
  │ │           - - Trusted Execution Environment support
toggles into view.
Getting back to
Code:
[*] Pin controllers  --->
select it and
Code:
< >   Intel Sunrisepoint pinctrl and GPIO driver (NEW)
is the last useful option on the menu.
If the z toggle is on, you will see all the embedded system options too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Fri May 25, 2018 11:00 pm    Post subject: Reply with quote

to avoid a guessing game, you can just do this on the bloated working kernel and you know what modules it needs in gentoo.

Code:
lspci -k
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Sat May 26, 2018 5:18 am    Post subject: Reply with quote

NeddySeagoon wrote:
...Lets do a worked example. In menuconfig press / and enter PINCTRL_SUNRISEPOINT...


Thanks NeddySeagoon I now got my lsmod to look nearly identical as a distro which has drivers enabled for most hardware.

My lsmod
https://paste.pound-python.org/show/7lckADCDLXccVvQ7vZ6r/

My lspci -k
https://paste.pound-python.org/show/EAFQLK7EO2Tb1lXvTTk5/

Ubuntu lsmod
https://paste.pound-python.org/show/OKXtqeAQFYsve0Nu4hhq/

Ubuntu lspci -k
https://paste.pound-python.org/show/uzAG0QXwdvQ72knrlJUQ/

I am obviously very close as I dont want to use a binary distro. However I still dont understand why bluetooth and touchpad aren't working. I really do not want to ditch gentoo as binary distros tend to have missing/incorrectly linked library issues, at least in my experience it was common. Im sure if I solve this I will not experience similar driver issues again because this issue is for multiple things.
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sat May 26, 2018 6:47 am    Post subject: Reply with quote

your kernel looks fine to me. ubuntu is probably just using libinput these days? If you follow the wikis, I think it'll work. if not post your emerge --info and post Xorg.0.log
https://wiki.gentoo.org/wiki/Libinput
https://wiki.gentoo.org/wiki/Bluetooth
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Sat May 26, 2018 7:02 am    Post subject: Reply with quote

bobbymcgee wrote:
...your kernel looks fine to me...


It might not even be the kernel and end up being userland issues. But its weird because touchpad remains inoperable after emerging appropriate xorg drivers after adding libinput into make.conf with emerge -uUD @world

current kernel
https://paste.pound-python.org/show/A4YLAaALURf9twtF9Fkq/

libinput list-devices - no tackpad found
https://paste.pound-python.org/show/EMUxOvkOYeqCJEmdWq9y/

emerge --info
https://paste.pound-python.org/show/PlxgoPvzK0jTkaRaNS0w/

Xorg.0.log
https://paste.pound-python.org/show/9DQFVG7gpYO7ZbgV7ITO/

Code:
[    37.058] (**) SiliconWin mouse: always reports core events
[    37.058] (**) Option "Device" "/dev/input/event14"
[    37.058] (**) Option "_source" "server/udev"
[    37.110] (II) event14 - SiliconWin mouse: is tagged by udev as: Mouse
[    37.110] (II) event14 - SiliconWin mouse: device is a pointer
[    37.110] (II) event14 - SiliconWin mouse: device removed
[    37.125] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:0000:3821.0001/input/input14/event14"
[    37.125] (II) XINPUT: Adding extended input device "SiliconWin mouse" (type: MOUSE, id 14)
[    37.125] (**) Option "AccelerationScheme" "none"
[    37.125] (**) SiliconWin mouse: (accel) selected scheme none/0
[    37.125] (**) SiliconWin mouse: (accel) acceleration factor: 2.000
[    37.125] (**) SiliconWin mouse: (accel) acceleration threshold: 4
[    37.177] (II) event14 - SiliconWin mouse: is tagged by udev as: Mouse
[    37.177] (II) event14 - SiliconWin mouse: device is a pointer
[    42.834] (II) event14 - SiliconWin mouse: Enabling spurious button debouncing, see https://wayland.freedesktop.org/libinput/doc/1.10.7/button_debouncing.html for details
 

is just a usb mouse which I use to get over lack of a working touchpad.
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sat May 26, 2018 7:46 am    Post subject: Reply with quote

make note of this from the wiki:
Quote:
By default, when libinput is the only available input driver for Xorg, no additional configuration is needed. Simply (re)start the graphical environment for the changes to take effect.

If multiple input drivers are available on the system (x11-drivers/xf86-input-evdev and x11-drivers/xf86-input-synaptics for example), then additional configuration is required.


change to this in make.conf and emerge --depclean --ask
Code:
INPUT_DEVICES="libinput"
(this is default, so you can also remove entirely?)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44014
Location: 56N 3W

PostPosted: Sat May 26, 2018 11:08 am    Post subject: Reply with quote

The_Document,

Sunrise Point is a pain.

Once you have PINCTRL_SUNRISEPOINT in your kernel, you can start to get things that depend on its GPIO to work.

The good news is Sunrise Point is becoming more common and others have fixed this before you.
Non Gentoo solution apply. Its mostly a kernel thing.

I suspect you need
Code:
hid                   114688  2 i2c_hid,hid_multitouch
hid_multitouch         20480  0
i2c_hid                20480  0
I have a dim memory that your touchpad is on the i2c.
They are built into your kernel, so you have them.

This might be painful.
Boot Ubuntu, make sure things work as expected then remove modules until something breaks.
You will know you needed that module.

lsmod shows the module name, its size and a count of things that the kernel thinks are using the module. Its not always correct.
e.g.
Code:
ahci                   36864  0
will be your HDD driver. Don't remove that.
Start with modules that have a used by count of zero.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Sat May 26, 2018 11:30 pm    Post subject: Reply with quote

NeddySeagoon wrote:
...They are built into your kernel, so you have them....


So far I have managed to get touchpad to work, only bluetooth and fingerprint reader left. I am very happy and rather surprised that after recompiling kernel/rebooting/starting kde - the cursor started moving by touchpad, I was very glad. Im am sure bluetooth and fingerprint reader will follow inline.

lsmod so far
https://paste.pound-python.org/show/JdkMQmg5jsBDpXQy2bs5/

I dont understand why bluetooth isnt working granted I have all or at least most bluetooth modules loaded compared to ubuntu's lsmod
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sun May 27, 2018 5:27 am    Post subject: Reply with quote

so you trying to use libinput libevdev and libsynaptics simulataneously with no configuration to do so had nothing to do with it? give me a break. go enjoy ubuntu.
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Sun May 27, 2018 5:28 am    Post subject: Reply with quote

bobbymcgee wrote:
so you trying to use libinput libevdev and libsynaptics simulataneously with no configuration to do so had nothing to do with it? give me a break. go enjoy ubuntu.


It was a driver issue not a userland issue.
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sun May 27, 2018 5:38 am    Post subject: Reply with quote

this is wrong unless you know what you're doing, you obviously do not. keep going in circles, i'm finished.
Code:
INPUT_DEVICES="evdev synaptics libinput"
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Sun May 27, 2018 5:41 am    Post subject: Reply with quote

bobbymcgee wrote:
this is wrong unless you know what you're doing, you obviously do not. keep going in circles, i'm finished.
Code:
INPUT_DEVICES="evdev synaptics libinput"


I had that reduced to libinput a while ago.
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sun May 27, 2018 5:59 am    Post subject: Reply with quote

you may lie but your Xorg.0.log does not ;)
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Sun May 27, 2018 6:00 am    Post subject: Reply with quote

bobbymcgee wrote:
you may lie but your Xorg.0.log does not ;)


Might as well post my recent xorg log to show only libinput is left
https://paste.pound-python.org/show/38Q3HQLiBAGqWPP4o4BW/
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sun May 27, 2018 6:05 am    Post subject: Reply with quote

I don't need proof, I know I told you how to fix it and you did. I didn't have doubts. The problem is you spreading misinformation by attributing it to "recompiling...kde"

edit: forgot the ellipsis, it's nonsense either way.


Last edited by bobbymcgee on Sun May 27, 2018 6:50 am; edited 1 time in total
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Sun May 27, 2018 6:07 am    Post subject: Reply with quote

bobbymcgee wrote:
I don't need proof, I know I told you how to fix it and you did. I didn't have doubts. The problem is you spreading misinformation by attributing it to "recompiling kde"


Were was it I stated I recompiled kde?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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