pop-os / system76-dkms

System76 DKMS driver
GNU General Public License v2.0
37 stars 20 forks source link

Airplane mode stops working after running EC stress script #12

Closed brs17 closed 4 years ago

brs17 commented 6 years ago

Distribution (run cat /etc/os-release): Ubuntu 18.04

Issue/Bug Description: While running the following script(while sudo bash ecstress.sh ; do true ; done) and pressing the airplane mode button numerous times, the airplane mode toggle stopped working. Pressing the hotkey would only display the "airplane mode enabled" message but never disable it.

ecstress.sh

PLATFORM="/sys/devices/platform/system76"
for pwm in "$PLATFORM/hwmon/hwmon"*"/pwm"?
do
    speed="$((RANDOM % 128 + 128))"
    echo "$pwm = $speed"
    echo "$speed" > "$pwm"
done
for color in "$PLATFORM/leds/system76::kbd_backlight/color_"*
do
    rgb="$(hexdump -n 3 -e '"%06X\n"' /dev/urandom)"
    echo "$color = $rgb"
    echo "$rgb" > "$color"
done