Gentoo Archives: gentoo-user

From: Roman Dobosz <gryf73@××.pl>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Kernel 4.x and (probably) event issues
Date: Sat, 12 Mar 2016 16:16:59
Message-Id: 20160312171636.09ad23cf4053e3fe1a2b57c7@op.pl
In Reply to: Re: [gentoo-user] Kernel 4.x and (probably) event issues by Adam Carter
1 On Mon, 7 Mar 2016 11:00:26 +1100
2 Adam Carter <adamcarter3@×××××.com> wrote:
3
4 > > 1. After successful boot, I've noticed, that buttons above the
5 > > touchpad[1] stopped working. Tried to debug the thing, but they do
6 > > nothing even under xev or in showkey - seems like they dead. Didn't find
7 > > anything interesting by searching the net.
8 > Longshot (since i've had one instance in the last few years where i need to
9 > rebuild xorg after a kernel update) have you tried rebuilding the
10 > xf86-input-* packages against the new kernel?
11
12 Yep, that was the first thing, right after rebuilding 3rd party
13 modules, I've done.
14
15 I've done a little test with Live USB with some popular desktop
16 distribution, and it turns out, those buttons doesn't work there
17 either. Not sure if it's a kernel bug, or something else.
18
19 > > 2. This one is more annoying. After boot to the new shiny 4.x kernel,
20 > > devices connected via the usb seems to have aggressive power safe mode.
21 > > For example - if I typing for a while everything is fine, if I stop for
22 > > a couple of seconds, and then start to type, for approximately 2 seconds
23 > > there is no response from the device, and after that i can type again.
24 > > Note, that during those 2s no buffering is done, so whatever I'm typing
25 > > in this short period, is lost. Same goes to the mouse movement and
26 > > buttons.
27 > I haven't had much luck with USB power saving working in a useful way and
28 > leave it off. Strange its been enabled by default for you.
29 >
30 > cat /sys/bus/usb/devices/*/power/control will show you what the current
31 > settings are.
32 >
33 > The options are on/auto.
34 >
35 > "on" means that the device should be resumed and autosuspend is not allowed.
36 >
37 > so that's what you want. It can blanket set with;
38 >
39 > echo on | tee /sys/bus/usb/devices/*/power/control
40 >
41 > Or you could work out which devices are actually a problem and just "on"
42 > those particular ones.
43
44 Actually, this was very useful. Thank you for the hint. I've created
45 simple script which gives me a device and power status next to it.
46 I've compared values from the distro I've mentioned above with the
47 values I get from the Gentoo system. It turns out that indeed all
48 devices are set to "auto". I've noticed either, that I have running
49 laptop mode (app-laptop/laptop-mode-tools), which was the one
50 responsible for setting all devices to "auto". Will investigate it a
51 bit further, if laptop-mode was the only one who change those values.
52
53 Thanks.
54
55 --
56 -^- _ something is grinding the emptiness:
57 _ /O)_\// Tristesse de La Lune - Coriolis
58 (_(|__(_(_) grf. https://tormentedradio.com