You are not logged in.
On my Dell Studio 1555 seems that dell-smm-hwmon (i8k) module causes an issue
# date "+%s.%N" && cat /proc/i8k && date "+%s.%N"
1444309931.684931872
1.0 A13 XXXXXXX 30 255 2 4170 4178 -1 -22
1444309935.509268366
# date "+%s.%N" && cat /sys/class/hwmon/hwmon2/fan1_input && date "+%s.%N"
1444308888.686022363
4162
1444308890.596461259
# date "+%s.%N" && cat /sys/class/hwmon/hwmon2/pwm1 && date "+%s.%N"
1444308915.702704211
255
1444308915.715822448
# date "+%s.%N" && echo -n "255" > /sys/class/hwmon/hwmon2/pwm1 && date "+%s.%N"
1444308978.825164749
1444308982.637610307
Reading from fan1_input and writing to pwm1 takes about 2-4 sec and causes a lag, during that neither keyboard nor touch pad are responsible.
For the sake of completeness:
# cat /sys/class/hwmon/hwmon2/name
dell_smm
# lsmod | sort
ac 16384 0
acpi_cpufreq 20480 1
ahci 36864 1
ansi_cprng 16384 0
arc4 16384 2
atkbd 24576 0
auth_rpcgss 57344 1 nfsd
battery 20480 0
button 16384 0
ccm 20480 3
cdrom 49152 1 sr_mod
cfg80211 466944 3 iwlwifi,mac80211,iwldvm
coretemp 16384 0
crc16 16384 1 ext4
crc_itu_t 16384 1 firewire_core
ctr 16384 3
dcdbas 16384 1 dell_laptop
dell_laptop 20480 0
dell_smm_hwmon 16384 0
dell_wmi 16384 0
drbg 32768 1
drm 286720 7 ttm,drm_kms_helper,radeon
drm_kms_helper 102400 1 radeon
ehci_hcd 69632 1 ehci_pci
ehci_pci 16384 0
evdev 24576 14
ext4 507904 1
firewire_core 57344 1 firewire_ohci
firewire_ohci 40960 0
fscache 57344 1 nfs
fuse 90112 5
grace 16384 2 nfsd,lockd
hmac 16384 1
i2c_algo_bit 16384 1 radeon
i2c_i801 20480 0
i8042 24576 2 libps2,dell_laptop
input_leds 16384 0
intel_agp 20480 0
intel_gtt 20480 1 intel_agp
ip_tables 28672 0
iTCO_vendor_support 16384 1 iTCO_wdt
iTCO_wdt 16384 0
iwldvm 184320 0
iwlwifi 172032 1 iwldvm
jbd2 90112 1 ext4
joydev 20480 0
kvm 446464 1 kvm_intel
kvm_intel 163840 0
led_class 16384 4 sdhci,iwldvm,dell_laptop,input_leds
libahci 28672 1 ahci
libata 196608 2 ahci,libahci
libphy 32768 1 tg3
libps2 16384 2 atkbd,psmouse
lockd 90112 2 nfs,nfsd
lpc_ich 24576 0
mac80211 651264 1 iwldvm
mac_hid 16384 0
mbcache 20480 1 ext4
media 20480 2 uvcvideo,videodev
memstick 16384 1 r592
mmc_core 110592 2 sdhci,sdhci_pci
Module Size Used by
mousedev 20480 0
mtd 49152 2 nand,sm_common
nand 65536 2 r852,sm_common
nand_ecc 16384 1 nand
nand_ids 16384 1 nand
nfs 204800 0
nfs_acl 16384 1 nfsd
nfsd 303104 1
oid_registry 16384 1 auth_rpcgss
pps_core 20480 1 ptp
processor 32768 3 acpi_cpufreq
psmouse 118784 0
ptp 20480 1 tg3
r592 20480 0
r852 20480 0
radeon 1482752 4
rfkill 20480 3 cfg80211,dell_laptop
sch_fq_codel 20480 10
scsi_mod 147456 3 libata,sd_mod,sr_mod
sdhci 40960 1 sdhci_pci
sdhci_pci 24576 0
sd_mod 36864 2
serio 20480 6 serio_raw,atkbd,i8042,psmouse
serio_raw 16384 0
sha256_generic 24576 1 sha256_ssse3
sha256_ssse3 28672 1
shpchp 32768 0
sm_common 20480 1 r852
snd 65536 16 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hda_codec 106496 4 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel
snd_hda_codec_generic 69632 1 snd_hda_codec_idt
snd_hda_codec_hdmi 49152 1
snd_hda_codec_idt 49152 1
snd_hda_core 49152 5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hda_intel 32768 4
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 86016 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_timer 28672 1 snd_pcm
soundcore 16384 1 snd
sparse_keymap 16384 1 dell_wmi
sr_mod 24576 0
sunrpc 274432 8 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
tg3 163840 0
thermal 20480 0
ttm 77824 1 radeon
uhci_hcd 40960 0
usb_common 16384 1 usbcore
usbcore 196608 4 uhci_hcd,uvcvideo,ehci_hcd,ehci_pci
uvcvideo 86016 0
v4l2_common 16384 1 videobuf2_core
video 32768 2 dell_wmi,dell_laptop
videobuf2_core 40960 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_vmalloc 16384 1 uvcvideo
videodev 143360 3 uvcvideo,v4l2_common,videobuf2_core
wmi 20480 1 dell_wmi
x_tables 28672 1 ip_tables
Offline
I don't recommend to blacklist dell-smm-hwmon module, because otherwise the CPU get overheated.
So my solution was to disable the fancontrol.service and to add "i8kfan -1 2" to acpi handlers button/lid - open case, so my /etc/acpi/handler.sh looks like:
#!/bin/bash
# Default acpi script that takes an entry for all actions
case "$1" in
button/power)
case "$2" in
PBTN|PWRF)
logger 'PowerButton pressed'
;;
*)
logger "ACPI action undefined: $2"
;;
esac
;;
button/sleep)
case "$2" in
SLPB|SBTN)
logger 'SleepButton pressed'
;;
*)
logger "ACPI action undefined: $2"
;;
esac
;;
ac_adapter)
case "$2" in
AC|ACAD|ADP0)
case "$4" in
00000000)
logger 'AC unpluged'
;;
00000001)
logger 'AC pluged'
;;
esac
;;
*)
logger "ACPI action undefined: $2"
;;
esac
;;
battery)
case "$2" in
BAT0)
case "$4" in
00000000)
logger 'Battery online'
;;
00000001)
logger 'Battery offline'
;;
esac
;;
CPU0)
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/lid)
case "$3" in
close)
logger 'LID closed'
;;
open)
logger 'LID opened'
i8kfan -1 2
;;
*)
logger "ACPI action undefined: $3"
;;
esac
;;
*)
logger "ACPI group/action undefined: $1 / $2"
;;
esac
# vim:set ts=4 sw=4 ft=sh et:
Pros:
The system lags only once the lid is opened.
No overheating.
Cons:
The system lags once the lid is opened.
The fan is always on full speed - noisy.
But sometimes the fan gets quieter, I don't know why.
Offline