LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Issue with laptop power cable and usb mouse (https://www.linuxquestions.org/questions/linux-kernel-70/issue-with-laptop-power-cable-and-usb-mouse-4175626203/)

pager48 03-23-2018 07:18 PM

Issue with laptop power cable and usb mouse
 
I am using kde and whenever I disconect power cord the battery icon takes about 3-4 seconds to tell me its disconnected. Whenever I disconect or connect usb mouse it takes like 3-4 seconds for it to start working, what I did do is boot Kubuntu and found out it was instant unlike on my gentoo installation. Im pretty sure a misconfigured kernel is at fault.

Kubuntu lsmod:
https://paste.pound-python.org/show/...g0YMKesIfoD9K/

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

My Kernel Config:
https://paste.pound-python.org/show/...ZeVUXAM0iASeD/

Please help with this, its making my computer unusable.

fatmac 03-24-2018 05:25 AM

Sounds to me like your Kubuntu is loading all drivers at boot up, whilst your Gentoo install only loads what & when they are needed. Sounds like Gentoo is more conservative about using ram wastefully. :)

pager48 03-24-2018 12:05 PM

Quote:

Originally Posted by fatmac (Post 5834783)
Sounds to me like your Kubuntu is loading all drivers at boot up, whilst your Gentoo install only loads what & when they are needed. Sounds like Gentoo is more conservative about using ram wastefully. :)

Thank you for the reply I believe now that m kernel building process is at fault, here is what is issued:

Code:

laptop /home/zakhar # cd /usr/src/linux-4.15.10-gentoo/ && make -j5 && make -j5 modules && make modules_install && make install && mkinitrd /boot/initramfs-4.15.10-gentoo.img 4.15.10-gentoo && grub-mkconfig -o /boot/grub/grub.cfg && reboot
really glad to hear it isn't a misconfig issue. Another important thing I noticed is everytime I connect/disconnect power cable I get this:

Disconnect:
Code:

[  181.372505] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  181.380587] sd 0:0:0:0: [sda] Stopping disk
[  181.451536] sd 0:0:0:0: [sda] Starting disk
[  181.481492] EXT4-fs (sda4): re-mounted. Opts: data=ordered,commit=600

Connect:
Code:

[  195.523805] EXT4-fs (sda4): re-mounted. Opts: data=ordered,commit=0
Nothing is printed out when connecting/disconnecting power cable on ubuntu livecd and it is instant unlike on my gentoo installation.

AwesomeMachine 03-27-2018 05:33 PM

I wouldn't worry if everything is working. If you're just curious, gentoo and Kubuntu are completely different distros. The logging level may be different. Module loading may be different. Versions of system packages may be different. Certain kernel patches unique to the distro may be different. But tracking down exactly what causes the differences, when everything is working, isn't usually worthwhile.


All times are GMT -5. The time now is 02:29 AM.