Skip to Content.
Sympa Menu

linux-sony-z1 - Fn-Esc script (was: my experiences ....Alps touchpad, suspend config)

Subject: Linux users of Sony Z1 series

List archive

Fn-Esc script (was: my experiences ....Alps touchpad, suspend config)


Chronological Thread 
  • From: Andre Roth <>
  • To: Linux Sony Z1 users <>
  • Subject: Fn-Esc script (was: my experiences ....Alps touchpad, suspend config)
  • Date: Sun, 21 Nov 2004 13:24:39 +0100


> it's working!! rouuhaa.. :)
congrats :)

> juste my last problem :p ... presently ... tty is not under framebuffer
> (1400x1050) and it's horrible to read it! .. how may i do to have
> 1400x1050 resolution under my console?

no, suspend with framebuffer is a bit hard to do. read
Documentation/power/video.txt in your kernel tree.

> and ... somebody have a script to suspend and resume ? thanks !

yes, it's a very quick hack, so maybe better solutions exists...

you need to have the sonypid-1.9.1 utility installed.
then I have a script /etc/init.d/sonysleep.sh which is started automatically
at boot time. For this you need a link
lrwxrwxrwx 1 root root 22 Nov 11 21:02 /etc/rc2.d/S99sonysleep ->
../init.d/sonysleep.sh
(ok, the script lacks handling to start and stop parameter)

this script starts the sonypid deamon and pipes the output to another
script, /usr/local/bin/sleep.sh which greps for the right key combination and
suspends the laptop.

any improvements are welcome :-)

salutations
andré


--
Andre Roth |
<>
GPG: FADF988E| 0959 4D7C F8ED DF4B 90A6 CF71 9EDF 52D1 FADF 988E
#!/bin/bash
#
# A quick hack to enable swsuspend on fn-Esc
#
# Author: Andre Roth <>

/usr/local/bin/sonypid -D 2>&1 | /usr/local/bin/sleep.sh &


#!/bin/bash
#
# A quick hack to enable swsuspend on fn-Esc
#
# Author: Andre Roth <>

while true
do
read i
if [ "$i" = "Event: Fn-Esc Pressed" ] ; then
	echo 3 > /proc/acpi/sleep;
fi
done

Attachment: pgpCMZxZOWuLd.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.18.

Top of Page