sony-vaio-z-series team mailing list archive
-
sony-vaio-z-series team
-
Mailing list archive
-
Message #00720
switch-x-to.conf / sony-laptop problem with 2.6.31-15 kernel
Just updated kernel in Ubuntu 9.10 to 2.6.31-15 (from 2.6.31-14) with
"Update Manager".
After this update - script /etc/init/switch-x-to.conf failed, due to
delays in initialization of "speed_stamina" device
(/sys/devices/platform/sony-laptop/speed_stamina).
This problem also applies to the old (2.6.31-14) kernel, but it appears
not so often.
So I make small changes to the script:
----------------------------------------------------------------
--- switch-x-to.conf 2009-11-09 09:35:38.519835074 +0300
+++ switch-x-to.conf 2009-11-09 09:38:39.039874142 +0300
@@ -17,6 +17,9 @@
speed='false'; gc='intel';
mod='sony-laptop'; moddir="/lib/modules/`uname -r`";
modfilename="$(modinfo $mod|grep ^filename:|awk '{print $NF}')";
+ while ! grep -qs -e speed -e
stamina /sys/devices/platform/sony-laptop/speed_stamina; do
+ sleep 1
+ done
grep -qs speed /sys/devices/platform/sony-laptop/speed_stamina &&
! lspci|grep -qs "VGA compatible controller: Intel" &&
speed='true';
$speed && gc='nvidia';
----------------------------------------------------------------
Now it works.
Follow ups