Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save foriequal0/02465c6803e00dacdc6e922d879eb9d8 to your computer and use it in GitHub Desktop.

Select an option

Save foriequal0/02465c6803e00dacdc6e922d879eb9d8 to your computer and use it in GitHub Desktop.
ThinkPad Edge E440 quirks
#!/bin/bash
set -e
# The touchpad loses its two finger scrolling ability after awaken from hibernate.
PROGNAME=$(basename "$0")
state=$1
action=$2
MODNAME=${PROGNAME#reload-}
function log {
logger -i -t "$PROGNAME" "$*"
}
log "Running $action $state"
if [[ $state == post ]]; then
modprobe -r $MODNAME
log "Removed $MODNAME"
modprobe -i $MODNAME
log "Inserted $MODNAME"
fi
#!/bin/bash
set -e
# ThinkPad has red dot LED which indicates its power state in its logo, next to the keyboard and outside of LCD cover.
# After TP is awakened from hibernate, LED flickers, which is not normal behavior. it should just keep turned on.
# This will fix it.
PROGNAME=$(basename "$0")
state=$1
action=$2
function log {
logger -i -t "$PROGNAME" "$*"
}
log "Running $action $state"
if [[ $state == post ]]; then
echo 1 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::power/brightness \
log "Fix power led"
fi
@foriequal0
Copy link
Copy Markdown
Author

foriequal0 commented Aug 2, 2018

ThinkPad E440에 리눅스를 깔았을 때, 부팅 직후에는 문제가 없는데 절전모드에 들어갔다 깨어나면 자잘한 문제들이 있습니다.

  • 정상이라면 전원이 켜져있을 때 ThinkPad 로고의 i에 있는 LED가 계속 켜져있어야 하는데 깜빡깜빡 거립니다.
  • 트랙패드가 두손가락 스크롤을 인식하지 못합니다.
  • r8168이 설치돼있는데, ethernet 장치를 찾지 못하고 성가시게 "연결을 찾을 수 없습니다"같은 노티피케이션을 띄웁니다.
  • 다음과 같은 에러가 dmesg에 나면서 와이파이 연결이 안됩니다.
[251432.071663] wlan0: authenticate with 01:23:45:67:89:0a
[251432.074363] wlan0: send auth to 01:23:45:67:89:0a (try 1/3)
[251432.629814] wlan0: send auth to 01:23:45:67:89:0a (try 2/3)
[251433.246037] iwlwifi 0000:05:00.0: No beacon heard and the time event is over already...
[251433.246059] wlan0: Connection to AP 01:23:45:67:89:0a lost
[251433.618023] wlan0: send auth to 01:23:45:67:89:0a (try 3/3)
[251434.232261] iwlwifi 0000:05:00.0: No beacon heard and the time event is over already...
[251434.232357] wlan0: Connection to AP 01:23:45:67:89:0a lost
[251434.637617] wlan0: authentication with 01:23:45:67:89:0a timed out

최근에 알게 된 systemd-sleep 을 활용해서 고쳐봅니다. 이제 깜빡거리지 않고 제대로 켜져있고, 두손가락 스크롤도 되고, 인터넷도 연결 됩니다.

해당 스크립트를 /lib/systemd/system-sleep/ 에 위치하고, chmod +x 해서 실행권한을 주면 됩니다.
man systemd-sleep 를 통해 systemd-sleep의 매뉴얼을 확인할 수 있습니다.

@foriequal0
Copy link
Copy Markdown
Author

스피커 기능이 있는 HDMI 모니터등을 노트북에 꽂아두면 기본 스피커가 HDMI등으로 바뀌는 문제가 Ubuntu 19.10 이후로 있습니다.
/etc/pulse/default.pa 파일에서 load-module module-switch-on-connect 를 찾아 주석처리.
https://askubuntu.com/questions/1181896/wrong-default-audio-device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment