You are not logged in.

#1 2012-10-29 20:32:16

langi
Member
Registered: 2012-10-29
Posts: 1

acpi event/action scripts not working as non root

Hi everybody!
I have configured the volume up/down buttons on my Thinkpad x230 as described in the ArchWiki:
https://wiki.archlinux.org/index.php/Acpid.

Example (Volume up):

[root@host]# acpi_listen
button/volumeup VOLUP 00000080 00000000 K

/etc/acpi/actions/volume_up.sh:

#!/bin/bash
/usr/bin/amixer set Master 5%+

/etc/acpi/events/volume_up:

event=button[ /]volumeup
action=/etc/acpi/actions/volume_up.sh

After I have restarted the acpid everything worked fine (volume up/down, mute), but only as long as I am logged in as root. When I switch to a regular user and use one of the mentioned buttons, nothing happens. I have altered the permissions on the required files (/etc/acpi/events/* and /etc/acpi/actions/*) but this did not help.

I already run acpi_listen as regular user and it worked. It also works whe I execute /usr/bin/amixer set Master 5%+ as regular user.

As desktop environment I use cinnamon.

Last edited by langi (2012-10-29 20:39:13)

Offline

Board footer

Powered by FluxBB