Skip to content

Multimedia keys behaviour reverted after resume (the 20-k290.sh script does not run on Ubuntu as pm-utils are not used anymore) #16

@madadam

Description

@madadam

Hello,

After my machine resumes from suspend, the F-keys are reverted back to their default multimedia behaviour. This is because the /etc/pm/sleep.d/20-k290.sh script is not executed anymore. This is because Ubuntu switched to systemd and no longer uses pm-utils (not sure in which version of Ubuntu this happened). I fixed it by putting a script with the following content:

#!/bin/bash

case "$1" in
    post)
        /usr/local/sbin/k290_fnkeyctl > /dev/null
        ;;
esac
exit 0

in /lib/systemd/system-sleep and making it executable. I suspect there is probably more proper way to do it, but this worked for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions