Acer Nitro 5 power button broken in Ubuntu 20.04

After an BIOS update, the Acer Nitro 5’s power button doesn’t work any more under Ubuntu 20.04. The smart folks at Mint figured out [1] what’s wrong, but I couldn’t get their solution working and I’ve long given up on opening launchpad bugs just to watch them triage. Also I love a good workaround, so here it is!

First – and to my good luck – every time the power button is pressed, syslog will print this message:

Unknown key pressed (translated set 2, code 0x55 on isa0060/serio0)

So the action plan is to write a script which tails syslog, greps for the exact message and run a suspend or shutdown command. The script should be started when the user logs on.

The script is on github [2]. For convenience I registered it with the “Startup Application” Gnome desktop app which runs the script after the user logs into the desktop environment.

Shutdown icons created by lakonicon – Flaticon


[1] Power button does not work after BIOS update (acer nitro 5)

[2] acer nitro 5 power button workaround script

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.