← Back to team overview

sony-vaio-z-series team mailing list archive

Re: switch-x-to.conf / sony-laptop problem with 2.6.31-15 kernel

 

On Mon, 2009-11-09 at 12:04 +0100, Raphael Gradenwitz wrote:

> Since 1 second is an eternity while booting and the gdm does not wait
> for switch-x-to until it is ready, maybe changing the sleeptime to ".1"
> whould be better.
> or even better, remove the line:
> grep -qs speed /sys/devices/platform/sony-laptop/speed_stamina &&
> completely from the script, it is not really needed to boot and switch
> to the right libs.

That's true, thanks.

> how did you find out that it was the kernel-module (which I can not yet
> really believe)?

Because of problems with the switch to the right xorg.conf, I decided to
see what happens when a switch-x-to.conf script is loading.
At the beginning of the script, I added these lines:

modinfo $mod >/tmp/module.test
cat /sys/devices/platform/sony-laptop/speed_stamina >/tmp/switch.test

Then I saw that the sony-laptop module is loaded, but the second command
return an empty string, and as a result - xorg.conf is always points to
default (INTEL) config. However, once the system has booted, the same
command returns the correct status of the switch. Perhaps the reason is
the settings of my computer. I use VAIO VGN-Z21MRN, BIOS is R2168M3 with
unlocked "advanced settings".
The only difference from the standard BIOS settings, that option "VGA
Switching" is set to "static". Ie I do not need to use "acpi_osi =!
Windows 2006" hack, because system is started by default in this mode.
However, in theory, this should not affect the switch.

In any case, you're right that the string "grep -qs
speed /sys/devices/platform/sony-laptop/speed_stamina &&" can be removed
from the script, and this solve my problem.

Regards,
   Alexandr Kindras.




Follow ups

References