[ltp] Problem with acpi action
Michael Gaber
linux-thinkpad@linux-thinkpad.org
Wed, 09 May 2007 19:28:07 +0200
This is a cryptographically signed message in MIME format.
--------------ms040507040706070509030509
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
hmm, i think the source-statement is the problem, just kill it and the=20
scrippt will be run
Guillermo Ju=C3=A1rez schrieb:
> The following code belongs to my /etc/acpi/defaults.sh that handles
> the acpi events:
>=20
>=20
> case "$group" in
> ibm)
> case "$action" in
> hotkey)
> if [ "$3" =3D "00000080" -a "$4" =3D
> "00001007" ]; then
> source
> /etc/acpi/actions/screen_switch.sh
> logger "Switching screen"
> fi
> ;;
> *) logger "No conozco la accion $action"
> ;;
> esac
> ;;
>=20
> It should execute a script that swictches my screen to a new monitor
> if it's connected to my laptop.
> The problem is the scripts is never runned. If I do it by hand it
> works, but not pressing the Fn+F/ key.
>=20
> The most surprising thing is that I get the "Switching Screen" message
> in my logs, which proves that the case statement is working fine.
>=20
--------------ms040507040706070509030509
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJ8DCC
BPQwggLcoAMCAQICAwJk/zANBgkqhkiG9w0BAQUFADB5MRAwDgYDVQQKEwdSb290IENBMR4w
HAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmlu
ZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0wNjA2
MjQxMzEwNTBaFw0wNzA2MjQxMzEwNTBaMD4xFjAUBgNVBAMTDU1pY2hhZWwgR2FiZXIxJDAi
BgkqhkiG9w0BCQEWFU1pY2hhZWwuR2FiZXJAZ214Lm5ldDCCASIwDQYJ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