Skip to Content.
Sympa Menu

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

Subject: Linux users of Sony Z1 series

List archive

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


Chronological Thread 
  • From: Sylvain Maucourt <>
  • To: , Andre Roth <>
  • Subject: Re: [linux-sony-z1] Fn-Esc script (was: my experiences ....Alps touchpad, suspend config)
  • Date: Sun, 21 Nov 2004 14:54:46 +0100

Andre Roth a écrit :

it's working!! rouuhaa.. :)

congrats :)


thanks!!


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.

ok, i ask to me to not use console mode ;-)

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)

Thanks! i forgot that i allready installed sonypidd . . now it's working when i do Fn + F12!! thanks!!

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é



------------------------------------------------------------------------

#!/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


------------------------------------------------------------------------

_______________________________________________
Mailing list of Linux users of Sony Z1 series laptop

http://listes.ined.fr/wws/arc/linux-sony-z1
In order to unsubscribe send a message to or -subscribe for subscribing.





Archive powered by MHonArc 2.6.18.

Top of Page